diff --git a/.gitattributes b/.gitattributes index 1ff0c4230..6d2ce70f2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,7 +17,7 @@ # # Merging from the command prompt will add diff markers to the files if there # are conflicts (Merging from VS is not affected by the settings below, in VS -# the diff markers are never inserted). Diff markers may cause the following +# the diff markers are never inserted). Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these files as binary and thus will always conflict and require user # intervention with every merge. To do so, just uncomment the entries below @@ -46,9 +46,9 @@ ############################################################################### # diff behavior for common document formats -# +# # Convert binary document formats to text before diffing them. This feature -# is only available from the command line. Turn it on by uncommenting the +# is only available from the command line. Turn it on by uncommenting the # entries below. ############################################################################### #*.doc diff=astextplain @@ -61,3 +61,5 @@ #*.PDF diff=astextplain #*.rtf diff=astextplain #*.RTF diff=astextplain + +imgui/**/Generated/**/*.cs linguist-generated=true diff --git a/.gitignore b/.gitignore index 7023fb37f..b6a32a3ce 100644 --- a/.gitignore +++ b/.gitignore @@ -327,4 +327,7 @@ ASALocalRun/ *.nvuser # MFractors (Xamarin productivity tool) working folder -.mfractor/ \ No newline at end of file +.mfractor/ + +# HexaGen generated files +#imgui/**/Generated/**/* \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 227653d48..0d12df2b8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "lib/ImGuiScene"] - path = lib/ImGuiScene - url = https://github.com/goatcorp/ImGuiScene [submodule "lib/FFXIVClientStructs"] path = lib/FFXIVClientStructs url = https://github.com/aers/FFXIVClientStructs @@ -19,3 +16,9 @@ [submodule "lib/cimguizmo"] path = lib/cimguizmo url = https://github.com/goatcorp/gc-cimguizmo +[submodule "lib/Hexa.NET.ImGui"] + path = lib/Hexa.NET.ImGui + url = https://github.com/goatcorp/Hexa.NET.ImGui.git +[submodule "lib/Lumina.Excel"] + path = lib/Lumina.Excel + url = https://github.com/NotAdam/Lumina.Excel.git diff --git a/Dalamud.Boot/Dalamud.Boot.vcxproj b/Dalamud.Boot/Dalamud.Boot.vcxproj index c18045027..a15601af4 100644 --- a/Dalamud.Boot/Dalamud.Boot.vcxproj +++ b/Dalamud.Boot/Dalamud.Boot.vcxproj @@ -49,7 +49,6 @@ true true stdcpp20 - MultiThreadedDebug pch.h ProgramDatabase CPPDLLTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) @@ -66,6 +65,7 @@ true false + MultiThreadedDebugDLL _DEBUG;%(PreprocessorDefinitions) Use 26812 @@ -80,6 +80,7 @@ true true + MultiThreadedDLL NDEBUG;%(PreprocessorDefinitions) Use 26812 @@ -203,7 +204,6 @@ - diff --git a/Dalamud.Boot/DalamudStartInfo.cpp b/Dalamud.Boot/DalamudStartInfo.cpp index 35ad42212..5be8f97d0 100644 --- a/Dalamud.Boot/DalamudStartInfo.cpp +++ b/Dalamud.Boot/DalamudStartInfo.cpp @@ -117,6 +117,7 @@ void from_json(const nlohmann::json& json, DalamudStartInfo& config) { config.NoLoadThirdPartyPlugins = json.value("NoLoadThirdPartyPlugins", config.NoLoadThirdPartyPlugins); config.BootLogPath = json.value("BootLogPath", config.BootLogPath); + config.BootDebugDirectX = json.value("BootDebugDirectX", config.BootDebugDirectX); config.BootShowConsole = json.value("BootShowConsole", config.BootShowConsole); config.BootDisableFallbackConsole = json.value("BootDisableFallbackConsole", config.BootDisableFallbackConsole); config.BootWaitMessageBox = json.value("BootWaitMessageBox", config.BootWaitMessageBox); diff --git a/Dalamud.Boot/DalamudStartInfo.h b/Dalamud.Boot/DalamudStartInfo.h index 05ff7b23e..0eeaddeed 100644 --- a/Dalamud.Boot/DalamudStartInfo.h +++ b/Dalamud.Boot/DalamudStartInfo.h @@ -55,6 +55,7 @@ struct DalamudStartInfo { bool NoLoadThirdPartyPlugins; std::string BootLogPath; + bool BootDebugDirectX = false; bool BootShowConsole = false; bool BootDisableFallbackConsole = false; WaitMessageboxFlags BootWaitMessageBox = WaitMessageboxFlags::None; diff --git a/Dalamud.Boot/dllmain.cpp b/Dalamud.Boot/dllmain.cpp index b72063855..5e73962ec 100644 --- a/Dalamud.Boot/dllmain.cpp +++ b/Dalamud.Boot/dllmain.cpp @@ -1,6 +1,10 @@ #include "pch.h" +#include +#include + #include "DalamudStartInfo.h" +#include "hooks.h" #include "logging.h" #include "utils.h" #include "veh.h" @@ -90,6 +94,69 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { if ((g_startInfo.BootWaitMessageBox & DalamudStartInfo::WaitMessageboxFlags::BeforeInitialize) != DalamudStartInfo::WaitMessageboxFlags::None) MessageBoxW(nullptr, L"Press OK to continue (BeforeInitialize)", L"Dalamud Boot", MB_OK); + if (g_startInfo.BootDebugDirectX) { + logging::I("Enabling DirectX Debugging."); + + const auto hD3D11 = GetModuleHandleW(L"d3d11.dll"); + const auto hDXGI = GetModuleHandleW(L"dxgi.dll"); + const auto pfnD3D11CreateDevice = static_cast( + hD3D11 ? static_cast(GetProcAddress(hD3D11, "D3D11CreateDevice")) : nullptr); + if (pfnD3D11CreateDevice) { + static hooks::direct_hook s_hookD3D11CreateDevice( + "d3d11.dll!D3D11CreateDevice", + pfnD3D11CreateDevice); + s_hookD3D11CreateDevice.set_detour([]( + IDXGIAdapter* pAdapter, + D3D_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + const D3D_FEATURE_LEVEL* pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + ID3D11Device** ppDevice, + D3D_FEATURE_LEVEL* pFeatureLevel, + ID3D11DeviceContext** ppImmediateContext + ) -> HRESULT { + return s_hookD3D11CreateDevice.call_original( + pAdapter, + DriverType, + Software, + (Flags & ~D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY) | D3D11_CREATE_DEVICE_DEBUG, + pFeatureLevels, + FeatureLevels, + SDKVersion, + ppDevice, + pFeatureLevel, + ppImmediateContext); + }); + } else { + logging::W("Could not find d3d11!D3D11CreateDevice."); + } + + const auto pfnCreateDXGIFactory = static_cast( + hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory")) : nullptr); + const auto pfnCreateDXGIFactory1 = static_cast( + hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory1")) : nullptr); + static const auto pfnCreateDXGIFactory2 = static_cast( + hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory2")) : nullptr); + if (pfnCreateDXGIFactory2) { + static hooks::direct_hook s_hookCreateDXGIFactory( + "dxgi.dll!CreateDXGIFactory", + pfnCreateDXGIFactory); + static hooks::direct_hook s_hookCreateDXGIFactory1( + "dxgi.dll!CreateDXGIFactory1", + pfnCreateDXGIFactory1); + s_hookCreateDXGIFactory.set_detour([](REFIID riid, _COM_Outptr_ void **ppFactory) -> HRESULT { + return pfnCreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, riid, ppFactory); + }); + s_hookCreateDXGIFactory1.set_detour([](REFIID riid, _COM_Outptr_ void **ppFactory) -> HRESULT { + return pfnCreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, riid, ppFactory); + }); + } else { + logging::W("Could not find dxgi!CreateDXGIFactory2."); + } + } + if (minHookLoaded) { logging::I("Applying fixes..."); xivfixes::apply_all(true); diff --git a/Dalamud.Common/DalamudStartInfo.cs b/Dalamud.Common/DalamudStartInfo.cs index 680dce217..a0d7f8b0b 100644 --- a/Dalamud.Common/DalamudStartInfo.cs +++ b/Dalamud.Common/DalamudStartInfo.cs @@ -101,6 +101,11 @@ public record DalamudStartInfo /// public bool BootShowConsole { get; set; } + /// + /// Gets or sets a value indicating whether to enable D3D11 and DXGI debugging if possible. + /// + public bool BootDebugDirectX { get; set; } + /// /// Gets or sets a value indicating whether the fallback console should be shown, if needed. /// diff --git a/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj b/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj index f2c8cbc5a..0c6a86e8d 100644 --- a/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj +++ b/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj @@ -26,7 +26,6 @@ - all @@ -38,15 +37,6 @@ false - - false - - - false - - - false - diff --git a/Dalamud.CorePlugin/PluginWindow.cs b/Dalamud.CorePlugin/PluginWindow.cs index 27be82f41..3a17ea065 100644 --- a/Dalamud.CorePlugin/PluginWindow.cs +++ b/Dalamud.CorePlugin/PluginWindow.cs @@ -1,8 +1,8 @@ using System; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Windowing; -using ImGuiNET; namespace Dalamud.CorePlugin { diff --git a/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj index c293e258c..1c89f4ff7 100644 --- a/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj +++ b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj @@ -39,7 +39,6 @@ true true stdcpplatest - MultiThreadedDebug pch.h ProgramDatabase CPPDLLTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) @@ -56,6 +55,7 @@ true false + MultiThreadedDebugDLL _DEBUG;%(PreprocessorDefinitions) @@ -67,6 +67,7 @@ true true + MultiThreadedDLL NDEBUG;%(PreprocessorDefinitions) @@ -107,4 +108,4 @@ - \ No newline at end of file + diff --git a/Dalamud.Injector/EntryPoint.cs b/Dalamud.Injector/EntryPoint.cs index cd2127355..4f876102e 100644 --- a/Dalamud.Injector/EntryPoint.cs +++ b/Dalamud.Injector/EntryPoint.cs @@ -91,6 +91,7 @@ namespace Dalamud.Injector startInfo = ExtractAndInitializeStartInfoFromArguments(startInfo, args); // Remove already handled arguments + args.Remove("--debug-directx"); args.Remove("--console"); args.Remove("--msgbox1"); args.Remove("--msgbox2"); @@ -464,6 +465,7 @@ namespace Dalamud.Injector startInfo.LogName ??= string.Empty; // Set boot defaults + startInfo.BootDebugDirectX = args.Contains("--debug-directx"); startInfo.BootShowConsole = args.Contains("--console"); startInfo.BootEnableEtw = args.Contains("--etw"); startInfo.BootLogPath = GetLogPath(startInfo.LogPath, "dalamud.boot", startInfo.LogName); diff --git a/Dalamud.sln b/Dalamud.sln index 5b1eb9d30..fe1c9b19d 100644 --- a/Dalamud.sln +++ b/Dalamud.sln @@ -32,12 +32,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud.Test", "Dalamud.Tes EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dependencies", "Dependencies", "{E15BDA6D-E881-4482-94BA-BE5527E917FF}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImGui.NET-472", "lib\ImGuiScene\deps\ImGui.NET\src\ImGui.NET-472\ImGui.NET-472.csproj", "{0483026E-C6CE-4B1A-AA68-46544C08140B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImGuiScene", "lib\ImGuiScene\ImGuiScene\ImGuiScene.csproj", "{C0E7E797-4FBF-4F46-BC57-463F3719BA7A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SDL2-CS", "lib\ImGuiScene\deps\SDL2-CS\SDL2-CS.csproj", "{2F7FF0A8-B619-4572-86C7-71E46FE22FB8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud.CorePlugin", "Dalamud.CorePlugin\Dalamud.CorePlugin.csproj", "{4AFDB34A-7467-4D41-B067-53BC4101D9D0}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FFXIVClientStructs", "lib\FFXIVClientStructs\FFXIVClientStructs\FFXIVClientStructs.csproj", "{C9B87BD7-AF49-41C3-91F1-D550ADEB7833}" @@ -68,6 +62,24 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cimplot", "external\cimplot EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cimguizmo", "external\cimguizmo\cimguizmo.vcxproj", "{F258347D-31BE-4605-98CE-40E43BDF6F9D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImGui", "imgui\Dalamud.Bindings.ImGui\Dalamud.Bindings.ImGui.csproj", "{B0AA8737-33A3-4766-8CBE-A48F2EF283BA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImGuizmo", "imgui\Dalamud.Bindings.ImGuizmo\Dalamud.Bindings.ImGuizmo.csproj", "{5E6EDD75-AE95-43A6-9D67-95B840EB4B71}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImPlot", "imgui\Dalamud.Bindings.ImPlot\Dalamud.Bindings.ImPlot.csproj", "{9C70BD06-D52C-425E-9C14-5D66BC6046EF}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Bindings", "Bindings", "{A217B3DF-607A-4EFB-B107-3C4809348043}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandaloneImGuiTestbed", "imgui\StandaloneImGuiTestbed\StandaloneImGuiTestbed.csproj", "{4702A911-2513-478C-A434-2776393FDE77}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImGuiScene", "imgui\ImGuiScene\ImGuiScene.csproj", "{66753AC7-0029-4373-9CC4-7760B1F46141}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lumina", "Lumina", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Excel.Generator", "lib\Lumina.Excel\src\Lumina.Excel.Generator\Lumina.Excel.Generator.csproj", "{5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Excel", "lib\Lumina.Excel\src\Lumina.Excel\Lumina.Excel.csproj", "{88FB719B-EB41-73C5-8D25-C03E0C69904F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -98,18 +110,6 @@ Global {C8004563-1806-4329-844F-0EF6274291FC}.Debug|Any CPU.Build.0 = Debug|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Release|Any CPU.ActiveCfg = Release|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Release|Any CPU.Build.0 = Release|x64 - {0483026E-C6CE-4B1A-AA68-46544C08140B}.Debug|Any CPU.ActiveCfg = Debug|x64 - {0483026E-C6CE-4B1A-AA68-46544C08140B}.Debug|Any CPU.Build.0 = Debug|x64 - {0483026E-C6CE-4B1A-AA68-46544C08140B}.Release|Any CPU.ActiveCfg = Release|x64 - {0483026E-C6CE-4B1A-AA68-46544C08140B}.Release|Any CPU.Build.0 = Release|x64 - {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Debug|Any CPU.ActiveCfg = Debug|x64 - {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Debug|Any CPU.Build.0 = Debug|x64 - {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Release|Any CPU.ActiveCfg = Release|x64 - {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Release|Any CPU.Build.0 = Release|x64 - {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Debug|Any CPU.ActiveCfg = Debug|x64 - {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Debug|Any CPU.Build.0 = Debug|x64 - {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Release|Any CPU.ActiveCfg = Release|x64 - {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Release|Any CPU.Build.0 = Release|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Debug|Any CPU.ActiveCfg = Debug|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Debug|Any CPU.Build.0 = Debug|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Release|Any CPU.ActiveCfg = Release|x64 @@ -154,6 +154,34 @@ Global {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Debug|Any CPU.Build.0 = Debug|x64 {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Release|Any CPU.ActiveCfg = Release|x64 {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Release|Any CPU.Build.0 = Release|x64 + {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Debug|Any CPU.ActiveCfg = Debug|x64 + {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Debug|Any CPU.Build.0 = Debug|x64 + {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Release|Any CPU.ActiveCfg = Release|x64 + {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Release|Any CPU.Build.0 = Release|x64 + {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Debug|Any CPU.ActiveCfg = Debug|x64 + {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Debug|Any CPU.Build.0 = Debug|x64 + {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Release|Any CPU.ActiveCfg = Release|x64 + {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Release|Any CPU.Build.0 = Release|x64 + {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Debug|Any CPU.ActiveCfg = Debug|x64 + {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Debug|Any CPU.Build.0 = Debug|x64 + {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Release|Any CPU.ActiveCfg = Release|x64 + {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Release|Any CPU.Build.0 = Release|x64 + {4702A911-2513-478C-A434-2776393FDE77}.Debug|Any CPU.ActiveCfg = Debug|x64 + {4702A911-2513-478C-A434-2776393FDE77}.Debug|Any CPU.Build.0 = Debug|x64 + {4702A911-2513-478C-A434-2776393FDE77}.Release|Any CPU.ActiveCfg = Release|x64 + {4702A911-2513-478C-A434-2776393FDE77}.Release|Any CPU.Build.0 = Release|x64 + {66753AC7-0029-4373-9CC4-7760B1F46141}.Debug|Any CPU.ActiveCfg = Debug|x64 + {66753AC7-0029-4373-9CC4-7760B1F46141}.Debug|Any CPU.Build.0 = Debug|x64 + {66753AC7-0029-4373-9CC4-7760B1F46141}.Release|Any CPU.ActiveCfg = Release|x64 + {66753AC7-0029-4373-9CC4-7760B1F46141}.Release|Any CPU.Build.0 = Release|x64 + {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Release|Any CPU.Build.0 = Release|Any CPU + {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -161,9 +189,6 @@ Global GlobalSection(NestedProjects) = preSolution {5B832F73-5F54-4ADC-870F-D0095EF72C9A} = {19775C83-7117-4A5F-AA00-18889F46A490} {8874326B-E755-4D13-90B4-59AB263A3E6B} = {19775C83-7117-4A5F-AA00-18889F46A490} - {0483026E-C6CE-4B1A-AA68-46544C08140B} = {DBE5345E-6594-4A59-B183-1C3D5592269D} - {C0E7E797-4FBF-4F46-BC57-463F3719BA7A} = {DBE5345E-6594-4A59-B183-1C3D5592269D} - {2F7FF0A8-B619-4572-86C7-71E46FE22FB8} = {DBE5345E-6594-4A59-B183-1C3D5592269D} {4AFDB34A-7467-4D41-B067-53BC4101D9D0} = {8F079208-C227-4D96-9427-2BEBE0003944} {C9B87BD7-AF49-41C3-91F1-D550ADEB7833} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} {E0D51896-604F-4B40-8CFE-51941607B3A1} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} @@ -175,6 +200,14 @@ Global {8BBACF2D-7AB8-4610-A115-0E363D35C291} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16} = {DBE5345E-6594-4A59-B183-1C3D5592269D} {F258347D-31BE-4605-98CE-40E43BDF6F9D} = {DBE5345E-6594-4A59-B183-1C3D5592269D} + {B0AA8737-33A3-4766-8CBE-A48F2EF283BA} = {A217B3DF-607A-4EFB-B107-3C4809348043} + {5E6EDD75-AE95-43A6-9D67-95B840EB4B71} = {A217B3DF-607A-4EFB-B107-3C4809348043} + {9C70BD06-D52C-425E-9C14-5D66BC6046EF} = {A217B3DF-607A-4EFB-B107-3C4809348043} + {4702A911-2513-478C-A434-2776393FDE77} = {A217B3DF-607A-4EFB-B107-3C4809348043} + {66753AC7-0029-4373-9CC4-7760B1F46141} = {A217B3DF-607A-4EFB-B107-3C4809348043} + {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + {88FB719B-EB41-73C5-8D25-C03E0C69904F} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {79B65AC9-C940-410E-AB61-7EA7E12C7599} diff --git a/Dalamud/Configuration/Internal/DalamudConfiguration.cs b/Dalamud/Configuration/Internal/DalamudConfiguration.cs index 8dafd897e..08bbeb938 100644 --- a/Dalamud/Configuration/Internal/DalamudConfiguration.cs +++ b/Dalamud/Configuration/Internal/DalamudConfiguration.cs @@ -23,6 +23,7 @@ using Dalamud.Utility; using Newtonsoft.Json; using Serilog; using Serilog.Events; +using Windows.Win32.UI.WindowsAndMessaging; namespace Dalamud.Configuration.Internal; @@ -152,23 +153,11 @@ internal sealed class DalamudConfiguration : IInternalDisposableService /// public float GlobalUiScale { get; set; } = 1.0f; - /// - /// Gets or sets a value indicating whether to use AXIS fonts from the game. - /// - [Obsolete($"See {nameof(DefaultFontSpec)}")] - public bool UseAxisFontsFromGame { get; set; } = true; - /// /// Gets or sets the default font spec. /// public IFontSpec? DefaultFontSpec { get; set; } - /// - /// Gets or sets the gamma value to apply for Dalamud fonts. Do not use. - /// - [Obsolete("It happens that nobody touched this setting", true)] - public float FontGammaLevel { get; set; } = 1.4f; - /// Gets or sets the opacity of the IME state indicator. /// 0 will hide the state indicator. 1 will make the state indicator fully visible. Values outside the /// range will be clamped to [0, 1]. @@ -604,11 +593,15 @@ internal sealed class DalamudConfiguration : IInternalDisposableService { // https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/animation/animation_win.cc;l=29?q=ReducedMotion&ss=chromium var winAnimEnabled = 0; - var success = NativeFunctions.SystemParametersInfo( - (uint)NativeFunctions.AccessibilityParameter.SPI_GETCLIENTAREAANIMATION, - 0, - ref winAnimEnabled, - 0); + var success = false; + unsafe + { + success = Windows.Win32.PInvoke.SystemParametersInfo( + SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETCLIENTAREAANIMATION, + 0, + &winAnimEnabled, + 0); + } if (!success) { diff --git a/Dalamud/Dalamud.cs b/Dalamud/Dalamud.cs index e406c3502..a411883d5 100644 --- a/Dalamud/Dalamud.cs +++ b/Dalamud/Dalamud.cs @@ -13,8 +13,9 @@ using Dalamud.Plugin.Internal; using Dalamud.Storage; using Dalamud.Utility; using Dalamud.Utility.Timing; -using PInvoke; using Serilog; +using Windows.Win32.Foundation; +using Windows.Win32.Security; #if DEBUG [assembly: InternalsVisibleTo("Dalamud.CorePlugin")] @@ -29,7 +30,7 @@ namespace Dalamud; /// The main Dalamud class containing all subsystems. /// [ServiceManager.ProvidedService] -internal sealed class Dalamud : IServiceType +internal sealed unsafe class Dalamud : IServiceType { #region Internals @@ -79,7 +80,7 @@ internal sealed class Dalamud : IServiceType { Log.Verbose("=============== GAME THREAD KICKOFF ==============="); Timings.Event("Game thread kickoff"); - NativeFunctions.SetEvent(mainThreadContinueEvent); + Windows.Win32.PInvoke.SetEvent(new HANDLE(mainThreadContinueEvent)); } void HandleServiceInitFailure(Task t) @@ -116,9 +117,9 @@ internal sealed class Dalamud : IServiceType HandleServiceInitFailure(t); }); - this.DefaultExceptionFilter = NativeFunctions.SetUnhandledExceptionFilter(nint.Zero); - NativeFunctions.SetUnhandledExceptionFilter(this.DefaultExceptionFilter); - Log.Debug($"SE default exception filter at {this.DefaultExceptionFilter.ToInt64():X}"); + this.DefaultExceptionFilter = SetExceptionHandler(nint.Zero); + SetExceptionHandler(this.DefaultExceptionFilter); + Log.Debug($"SE default exception filter at {new IntPtr(this.DefaultExceptionFilter):X}"); var debugSig = "40 55 53 57 48 8D AC 24 70 AD FF FF"; this.DebugExceptionFilter = Service.Get().ScanText(debugSig); @@ -170,8 +171,9 @@ internal sealed class Dalamud : IServiceType if (!reportCrashesSetting && !pmHasDevPlugins) { // Leaking on purpose for now - var attribs = Kernel32.SECURITY_ATTRIBUTES.Create(); - Kernel32.CreateMutex(attribs, false, "DALAMUD_CRASHES_NO_MORE"); + var attribs = default(SECURITY_ATTRIBUTES); + attribs.nLength = (uint)Unsafe.SizeOf(); + Windows.Win32.PInvoke.CreateMutex(attribs, false, "DALAMUD_CRASHES_NO_MORE"); } this.unloadSignal.Set(); @@ -189,27 +191,29 @@ internal sealed class Dalamud : IServiceType /// Replace the current exception handler with the default one. /// internal void UseDefaultExceptionHandler() => - this.SetExceptionHandler(this.DefaultExceptionFilter); + SetExceptionHandler(this.DefaultExceptionFilter); /// /// Replace the current exception handler with a debug one. /// internal void UseDebugExceptionHandler() => - this.SetExceptionHandler(this.DebugExceptionFilter); + SetExceptionHandler(this.DebugExceptionFilter); /// /// Disable the current exception handler. /// internal void UseNoExceptionHandler() => - this.SetExceptionHandler(nint.Zero); + SetExceptionHandler(nint.Zero); /// /// Helper function to set the exception handler. /// - private void SetExceptionHandler(nint newFilter) + private static nint SetExceptionHandler(nint newFilter) { - var oldFilter = NativeFunctions.SetUnhandledExceptionFilter(newFilter); - Log.Debug("Set ExceptionFilter to {0}, old: {1}", newFilter, oldFilter); + var oldFilter = + Windows.Win32.PInvoke.SetUnhandledExceptionFilter((delegate* unmanaged[Stdcall])newFilter); + Log.Debug("Set ExceptionFilter to {0}, old: {1}", newFilter, (nint)oldFilter); + return (nint)oldFilter; } private void SetupClientStructsResolver(DirectoryInfo cacheDir) diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj index 3fce08dd3..a02780438 100644 --- a/Dalamud/Dalamud.csproj +++ b/Dalamud/Dalamud.csproj @@ -6,7 +6,7 @@ XIV Launcher addon framework - 12.0.1.5 + 13.0.0.0 $(DalamudVersion) $(DalamudVersion) $(DalamudVersion) @@ -35,6 +35,10 @@ true annotations true + + + @@ -64,12 +68,13 @@ - - - + + all + + @@ -87,13 +92,23 @@ + + + imgui-frag.hlsl.bytes + + + imgui-vertex.hlsl.bytes + + + + + + - - - + diff --git a/Dalamud/Dalamud.csproj.DotSettings b/Dalamud/Dalamud.csproj.DotSettings index 9089754a3..e723e4da1 100644 --- a/Dalamud/Dalamud.csproj.DotSettings +++ b/Dalamud/Dalamud.csproj.DotSettings @@ -1,3 +1,3 @@  -True -300000 +True + True diff --git a/Dalamud/EntryPoint.cs b/Dalamud/EntryPoint.cs index 47591f821..9fc09a56b 100644 --- a/Dalamud/EntryPoint.cs +++ b/Dalamud/EntryPoint.cs @@ -1,6 +1,8 @@ +using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Net; +using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; @@ -15,12 +17,11 @@ using Dalamud.Storage; using Dalamud.Support; using Dalamud.Utility; using Newtonsoft.Json; -using PInvoke; using Serilog; using Serilog.Core; using Serilog.Events; - -using static Dalamud.NativeFunctions; +using Windows.Win32.Foundation; +using Windows.Win32.UI.WindowsAndMessaging; namespace Dalamud; @@ -58,7 +59,7 @@ public sealed class EntryPoint var info = JsonConvert.DeserializeObject(infoStr)!; if ((info.BootWaitMessageBox & 4) != 0) - MessageBoxW(IntPtr.Zero, "Press OK to continue (BeforeDalamudConstruct)", "Dalamud Boot", MessageBoxType.Ok); + Windows.Win32.PInvoke.MessageBox(HWND.Null, "Press OK to continue (BeforeDalamudConstruct)", "Dalamud Boot", MESSAGEBOX_STYLE.MB_OK); new Thread(() => RunThread(info, mainThreadContinueEvent)).Start(); } @@ -135,6 +136,8 @@ public sealed class EntryPoint /// Event used to signal the main thread to continue. private static void RunThread(DalamudStartInfo info, IntPtr mainThreadContinueEvent) { + NativeLibrary.Load(Path.Combine(info.WorkingDirectory!, "cimgui.dll")); + // Setup logger InitLogging(info.LogPath!, info.BootShowConsole, true, info.LogName); SerilogEventSink.Instance.LogLine += SerilogOnLogLine; @@ -259,10 +262,12 @@ public sealed class EntryPoint var symbolPath = Path.Combine(info.AssetDirectory, "UIRes", "pdb"); var searchPath = $".;{symbolPath}"; - // Remove any existing Symbol Handler and Init a new one with our search path added - SymCleanup(GetCurrentProcess()); + var currentProcess = Windows.Win32.PInvoke.GetCurrentProcess_SafeHandle(); - if (!SymInitialize(GetCurrentProcess(), searchPath, true)) + // Remove any existing Symbol Handler and Init a new one with our search path added + Windows.Win32.PInvoke.SymCleanup(currentProcess); + + if (!Windows.Win32.PInvoke.SymInitialize(currentProcess, searchPath, true)) throw new Win32Exception(); } catch (Exception ex) @@ -304,14 +309,14 @@ public sealed class EntryPoint // ignored } - const MessageBoxType flags = NativeFunctions.MessageBoxType.YesNo | NativeFunctions.MessageBoxType.IconError | NativeFunctions.MessageBoxType.SystemModal; - var result = MessageBoxW( - Process.GetCurrentProcess().MainWindowHandle, + const MESSAGEBOX_STYLE flags = MESSAGEBOX_STYLE.MB_YESNO | MESSAGEBOX_STYLE.MB_ICONERROR | MESSAGEBOX_STYLE.MB_SYSTEMMODAL; + var result = Windows.Win32.PInvoke.MessageBox( + new HWND(Process.GetCurrentProcess().MainWindowHandle), $"An internal error in a Dalamud plugin occurred.\nThe game must close.\n\n{ex.GetType().Name}\n{info}\n\n{pluginInfo}More information has been recorded separately{supportText}.\n\nDo you want to disable all plugins the next time you start the game?", "Dalamud", flags); - if (result == (int)User32.MessageBoxResult.IDYES) + if (result == MESSAGEBOX_RESULT.IDYES) { Log.Information("User chose to disable plugins on next launch..."); var config = Service.Get(); diff --git a/Dalamud/Game/Addon/Events/AddonEventEntry.cs b/Dalamud/Game/Addon/Events/AddonEventEntry.cs index 50b9c7ec4..30d0465dc 100644 --- a/Dalamud/Game/Addon/Events/AddonEventEntry.cs +++ b/Dalamud/Game/Addon/Events/AddonEventEntry.cs @@ -1,4 +1,4 @@ -using Dalamud.Plugin.Services; +using Dalamud.Plugin.Services; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; @@ -33,17 +33,10 @@ internal unsafe class AddonEventEntry /// public required nint Node { get; init; } - /// - /// Gets the handler that gets called when this event is triggered. - /// - [Obsolete("Use AddonEventDelegate Delegate instead")] - public IAddonEventManager.AddonEventHandler Handler { get; init; } - /// /// Gets the delegate that gets called when this event is triggered. /// - [Api13ToDo("Make this field required")] - public IAddonEventManager.AddonEventDelegate Delegate { get; init; } + public required IAddonEventManager.AddonEventDelegate Delegate { get; init; } /// /// Gets the unique id for this event. diff --git a/Dalamud/Game/Addon/Events/AddonEventManager.cs b/Dalamud/Game/Addon/Events/AddonEventManager.cs index 0990c1f5f..945197e2b 100644 --- a/Dalamud/Game/Addon/Events/AddonEventManager.cs +++ b/Dalamud/Game/Addon/Events/AddonEventManager.cs @@ -73,29 +73,6 @@ internal unsafe class AddonEventManager : IInternalDisposableService this.addonLifecycle.UnregisterListener(this.finalizeEventListener); } - /// - /// Registers an event handler for the specified addon, node, and type. - /// - /// Unique ID for this plugin. - /// The parent addon for this event. - /// The node that will trigger this event. - /// The event type for this event. - /// The handler to call when event is triggered. - /// IAddonEventHandle used to remove the event. - internal IAddonEventHandle? AddEvent(Guid pluginId, IntPtr atkUnitBase, IntPtr atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventHandler eventHandler) - { - if (this.pluginEventControllers.TryGetValue(pluginId, out var controller)) - { - return controller.AddEvent(atkUnitBase, atkResNode, eventType, eventHandler); - } - else - { - Log.Verbose($"Unable to locate controller for {pluginId}. No event was added."); - } - - return null; - } - /// /// Registers an event handler for the specified addon, node, and type. /// @@ -260,10 +237,6 @@ internal class AddonEventManagerPluginScoped : IInternalDisposableService, IAddo }).Wait(); } - /// - public IAddonEventHandle? AddEvent(IntPtr atkUnitBase, IntPtr atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventHandler eventHandler) - => this.eventManagerService.AddEvent(this.plugin.EffectiveWorkingPluginId, atkUnitBase, atkResNode, eventType, eventHandler); - /// public IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventDelegate eventDelegate) => this.eventManagerService.AddEvent(this.plugin.EffectiveWorkingPluginId, atkUnitBase, atkResNode, eventType, eventDelegate); diff --git a/Dalamud/Game/Addon/Events/AddonEventType.cs b/Dalamud/Game/Addon/Events/AddonEventType.cs index cd04152ca..2c88c797b 100644 --- a/Dalamud/Game/Addon/Events/AddonEventType.cs +++ b/Dalamud/Game/Addon/Events/AddonEventType.cs @@ -121,12 +121,6 @@ public enum AddonEventType : byte /// ListItemClick = 35, - /// - /// AtkComponentList Toggle. - /// - [Obsolete("Use ListItemClick")] - ListItemToggle = 35, - /// /// AtkComponentList Double Click. /// diff --git a/Dalamud/Game/Addon/Events/AddonEventData.cs b/Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs similarity index 59% rename from Dalamud/Game/Addon/Events/AddonEventData.cs rename to Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs index 3a5c05660..423bf5eb9 100644 --- a/Dalamud/Game/Addon/Events/AddonEventData.cs +++ b/Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs @@ -1,10 +1,32 @@ -namespace Dalamud.Game.Addon.Events; +namespace Dalamud.Game.Addon.Events.EventDataTypes; /// /// Object representing data that is relevant in handling native events. /// public class AddonEventData { + /// + /// Initializes a new instance of the class. + /// + internal AddonEventData() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// Other event data to copy. + internal AddonEventData(AddonEventData eventData) + { + this.AtkEventType = eventData.AtkEventType; + this.Param = eventData.Param; + this.AtkEventPointer = eventData.AtkEventPointer; + this.AtkEventDataPointer = eventData.AtkEventDataPointer; + this.AddonPointer = eventData.AddonPointer; + this.NodeTargetPointer = eventData.NodeTargetPointer; + this.AtkEventListener = eventData.AtkEventListener; + } + /// /// Gets the AtkEventType for this event. /// @@ -18,8 +40,8 @@ public class AddonEventData /// /// Gets the pointer to the AtkEvent object for this event. /// - /// Note: This is not a pointer to the AtkEventData object.

- /// Warning: AtkEvent->Node has been modified to be the AtkUnitBase*, and AtkEvent->Target has been modified to be the AtkResNode* that triggered this event. + /// Note: This is not a pointer to the AtkEventData object.

+ /// Warning: AtkEvent->Node has been modified to be the AtkUnitBase*, and AtkEvent->Target has been modified to be the AtkResNode* that triggered this event.
public nint AtkEventPointer { get; internal set; } /// diff --git a/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs b/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs new file mode 100644 index 000000000..27d56c287 --- /dev/null +++ b/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs @@ -0,0 +1,82 @@ +using System.Numerics; + +using FFXIVClientStructs.FFXIV.Component.GUI; + +using AtkMouseData = FFXIVClientStructs.FFXIV.Component.GUI.AtkEventData.AtkMouseData; +using ModifierFlag = FFXIVClientStructs.FFXIV.Component.GUI.AtkEventData.AtkMouseData.ModifierFlag; + +namespace Dalamud.Game.Addon.Events.EventDataTypes; + +/// +public unsafe class AddonMouseEventData : AddonEventData +{ + /// + /// Initializes a new instance of the class. + /// + internal AddonMouseEventData() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// Other event data to copy. + internal AddonMouseEventData(AddonEventData eventData) + : base(eventData) + { + } + + /// + /// Gets a value indicating whether the event was a Left Mouse Click. + /// + public bool IsLeftClick => this.MouseData.ButtonId is 0; + + /// + /// Gets a value indicating whether the event was a Right Mouse Click. + /// + public bool IsRightClick => this.MouseData.ButtonId is 1; + + /// + /// Gets a value indicating whether there are any modifiers set such as alt, control, shift, or dragging. + /// + public bool IsNoModifier => this.MouseData.Modifier is 0; + + /// + /// Gets a value indicating whether alt was being held when this event triggered. + /// + public bool IsAltHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Alt); + + /// + /// Gets a value indicating whether control was being held when this event triggered. + /// + public bool IsControlHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Ctrl); + + /// + /// Gets a value indicating whether shift was being held when this event triggered. + /// + public bool IsShiftHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Shift); + + /// + /// Gets a value indicating whether this event is a mouse drag or not. + /// + public bool IsDragging => this.MouseData.Modifier.HasFlag(ModifierFlag.Dragging); + + /// + /// Gets a value indicating whether the event was a scroll up. + /// + public bool IsScrollUp => this.MouseData.WheelDirection is 1; + + /// + /// Gets a value indicating whether the event was a scroll down. + /// + public bool IsScrollDown => this.MouseData.WheelDirection is -1; + + /// + /// Gets the position of the mouse when this event was triggered. + /// + public Vector2 Position => new(this.MouseData.PosX, this.MouseData.PosY); + + private AtkEventData* AtkEventData => (AtkEventData*)this.AtkEventDataPointer; + + private AtkMouseData MouseData => this.AtkEventData->MouseData; +} diff --git a/Dalamud/Game/Addon/Events/PluginEventController.cs b/Dalamud/Game/Addon/Events/PluginEventController.cs index 0b1491e77..afaee9966 100644 --- a/Dalamud/Game/Addon/Events/PluginEventController.cs +++ b/Dalamud/Game/Addon/Events/PluginEventController.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; +using Dalamud.Game.Addon.Events.EventDataTypes; using Dalamud.Game.Gui; using Dalamud.Logging.Internal; using Dalamud.Plugin.Services; @@ -29,49 +30,6 @@ internal unsafe class PluginEventController : IDisposable private List Events { get; } = new(); - /// - /// Adds a tracked event. - /// - /// The Parent addon for the event. - /// The Node for the event. - /// The Event Type. - /// The delegate to call when invoking this event. - /// IAddonEventHandle used to remove the event. - [Obsolete("Use AddEvent that uses AddonEventDelegate instead of AddonEventHandler")] - public IAddonEventHandle AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType atkEventType, IAddonEventManager.AddonEventHandler handler) - { - var node = (AtkResNode*)atkResNode; - var addon = (AtkUnitBase*)atkUnitBase; - var eventType = (AtkEventType)atkEventType; - var eventId = this.GetNextParamKey(); - var eventGuid = Guid.NewGuid(); - - var eventHandle = new AddonEventHandle - { - AddonName = addon->NameString, - ParamKey = eventId, - EventType = atkEventType, - EventGuid = eventGuid, - }; - - var eventEntry = new AddonEventEntry - { - Addon = atkUnitBase, - Handler = handler, - Delegate = null, - Node = atkResNode, - EventType = atkEventType, - ParamKey = eventId, - Handle = eventHandle, - }; - - Log.Verbose($"Adding Event. {eventEntry.LogString}"); - this.EventListener.RegisterEvent(addon, node, eventType, eventId); - this.Events.Add(eventEntry); - - return eventHandle; - } - /// /// Adds a tracked event. /// @@ -100,7 +58,6 @@ internal unsafe class PluginEventController : IDisposable { Addon = atkUnitBase, Delegate = eventDelegate, - Handler = null, Node = atkResNode, EventType = atkEventType, ParamKey = eventId, @@ -184,7 +141,7 @@ internal unsafe class PluginEventController : IDisposable if (currentAddonPointer != eventEntry.Addon) return; // Make sure the addon is not unloaded - var atkUnitBase = (AtkUnitBase*)currentAddonPointer; + var atkUnitBase = currentAddonPointer.Struct; if (atkUnitBase->UldManager.LoadedState == AtkLoadState.Unloaded) return; // Does this addon contain the node this event is for? (by address) @@ -230,7 +187,6 @@ internal unsafe class PluginEventController : IDisposable this.EventListener.UnregisterEvent(atkResNode, eventType, eventEntry.ParamKey); } - [Api13ToDo("Remove invoke from eventInfo.Handler, and remove nullability from eventInfo.Delegate?.Invoke")] private void PluginEventListHandler(AtkEventListener* self, AtkEventType eventType, uint eventParam, AtkEvent* eventPtr, AtkEventData* eventDataPtr) { try @@ -238,10 +194,7 @@ internal unsafe class PluginEventController : IDisposable if (eventPtr is null) return; if (this.Events.FirstOrDefault(handler => handler.ParamKey == eventParam) is not { } eventInfo) return; - // We stored the AtkUnitBase* in EventData->Node, and EventData->Target contains the node that triggered the event. - eventInfo.Handler?.Invoke((AddonEventType)eventType, (nint)eventPtr->Node, (nint)eventPtr->Target); - - eventInfo.Delegate?.Invoke((AddonEventType)eventType, new AddonEventData + eventInfo.Delegate.Invoke((AddonEventType)eventType, new AddonEventData { AddonPointer = (nint)eventPtr->Node, NodeTargetPointer = (nint)eventPtr->Target, diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs index 36083337e..c008db08f 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs @@ -1,8 +1,4 @@ -using System.Runtime.CompilerServices; - -using Dalamud.Memory; - -using FFXIVClientStructs.FFXIV.Component.GUI; +using Dalamud.Game.NativeWrapper; namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; @@ -17,7 +13,6 @@ public abstract unsafe class AddonArgs public const string InvalidAddon = "NullAddon"; private string? addonName; - private IntPtr addon; /// /// Gets the name of the addon this args referrers to. @@ -27,10 +22,10 @@ public abstract unsafe class AddonArgs /// /// Gets the pointer to the addons AtkUnitBase. /// - public nint Addon + public AtkUnitBasePtr Addon { - get => this.AddonInternal; - init => this.AddonInternal = value; + get; + internal set; } /// @@ -38,42 +33,32 @@ public abstract unsafe class AddonArgs /// public abstract AddonArgsType Type { get; } - /// - /// Gets or sets the pointer to the addons AtkUnitBase. - /// - internal nint AddonInternal - { - get => this.addon; - set - { - this.addon = value; - - // Note: always clear addonName on updating the addon being pointed. - // Same address may point to a different addon. - this.addonName = null; - } - } - /// /// Checks if addon name matches the given span of char. /// /// The name to check. /// Whether it is the case. - internal bool IsAddon(ReadOnlySpan name) + internal bool IsAddon(string name) { - if (this.Addon == nint.Zero) return false; - if (name.Length is 0 or > 0x20) + if (this.Addon.IsNull) return false; - var addonPointer = (AtkUnitBase*)this.Addon; - if (addonPointer->Name[0] == 0) return false; + if (name.Length is 0 or > 32) + return false; - // note: might want to rewrite this to just compare to NameString - return MemoryHelper.EqualsZeroTerminatedString( - name, - (nint)Unsafe.AsPointer(ref addonPointer->Name[0]), - null, - 0x20); + if (string.IsNullOrEmpty(this.Addon.Name)) + return false; + + return name == this.Addon.Name; + } + + /// + /// Clears this AddonArgs values. + /// + internal virtual void Clear() + { + this.addonName = null; + this.Addon = 0; } /// @@ -82,11 +67,13 @@ public abstract unsafe class AddonArgs /// The name of the addon for this object. when invalid. private string GetAddonName() { - if (this.Addon == nint.Zero) return InvalidAddon; + if (this.Addon.IsNull) return InvalidAddon; - var addonPointer = (AtkUnitBase*)this.Addon; - if (addonPointer->Name[0] == 0) return InvalidAddon; + var name = this.Addon.Name; - return this.addonName ??= addonPointer->NameString; + if (string.IsNullOrEmpty(name)) + return InvalidAddon; + + return this.addonName ??= name; } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs index a557b0cb3..980fe4f2f 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs @@ -41,4 +41,14 @@ public class AddonReceiveEventArgs : AddonArgs, ICloneable /// object ICloneable.Clone() => this.Clone(); + + /// + internal override void Clear() + { + base.Clear(); + this.AtkEventType = default; + this.EventParam = default; + this.AtkEvent = default; + this.Data = default; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs index 6e1b11ead..d28631c3c 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs @@ -38,4 +38,12 @@ public class AddonRefreshArgs : AddonArgs, ICloneable /// object ICloneable.Clone() => this.Clone(); + + /// + internal override void Clear() + { + base.Clear(); + this.AtkValueCount = default; + this.AtkValues = default; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs index 26357abb0..e87a980fd 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs @@ -1,4 +1,4 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; +namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Addon argument data for OnRequestedUpdate events. @@ -31,4 +31,12 @@ public class AddonRequestedUpdateArgs : AddonArgs, ICloneable /// object ICloneable.Clone() => this.Clone(); + + /// + internal override void Clear() + { + base.Clear(); + this.NumberArrayData = default; + this.StringArrayData = default; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs index 19c93ce25..0dd9ecee2 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs @@ -1,4 +1,4 @@ -using FFXIVClientStructs.FFXIV.Component.GUI; +using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; @@ -38,4 +38,12 @@ public class AddonSetupArgs : AddonArgs, ICloneable /// object ICloneable.Clone() => this.Clone(); + + /// + internal override void Clear() + { + base.Clear(); + this.AtkValueCount = default; + this.AtkValues = default; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs index cc34a7531..a263f6ae4 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs @@ -35,4 +35,11 @@ public class AddonUpdateArgs : AddonArgs, ICloneable /// object ICloneable.Clone() => this.Clone(); + + /// + internal override void Clear() + { + base.Clear(); + this.TimeDeltaInternal = default; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs index b9179edde..b44ab8764 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs @@ -238,7 +238,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService } using var returner = this.argsPool.Rent(out AddonSetupArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; arg.AtkValueCount = valueCount; arg.AtkValues = (nint)values; this.InvokeListenersSafely(AddonEvent.PreSetup, arg); @@ -270,7 +271,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService } using var returner = this.argsPool.Rent(out AddonFinalizeArgs arg); - arg.AddonInternal = (nint)atkUnitBase[0]; + arg.Clear(); + arg.Addon = (nint)atkUnitBase[0]; this.InvokeListenersSafely(AddonEvent.PreFinalize, arg); try @@ -286,7 +288,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService private void OnAddonDraw(AtkUnitBase* addon) { using var returner = this.argsPool.Rent(out AddonDrawArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; this.InvokeListenersSafely(AddonEvent.PreDraw, arg); try @@ -304,7 +307,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService private void OnAddonUpdate(AtkUnitBase* addon, float delta) { using var returner = this.argsPool.Rent(out AddonUpdateArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; arg.TimeDeltaInternal = delta; this.InvokeListenersSafely(AddonEvent.PreUpdate, arg); @@ -325,7 +329,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService var result = false; using var returner = this.argsPool.Rent(out AddonRefreshArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; arg.AtkValueCount = valueCount; arg.AtkValues = (nint)values; this.InvokeListenersSafely(AddonEvent.PreRefresh, arg); @@ -348,7 +353,8 @@ internal unsafe class AddonLifecycle : IInternalDisposableService private void OnRequestedUpdate(AtkUnitBase* addon, NumberArrayData** numberArrayData, StringArrayData** stringArrayData) { using var returner = this.argsPool.Rent(out AddonRequestedUpdateArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; arg.NumberArrayData = (nint)numberArrayData; arg.StringArrayData = (nint)stringArrayData; this.InvokeListenersSafely(AddonEvent.PreRequestedUpdate, arg); diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs index a66440b25..0d2bcc7f2 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; using Dalamud.Hooking; @@ -86,7 +86,8 @@ internal unsafe class AddonLifecycleReceiveEventListener : IDisposable } using var returner = this.argsPool.Rent(out AddonReceiveEventArgs arg); - arg.AddonInternal = (nint)addon; + arg.Clear(); + arg.Addon = (nint)addon; arg.AtkEventType = (byte)eventType; arg.EventParam = eventParam; arg.AtkEvent = (IntPtr)atkEvent; diff --git a/Dalamud/Game/ChatHandlers.cs b/Dalamud/Game/ChatHandlers.cs index 61cd88a05..c57dd70b8 100644 --- a/Dalamud/Game/ChatHandlers.cs +++ b/Dalamud/Game/ChatHandlers.cs @@ -119,8 +119,6 @@ internal partial class ChatHandlers : IServiceType if (string.IsNullOrEmpty(this.configuration.LastVersion) || !Util.AssemblyVersion.StartsWith(this.configuration.LastVersion)) { var linkPayload = chatGui.AddChatLinkHandler( - "dalamud", - 8459324, (_, _) => dalamudInterface.OpenPluginInstallerTo(PluginInstallerOpenKind.Changelogs)); var updateMessage = new SeStringBuilder() diff --git a/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs b/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs index 244989476..89dd8b8b1 100644 --- a/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs +++ b/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs @@ -97,7 +97,7 @@ internal sealed class AetheryteEntry : IAetheryteEntry public uint GilCost => this.data.GilCost; /// - public bool IsFavourite => this.data.IsFavourite != 0; + public bool IsFavourite => this.data.IsFavourite; /// public bool IsSharedHouse => this.data.IsSharedHouse; diff --git a/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs b/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs index ef6649d7d..19451dd5c 100644 --- a/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs +++ b/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs @@ -63,6 +63,12 @@ public enum ConditionFlag /// /// Unable to execute command while mounted. /// + RidingPillion = 10, + + /// + /// Unable to execute command while mounted. + /// + [Obsolete("Renamed to RidingPillion", true)] Mounted2 = 10, /// @@ -188,12 +194,6 @@ public enum ConditionFlag /// ExecutingCraftingAction = 40, - /// - /// Unable to execute command while crafting. - /// - [Obsolete("Renamed to ExecutingCraftingAction.")] - Crafting40 = 40, - /// /// Unable to execute command while preparing to craft. /// @@ -205,12 +205,6 @@ public enum ConditionFlag /// Includes fishing. ExecutingGatheringAction = 42, - /// - /// Unable to execute command while gathering. - /// - [Obsolete("Renamed to ExecutingGatheringAction.")] - Gathering42 = 42, - /// /// Unable to execute command while fishing. /// @@ -235,12 +229,6 @@ public enum ConditionFlag /// Jumping = 48, - /// - /// Unable to execute command while auto-run is active. - /// - [Obsolete("To avoid confusion, renamed to UsingChocoboTaxi.")] - AutorunActive = 49, - /// /// Unable to execute command while auto-run is active. /// @@ -282,12 +270,6 @@ public enum ConditionFlag /// BoundByDuty56 = 56, - /// - /// Unable to execute command at this time. - /// - [Obsolete("Renamed to MountOrOrnamentTransition.")] - Unknown57 = 57, - /// /// Unable to execute command at this time. /// @@ -449,6 +431,12 @@ public enum ConditionFlag /// /// Unable to execute command in this state. /// + MountImmobile = 88, + + /// + /// Unable to execute command in this state. + /// + [Obsolete("Renamed to MountImmobile", true)] InThisState88 = 88, /// @@ -461,12 +449,6 @@ public enum ConditionFlag /// RolePlaying = 90, - /// - /// Unable to execute command while bound by duty. - /// - [Obsolete("Use InDutyQueue")] - BoundToDuty97 = 91, - /// /// Unable to execute command while bound by duty. /// Specifically triggered when you are in a queue for a duty but not inside a duty. @@ -483,12 +465,6 @@ public enum ConditionFlag /// WaitingToVisitOtherWorld = 93, - /// - /// Unable to execute command while using a parasol. - /// - [Obsolete("Renamed to UsingFashionAccessory.")] - UsingParasol = 94, - /// /// Unable to execute command while using a fashion accessory. /// diff --git a/Dalamud/Game/ClientState/Fates/Fate.cs b/Dalamud/Game/ClientState/Fates/Fate.cs index 2da2dde9d..504b690c3 100644 --- a/Dalamud/Game/ClientState/Fates/Fate.cs +++ b/Dalamud/Game/ClientState/Fates/Fate.cs @@ -3,7 +3,6 @@ using System.Numerics; using Dalamud.Data; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Memory; -using Dalamud.Utility; using Lumina.Excel; @@ -69,12 +68,6 @@ public interface IFate : IEquatable /// byte Progress { get; } - /// - /// Gets a value indicating whether this has a EXP bonus. - /// - [Obsolete($"Use {nameof(HasBonus)} instead")] - bool HasExpBonus { get; } - /// /// Gets a value indicating whether this has a bonus. /// @@ -222,10 +215,6 @@ internal unsafe partial class Fate : IFate /// public byte Progress => this.Struct->Progress; - /// - [Api13ToDo("Remove")] - public bool HasExpBonus => this.HasBonus; - /// public bool HasBonus => this.Struct->IsBonus; diff --git a/Dalamud/Game/ClientState/GamePad/GamepadState.cs b/Dalamud/Game/ClientState/GamePad/GamepadState.cs index 5237c6f0c..ab4f8a03f 100644 --- a/Dalamud/Game/ClientState/GamePad/GamepadState.cs +++ b/Dalamud/Game/ClientState/GamePad/GamepadState.cs @@ -1,13 +1,11 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; - using FFXIVClientStructs.FFXIV.Client.System.Input; - -using ImGuiNET; using Serilog; namespace Dalamud.Game.ClientState.GamePad; diff --git a/Dalamud/Game/ClientState/Objects/ObjectTable.cs b/Dalamud/Game/ClientState/Objects/ObjectTable.cs index f97385fce..84c1b5693 100644 --- a/Dalamud/Game/ClientState/Objects/ObjectTable.cs +++ b/Dalamud/Game/ClientState/Objects/ObjectTable.cs @@ -66,6 +66,24 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public int Length => objectTableLength; + /// + public IEnumerable PlayerObjects => this.GetPlayerObjects(); + + /// + public IEnumerable CharacterManagerObjects => this.GetObjectsInRange(..199); + + /// + public IEnumerable ClientObjects => this.GetObjectsInRange(200..448); + + /// + public IEnumerable EventObjects => this.GetObjectsInRange(449..488); + + /// + public IEnumerable StandObjects => this.GetObjectsInRange(489..628); + + /// + public IEnumerable ReactionEventObjects => this.GetObjectsInRange(629..728); + /// public IGameObject? this[int index] { @@ -146,6 +164,28 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable }; } + private IEnumerable GetPlayerObjects() + { + for (var index = 0; index < 200; index += 2) + { + if (this[index] is IBattleChara { ObjectKind: ObjectKind.Player } gameObject) + { + yield return gameObject; + } + } + } + + private IEnumerable GetObjectsInRange(Range range) + { + for (var index = range.Start.Value; index <= range.End.Value; index++) + { + if (this[index] is { } gameObject) + { + yield return gameObject; + } + } + } + /// Stores an object table entry, with preallocated concrete types. /// Initializes a new instance of the struct. /// A pointer to the object table entry this entry should be pointing to. diff --git a/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs b/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs index efd8b5b3b..238c81a72 100644 --- a/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs +++ b/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs @@ -77,10 +77,10 @@ internal unsafe class BattleChara : Character, IBattleChara public StatusList StatusList => new(this.Struct->GetStatusManager()); /// - public bool IsCasting => this.Struct->GetCastInfo()->IsCasting > 0; + public bool IsCasting => this.Struct->GetCastInfo()->IsCasting; /// - public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible > 0; + public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible; /// public byte CastActionType => (byte)this.Struct->GetCastInfo()->ActionType; diff --git a/Dalamud/Game/ClientState/Party/PartyMember.cs b/Dalamud/Game/ClientState/Party/PartyMember.cs index cf620a7ef..65b752808 100644 --- a/Dalamud/Game/ClientState/Party/PartyMember.cs +++ b/Dalamud/Game/ClientState/Party/PartyMember.cs @@ -128,7 +128,7 @@ internal unsafe class PartyMember : IPartyMember /// /// Gets the position of the party member. /// - public Vector3 Position => new(this.Struct->X, this.Struct->Y, this.Struct->Z); + public Vector3 Position => this.Struct->Position; /// /// Gets the content ID of the party member. diff --git a/Dalamud/Game/ClientState/Statuses/Status.cs b/Dalamud/Game/ClientState/Statuses/Status.cs index c3493ce55..2775f8f9b 100644 --- a/Dalamud/Game/ClientState/Statuses/Status.cs +++ b/Dalamud/Game/ClientState/Statuses/Status.cs @@ -55,7 +55,7 @@ public unsafe class Status /// /// Gets the source ID of this status. /// - public uint SourceId => this.Struct->SourceId; + public uint SourceId => this.Struct->SourceObject.ObjectId; /// /// Gets the source actor associated with this status. diff --git a/Dalamud/Game/Config/SystemConfigOption.cs b/Dalamud/Game/Config/SystemConfigOption.cs index 154992637..dcfe16751 100644 --- a/Dalamud/Game/Config/SystemConfigOption.cs +++ b/Dalamud/Game/Config/SystemConfigOption.cs @@ -1031,6 +1031,13 @@ public enum SystemConfigOption [GameConfigOption("TitleScreenType", ConfigType.UInt)] TitleScreenType, + /// + /// System option with the internal name DisplayObjectLimitType2. + /// This option is a UInt. + /// + [GameConfigOption("DisplayObjectLimitType2", ConfigType.UInt)] + DisplayObjectLimitType2, + /// /// System option with the internal name AccessibilitySoundVisualEnable. /// This option is a UInt. @@ -1115,6 +1122,13 @@ public enum SystemConfigOption [GameConfigOption("CameraZoom", ConfigType.UInt)] CameraZoom, + /// + /// System option with the internal name DynamicAroundRangeMode. + /// This option is a UInt. + /// + [GameConfigOption("DynamicAroundRangeMode", ConfigType.UInt)] + DynamicAroundRangeMode, + /// /// System option with the internal name DynamicRezoType. /// This option is a UInt. diff --git a/Dalamud/Game/Config/UiConfigOption.cs b/Dalamud/Game/Config/UiConfigOption.cs index 1a59b8945..f6a9aaa21 100644 --- a/Dalamud/Game/Config/UiConfigOption.cs +++ b/Dalamud/Game/Config/UiConfigOption.cs @@ -2032,6 +2032,13 @@ public enum UiConfigOption [GameConfigOption("NamePlateDispJobIconInInstanceOther", ConfigType.UInt)] NamePlateDispJobIconInInstanceOther, + /// + /// UiConfig option with the internal name LogNamePlateDispEnemyCast. + /// This option is a UInt. + /// + [GameConfigOption("LogNamePlateDispEnemyCast", ConfigType.UInt)] + LogNamePlateDispEnemyCast, + /// /// UiConfig option with the internal name ActiveInfo. /// This option is a UInt. @@ -2690,6 +2697,594 @@ public enum UiConfigOption [GameConfigOption("LogColorOtherClass", ConfigType.UInt)] LogColorOtherClass, + /// + /// UiConfig option with the internal name LogChatBubbleEnableChatBubble. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleEnableChatBubble", ConfigType.UInt)] + LogChatBubbleEnableChatBubble, + + /// + /// UiConfig option with the internal name LogChatBubbleShowMax. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShowMax", ConfigType.UInt)] + LogChatBubbleShowMax, + + /// + /// UiConfig option with the internal name LogChatBubbleShowOwnMessage. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShowOwnMessage", ConfigType.UInt)] + LogChatBubbleShowOwnMessage, + + /// + /// UiConfig option with the internal name LogChatBubbleShowDuringBattle. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShowDuringBattle", ConfigType.UInt)] + LogChatBubbleShowDuringBattle, + + /// + /// UiConfig option with the internal name LogChatBubbleSizeType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleSizeType", ConfigType.UInt)] + LogChatBubbleSizeType, + + /// + /// UiConfig option with the internal name LogChatBubbleShowLargePvP. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShowLargePvP", ConfigType.UInt)] + LogChatBubbleShowLargePvP, + + /// + /// UiConfig option with the internal name LogChatBubbleShowQuickChat. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShowQuickChat", ConfigType.UInt)] + LogChatBubbleShowQuickChat, + + /// + /// UiConfig option with the internal name LogChatBubbleDispRowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleDispRowType", ConfigType.UInt)] + LogChatBubbleDispRowType, + + /// + /// UiConfig option with the internal name LogChatBubbleSayShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleSayShowType", ConfigType.UInt)] + LogChatBubbleSayShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleSayFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleSayFontColor", ConfigType.UInt)] + LogChatBubbleSayFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleSayWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleSayWindowColor", ConfigType.UInt)] + LogChatBubbleSayWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleYellShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleYellShowType", ConfigType.UInt)] + LogChatBubbleYellShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleYellFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleYellFontColor", ConfigType.UInt)] + LogChatBubbleYellFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleYellWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleYellWindowColor", ConfigType.UInt)] + LogChatBubbleYellWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleShoutShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShoutShowType", ConfigType.UInt)] + LogChatBubbleShoutShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleShoutFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShoutFontColor", ConfigType.UInt)] + LogChatBubbleShoutFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleShoutWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleShoutWindowColor", ConfigType.UInt)] + LogChatBubbleShoutWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleTellShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleTellShowType", ConfigType.UInt)] + LogChatBubbleTellShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleTellFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleTellFontColor", ConfigType.UInt)] + LogChatBubbleTellFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleTellWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleTellWindowColor", ConfigType.UInt)] + LogChatBubbleTellWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubblePartyShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePartyShowType", ConfigType.UInt)] + LogChatBubblePartyShowType, + + /// + /// UiConfig option with the internal name LogChatBubblePartyFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePartyFontColor", ConfigType.UInt)] + LogChatBubblePartyFontColor, + + /// + /// UiConfig option with the internal name LogChatBubblePartyWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePartyWindowColor", ConfigType.UInt)] + LogChatBubblePartyWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleAllianceShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleAllianceShowType", ConfigType.UInt)] + LogChatBubbleAllianceShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleAllianceFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleAllianceFontColor", ConfigType.UInt)] + LogChatBubbleAllianceFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleAllianceWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleAllianceWindowColor", ConfigType.UInt)] + LogChatBubbleAllianceWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleFcShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleFcShowType", ConfigType.UInt)] + LogChatBubbleFcShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleFcFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleFcFontColor", ConfigType.UInt)] + LogChatBubbleFcFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleFcWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleFcWindowColor", ConfigType.UInt)] + LogChatBubbleFcWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleBeginnerShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleBeginnerShowType", ConfigType.UInt)] + LogChatBubbleBeginnerShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleBeginnerFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleBeginnerFontColor", ConfigType.UInt)] + LogChatBubbleBeginnerFontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleBeginnerWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleBeginnerWindowColor", ConfigType.UInt)] + LogChatBubbleBeginnerWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubblePvpteamShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePvpteamShowType", ConfigType.UInt)] + LogChatBubblePvpteamShowType, + + /// + /// UiConfig option with the internal name LogChatBubblePvpteamFontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePvpteamFontColor", ConfigType.UInt)] + LogChatBubblePvpteamFontColor, + + /// + /// UiConfig option with the internal name LogChatBubblePvpteamWindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubblePvpteamWindowColor", ConfigType.UInt)] + LogChatBubblePvpteamWindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs1ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs1ShowType", ConfigType.UInt)] + LogChatBubbleLs1ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs1FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs1FontColor", ConfigType.UInt)] + LogChatBubbleLs1FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs1WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs1WindowColor", ConfigType.UInt)] + LogChatBubbleLs1WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs2ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs2ShowType", ConfigType.UInt)] + LogChatBubbleLs2ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs2FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs2FontColor", ConfigType.UInt)] + LogChatBubbleLs2FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs2WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs2WindowColor", ConfigType.UInt)] + LogChatBubbleLs2WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs3ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs3ShowType", ConfigType.UInt)] + LogChatBubbleLs3ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs3FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs3FontColor", ConfigType.UInt)] + LogChatBubbleLs3FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs3WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs3WindowColor", ConfigType.UInt)] + LogChatBubbleLs3WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs4ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs4ShowType", ConfigType.UInt)] + LogChatBubbleLs4ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs4FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs4FontColor", ConfigType.UInt)] + LogChatBubbleLs4FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs4WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs4WindowColor", ConfigType.UInt)] + LogChatBubbleLs4WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs5ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs5ShowType", ConfigType.UInt)] + LogChatBubbleLs5ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs5FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs5FontColor", ConfigType.UInt)] + LogChatBubbleLs5FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs5WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs5WindowColor", ConfigType.UInt)] + LogChatBubbleLs5WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs6ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs6ShowType", ConfigType.UInt)] + LogChatBubbleLs6ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs6FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs6FontColor", ConfigType.UInt)] + LogChatBubbleLs6FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs6WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs6WindowColor", ConfigType.UInt)] + LogChatBubbleLs6WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs7ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs7ShowType", ConfigType.UInt)] + LogChatBubbleLs7ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs7FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs7FontColor", ConfigType.UInt)] + LogChatBubbleLs7FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs7WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs7WindowColor", ConfigType.UInt)] + LogChatBubbleLs7WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs8ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs8ShowType", ConfigType.UInt)] + LogChatBubbleLs8ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleLs8FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs8FontColor", ConfigType.UInt)] + LogChatBubbleLs8FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleLs8WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleLs8WindowColor", ConfigType.UInt)] + LogChatBubbleLs8WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls1ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls1ShowType", ConfigType.UInt)] + LogChatBubbleCwls1ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls1FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls1FontColor", ConfigType.UInt)] + LogChatBubbleCwls1FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls1WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls1WindowColor", ConfigType.UInt)] + LogChatBubbleCwls1WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls2ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls2ShowType", ConfigType.UInt)] + LogChatBubbleCwls2ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls2FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls2FontColor", ConfigType.UInt)] + LogChatBubbleCwls2FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls2WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls2WindowColor", ConfigType.UInt)] + LogChatBubbleCwls2WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls3ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls3ShowType", ConfigType.UInt)] + LogChatBubbleCwls3ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls3FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls3FontColor", ConfigType.UInt)] + LogChatBubbleCwls3FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls3WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls3WindowColor", ConfigType.UInt)] + LogChatBubbleCwls3WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls4ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls4ShowType", ConfigType.UInt)] + LogChatBubbleCwls4ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls4FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls4FontColor", ConfigType.UInt)] + LogChatBubbleCwls4FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls4WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls4WindowColor", ConfigType.UInt)] + LogChatBubbleCwls4WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls5ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls5ShowType", ConfigType.UInt)] + LogChatBubbleCwls5ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls5FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls5FontColor", ConfigType.UInt)] + LogChatBubbleCwls5FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls5WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls5WindowColor", ConfigType.UInt)] + LogChatBubbleCwls5WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls6ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls6ShowType", ConfigType.UInt)] + LogChatBubbleCwls6ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls6FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls6FontColor", ConfigType.UInt)] + LogChatBubbleCwls6FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls6WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls6WindowColor", ConfigType.UInt)] + LogChatBubbleCwls6WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls7ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls7ShowType", ConfigType.UInt)] + LogChatBubbleCwls7ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls7FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls7FontColor", ConfigType.UInt)] + LogChatBubbleCwls7FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls7WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls7WindowColor", ConfigType.UInt)] + LogChatBubbleCwls7WindowColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls8ShowType. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls8ShowType", ConfigType.UInt)] + LogChatBubbleCwls8ShowType, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls8FontColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls8FontColor", ConfigType.UInt)] + LogChatBubbleCwls8FontColor, + + /// + /// UiConfig option with the internal name LogChatBubbleCwls8WindowColor. + /// This option is a UInt. + /// + [GameConfigOption("LogChatBubbleCwls8WindowColor", ConfigType.UInt)] + LogChatBubbleCwls8WindowColor, + + /// + /// UiConfig option with the internal name LogPermeationRateInput. + /// This option is a UInt. + /// + [GameConfigOption("LogPermeationRateInput", ConfigType.UInt)] + LogPermeationRateInput, + /// /// UiConfig option with the internal name ChatType. /// This option is a UInt. @@ -3453,6 +4048,27 @@ public enum UiConfigOption [GameConfigOption("GPoseMotionFilterAction", ConfigType.UInt)] GPoseMotionFilterAction, + /// + /// UiConfig option with the internal name GPoseRollRotationCameraCorrection. + /// This option is a UInt. + /// + [GameConfigOption("GPoseRollRotationCameraCorrection", ConfigType.UInt)] + GPoseRollRotationCameraCorrection, + + /// + /// UiConfig option with the internal name GPoseInitCameraFocus. + /// This option is a UInt. + /// + [GameConfigOption("GPoseInitCameraFocus", ConfigType.UInt)] + GPoseInitCameraFocus, + + /// + /// UiConfig option with the internal name GposePortraitRotateType. + /// This option is a UInt. + /// + [GameConfigOption("GposePortraitRotateType", ConfigType.UInt)] + GposePortraitRotateType, + /// /// UiConfig option with the internal name LsListSortPriority. /// This option is a UInt. diff --git a/Dalamud/Game/Gui/ChatGui.cs b/Dalamud/Game/Gui/ChatGui.cs index 022968c7e..72b8ef8d1 100644 --- a/Dalamud/Game/Gui/ChatGui.cs +++ b/Dalamud/Game/Gui/ChatGui.cs @@ -12,6 +12,7 @@ using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; using Dalamud.Memory; +using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; using Dalamud.Utility; @@ -50,6 +51,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui private readonly DalamudConfiguration configuration = Service.Get(); private ImmutableDictionary<(string PluginName, uint CommandId), Action>? dalamudLinkHandlersCopy; + private uint dalamudChatHandlerId = 1000; [ServiceManager.ServiceConstructor] private ChatGui() @@ -161,6 +163,42 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui #endregion + #region Chat Links + + /// + /// Register a chat link handler. + /// + /// Internal use only. + /// The action to be executed. + /// Returns an SeString payload for the link. + public DalamudLinkPayload AddChatLinkHandler(Action commandAction) + { + return this.AddChatLinkHandler("Dalamud", this.dalamudChatHandlerId++, commandAction); + } + + /// + /// Internal use only. + public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction) + { + return this.AddChatLinkHandler("Dalamud", commandId, commandAction); + } + + /// + /// Internal use only. + public void RemoveChatLinkHandler(uint commandId) + { + this.RemoveChatLinkHandler("Dalamud", commandId); + } + + /// + /// Internal use only. + public void RemoveChatLinkHandler() + { + this.RemoveChatLinkHandler("Dalamud"); + } + + #endregion + /// /// Process a chat queue. /// @@ -220,7 +258,6 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui /// The ID of the command to run. /// The command action itself. /// A payload for handling. - [Api13ToDo("Plugins should not specify their own command IDs here. We should assign them ourselves.")] internal DalamudLinkPayload AddChatLinkHandler(string pluginName, uint commandId, Action commandAction) { var payload = new DalamudLinkPayload { Plugin = pluginName, CommandId = commandId }; @@ -478,11 +515,15 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui [ServiceManager.ServiceDependency] private readonly ChatGui chatGuiService = Service.Get(); + private readonly LocalPlugin plugin; + /// /// Initializes a new instance of the class. /// - internal ChatGuiPluginScoped() + /// The plugin. + internal ChatGuiPluginScoped(LocalPlugin plugin) { + this.plugin = plugin; this.chatGuiService.ChatMessage += this.OnMessageForward; this.chatGuiService.CheckMessageHandled += this.OnCheckMessageForward; this.chatGuiService.ChatMessageHandled += this.OnMessageHandledForward; @@ -524,6 +565,18 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui this.ChatMessageUnhandled = null; } + /// + public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction) + => this.chatGuiService.AddChatLinkHandler(this.plugin.InternalName, commandId, commandAction); + + /// + public void RemoveChatLinkHandler(uint commandId) + => this.chatGuiService.RemoveChatLinkHandler(this.plugin.InternalName, commandId); + + /// + public void RemoveChatLinkHandler() + => this.chatGuiService.RemoveChatLinkHandler(this.plugin.InternalName); + /// public void Print(XivChatEntry chat) => this.chatGuiService.Print(chat); diff --git a/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs b/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs index fb78e6b80..7512f4160 100644 --- a/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs +++ b/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs @@ -451,14 +451,14 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM case ContextMenuType.Default: { var ownerAddonId = ((AgentContext*)this.SelectedAgent)->OwnerAddon; - module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 71, checked((ushort)ownerAddonId), 4); + module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 71, checked((ushort)ownerAddonId), 4); break; } case ContextMenuType.Inventory: { var ownerAddonId = ((AgentInventoryContext*)this.SelectedAgent)->OwnerAddonId; - module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 0, checked((ushort)ownerAddonId), 4); + module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 0, checked((ushort)ownerAddonId), 4); break; } diff --git a/Dalamud/Game/Gui/Dtr/DtrBar.cs b/Dalamud/Game/Gui/Dtr/DtrBar.cs index 6f3f9a8dd..dac34f38d 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBar.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBar.cs @@ -5,6 +5,7 @@ using System.Threading; using Dalamud.Configuration.Internal; using Dalamud.Game.Addon.Events; +using Dalamud.Game.Addon.Events.EventDataTypes; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; using Dalamud.Game.Text.SeStringHandling; @@ -330,7 +331,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar this.entriesReadOnlyCopy = null; } - private AtkUnitBase* GetDtr() => (AtkUnitBase*)this.gameGui.GetAddonByName("_DTR").ToPointer(); + private AtkUnitBase* GetDtr() => this.gameGui.GetAddonByName("_DTR").Struct; private void Update(IFramework unused) { @@ -427,7 +428,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar private void FixCollision(AddonEvent eventType, AddonArgs addonInfo) { - var addon = (AtkUnitBase*)addonInfo.Addon; + var addon = addonInfo.Addon.Struct; if (addon->RootNode is null || addon->UldManager.NodeList is null) return; float minX = addon->RootNode->Width; @@ -585,8 +586,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar newTextNode->LineSpacing = 12; newTextNode->AlignmentFontType = 5; newTextNode->FontSize = 14; - newTextNode->TextFlags = (byte)TextFlags.Edge; - newTextNode->TextFlags2 = 0; + newTextNode->TextFlags = TextFlags.Edge; if (this.emptyString == null) this.emptyString = Utf8String.FromString(" "); @@ -596,24 +596,13 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar newTextNode->TextColor = new ByteColor { R = 255, G = 255, B = 255, A = 255 }; newTextNode->EdgeColor = new ByteColor { R = 142, G = 106, B = 12, A = 255 }; - // ICreatable was restored, this may be necessary if AtkUldManager.CreateAtkTextNode(); is used instead of Create - // // Memory is filled with random data after being created, zero out some things to avoid issues. - // newTextNode->UnkPtr_1 = null; - // newTextNode->SelectStart = 0; - // newTextNode->SelectEnd = 0; - // newTextNode->FontCacheHandle = 0; - // newTextNode->CharSpacing = 0; - // newTextNode->BackgroundColor = new ByteColor { R = 0, G = 0, B = 0, A = 0 }; - // newTextNode->TextId = 0; - // newTextNode->SheetType = 0; - return newTextNode; } - private void DtrEventHandler(AddonEventType atkEventType, IntPtr atkUnitBase, IntPtr atkResNode) + private void DtrEventHandler(AddonEventType atkEventType, AddonEventData eventData) { - var addon = (AtkUnitBase*)atkUnitBase; - var node = (AtkResNode*)atkResNode; + var addon = (AtkUnitBase*)eventData.AddonPointer; + var node = (AtkResNode*)eventData.NodeTargetPointer; DtrBarEntry? dtrBarEntry = null; this.entriesLock.EnterReadLock(); @@ -652,7 +641,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar break; case AddonEventType.MouseClick: - dtrBarEntry.OnClick.Invoke(); + dtrBarEntry.OnClick?.Invoke(new AddonMouseEventData(eventData)); break; } } diff --git a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs index 26708eb4c..54847705d 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs @@ -1,4 +1,5 @@ using Dalamud.Configuration.Internal; +using Dalamud.Game.Addon.Events.EventDataTypes; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; @@ -42,12 +43,6 @@ public interface IReadOnlyDtrBarEntry /// Gets a value indicating whether the user has hidden this entry from view through the Dalamud settings. /// public bool UserHidden { get; } - - /// - /// Triggers the click action of this entry. - /// - /// True, if a click action was registered and executed. - public bool TriggerClickAction(); } /// @@ -71,9 +66,9 @@ public interface IDtrBarEntry : IReadOnlyDtrBarEntry public new bool Shown { get; set; } /// - /// Gets or sets a action to be invoked when the user clicks on the dtr entry. + /// Gets or sets an action to be invoked when the user clicks on the dtr entry. /// - public Action? OnClick { get; set; } + public Action? OnClick { get; set; } /// /// Remove this entry from the bar. @@ -122,10 +117,8 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry /// public SeString? Tooltip { get; set; } - /// - /// Gets or sets a action to be invoked when the user clicks on the dtr entry. - /// - public Action? OnClick { get; set; } + /// + public Action? OnClick { get; set; } /// public bool HasClickAction => this.OnClick != null; @@ -145,7 +138,7 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry } /// - [Api13ToDo("Maybe make this config scoped to internalname?")] + [Api13ToDo("Maybe make this config scoped to internal name?")] public bool UserHidden => this.configuration.DtrIgnore?.Contains(this.Title) ?? false; /// @@ -178,16 +171,6 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry /// internal LocalPlugin? OwnerPlugin { get; set; } - /// - public bool TriggerClickAction() - { - if (this.OnClick == null) - return false; - - this.OnClick.Invoke(); - return true; - } - /// /// Remove this entry from the bar. /// You will need to re-acquire it from DtrBar to reuse it. diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index ada9021c4..415dd44c6 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -1,5 +1,7 @@ using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.NativeWrapper; using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Hooking; using Dalamud.Interface.Utility; @@ -18,8 +20,6 @@ using FFXIVClientStructs.FFXIV.Client.UI.Agent; using FFXIVClientStructs.FFXIV.Common.Component.BGCollision; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; - using Vector2 = System.Numerics.Vector2; using Vector3 = System.Numerics.Vector3; using Vector4 = System.Numerics.Vector4; @@ -167,79 +167,59 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui } /// - public IntPtr GetUIModule() + public UIModulePtr GetUIModule() { - var framework = FFXIVClientStructs.FFXIV.Client.System.Framework.Framework.Instance(); - if (framework == null) - return IntPtr.Zero; - - var uiModule = framework->GetUIModule(); - if (uiModule == null) - return IntPtr.Zero; - - return (IntPtr)uiModule; + return (nint)UIModule.Instance(); } /// - public IntPtr GetAddonByName(string name, int index = 1) + public AtkUnitBasePtr GetAddonByName(string name, int index = 1) { - var atkStage = AtkStage.Instance(); - if (atkStage == null) - return IntPtr.Zero; + var unitManager = RaptureAtkUnitManager.Instance(); + if (unitManager == null) + return 0; - var unitMgr = atkStage->RaptureAtkUnitManager; - if (unitMgr == null) - return IntPtr.Zero; - - var addon = unitMgr->GetAddonByName(name, index); - if (addon == null) - return IntPtr.Zero; - - return (IntPtr)addon; + return (nint)unitManager->GetAddonByName(name, index); } /// - public IntPtr FindAgentInterface(string addonName) + public AgentInterfacePtr GetAgentById(int id) + { + var agentModule = AgentModule.Instance(); + if (agentModule == null || id < 0 || id >= agentModule->Agents.Length) + return 0; + + return (nint)agentModule->Agents[id].Value; + } + + /// + public AgentInterfacePtr FindAgentInterface(string addonName) { var addon = this.GetAddonByName(addonName); return this.FindAgentInterface(addon); } /// - public IntPtr FindAgentInterface(void* addon) => this.FindAgentInterface((IntPtr)addon); - - /// - public IntPtr FindAgentInterface(IntPtr addonPtr) + public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon) { - if (addonPtr == IntPtr.Zero) - return IntPtr.Zero; + if (addon.IsNull) + return 0; - var uiModule = (UIModule*)this.GetUIModule(); - if (uiModule == null) - return IntPtr.Zero; - - var agentModule = uiModule->GetAgentModule(); + var agentModule = AgentModule.Instance(); if (agentModule == null) - return IntPtr.Zero; - - var addon = (AtkUnitBase*)addonPtr; - var addonId = addon->ParentId == 0 ? addon->Id : addon->ParentId; + return 0; + var addonId = addon.ParentId == 0 ? addon.Id : addon.ParentId; if (addonId == 0) - return IntPtr.Zero; + return 0; - var index = 0; - while (true) + foreach (AgentInterface* agent in agentModule->Agents) { - var agent = agentModule->GetAgentByInternalId((AgentId)index++); - if (agent == uiModule || agent == null) - break; - - if (agent->AddonId == addonId) - return new IntPtr(agent); + if (agent != null && agent->AddonId == addonId) + return (nint)agent; } - return IntPtr.Zero; + return 0; } /// @@ -315,7 +295,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui return ret; } - private void HandleActionHoverDetour(AgentActionDetail* hoverState, FFXIVClientStructs.FFXIV.Client.UI.Agent.ActionKind actionKind, uint actionId, int a4, byte a5) + private void HandleActionHoverDetour(AgentActionDetail* hoverState, FFXIVClientStructs.FFXIV.Client.UI.Agent.ActionKind actionKind, uint actionId, int a4, bool a5) { this.handleActionHoverHook.Original(hoverState, actionKind, actionId, a4, a5); this.HoveredAction.ActionKind = (HoverActionKind)actionKind; @@ -454,25 +434,25 @@ internal class GameGuiPluginScoped : IInternalDisposableService, IGameGui => this.gameGuiService.ScreenToWorld(screenPos, out worldPos, rayDistance); /// - public IntPtr GetUIModule() + public UIModulePtr GetUIModule() => this.gameGuiService.GetUIModule(); /// - public IntPtr GetAddonByName(string name, int index = 1) + public AtkUnitBasePtr GetAddonByName(string name, int index = 1) => this.gameGuiService.GetAddonByName(name, index); /// - public IntPtr FindAgentInterface(string addonName) + public AgentInterfacePtr GetAgentById(int id) + => this.gameGuiService.GetAgentById(id); + + /// + public AgentInterfacePtr FindAgentInterface(string addonName) => this.gameGuiService.FindAgentInterface(addonName); /// - public unsafe IntPtr FindAgentInterface(void* addon) + public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon) => this.gameGuiService.FindAgentInterface(addon); - /// - public IntPtr FindAgentInterface(IntPtr addonPtr) - => this.gameGuiService.FindAgentInterface(addonPtr); - private void UiHideToggledForward(object sender, bool toggled) => this.UiHideToggled?.Invoke(sender, toggled); private void HoveredItemForward(object sender, ulong itemId) => this.HoveredItemChanged?.Invoke(sender, itemId); diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs b/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs index cd84b996b..7f83f180c 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs @@ -72,7 +72,7 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui /// public unsafe void RequestRedraw() { - var addon = (AddonNamePlate*)this.gameGui.GetAddonByName("NamePlate"); + var addon = (AddonNamePlate*)(nint)this.gameGui.GetAddonByName("NamePlate"); if (addon != null) { addon->DoFullUpdate = 1; diff --git a/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs b/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs index 475892205..5d6130cc1 100644 --- a/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs +++ b/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs @@ -127,7 +127,7 @@ public enum JobFlags : ulong RedMage = 1ul << 24, /// - /// Blue mage (BLM). + /// Blue mage (BLU). /// BlueMage = 1ul << 25, diff --git a/Dalamud/Game/Internal/Completion.cs b/Dalamud/Game/Internal/Completion.cs deleted file mode 100644 index 01c9c99c5..000000000 --- a/Dalamud/Game/Internal/Completion.cs +++ /dev/null @@ -1,322 +0,0 @@ -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; - -using Dalamud.Game.Command; -using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Hooking; -using Dalamud.Plugin.Services; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Component.Completion; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace Dalamud.Game.Internal; - -/// -/// This class adds dalamud and plugin commands to the chat box's autocompletion. -/// -[ServiceManager.EarlyLoadedService] -internal sealed unsafe class Completion : IInternalDisposableService -{ - // 0xFF is a magic group number that causes CompletionModule's internals to treat entries - // as raw strings instead of as lookups into an EXD sheet - private const int GroupNumber = 0xFF; - - [ServiceManager.ServiceDependency] - private readonly CommandManager commandManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly Framework framework = Service.Get(); - - private readonly Dictionary cachedCommands = []; - private readonly ConcurrentQueue addedCommands = []; - - private EntryStrings? dalamudCategory; - - private Hook? getSelection; - - // This is marked volatile since we set and check it from different threads. Instead of using a synchronization - // primitive, a volatile is sufficient since the absolute worst case is that we delay one extra frame to reset - // the list, which is fine - private volatile bool needsClear; - private bool disposed; - private nint wantedVtblPtr; - - /// - /// Initializes a new instance of the class. - /// - [ServiceManager.ServiceConstructor] - internal Completion() - { - this.commandManager.CommandAdded += this.OnCommandAdded; - this.commandManager.CommandRemoved += this.OnCommandRemoved; - - this.framework.Update += this.OnUpdate; - } - - /// Finalizes an instance of the class. - ~Completion() => this.Dispose(false); - - /// - void IInternalDisposableService.DisposeService() => this.Dispose(true); - - private static AtkUnitBase* FindOwningAddon(AtkComponentTextInput* component) - { - if (component == null) return null; - - var node = (AtkResNode*)component->OwnerNode; - if (node == null) return null; - - while (node->ParentNode != null) - node = node->ParentNode; - - foreach (var addon in RaptureAtkUnitManager.Instance()->AllLoadedUnitsList.Entries) - { - if (addon.Value->RootNode == node) - return addon; - } - - return null; - } - - private AtkComponentTextInput* GetActiveTextInput() - { - var mod = RaptureAtkModule.Instance(); - if (mod == null) return null; - - var basePtr = mod->TextInput.TargetTextInputEventInterface; - if (basePtr == null) return null; - - // Once CS has an implementation for multiple inheritance, we can remove this sig from dalamud - // as well as the nasty pointer arithmetic below. But for now, we need to do this manually. - // The AtkTextInputEventInterface* is the secondary base class for AtkComponentTextInput* - // so the pointer is sizeof(AtkComponentInputBase) into the object. We verify that we're looking - // at the object we think we are by confirming the pointed-to vtbl matches the known secondary vtbl for - // AtkComponentTextInput, and if it does, we can shift the pointer back to get the start of our text input - if (this.wantedVtblPtr == 0) - { - this.wantedVtblPtr = - Service.Get().GetStaticAddressFromSig( - "48 89 01 48 8D 05 ?? ?? ?? ?? 48 89 81 ?? ?? ?? ?? 48 8D 05 ?? ?? ?? ?? 48 89 81 ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 8B 48 68", - 4); - } - - var vtblPtr = *(nint*)basePtr; - if (vtblPtr != this.wantedVtblPtr) return null; - - // This needs to be updated if the layout/base order of AtkComponentTextInput changes - return (AtkComponentTextInput*)((AtkComponentInputBase*)basePtr - 1); - } - - private bool AllowCompletion(string cmd) - { - // this is one of our commands, let's see if we should allow this to be completed - var component = this.GetActiveTextInput(); - - // ContainingAddon or ContainingAddon2 aren't always populated, but they - // seem to be in any case where this is actually a completable AtkComponentTextInput - // In the worst case, we can walk the AtkNode tree- but let's try the easy pointers first - var addon = component->ContainingAddon; - if (addon == null) addon = component->ContainingAddon2; - if (addon == null) addon = FindOwningAddon(component); - - if (addon == null || addon->NameString != "ChatLog") - { - // we don't know what addon is completing, or we know it isn't ChatLog - // either way, we should just reject this completion - return false; - } - - // We're in ChatLog, so check if this is the start of the text input - // AtkComponentTextInput->UnkText1 is the evaluated version of the current text - // so if the command starts with that, then either it's empty or a prefix completion. - // In either case, we're happy to allow completion. - return cmd.StartsWith(component->UnkText1.StringPtr.ExtractText()); - } - - private void Dispose(bool disposing) - { - if (this.disposed) - return; - - if (disposing) - { - this.getSelection?.Disable(); - this.getSelection?.Dispose(); - this.framework.Update -= this.OnUpdate; - this.commandManager.CommandAdded -= this.OnCommandAdded; - this.commandManager.CommandRemoved -= this.OnCommandRemoved; - - this.dalamudCategory?.Dispose(); - this.ClearCachedCommands(); - } - - this.disposed = true; - } - - private void OnCommandAdded(object? sender, CommandManager.CommandEventArgs e) - { - if (e.CommandInfo.ShowInHelp) - this.addedCommands.Enqueue(e.Command); - } - - private void OnCommandRemoved(object? sender, CommandManager.CommandEventArgs e) => this.needsClear = true; - - private void OnUpdate(IFramework fw) - { - var atkModule = RaptureAtkModule.Instance(); - if (atkModule == null) return; - - var textInput = &atkModule->TextInput; - - if (textInput->CompletionModule == null) return; - - // Before we change _anything_ we need to check the state of the UI- if the completion list is open - // changes to the underlying data are extremely unsafe, so we'll just wait until the next frame - // worst case, someone tries to complete a command that _just_ got unloaded so it won't do anything - // but that's the same as making a typo, really - if (textInput->CompletionDepth > 0) return; - - // Create the category for Dalamud commands. - // This needs to be done here, since we cannot create Utf8Strings before the game - // has initialized (no allocator set up yet). - this.dalamudCategory ??= new EntryStrings("【Dalamud】"); - - this.LoadCommands(textInput->CompletionModule); - } - - private CategoryData* EnsureCategoryData(CompletionModule* module) - { - if (module == null) return null; - - if (this.getSelection == null) - { - this.getSelection = Hook.FromAddress( - (IntPtr)module->VirtualTable->GetSelection, - this.GetSelectionDetour); - this.getSelection.Enable(); - } - - for (var i = 0; i < module->CategoryNames.Count; i++) - { - if (module->CategoryNames[i].AsReadOnlySeStringSpan().ContainsText("【Dalamud】"u8)) - { - return module->CategoryData[i]; - } - } - - // Create the category since we don't have one - var categoryData = (CategoryData*)Memory.MemoryHelper.GameAllocateDefault((ulong)sizeof(CategoryData)); - categoryData->Ctor(GroupNumber, 0xFF); - module->AddCategoryData(GroupNumber, this.dalamudCategory!.Display->StringPtr, - this.dalamudCategory.Match->StringPtr, categoryData); - - return categoryData; - } - - private void ClearCachedCommands() - { - if (this.cachedCommands.Count == 0) - return; - - foreach (var entry in this.cachedCommands.Values) - { - entry.Dispose(); - } - - this.cachedCommands.Clear(); - } - - private void LoadCommands(CompletionModule* completionModule) - { - if (completionModule == null) return; - if (completionModule->CategoryNames.Count == 0) return; // We want this data populated first - - if (this.needsClear && this.cachedCommands.Count > 0) - { - this.needsClear = false; - completionModule->ClearCompletionData(); - this.ClearCachedCommands(); - return; - } - - var catData = this.EnsureCategoryData(completionModule); - if (catData == null) return; - - if (catData->CompletionData.Count == 0) - { - var inputCommands = this.commandManager.Commands.Where(pair => pair.Value.ShowInHelp); - foreach (var (cmd, _) in inputCommands) - AddEntry(cmd); - catData->SortEntries(); - - return; - } - - var needsSort = false; - while (this.addedCommands.TryDequeue(out var cmd)) - { - needsSort = true; - AddEntry(cmd); - } - - if (needsSort) - catData->SortEntries(); - - return; - - void AddEntry(string cmd) - { - if (this.cachedCommands.ContainsKey(cmd)) return; - - var cmdStr = new EntryStrings(cmd); - this.cachedCommands.Add(cmd, cmdStr); - completionModule->AddCompletionEntry( - GroupNumber, - 0xFF, - cmdStr.Display->StringPtr, - cmdStr.Match->StringPtr, - 0xFF); - } - } - - private int GetSelectionDetour(CompletionModule* thisPtr, CategoryData.CompletionDataStruct* dataStructs, int index, Utf8String* outputString, Utf8String* outputDisplayString) - { - var ret = this.getSelection!.Original.Invoke(thisPtr, dataStructs, index, outputString, outputDisplayString); - if (ret != -2 || outputString == null) return ret; - - // -2 means it was a plain text final selection, so it might be ours - // Unfortunately, the code that uses this string mangles the color macro for some reason... - // We'll just strip those out since we don't need the color in the chatbox - var txt = outputString->StringPtr.ExtractText(); - if (!this.cachedCommands.ContainsKey(txt)) - return ret; - - if (!this.AllowCompletion(txt)) - { - outputString->Clear(); - if (outputDisplayString != null) outputDisplayString->Clear(); - return ret; - } - - outputString->SetString(txt + " "); - return ret; - } - - private class EntryStrings(string command) : IDisposable - { - public Utf8String* Display { get; } = - Utf8String.FromSequence(new SeStringBuilder().AddUiForeground(command, 539).BuiltString.EncodeWithNullTerminator()); - - public Utf8String* Match { get; } = Utf8String.FromString(command); - - public void Dispose() - { - this.Display->Dtor(true); - this.Match->Dtor(true); - } - } -} diff --git a/Dalamud/Game/Internal/DalamudCompletion.cs b/Dalamud/Game/Internal/DalamudCompletion.cs new file mode 100644 index 000000000..ec5652b3c --- /dev/null +++ b/Dalamud/Game/Internal/DalamudCompletion.cs @@ -0,0 +1,279 @@ +using System.Collections.Generic; +using System.Linq; + +using Dalamud.Game.Command; +using Dalamud.Hooking; +using Dalamud.Utility; + +using FFXIVClientStructs.FFXIV.Client.System.Memory; +using FFXIVClientStructs.FFXIV.Client.System.String; +using FFXIVClientStructs.FFXIV.Client.UI; +using FFXIVClientStructs.FFXIV.Component.Completion; +using FFXIVClientStructs.FFXIV.Component.GUI; + +using Lumina.Text; + +namespace Dalamud.Game.Internal; + +/// +/// This class adds Dalamud and plugin commands to the chat box's autocompletion. +/// +[ServiceManager.EarlyLoadedService] +internal sealed unsafe class DalamudCompletion : IInternalDisposableService +{ + // 0xFF is a magic group number that causes CompletionModule's internals to treat entries + // as raw strings instead of as lookups into an EXD sheet + private const int GroupNumber = 0xFF; + + [ServiceManager.ServiceDependency] + private readonly CommandManager commandManager = Service.Get(); + + [ServiceManager.ServiceDependency] + private readonly Framework framework = Service.Get(); + + private readonly Dictionary cachedCommands = []; + + private EntryStrings? dalamudCategory; + + private Hook openSuggestionsHook; + private Hook? getSelectionHook; + + /// + /// Initializes a new instance of the class. + /// + [ServiceManager.ServiceConstructor] + internal DalamudCompletion() + { + this.framework.RunOnTick(this.Setup); + } + + /// + void IInternalDisposableService.DisposeService() + { + this.openSuggestionsHook?.Disable(); + this.openSuggestionsHook?.Dispose(); + + this.getSelectionHook?.Disable(); + this.getSelectionHook?.Dispose(); + + this.dalamudCategory?.Dispose(); + + this.ClearCachedCommands(); + } + + private void Setup() + { + var uiModule = UIModule.Instance(); + if (uiModule == null || uiModule->FrameCount == 0) + { + this.framework.RunOnTick(this.Setup); + return; + } + + this.dalamudCategory = new EntryStrings("【Dalamud】"); + + this.openSuggestionsHook = Hook.FromAddress( + (nint)AtkTextInput.MemberFunctionPointers.OpenCompletion, + this.OpenSuggestionsDetour); + + this.getSelectionHook = Hook.FromAddress( + (nint)uiModule->CompletionModule.VirtualTable->GetSelection, + this.GetSelectionDetour); + + this.openSuggestionsHook.Enable(); + this.getSelectionHook.Enable(); + } + + private void OpenSuggestionsDetour(AtkTextInput* thisPtr) + { + this.UpdateCompletionData(); + this.openSuggestionsHook!.Original(thisPtr); + } + + private int GetSelectionDetour(CompletionModule* thisPtr, CategoryData.CompletionDataStruct* dataStructs, int index, Utf8String* outputString, Utf8String* outputDisplayString) + { + var ret = this.getSelectionHook!.Original.Invoke(thisPtr, dataStructs, index, outputString, outputDisplayString); + this.HandleInsert(ret, outputString, outputDisplayString); + return ret; + } + + private void UpdateCompletionData() + { + if (!this.TryGetActiveTextInput(out var component, out var addon)) + { + if (this.HasDalamudCategory()) + this.ResetCompletionData(); + + return; + } + + var uiModule = UIModule.Instance(); + if (uiModule == null) + return; + + this.ResetCompletionData(); + this.ClearCachedCommands(); + + var currentText = component->UnkText1.StringPtr.ExtractText(); + + var commands = this.commandManager.Commands + .Where(kv => kv.Value.ShowInHelp && (currentText.Length == 0 || kv.Key.StartsWith(currentText))) + .OrderBy(kv => kv.Key); + + if (!commands.Any()) + return; + + var categoryData = (CategoryData*)IMemorySpace.GetDefaultSpace()->Malloc((ulong)sizeof(CategoryData), 0x08); + categoryData->Ctor(GroupNumber, 0xFF); + + uiModule->CompletionModule.AddCategoryData( + GroupNumber, + this.dalamudCategory!.Display->StringPtr, + this.dalamudCategory.Match->StringPtr, categoryData); + + foreach (var (cmd, info) in commands) + { + if (!this.cachedCommands.TryGetValue(cmd, out var entryString)) + this.cachedCommands.Add(cmd, entryString = new EntryStrings(cmd)); + + uiModule->CompletionModule.AddCompletionEntry( + GroupNumber, + 0xFF, + entryString.Display->StringPtr, + entryString.Match->StringPtr, + 0xFF); + } + + categoryData->SortEntries(); + } + + private void HandleInsert(int ret, Utf8String* outputString, Utf8String* outputDisplayString) + { + // -2 means it was a plain text final selection, so it might be ours. + if (ret != -2 || outputString == null) + return; + + // Strip out color payloads that we added to the string. + var txt = outputString->StringPtr.ExtractText(); + if (!this.cachedCommands.ContainsKey(txt)) + return; + + if (!this.TryGetActiveTextInput(out _, out _)) + { + outputString->Clear(); + + if (outputDisplayString != null) + outputDisplayString->Clear(); + + return; + } + + outputString->SetString(txt + ' '); + } + + private bool TryGetActiveTextInput(out AtkComponentTextInput* component, out AtkUnitBase* addon) + { + component = null; + addon = null; + + var raptureAtkModule = RaptureAtkModule.Instance(); + if (raptureAtkModule == null) + return false; + + var textInputEventInterface = raptureAtkModule->TextInput.TargetTextInputEventInterface; + if (textInputEventInterface == null) + return false; + + var ownerNode = textInputEventInterface->GetOwnerNode(); + if (ownerNode == null || ownerNode->GetNodeType() != NodeType.Component) + return false; + + var componentNode = (AtkComponentNode*)ownerNode; + var componentBase = componentNode->Component; + if (componentBase == null || componentBase->GetComponentType() != ComponentType.TextInput) + return false; + + component = (AtkComponentTextInput*)componentBase; + + addon = component->ContainingAddon; + + if (addon == null) + addon = component->ContainingAddon2; + + if (addon == null) + addon = RaptureAtkUnitManager.Instance()->GetAddonByNode((AtkResNode*)component->OwnerNode); + + return addon != null && addon->NameString == "ChatLog"; + } + + private bool HasDalamudCategory() + { + var uiModule = UIModule.Instance(); + if (uiModule == null) + return false; + + for (var i = 0; i < uiModule->CompletionModule.CategoryNames.Count; i++) + { + if (uiModule->CompletionModule.CategoryNames[i].AsReadOnlySeStringSpan().ContainsText("【Dalamud】"u8)) + { + return true; + } + } + + return false; + } + + private void ResetCompletionData() + { + var uiModule = UIModule.Instance(); + if (uiModule == null) + return; + + uiModule->CompletionModule.ClearCompletionData(); + + // This happens in UIModule.Update. Just repeat it to fill CompletionData back up with defaults. + uiModule->CompletionModule.Update( + &uiModule->CompletionSheetName, + &uiModule->CompletionOpenIconMacro, + &uiModule->CompletionCloseIconMacro, + 0); + } + + private void ClearCachedCommands() + { + foreach (var entry in this.cachedCommands.Values) + { + entry.Dispose(); + } + + this.cachedCommands.Clear(); + } + + private class EntryStrings : IDisposable + { + public EntryStrings(string command) + { + var rssb = SeStringBuilder.SharedPool.Get(); + + this.Display = Utf8String.FromSequence(rssb + .PushColorType(539) + .Append(command) + .PopColorType() + .GetViewAsSpan()); + + SeStringBuilder.SharedPool.Return(rssb); + + this.Match = Utf8String.FromString(command); + } + + public Utf8String* Display { get; } + + public Utf8String* Match { get; } + + public void Dispose() + { + this.Display->Dtor(true); + this.Match->Dtor(true); + } + } +} diff --git a/Dalamud/Game/Inventory/GameInventoryItem.cs b/Dalamud/Game/Inventory/GameInventoryItem.cs index 085200742..af35262d6 100644 --- a/Dalamud/Game/Inventory/GameInventoryItem.cs +++ b/Dalamud/Game/Inventory/GameInventoryItem.cs @@ -1,7 +1,9 @@ +using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Dalamud.Data; +using Dalamud.Game.Inventory.Records; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.Game; @@ -160,6 +162,29 @@ public unsafe struct GameInventoryItem : IEquatable } } + /// + /// Gets a list of materia entries for this item. Exists as a user-friendly interface to and + /// . + /// + public IReadOnlyList MateriaEntries + { + get + { + if (ItemUtil.IsEventItem(this.BaseItemId) || this.IsMateriaUsedForDate) + return []; + + var result = new List(); + for (byte i = 0; i < this.InternalItem.GetMateriaCount(); i++) + { + var entry = new MateriaEntry(this.InternalItem.GetMateriaId(i), this.InternalItem.GetMateriaGrade(i)); + if (entry.IsValid()) + result.Add(entry); + } + + return result; + } + } + /// /// Gets the address of native inventory item in the game.
/// Can be 0 if this instance of does not point to a valid set of container type and slot.
diff --git a/Dalamud/Game/Inventory/Records/MateriaEntry.cs b/Dalamud/Game/Inventory/Records/MateriaEntry.cs new file mode 100644 index 000000000..4c7528123 --- /dev/null +++ b/Dalamud/Game/Inventory/Records/MateriaEntry.cs @@ -0,0 +1,42 @@ +using Dalamud.Data; + +using Lumina.Excel; +using Lumina.Excel.Sheets; + +namespace Dalamud.Game.Inventory.Records; + +/// +/// A record to hold easy information about a given piece of Materia. +/// +public record MateriaEntry +{ + /// + /// Initializes a new instance of the class. + /// + /// The ID of the materia. + /// The grade of the materia. + public MateriaEntry(ushort typeId, byte gradeValue) + { + this.Type = LuminaUtils.CreateRef(typeId); + this.Grade = LuminaUtils.CreateRef(gradeValue); + } + + /// + /// Gets the Lumina row for this Materia. + /// + public RowRef Type { get; } + + /// + /// Gets the Lumina row for this Materia's grade. + /// + public RowRef Grade { get; } + + /// + /// Checks if this MateriaEntry is valid. + /// + /// True if valid, false otherwise. + internal bool IsValid() + { + return this.Type.IsValid && this.Grade.IsValid; + } +} diff --git a/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs b/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs new file mode 100644 index 000000000..b5a6375a9 --- /dev/null +++ b/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs @@ -0,0 +1,96 @@ +using System.Runtime.InteropServices; + +using FFXIVClientStructs.FFXIV.Client.UI; +using FFXIVClientStructs.FFXIV.Client.UI.Agent; + +namespace Dalamud.Game.NativeWrapper; + +/// +/// A readonly wrapper for AgentInterface. +/// +/// The address to the AgentInterface. +[StructLayout(LayoutKind.Explicit, Size = 0x08)] +public readonly unsafe struct AgentInterfacePtr(nint address) : IEquatable +{ + /// + /// The address to the AgentInterface. + /// + [FieldOffset(0x00)] + public readonly nint Address = address; + + /// + /// Gets a value indicating whether the underlying pointer is a nullptr. + /// + public readonly bool IsNull => this.Address == 0; + + /// + /// Gets a value indicating whether the agents addon is visible. + /// + public readonly AtkUnitBasePtr Addon + { + get + { + if (this.IsNull) + return 0; + + var raptureAtkUnitManager = RaptureAtkUnitManager.Instance(); + if (raptureAtkUnitManager == null) + return 0; + + return (nint)raptureAtkUnitManager->GetAddonById(this.AddonId); + } + } + + /// + /// Gets a value indicating whether the agent is active. + /// + public readonly ushort AddonId => (ushort)(this.IsNull ? 0 : this.Struct->GetAddonId()); + + /// + /// Gets a value indicating whether the agent is active. + /// + public readonly bool IsAgentActive => !this.IsNull && this.Struct->IsAgentActive(); + + /// + /// Gets a value indicating whether the agents addon is ready. + /// + public readonly bool IsAddonReady => !this.IsNull && this.Struct->IsAddonReady(); + + /// + /// Gets a value indicating whether the agents addon is visible. + /// + public readonly bool IsAddonShown => !this.IsNull && this.Struct->IsAddonShown(); + + /// + /// Gets the AgentInterface*. + /// + /// Internal use only. + internal readonly AgentInterface* Struct => (AgentInterface*)this.Address; + + public static implicit operator nint(AgentInterfacePtr wrapper) => wrapper.Address; + + public static implicit operator AgentInterfacePtr(nint address) => new(address); + + public static implicit operator AgentInterfacePtr(void* ptr) => new((nint)ptr); + + public static bool operator ==(AgentInterfacePtr left, AgentInterfacePtr right) => left.Address == right.Address; + + public static bool operator !=(AgentInterfacePtr left, AgentInterfacePtr right) => left.Address != right.Address; + + /// + /// Focuses the AtkUnitBase. + /// + /// true when the addon was focused, false otherwise. + public readonly bool FocusAddon() => this.IsNull && this.Struct->FocusAddon(); + + /// Determines whether the specified AgentInterfacePtr is equal to the current AgentInterfacePtr. + /// The AgentInterfacePtr to compare with the current AgentInterfacePtr. + /// true if the specified AgentInterfacePtr is equal to the current AgentInterfacePtr; otherwise, false. + public readonly bool Equals(AgentInterfacePtr other) => this.Address == other.Address; + + /// + public override readonly bool Equals(object obj) => obj is AgentInterfacePtr wrapper && this.Equals(wrapper); + + /// + public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); +} diff --git a/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs b/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs new file mode 100644 index 000000000..d4ebf4d3b --- /dev/null +++ b/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs @@ -0,0 +1,171 @@ +using System.Collections.Generic; +using System.Numerics; +using System.Runtime.InteropServices; + +using FFXIVClientStructs.FFXIV.Component.GUI; +using FFXIVClientStructs.Interop; + +namespace Dalamud.Game.NativeWrapper; + +/// +/// A readonly wrapper for AtkUnitBase. +/// +/// The address to the AtkUnitBase. +[StructLayout(LayoutKind.Explicit, Size = 0x08)] +public readonly unsafe struct AtkUnitBasePtr(nint address) : IEquatable +{ + /// + /// The address to the AtkUnitBase. + /// + [FieldOffset(0x00)] + public readonly nint Address = address; + + /// + /// Gets a value indicating whether the underlying pointer is a nullptr. + /// + public readonly bool IsNull => this.Address == 0; + + /// + /// Gets a value indicating whether the OnSetup function has been called. + /// + public readonly bool IsReady => !this.IsNull && this.Struct->IsReady; + + /// + /// Gets a value indicating whether the AtkUnitBase is visible. + /// + public readonly bool IsVisible => !this.IsNull && this.Struct->IsVisible; + + /// + /// Gets the name. + /// + public readonly string Name => this.IsNull ? string.Empty : this.Struct->NameString; + + /// + /// Gets the id. + /// + public readonly ushort Id => this.IsNull ? (ushort)0 : this.Struct->Id; + + /// + /// Gets the parent id. + /// + public readonly ushort ParentId => this.IsNull ? (ushort)0 : this.Struct->ParentId; + + /// + /// Gets the host id. + /// + public readonly ushort HostId => this.IsNull ? (ushort)0 : this.Struct->HostId; + + /// + /// Gets the scale. + /// + public readonly float Scale => this.IsNull ? 0f : this.Struct->Scale; + + /// + /// Gets the x-position. + /// + public readonly short X => this.IsNull ? (short)0 : this.Struct->X; + + /// + /// Gets the y-position. + /// + public readonly short Y => this.IsNull ? (short)0 : this.Struct->Y; + + /// + /// Gets the width. + /// + public readonly float Width => this.IsNull ? 0f : this.Struct->GetScaledWidth(false); + + /// + /// Gets the height. + /// + public readonly float Height => this.IsNull ? 0f : this.Struct->GetScaledHeight(false); + + /// + /// Gets the scaled width. + /// + public readonly float ScaledWidth => this.IsNull ? 0f : this.Struct->GetScaledWidth(true); + + /// + /// Gets the scaled height. + /// + public readonly float ScaledHeight => this.IsNull ? 0f : this.Struct->GetScaledHeight(true); + + /// + /// Gets the position. + /// + public readonly Vector2 Position => new(this.X, this.Y); + + /// + /// Gets the size. + /// + public readonly Vector2 Size => new(this.Width, this.Height); + + /// + /// Gets the scaled size. + /// + public readonly Vector2 ScaledSize => new(this.ScaledWidth, this.ScaledHeight); + + /// + /// Gets the number of entries. + /// + public readonly int AtkValuesCount => this.Struct->AtkValuesCount; + + /// + /// Gets an enumerable collection of of the addons current AtkValues. + /// + /// + /// An of corresponding to the addons AtkValues. + /// + public IEnumerable AtkValues + { + get + { + for (var i = 0; i < this.AtkValuesCount; i++) + { + AtkValuePtr ptr; + unsafe + { + ptr = new AtkValuePtr((nint)this.Struct->AtkValuesSpan.GetPointer(i)); + } + + yield return ptr; + } + } + } + + /// + /// Gets the AtkUnitBase*. + /// + /// Internal use only. + internal readonly AtkUnitBase* Struct => (AtkUnitBase*)this.Address; + + public static implicit operator nint(AtkUnitBasePtr wrapper) => wrapper.Address; + + public static implicit operator AtkUnitBasePtr(nint address) => new(address); + + public static implicit operator AtkUnitBasePtr(void* ptr) => new((nint)ptr); + + public static bool operator ==(AtkUnitBasePtr left, AtkUnitBasePtr right) => left.Address == right.Address; + + public static bool operator !=(AtkUnitBasePtr left, AtkUnitBasePtr right) => left.Address != right.Address; + + /// + /// Focuses the AtkUnitBase. + /// + public readonly void Focus() + { + if (!this.IsNull) + this.Struct->Focus(); + } + + /// Determines whether the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr. + /// The AtkUnitBasePtr to compare with the current AtkUnitBasePtr. + /// true if the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr; otherwise, false. + public readonly bool Equals(AtkUnitBasePtr other) => this.Address == other.Address; + + /// + public override readonly bool Equals(object obj) => obj is AtkUnitBasePtr wrapper && this.Equals(wrapper); + + /// + public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); +} diff --git a/Dalamud/Game/NativeWrapper/AtkValuePtr.cs b/Dalamud/Game/NativeWrapper/AtkValuePtr.cs new file mode 100644 index 000000000..a47483a66 --- /dev/null +++ b/Dalamud/Game/NativeWrapper/AtkValuePtr.cs @@ -0,0 +1,113 @@ +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; + +using Dalamud.Utility; + +using FFXIVClientStructs.FFXIV.Component.GUI; + +namespace Dalamud.Game.NativeWrapper; + +/// +/// A readonly wrapper for AtkValue. +/// +/// The address to the AtkValue. +[StructLayout(LayoutKind.Explicit, Size = 0x08)] +public readonly unsafe struct AtkValuePtr(nint address) : IEquatable +{ + /// + /// The address to the AtkValue. + /// + [FieldOffset(0x00)] + public readonly nint Address = address; + + /// + /// Gets a value indicating whether the underlying pointer is a nullptr. + /// + public readonly bool IsNull => this.Address == 0; + + /// + /// Gets the value type. + /// + public readonly AtkValueType ValueType => (AtkValueType)this.Struct->Type; + + /// + /// Gets the AtkValue*. + /// + /// Internal use only. + internal readonly AtkValue* Struct => (AtkValue*)this.Address; + + public static implicit operator nint(AtkValuePtr wrapper) => wrapper.Address; + + public static implicit operator AtkValuePtr(nint address) => new(address); + + public static implicit operator AtkValuePtr(void* ptr) => new((nint)ptr); + + public static bool operator ==(AtkValuePtr left, AtkValuePtr right) => left.Address == right.Address; + + public static bool operator !=(AtkValuePtr left, AtkValuePtr right) => left.Address != right.Address; + + /// + /// Gets the value of the underlying as a boxed object, based on its . + /// + /// + /// The boxed value represented by this , or null if the value is null or undefined. + /// + /// + /// Thrown if the value type is not currently handled by this implementation. + /// + public unsafe object? GetValue() + { + if (this.Struct == null) + return null; + + return this.ValueType switch + { + AtkValueType.Undefined or AtkValueType.Null => null, + AtkValueType.Bool => this.Struct->Bool, + AtkValueType.Int => this.Struct->Int, + AtkValueType.Int64 => this.Struct->Int64, + AtkValueType.UInt => this.Struct->UInt, + AtkValueType.UInt64 => this.Struct->UInt64, + AtkValueType.Float => this.Struct->Float, + AtkValueType.String or AtkValueType.String8 or AtkValueType.ManagedString => this.Struct->String.HasValue ? this.Struct->String.AsReadOnlySeString() : default, + AtkValueType.WideString => this.Struct->WideString == null ? string.Empty : new string(this.Struct->WideString), + AtkValueType.Pointer => (nint)this.Struct->Pointer, + _ => throw new NotImplementedException($"AtkValueType {this.ValueType} is currently not supported"), + }; + } + + /// + /// Attempts to retrieve the value as a strongly-typed object if the underlying type matches. + /// + /// The expected value type to extract. + /// + /// When this method returns true, contains the extracted value of type . + /// Otherwise, contains the default value of type . + /// + /// + /// true if the value was successfully extracted and matched ; otherwise, false. + /// + public unsafe bool TryGet([NotNullWhen(true)] out T? result) where T : struct + { + object? value = this.GetValue(); + if (value is T typed) + { + result = typed; + return true; + } + + result = default; + return false; + } + + /// Determines whether the specified AtkValuePtr is equal to the current AtkValuePtr. + /// The AtkValuePtr to compare with the current AtkValuePtr. + /// true if the specified AtkValuePtr is equal to the current AtkValuePtr; otherwise, false. + public readonly bool Equals(AtkValuePtr other) => this.Address == other.Address || this.Struct->EqualTo(other.Struct); + + /// + public override readonly bool Equals(object obj) => obj is AtkValuePtr wrapper && this.Equals(wrapper); + + /// + public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); +} diff --git a/Dalamud/Game/NativeWrapper/AtkValueType.cs b/Dalamud/Game/NativeWrapper/AtkValueType.cs new file mode 100644 index 000000000..ef169e102 --- /dev/null +++ b/Dalamud/Game/NativeWrapper/AtkValueType.cs @@ -0,0 +1,87 @@ +namespace Dalamud.Game.NativeWrapper; + +/// +/// Represents the data type of the AtkValue. +/// +public enum AtkValueType +{ + /// + /// The value is undefined or invalid. + /// + Undefined = 0, + + /// + /// The value is null. + /// + Null = 0x1, + + /// + /// The value is a boolean. + /// + Bool = 0x2, + + /// + /// The value is a 32-bit signed integer. + /// + Int = 0x3, + + /// + /// The value is a 64-bit signed integer. + /// + Int64 = 0x4, + + /// + /// The value is a 32-bit unsigned integer. + /// + UInt = 0x5, + + /// + /// The value is a 64-bit unsigned integer. + /// + UInt64 = 0x6, + + /// + /// The value is a 32-bit floating-point number. + /// + Float = 0x7, + + /// + /// The value points to a null-terminated 8-bit character string (ASCII or UTF-8). + /// + String = 0x8, + + /// + /// The value points to a null-terminated 16-bit character string (UTF-16 / wide string). + /// + WideString = 0x9, + + /// + /// The value points to a constant null-terminated 8-bit character string (const char*). + /// + String8 = 0xA, + + /// + /// The value is a vector. + /// + Vector = 0xB, + + /// + /// The value is a pointer. + /// + Pointer = 0xC, + + /// + /// The value is pointing to an array of AtkValue entries. + /// + AtkValues = 0xD, + + /// + /// The value is a managed string. See . + /// + ManagedString = 0x28, + + /// + /// The value is a managed vector. See . + /// + ManagedVector = 0x2B, +} diff --git a/Dalamud/Game/NativeWrapper/UIModulePtr.cs b/Dalamud/Game/NativeWrapper/UIModulePtr.cs new file mode 100644 index 000000000..f6b841610 --- /dev/null +++ b/Dalamud/Game/NativeWrapper/UIModulePtr.cs @@ -0,0 +1,51 @@ +using System.Runtime.InteropServices; + +using FFXIVClientStructs.FFXIV.Client.UI; + +namespace Dalamud.Game.NativeWrapper; + +/// +/// A readonly wrapper for UIModule. +/// +/// The address to the UIModule. +[StructLayout(LayoutKind.Explicit, Size = 0x08)] +public readonly unsafe struct UIModulePtr(nint address) : IEquatable +{ + /// + /// The address to the UIModule. + /// + [FieldOffset(0x00)] + public readonly nint Address = address; + + /// + /// Gets a value indicating whether the underlying pointer is a nullptr. + /// + public readonly bool IsNull => this.Address == 0; + + /// + /// Gets the UIModule*. + /// + /// Internal use only. + internal readonly UIModule* Struct => (UIModule*)this.Address; + + public static implicit operator nint(UIModulePtr wrapper) => wrapper.Address; + + public static implicit operator UIModulePtr(nint address) => new(address); + + public static implicit operator UIModulePtr(void* ptr) => new((nint)ptr); + + public static bool operator ==(UIModulePtr left, UIModulePtr right) => left.Address == right.Address; + + public static bool operator !=(UIModulePtr left, UIModulePtr right) => left.Address != right.Address; + + /// Determines whether the specified UIModulePtr is equal to the current UIModulePtr. + /// The UIModulePtr to compare with the current UIModulePtr. + /// true if the specified UIModulePtr is equal to the current UIModulePtr; otherwise, false. + public readonly bool Equals(UIModulePtr other) => this.Address == other.Address; + + /// + public override readonly bool Equals(object obj) => obj is UIModulePtr wrapper && this.Equals(wrapper); + + /// + public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); +} diff --git a/Dalamud/Game/Network/GameNetwork.cs b/Dalamud/Game/Network/GameNetwork.cs index 5c21add0f..be464ef34 100644 --- a/Dalamud/Game/Network/GameNetwork.cs +++ b/Dalamud/Game/Network/GameNetwork.cs @@ -17,7 +17,7 @@ namespace Dalamud.Game.Network; /// This class handles interacting with game network events. ///
[ServiceManager.EarlyLoadedService] -internal sealed unsafe class GameNetwork : IInternalDisposableService, IGameNetwork +internal sealed unsafe class GameNetwork : IInternalDisposableService { private readonly GameNetworkAddressResolver address; private readonly Hook processZonePacketDownHook; @@ -51,11 +51,23 @@ internal sealed unsafe class GameNetwork : IInternalDisposableService, IGameNetw this.processZonePacketUpHook.Enable(); } + /// + /// The delegate type of a network message event. + /// + /// The pointer to the raw data. + /// The operation ID code. + /// The source actor ID. + /// The taret actor ID. + /// The direction of the packed. + public delegate void OnNetworkMessageDelegate(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction); + [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate byte ProcessZonePacketUpDelegate(IntPtr a1, IntPtr dataPtr, IntPtr a3, byte a4); - /// - public event IGameNetwork.OnNetworkMessageDelegate? NetworkMessage; + /// + /// Event that is called when a network message is sent/received. + /// + public event OnNetworkMessageDelegate? NetworkMessage; /// void IInternalDisposableService.DisposeService() @@ -136,39 +148,3 @@ internal sealed unsafe class GameNetwork : IInternalDisposableService, IGameNetw return this.processZonePacketUpHook.Original(a1, dataPtr, a3, a4); } } - -/// -/// Plugin-scoped version of a AddonLifecycle service. -/// -[PluginInterface] -[ServiceManager.ScopedService] -#pragma warning disable SA1015 -[ResolveVia] -#pragma warning restore SA1015 -internal class GameNetworkPluginScoped : IInternalDisposableService, IGameNetwork -{ - [ServiceManager.ServiceDependency] - private readonly GameNetwork gameNetworkService = Service.Get(); - - /// - /// Initializes a new instance of the class. - /// - internal GameNetworkPluginScoped() - { - this.gameNetworkService.NetworkMessage += this.NetworkMessageForward; - } - - /// - public event IGameNetwork.OnNetworkMessageDelegate? NetworkMessage; - - /// - void IInternalDisposableService.DisposeService() - { - this.gameNetworkService.NetworkMessage -= this.NetworkMessageForward; - - this.NetworkMessage = null; - } - - private void NetworkMessageForward(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction) - => this.NetworkMessage?.Invoke(dataPtr, opCode, sourceActorId, targetActorId, direction); -} diff --git a/Dalamud/Game/Network/Internal/NetworkHandlers.cs b/Dalamud/Game/Network/Internal/NetworkHandlers.cs index 7d6304655..9b85d0ff3 100644 --- a/Dalamud/Game/Network/Internal/NetworkHandlers.cs +++ b/Dalamud/Game/Network/Internal/NetworkHandlers.cs @@ -275,7 +275,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService if (uploaderId == 0) { var playerState = PlayerState.Instance(); - if (playerState->IsLoaded == 1) + if (playerState->IsLoaded) { uploaderId = playerState->ContentId; } diff --git a/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs b/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs index 18c48b67d..9cd46f798 100644 --- a/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs +++ b/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs @@ -16,6 +16,6 @@ internal class NetworkHandlersAddressResolver : BaseAddressResolver { this.CustomTalkEventResponsePacketHandler = scanner.ScanText( - "48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC ?? 49 8B D9 41 0F B6 F8 0F B7 F2 8B E9 E8 ?? ?? ?? ?? 48 8B C8 44 0F B6 CF 0F B6 44 24 ?? 44 0F B7 C6 88 44 24 ?? 8B D5 48 89 5C 24"); // unnamed in CS + "48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC ?? 49 8B D9 41 0F B6 F8 0F B7 F2 8B E9 E8 ?? ?? ?? ?? 44 0F B6 54 24 ?? 44 0F B6 CF 44 88 54 24 ?? 44 0F B7 C6 8B D5"); // unnamed in CS } } diff --git a/Dalamud/Game/Network/Internal/WinSockHandlers.cs b/Dalamud/Game/Network/Internal/WinSockHandlers.cs index 384858cfe..4b002021a 100644 --- a/Dalamud/Game/Network/Internal/WinSockHandlers.cs +++ b/Dalamud/Game/Network/Internal/WinSockHandlers.cs @@ -55,4 +55,37 @@ internal sealed class WinSockHandlers : IInternalDisposableService return socket; } + + /// + /// Native ws2_32 functions. + /// + private static class NativeFunctions + { + /// + /// See https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt. + /// The setsockopt function sets a socket option. + /// + /// + /// A descriptor that identifies a socket. + /// + /// + /// The level at which the option is defined (for example, SOL_SOCKET). + /// + /// + /// The socket option for which the value is to be set (for example, SO_BROADCAST). The optname parameter must be a + /// socket option defined within the specified level, or behavior is undefined. + /// + /// + /// A pointer to the buffer in which the value for the requested option is specified. + /// + /// + /// The size, in bytes, of the buffer pointed to by the optval parameter. + /// + /// + /// If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error + /// code can be retrieved by calling WSAGetLastError. + /// + [DllImport("ws2_32.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = "setsockopt")] + public static extern int SetSockOpt(IntPtr socket, SocketOptionLevel level, SocketOptionName optName, ref IntPtr optVal, int optLen); + } } diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs index 5aaf17f12..dc1e54e77 100644 --- a/Dalamud/Game/SigScanner.cs +++ b/Dalamud/Game/SigScanner.cs @@ -21,6 +21,8 @@ namespace Dalamud.Game; ///
public class SigScanner : IDisposable, ISigScanner { + private static byte[]? fileBytes; + private readonly FileInfo? cacheFile; private nint moduleCopyPtr; @@ -51,12 +53,16 @@ public class SigScanner : IDisposable, ISigScanner this.Is32BitProcess = !Environment.Is64BitProcess; this.IsCopy = doCopy; + if (this.IsCopy) + { + this.SetupCopiedSegments(); + + fileBytes ??= File.ReadAllBytes(module.FileName); + } + // Limit the search space to .text section. this.SetupSearchSpace(module); - if (this.IsCopy) - this.SetupCopiedSegments(); - Log.Verbose($"Module base: 0x{this.TextSectionBase.ToInt64():X}"); Log.Verbose($"Module size: 0x{this.TextSectionSize:X}"); @@ -494,6 +500,18 @@ public class SigScanner : IDisposable, ISigScanner case 0x747865742E: // .text this.TextSectionOffset = Marshal.ReadInt32(sectionCursor, 12); this.TextSectionSize = Marshal.ReadInt32(sectionCursor, 8); + + if (this.IsCopy) + { + var pointerToRawData = Marshal.ReadInt32(sectionCursor, 20); + + Marshal.Copy( + fileBytes.AsSpan(pointerToRawData, this.TextSectionSize).ToArray(), + 0, + this.moduleCopyPtr + (nint)this.TextSectionOffset, + this.TextSectionSize); + } + break; case 0x617461642E: // .data this.DataSectionOffset = Marshal.ReadInt32(sectionCursor, 12); diff --git a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs b/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs index f851e7686..523086f48 100644 --- a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs +++ b/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs @@ -3,7 +3,6 @@ using Dalamud.Utility; using Lumina.Extensions; -using ItemKind = Dalamud.Game.Text.SeStringHandling.Payloads.ItemPayload.ItemKind; using LSheets = Lumina.Excel.Sheets; namespace Dalamud.Game.Text.Evaluator.Internal; @@ -222,8 +221,8 @@ internal class SheetRedirectResolver : IServiceType sheetName = nameof(LSheets.AkatsukiNoteString); colIndex = 0; - if (this.dataManager.Excel.GetSubrowSheet().TryGetRow(rowId, out var row)) - rowId = (uint)row[0].Unknown2; + if (this.dataManager.Excel.GetSubrowSheet().TryGetSubrow(rowId, 0, out var row)) + rowId = row.ListName.RowId; break; } } diff --git a/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs b/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs index 57040701c..9e2466df4 100644 --- a/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs +++ b/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs @@ -40,8 +40,6 @@ using StatusSheet = Lumina.Excel.Sheets.Status; namespace Dalamud.Game.Text.Evaluator; -#pragma warning disable SeStringEvaluator - /// /// Evaluator for SeStrings. /// @@ -317,6 +315,9 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator case MacroCode.Sheet: return this.TryResolveSheet(in context, payload); + case MacroCode.SheetSub: + return this.TryResolveSheetSub(in context, payload); + case MacroCode.String: return this.TryResolveString(in context, payload); @@ -759,6 +760,65 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator return true; } + private bool TryResolveSheetSub(in SeStringContext context, in ReadOnlySePayloadSpan payload) + { + var enu = payload.GetEnumerator(); + + if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSheetNameStr)) + return false; + + if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eRowIdValue)) + return false; + + if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eSubrowIdValue)) + return false; + + if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eColIndexValue)) + return false; + + var secondaryRowId = this.GetSubrowSheetIntValue(context.Language, eSheetNameStr.ExtractText(), eRowIdValue, (ushort)eSubrowIdValue, eColIndexValue); + if (secondaryRowId == -1) + return false; + + if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSecondarySheetNameStr)) + return false; + + if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var secondaryColIndex)) + return false; + + var text = this.FormatSheetValue(context.Language, eSecondarySheetNameStr.ExtractText(), (uint)secondaryRowId, secondaryColIndex, 0); + if (text.IsEmpty) + return false; + + this.CreateSheetLink(context, eSecondarySheetNameStr.ExtractText(), text, eRowIdValue, eSubrowIdValue); + + return true; + } + + private int GetSubrowSheetIntValue(ClientLanguage language, string sheetName, uint rowId, ushort subrowId, uint colIndex) + { + if (!this.dataManager.Excel.SheetNames.Contains(sheetName)) + return -1; + + if (!this.dataManager.GetSubrowExcelSheet(language, sheetName) + .TryGetSubrow(rowId, subrowId, out var row)) + return -1; + + if (colIndex >= row.Columns.Count) + return -1; + + var column = row.Columns[(int)colIndex]; + return column.Type switch + { + ExcelColumnDataType.Int8 => row.ReadInt8(column.Offset), + ExcelColumnDataType.UInt8 => row.ReadUInt8(column.Offset), + ExcelColumnDataType.Int16 => row.ReadInt16(column.Offset), + ExcelColumnDataType.UInt16 => row.ReadUInt16(column.Offset), + ExcelColumnDataType.Int32 => row.ReadInt32(column.Offset), + _ => -1, + }; + } + private ReadOnlySeString FormatSheetValue(ClientLanguage language, string sheetName, uint rowId, uint colIndex, uint colParam) { if (!this.dataManager.Excel.SheetNames.Contains(sheetName)) diff --git a/Dalamud/Game/Text/Evaluator/SeStringParameter.cs b/Dalamud/Game/Text/Evaluator/SeStringParameter.cs index c1f238f56..7201179ea 100644 --- a/Dalamud/Game/Text/Evaluator/SeStringParameter.cs +++ b/Dalamud/Game/Text/Evaluator/SeStringParameter.cs @@ -71,6 +71,7 @@ public readonly struct SeStringParameter public static implicit operator SeStringParameter(ReadOnlySeStringSpan value) => new(new ReadOnlySeString(value)); + [Obsolete("Switch to using ReadOnlySeString instead of Lumina's SeString.", true)] public static implicit operator SeStringParameter(LSeString value) => new(new ReadOnlySeString(value.RawData)); public static implicit operator SeStringParameter(DSeString value) => new(new ReadOnlySeString(value.Encode())); diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs index 25cdf7f9f..0c1f75a1d 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs @@ -72,33 +72,6 @@ public class ItemPayload : Payload { } - /// - /// Kinds of items that can be fetched from this payload. - /// - [Api13ToDo("Move this out of ItemPayload. It's used in other classes too.")] - public enum ItemKind : uint - { - /// - /// Normal items. - /// - Normal, - - /// - /// Collectible Items. - /// - Collectible = 500_000, - - /// - /// High-Quality items. - /// - Hq = 1_000_000, - - /// - /// Event/Key items. - /// - EventItem = 2_000_000, - } - /// public override PayloadType Type => PayloadType.Item; diff --git a/Dalamud/Game/Text/SeStringHandling/SeString.cs b/Dalamud/Game/Text/SeStringHandling/SeString.cs index b7618305a..8805c2177 100644 --- a/Dalamud/Game/Text/SeStringHandling/SeString.cs +++ b/Dalamud/Game/Text/SeStringHandling/SeString.cs @@ -118,6 +118,7 @@ public class SeString ///
/// string to convert. /// Equivalent SeString. + [Obsolete("Switch to using ReadOnlySeString instead of Lumina's SeString.", true)] public static explicit operator SeString(Lumina.Text.SeString str) => str.ToDalamudString(); /// @@ -181,7 +182,7 @@ public class SeString /// An optional name override to display, instead of the actual item name. /// An SeString containing all the payloads necessary to display an item link in the chat log. public static SeString CreateItemLink(uint itemId, bool isHq, string? displayNameOverride = null) => - CreateItemLink(itemId, isHq ? ItemPayload.ItemKind.Hq : ItemPayload.ItemKind.Normal, displayNameOverride); + CreateItemLink(itemId, isHq ? ItemKind.Hq : ItemKind.Normal, displayNameOverride); /// /// Creates an SeString representing an entire Payload chain that can be used to link an item in the chat log. @@ -190,7 +191,7 @@ public class SeString /// The kind of item to link. /// An optional name override to display, instead of the actual item name. /// An SeString containing all the payloads necessary to display an item link in the chat log. - public static SeString CreateItemLink(uint itemId, ItemPayload.ItemKind kind = ItemPayload.ItemKind.Normal, string? displayNameOverride = null) + public static SeString CreateItemLink(uint itemId, ItemKind kind = ItemKind.Normal, string? displayNameOverride = null) { var clientState = Service.Get(); var seStringEvaluator = Service.Get(); diff --git a/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs b/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs index d5080e6e8..ae673e516 100644 --- a/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs +++ b/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using Dalamud.Game.Text.SeStringHandling.Payloads; +using Dalamud.Utility; namespace Dalamud.Game.Text.SeStringHandling; @@ -126,7 +127,7 @@ public class SeStringBuilder /// Kind of item to encode. /// Override for the item's name. /// The current builder. - public SeStringBuilder AddItemLink(uint itemId, ItemPayload.ItemKind kind = ItemPayload.ItemKind.Normal, string? itemNameOverride = null) => + public SeStringBuilder AddItemLink(uint itemId, ItemKind kind = ItemKind.Normal, string? itemNameOverride = null) => this.Append(SeString.CreateItemLink(itemId, kind, itemNameOverride)); /// diff --git a/Dalamud/Hooking/Hook.cs b/Dalamud/Hooking/Hook.cs index 972a2730d..faf4658a5 100644 --- a/Dalamud/Hooking/Hook.cs +++ b/Dalamud/Hooking/Hook.cs @@ -201,11 +201,11 @@ public abstract class Hook : IDalamudHook where T : Delegate if (EnvironmentConfiguration.DalamudForceMinHook) useMinHook = true; - var moduleHandle = NativeFunctions.GetModuleHandleW(moduleName); - if (moduleHandle == IntPtr.Zero) + using var moduleHandle = Windows.Win32.PInvoke.GetModuleHandle(moduleName); + if (moduleHandle.IsInvalid) throw new Exception($"Could not get a handle to module {moduleName}"); - var procAddress = NativeFunctions.GetProcAddress(moduleHandle, exportName); + var procAddress = (nint)Windows.Win32.PInvoke.GetProcAddress(moduleHandle, exportName); if (procAddress == IntPtr.Zero) throw new Exception($"Could not get the address of {moduleName}::{exportName}"); diff --git a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs index 5f27d9a37..8a53e664a 100644 --- a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs +++ b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; -using System.ComponentModel; using System.Reflection; using System.Runtime.InteropServices; -using Dalamud.Memory; using JetBrains.Annotations; +using Windows.Win32.System.Memory; + +using Win32Exception = System.ComponentModel.Win32Exception; namespace Dalamud.Hooking.Internal; @@ -12,7 +13,7 @@ namespace Dalamud.Hooking.Internal; /// Manages a hook with MinHook. /// /// Delegate type to represents a function prototype. This must be the same prototype as original function do. -internal class FunctionPointerVariableHook : Hook +internal unsafe class FunctionPointerVariableHook : Hook where T : Delegate { private readonly nint pfnDetour; @@ -55,11 +56,11 @@ internal class FunctionPointerVariableHook : Hook // Note: WINE seemingly tries to clean up all heap allocations on process exit. // We want our allocation to be kept there forever, until no running thread remains. // Therefore we're using VirtualAlloc instead of HeapCreate/HeapAlloc. - var pfnThunkBytes = (byte*)NativeFunctions.VirtualAlloc( - 0, + var pfnThunkBytes = (byte*)Windows.Win32.PInvoke.VirtualAlloc( + null, 12, - NativeFunctions.AllocationType.Reserve | NativeFunctions.AllocationType.Commit, - MemoryProtection.ExecuteReadWrite); + VIRTUAL_ALLOCATION_TYPE.MEM_RESERVE | VIRTUAL_ALLOCATION_TYPE.MEM_COMMIT, + PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE); if (pfnThunkBytes == null) { throw new OutOfMemoryException("Failed to allocate memory for import hooks."); @@ -78,10 +79,10 @@ internal class FunctionPointerVariableHook : Hook this.ppfnThunkJumpTarget = this.pfnThunk + 2; - if (!NativeFunctions.VirtualProtect( - this.Address, + if (!Windows.Win32.PInvoke.VirtualProtect( + this.Address.ToPointer(), (UIntPtr)Marshal.SizeOf(), - MemoryProtection.ExecuteReadWrite, + PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE, out var oldProtect)) { throw new Win32Exception(Marshal.GetLastWin32Error()); @@ -93,7 +94,7 @@ internal class FunctionPointerVariableHook : Hook Marshal.WriteIntPtr(this.Address, this.pfnThunk); // This really should not fail, but then even if it does, whatever. - NativeFunctions.VirtualProtect(this.Address, (UIntPtr)Marshal.SizeOf(), oldProtect, out _); + Windows.Win32.PInvoke.VirtualProtect(this.Address.ToPointer(), (UIntPtr)Marshal.SizeOf(), oldProtect, out _); // Add afterwards, so the hookIdent starts at 0. indexList.Add(this); diff --git a/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs b/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs index e2f68eab2..e2f9d9970 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs @@ -1,10 +1,9 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// diff --git a/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs b/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs index ab2ed4724..a8c3c03a3 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs @@ -1,9 +1,8 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// diff --git a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs index 3392136d1..57a4bd150 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs @@ -1,9 +1,7 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Common.Math; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// @@ -45,7 +43,7 @@ public static partial class ImGuiComponents { using (ImRaii.TextWrapPos(ImGui.GetFontSize() * 35.0f)) { - ImGui.TextUnformatted(helpText); + ImGui.Text(helpText); } } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs index 3e61e16bb..03befd11f 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs @@ -1,10 +1,9 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs index 99050473f..1dc454c9a 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs @@ -2,10 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// diff --git a/Dalamud/Interface/Components/ImGuiComponents.Test.cs b/Dalamud/Interface/Components/ImGuiComponents.Test.cs index ddc083cd8..4937b57c0 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.Test.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.Test.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Components; @@ -12,6 +12,6 @@ public static partial class ImGuiComponents /// public static void Test() { - ImGui.Text("You are viewing the test component. The test was a success."); + ImGui.Text("You are viewing the test component. The test was a success."u8); } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs b/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs index 43b54fc93..84d38799c 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Components; /// @@ -30,7 +29,7 @@ public static partial class ImGuiComponents { using (ImRaii.Tooltip()) { - ImGui.TextUnformatted(hint); + ImGui.Text(hint); } } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs b/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs index 6d6e0f6c3..b114eafd7 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs @@ -1,6 +1,6 @@ using System.Numerics; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Components; diff --git a/Dalamud/Interface/DragDrop/DragDropManager.cs b/Dalamud/Interface/DragDrop/DragDropManager.cs index c9f0f9b80..4375ddea9 100644 --- a/Dalamud/Interface/DragDrop/DragDropManager.cs +++ b/Dalamud/Interface/DragDrop/DragDropManager.cs @@ -1,11 +1,10 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.IoC; using Dalamud.IoC.Internal; - -using ImGuiNET; using Serilog; namespace Dalamud.Interface.DragDrop; @@ -32,7 +31,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa Service.GetAsync() .ContinueWith(t => { - this.windowHandlePtr = t.Result.Manager.WindowHandlePtr; + this.windowHandlePtr = t.Result.Manager.GameWindowHandle; this.Enable(); }); } @@ -103,7 +102,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa } /// - public void CreateImGuiSource(string label, Func validityCheck, Func tooltipBuilder) + public unsafe void CreateImGuiSource(string label, Func validityCheck, Func tooltipBuilder) { if (!this.IsDragging && !this.IsDropping()) { @@ -115,7 +114,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa return; } - ImGui.SetDragDropPayload(label, nint.Zero, 0); + ImGui.SetDragDropPayload(label, null, 0); if (this.CheckTooltipFrame(out var frame) && tooltipBuilder(this)) { this.lastTooltipFrame = frame; @@ -136,7 +135,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa unsafe { - if (ImGui.AcceptDragDropPayload(label, ImGuiDragDropFlags.AcceptBeforeDelivery).NativePtr != null && this.IsDropping()) + if (ImGui.AcceptDragDropPayload(label, ImGuiDragDropFlags.AcceptBeforeDelivery).Handle != null && this.IsDropping()) { this.lastDropFrame = -2; files = this.Files; diff --git a/Dalamud/Interface/DragDrop/DragDropTarget.cs b/Dalamud/Interface/DragDrop/DragDropTarget.cs index 8115e7353..c6b66e7e8 100644 --- a/Dalamud/Interface/DragDrop/DragDropTarget.cs +++ b/Dalamud/Interface/DragDrop/DragDropTarget.cs @@ -4,8 +4,8 @@ using System.Linq; using System.Runtime.InteropServices.ComTypes; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Utility; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.DragDrop; diff --git a/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs index a6d40e4b7..c531dced5 100644 --- a/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs @@ -1,12 +1,9 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Storage.Assets; - -using ImGuiNET; - using Newtonsoft.Json; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.FontIdentifier; diff --git a/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs index 7c6a69622..c45cf256b 100644 --- a/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs @@ -1,11 +1,8 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; - -using ImGuiNET; - using Newtonsoft.Json; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.FontIdentifier; diff --git a/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs index dd4ba0d66..e294c8813 100644 --- a/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs @@ -1,12 +1,9 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas; - -using ImGuiNET; - using Newtonsoft.Json; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.FontIdentifier; diff --git a/Dalamud/Interface/FontIdentifier/IFontId.cs b/Dalamud/Interface/FontIdentifier/IFontId.cs index 4c611edf8..7b457a95b 100644 --- a/Dalamud/Interface/FontIdentifier/IFontId.cs +++ b/Dalamud/Interface/FontIdentifier/IFontId.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; -using ImGuiNET; - namespace Dalamud.Interface.FontIdentifier; /// diff --git a/Dalamud/Interface/FontIdentifier/IFontSpec.cs b/Dalamud/Interface/FontIdentifier/IFontSpec.cs index 4d0719d4e..c597ed4dd 100644 --- a/Dalamud/Interface/FontIdentifier/IFontSpec.cs +++ b/Dalamud/Interface/FontIdentifier/IFontSpec.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; -using ImGuiNET; - namespace Dalamud.Interface.FontIdentifier; /// diff --git a/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs b/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs index 946215b85..070b1c1e1 100644 --- a/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs +++ b/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs @@ -3,11 +3,9 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.Utility; - -using ImGuiNET; - using Newtonsoft.Json; namespace Dalamud.Interface.FontIdentifier; diff --git a/Dalamud/Interface/FontIdentifier/SystemFontId.cs b/Dalamud/Interface/FontIdentifier/SystemFontId.cs index 0a350fc3a..e11759a88 100644 --- a/Dalamud/Interface/FontIdentifier/SystemFontId.cs +++ b/Dalamud/Interface/FontIdentifier/SystemFontId.cs @@ -2,13 +2,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Utility; - -using ImGuiNET; - using Newtonsoft.Json; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -38,7 +35,7 @@ public sealed class SystemFontId : IFontId this.EnglishName = name; else if (this.LocaleNames.TryGetValue("en", out name)) this.EnglishName = name; - else + else this.EnglishName = this.LocaleNames.Values.First(); } diff --git a/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs b/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs index 6b602d911..5b0fe100b 100644 --- a/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs +++ b/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Numerics; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.GameFonts; diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs new file mode 100644 index 000000000..6ebab55c6 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs @@ -0,0 +1,4 @@ +namespace Dalamud.Interface.ImGuiBackend.Delegates; + +/// Delegate to be called when ImGui should be used to layout now. +public delegate void ImGuiBuildUiDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs new file mode 100644 index 000000000..7397d8d7f --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs @@ -0,0 +1,4 @@ +namespace Dalamud.Interface.ImGuiBackend.Delegates; + +/// Delegate to be called on new input frame. +public delegate void ImGuiNewInputFrameDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs new file mode 100644 index 000000000..4a4b38b71 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs @@ -0,0 +1,4 @@ +namespace Dalamud.Interface.ImGuiBackend.Delegates; + +/// Delegate to be called on new render frame. +public delegate void ImGuiNewRenderFrameDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs b/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs new file mode 100644 index 000000000..ea609828d --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs @@ -0,0 +1,253 @@ +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +using Dalamud.Bindings.ImGui; +using Dalamud.Bindings.ImGuizmo; +using Dalamud.Bindings.ImPlot; +using Dalamud.Interface.ImGuiBackend.Delegates; +using Dalamud.Interface.ImGuiBackend.Helpers; +using Dalamud.Interface.ImGuiBackend.InputHandler; +using Dalamud.Interface.ImGuiBackend.Renderers; +using Dalamud.Utility; + +using Serilog; + +using TerraFX.Interop.DirectX; +using TerraFX.Interop.Windows; + +namespace Dalamud.Interface.ImGuiBackend; + +/// +/// Backend for ImGui, using and . +/// +[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed/using scopes")] +internal sealed unsafe class Dx11Win32Backend : IWin32Backend +{ + private readonly Dx11Renderer imguiRenderer; + private readonly Win32InputHandler imguiInput; + + private ComPtr swapChainPossiblyWrapped; + private ComPtr swapChain; + private ComPtr device; + private ComPtr deviceContext; + + private int targetWidth; + private int targetHeight; + + /// + /// Initializes a new instance of the class. + /// + /// The pointer to an instance of . The reference is copied. + public Dx11Win32Backend(IDXGISwapChain* swapChain) + { + try + { + this.swapChainPossiblyWrapped = new(swapChain); + this.swapChain = new(swapChain); + fixed (ComPtr* ppSwapChain = &this.swapChain) + ReShadePeeler.PeelSwapChain(ppSwapChain); + + fixed (Guid* guid = &IID.IID_ID3D11Device) + fixed (ID3D11Device** pp = &this.device.GetPinnableReference()) + this.swapChain.Get()->GetDevice(guid, (void**)pp).ThrowOnError(); + + fixed (ID3D11DeviceContext** pp = &this.deviceContext.GetPinnableReference()) + this.device.Get()->GetImmediateContext(pp); + + using var buffer = default(ComPtr); + fixed (Guid* guid = &IID.IID_ID3D11Resource) + this.swapChain.Get()->GetBuffer(0, guid, (void**)buffer.GetAddressOf()).ThrowOnError(); + + var desc = default(DXGI_SWAP_CHAIN_DESC); + this.swapChain.Get()->GetDesc(&desc).ThrowOnError(); + this.targetWidth = (int)desc.BufferDesc.Width; + this.targetHeight = (int)desc.BufferDesc.Height; + this.WindowHandle = desc.OutputWindow; + + var ctx = ImGui.CreateContext(); + ImGuizmo.SetImGuiContext(ctx); + ImPlot.SetImGuiContext(ctx); + ImPlot.CreateContext(); + + ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.DockingEnable | ImGuiConfigFlags.ViewportsEnable; + + this.imguiRenderer = new(this.SwapChain, this.Device, this.DeviceContext); + this.imguiInput = new(this.WindowHandle); + } + catch + { + this.Dispose(); + throw; + } + } + + /// + /// Finalizes an instance of the class. + /// + ~Dx11Win32Backend() => this.ReleaseUnmanagedResources(); + + /// + public event ImGuiBuildUiDelegate? BuildUi; + + /// + public event ImGuiNewInputFrameDelegate? NewInputFrame; + + /// + public event ImGuiNewRenderFrameDelegate? NewRenderFrame; + + /// + public bool UpdateCursor + { + get => this.imguiInput.UpdateCursor; + set => this.imguiInput.UpdateCursor = value; + } + + /// + public string? IniPath + { + get => this.imguiInput.IniPath; + set => this.imguiInput.IniPath = value; + } + + /// + public IImGuiInputHandler InputHandler => this.imguiInput; + + /// + public IImGuiRenderer Renderer => this.imguiRenderer; + + /// + /// Gets the pointer to an instance of . + /// + public IDXGISwapChain* SwapChain => this.swapChain; + + /// + /// Gets the pointer to an instance of . + /// + public ID3D11Device* Device => this.device; + + /// + /// Gets the pointer to an instance of , in . + /// + public nint DeviceHandle => (nint)this.device.Get(); + + /// + /// Gets the pointer to an instance of . + /// + public ID3D11DeviceContext* DeviceContext => this.deviceContext; + + /// + /// Gets the window handle. + /// + public HWND WindowHandle { get; } + + /// + public void Dispose() + { + this.ReleaseUnmanagedResources(); + GC.SuppressFinalize(this); + } + + /// + public nint? ProcessWndProcW(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam) => + this.imguiInput.ProcessWndProcW(hWnd, msg, wParam, lParam); + + /// + public void Render() + { + this.imguiRenderer.OnNewFrame(); + this.NewRenderFrame?.Invoke(); + this.imguiInput.NewFrame(this.targetWidth, this.targetHeight); + this.NewInputFrame?.Invoke(); + + ImGui.NewFrame(); + ImGuizmo.BeginFrame(); + + this.BuildUi?.Invoke(); + + ImGui.Render(); + + this.imguiRenderer.RenderDrawData(ImGui.GetDrawData()); + + ImGui.UpdatePlatformWindows(); + ImGui.RenderPlatformWindowsDefault(); + } + + /// + public void OnPreResize() => this.imguiRenderer.OnPreResize(); + + /// + public void OnPostResize(int newWidth, int newHeight) + { + this.imguiRenderer.OnPostResize(newWidth, newHeight); + this.targetWidth = newWidth; + this.targetHeight = newHeight; + } + + /// + public void InvalidateFonts() => this.imguiRenderer.RebuildFontTexture(); + + /// + public bool IsImGuiCursor(nint cursorHandle) => this.imguiInput.IsImGuiCursor(cursorHandle); + + /// + public bool IsAttachedToPresentationTarget(nint targetHandle) => + AreIUnknownEqual(this.swapChain.Get(), (IUnknown*)targetHandle) + || AreIUnknownEqual(this.swapChainPossiblyWrapped.Get(), (IUnknown*)targetHandle); + + /// + public bool IsMainViewportFullScreen() + { + BOOL fullscreen; + this.swapChain.Get()->GetFullscreenState(&fullscreen, null); + return fullscreen; + } + + private static bool AreIUnknownEqual(T1* punk1, T2* punk2) + where T1 : unmanaged, IUnknown.Interface + where T2 : unmanaged, IUnknown.Interface + { + // https://learn.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-queryinterface(refiid_void) + // For any given COM object (also known as a COM component), a specific query for the IUnknown interface on any + // of the object's interfaces must always return the same pointer value. + + if (punk1 is null || punk2 is null) + return false; + + fixed (Guid* iid = &IID.IID_IUnknown) + { + using var u1 = default(ComPtr); + if (punk1->QueryInterface(iid, (void**)u1.GetAddressOf()).FAILED) + return false; + + using var u2 = default(ComPtr); + if (punk2->QueryInterface(iid, (void**)u2.GetAddressOf()).FAILED) + return false; + + return u1.Get() == u2.Get(); + } + } + + private void ReleaseUnmanagedResources() + { + if (this.device.IsEmpty()) + return; + + this.imguiRenderer?.Dispose(); + this.imguiInput?.Dispose(); + + ImPlot.DestroyContext(); + ImGui.DestroyContext(); + + this.swapChain.Dispose(); + this.deviceContext.Dispose(); + this.device.Dispose(); + this.swapChainPossiblyWrapped.Dispose(); + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs new file mode 100644 index 000000000..df1087ce3 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs @@ -0,0 +1,655 @@ +using System.Runtime.InteropServices; + +using TerraFX.Interop.DirectX; +using TerraFX.Interop.Windows; + +namespace Dalamud.Interface.ImGuiBackend.Helpers.D3D11; + +/// +/// Captures states of a . +/// +internal unsafe struct D3D11DeviceContextStateBackup : IDisposable +{ + private InputAssemblerState inputAssemblerState; + private RasterizerState rasterizerState; + private OutputMergerState outputMergerState; + private VertexShaderState vertexShaderState; + private HullShaderState hullShaderState; + private DomainShaderState domainShaderState; + private GeometryShaderState geometryShaderState; + private PixelShaderState pixelShaderState; + private ComputeShaderState computeShaderState; + + /// + /// Initializes a new instance of the struct, + /// by capturing all states of a . + /// + /// The feature level. + /// The device context. + public D3D11DeviceContextStateBackup(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) + { + this.inputAssemblerState = InputAssemblerState.From(ctx); + this.rasterizerState = RasterizerState.From(ctx); + this.outputMergerState = OutputMergerState.From(featureLevel, ctx); + this.vertexShaderState = VertexShaderState.From(ctx); + this.hullShaderState = HullShaderState.From(ctx); + this.domainShaderState = DomainShaderState.From(ctx); + this.geometryShaderState = GeometryShaderState.From(ctx); + this.pixelShaderState = PixelShaderState.From(ctx); + this.computeShaderState = ComputeShaderState.From(featureLevel, ctx); + } + + /// + public void Dispose() + { + this.inputAssemblerState.Dispose(); + this.rasterizerState.Dispose(); + this.outputMergerState.Dispose(); + this.vertexShaderState.Dispose(); + this.hullShaderState.Dispose(); + this.domainShaderState.Dispose(); + this.geometryShaderState.Dispose(); + this.pixelShaderState.Dispose(); + this.computeShaderState.Dispose(); + } + + /// + /// Captures Input Assembler states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct InputAssemblerState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; + + private ComPtr context; + private ComPtr layout; + private ComPtr indexBuffer; + private DXGI_FORMAT indexFormat; + private uint indexOffset; + private D3D_PRIMITIVE_TOPOLOGY topology; + private fixed ulong buffers[BufferCount]; + private fixed uint strides[BufferCount]; + private fixed uint offsets[BufferCount]; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static InputAssemblerState From(ID3D11DeviceContext* ctx) + { + var state = default(InputAssemblerState); + state.context.Attach(ctx); + ctx->AddRef(); + ctx->IAGetInputLayout(state.layout.GetAddressOf()); + ctx->IAGetPrimitiveTopology(&state.topology); + ctx->IAGetIndexBuffer(state.indexBuffer.GetAddressOf(), &state.indexFormat, &state.indexOffset); + ctx->IAGetVertexBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers, state.strides, state.offsets); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (InputAssemblerState* pThis = &this) + { + ctx->IASetInputLayout(pThis->layout); + ctx->IASetPrimitiveTopology(pThis->topology); + ctx->IASetIndexBuffer(pThis->indexBuffer, pThis->indexFormat, pThis->indexOffset); + ctx->IASetVertexBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers, pThis->strides, pThis->offsets); + + pThis->context.Dispose(); + pThis->layout.Dispose(); + pThis->indexBuffer.Dispose(); + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + } + } + } + + /// + /// Captures Rasterizer states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct RasterizerState : IDisposable + { + private const int Count = TerraFX.Interop.DirectX.D3D11.D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX; + + private ComPtr context; + private ComPtr state; + private fixed byte viewports[24 * Count]; + private fixed ulong scissorRects[16 * Count]; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static RasterizerState From(ID3D11DeviceContext* ctx) + { + var state = default(RasterizerState); + state.context.Attach(ctx); + ctx->AddRef(); + ctx->RSGetState(state.state.GetAddressOf()); + uint n = Count; + ctx->RSGetViewports(&n, (D3D11_VIEWPORT*)state.viewports); + n = Count; + ctx->RSGetScissorRects(&n, (RECT*)state.scissorRects); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (RasterizerState* pThis = &this) + { + ctx->RSSetState(pThis->state); + ctx->RSSetViewports(Count, (D3D11_VIEWPORT*)pThis->viewports); + ctx->RSSetScissorRects(Count, (RECT*)pThis->scissorRects); + + pThis->context.Dispose(); + pThis->state.Dispose(); + } + } + } + + /// + /// Captures Output Merger states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct OutputMergerState : IDisposable + { + private const int RtvCount = TerraFX.Interop.DirectX.D3D11.D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; + private const int UavCountMax = TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT; + + private ComPtr context; + private ComPtr blendState; + private fixed float blendFactor[4]; + private uint sampleMask; + private uint stencilRef; + private ComPtr depthStencilState; + private fixed ulong rtvs[RtvCount]; // ID3D11RenderTargetView*[RtvCount] + private ComPtr dsv; + private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCount] + private int uavCount; + + /// + /// Creates a new instance of from . + /// + /// The feature level. + /// The device context. + /// The captured state. + public static OutputMergerState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) + { + var state = default(OutputMergerState); + state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 + ? TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT + : TerraFX.Interop.DirectX.D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; + state.context.Attach(ctx); + ctx->AddRef(); + ctx->OMGetBlendState(state.blendState.GetAddressOf(), state.blendFactor, &state.sampleMask); + ctx->OMGetDepthStencilState(state.depthStencilState.GetAddressOf(), &state.stencilRef); + ctx->OMGetRenderTargetsAndUnorderedAccessViews( + RtvCount, + (ID3D11RenderTargetView**)state.rtvs, + state.dsv.GetAddressOf(), + 0, + (uint)state.uavCount, + (ID3D11UnorderedAccessView**)state.uavs); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (OutputMergerState* pThis = &this) + { + ctx->OMSetBlendState(pThis->blendState, pThis->blendFactor, pThis->sampleMask); + ctx->OMSetDepthStencilState(pThis->depthStencilState, pThis->stencilRef); + var rtvc = (uint)RtvCount; + while (rtvc > 0 && pThis->rtvs[rtvc - 1] == 0) + rtvc--; + + var uavlb = rtvc; + while (uavlb < this.uavCount && pThis->uavs[uavlb] == 0) + uavlb++; + + var uavc = (uint)this.uavCount; + while (uavc > uavlb && pThis->uavs[uavc - 1] == 0) + uavlb--; + uavc -= uavlb; + + ctx->OMSetRenderTargetsAndUnorderedAccessViews( + rtvc, + (ID3D11RenderTargetView**)pThis->rtvs, + pThis->dsv, + uavc == 0 ? 0 : uavlb, + uavc, + uavc == 0 ? null : (ID3D11UnorderedAccessView**)pThis->uavs, + null); + + this.context.Reset(); + this.blendState.Reset(); + this.depthStencilState.Reset(); + this.dsv.Reset(); + foreach (ref var b in new Span>(pThis->rtvs, RtvCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->uavs, this.uavCount)) + b.Dispose(); + } + } + } + + /// + /// Captures Vertex Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct VertexShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int ClassInstanceCount = 256; // According to msdn + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[ClassInstanceCount]; + private fixed ulong buffers[BufferCount]; + private fixed ulong samplers[SamplerCount]; + private fixed ulong resources[ResourceCount]; + private uint instCount; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static VertexShaderState From(ID3D11DeviceContext* ctx) + { + var state = default(VertexShaderState); + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = ClassInstanceCount; + ctx->VSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->VSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->VSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->VSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (VertexShaderState* pThis = &this) + { + ctx->VSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->VSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->VSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->VSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } + + /// + /// Captures Hull Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct HullShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int ClassInstanceCount = 256; // According to msdn + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[ClassInstanceCount]; + private fixed ulong buffers[BufferCount]; + private fixed ulong samplers[SamplerCount]; + private fixed ulong resources[ResourceCount]; + private uint instCount; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static HullShaderState From(ID3D11DeviceContext* ctx) + { + var state = default(HullShaderState); + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = ClassInstanceCount; + ctx->HSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->HSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->HSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->HSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (HullShaderState* pThis = &this) + { + ctx->HSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->HSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->HSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->HSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } + + /// + /// Captures Domain Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct DomainShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int ClassInstanceCount = 256; // According to msdn + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[ClassInstanceCount]; + private fixed ulong buffers[BufferCount]; + private fixed ulong samplers[SamplerCount]; + private fixed ulong resources[ResourceCount]; + private uint instCount; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static DomainShaderState From(ID3D11DeviceContext* ctx) + { + var state = default(DomainShaderState); + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = ClassInstanceCount; + ctx->DSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->DSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->DSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->DSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (DomainShaderState* pThis = &this) + { + ctx->DSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->DSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->DSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->DSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } + + /// + /// Captures Geometry Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct GeometryShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int ClassInstanceCount = 256; // According to msdn + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[ClassInstanceCount]; + private fixed ulong buffers[BufferCount]; + private fixed ulong samplers[SamplerCount]; + private fixed ulong resources[ResourceCount]; + private uint instCount; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static GeometryShaderState From(ID3D11DeviceContext* ctx) + { + var state = default(GeometryShaderState); + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = ClassInstanceCount; + ctx->GSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->GSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->GSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->GSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (GeometryShaderState* pThis = &this) + { + ctx->GSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->GSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->GSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->GSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } + + /// + /// Captures Pixel Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct PixelShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int ClassInstanceCount = 256; // According to msdn + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[ClassInstanceCount]; + private fixed ulong buffers[BufferCount]; + private fixed ulong samplers[SamplerCount]; + private fixed ulong resources[ResourceCount]; + private uint instCount; + + /// + /// Creates a new instance of from . + /// + /// The device context. + /// The captured state. + public static PixelShaderState From(ID3D11DeviceContext* ctx) + { + var state = default(PixelShaderState); + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = ClassInstanceCount; + ctx->PSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->PSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->PSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->PSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (PixelShaderState* pThis = &this) + { + ctx->PSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->PSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->PSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->PSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } + + /// + /// Captures Compute Shader states of a . + /// + [StructLayout(LayoutKind.Sequential)] + public struct ComputeShaderState : IDisposable + { + private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; + private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; + private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; + private const int InstanceCount = 256; // According to msdn + private const int UavCountMax = TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT; + + private ComPtr context; + private ComPtr shader; + private fixed ulong insts[InstanceCount]; // ID3D11ClassInstance*[BufferCount] + private fixed ulong buffers[BufferCount]; // ID3D11Buffer*[BufferCount] + private fixed ulong samplers[SamplerCount]; // ID3D11SamplerState*[SamplerCount] + private fixed ulong resources[ResourceCount]; // ID3D11ShaderResourceView*[ResourceCount] + private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCountMax] + private uint instCount; + private int uavCount; + + /// + /// Creates a new instance of from . + /// + /// The feature level. + /// The device context. + /// The captured state. + public static ComputeShaderState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) + { + var state = default(ComputeShaderState); + state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 + ? TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT + : TerraFX.Interop.DirectX.D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; + state.context.Attach(ctx); + ctx->AddRef(); + state.instCount = InstanceCount; + ctx->CSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); + ctx->CSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); + ctx->CSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); + ctx->CSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); + ctx->CSGetUnorderedAccessViews(0, (uint)state.uavCount, (ID3D11UnorderedAccessView**)state.uavs); + return state; + } + + /// + public void Dispose() + { + var ctx = this.context.Get(); + if (ctx is null) + return; + + fixed (ComputeShaderState* pThis = &this) + { + ctx->CSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); + ctx->CSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); + ctx->CSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); + ctx->CSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); + ctx->CSSetUnorderedAccessViews(0, (uint)this.uavCount, (ID3D11UnorderedAccessView**)pThis->uavs, null); + + foreach (ref var b in new Span>(pThis->buffers, BufferCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->samplers, SamplerCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->resources, ResourceCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->insts, (int)pThis->instCount)) + b.Dispose(); + foreach (ref var b in new Span>(pThis->uavs, this.uavCount)) + b.Dispose(); + pThis->context.Dispose(); + pThis->shader.Dispose(); + } + } + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs new file mode 100644 index 000000000..4d81cb5fc --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs @@ -0,0 +1,26 @@ +using System.Text; + +using Dalamud.Utility; + +using TerraFX.Interop.DirectX; + +namespace Dalamud.Interface.ImGuiBackend.Helpers.D3D11; + +/// Utility extension methods for D3D11 objects. +internal static class Extensions +{ + /// Sets the name for debugging. + /// D3D11 object. + /// Debug name. + /// Object type. + public static unsafe void SetDebugName(ref this T child, string name) + where T : unmanaged, ID3D11DeviceChild.Interface + { + var len = Encoding.UTF8.GetByteCount(name); + var buf = stackalloc byte[len + 1]; + Encoding.UTF8.GetBytes(name, new(buf, len + 1)); + buf[len] = 0; + fixed (Guid* pId = &DirectX.WKPDID_D3DDebugObjectName) + child.SetPrivateData(pId, (uint)(len + 1), buf).ThrowOnError(); + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs b/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs new file mode 100644 index 000000000..bbcaa618e --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs @@ -0,0 +1,165 @@ +using System.Diagnostics; +using System.Linq; +using System.Numerics; +using System.Runtime.InteropServices; + +using Dalamud.Bindings.ImGui; + +using TerraFX.Interop.Windows; + +using static TerraFX.Interop.Windows.Windows; + +namespace Dalamud.Interface.ImGuiBackend.Helpers; + +/// +/// Helpers for using ImGui Viewports. +/// +internal static class ImGuiViewportHelpers +{ + /// + /// Delegate to be called when a window should be created. + /// + /// An instance of . + public delegate void CreateWindowDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when a window should be destroyed. + /// + /// An instance of . + public delegate void DestroyWindowDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when a window should be resized. + /// + /// An instance of . + /// Size of the new window. + public delegate void SetWindowSizeDelegate(ImGuiViewportPtr viewport, Vector2 size); + + /// + /// Delegate to be called when a window should be rendered. + /// + /// An instance of . + /// Custom user-provided argument from . + public delegate void RenderWindowDelegate(ImGuiViewportPtr viewport, nint v); + + /// + /// Delegate to be called when buffers for the window should be swapped. + /// + /// An instance of . + /// Custom user-provided argument from . + public delegate void SwapBuffersDelegate(ImGuiViewportPtr viewport, nint v); + + /// + /// Delegate to be called when the window should be showed. + /// + /// An instance of . + public delegate void ShowWindowDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window should be updated. + /// + /// An instance of . + public delegate void UpdateWindowDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window position is queried. + /// + /// The return value storage. + /// An instance of . + /// Same value with . + public unsafe delegate Vector2* GetWindowPosDelegate(Vector2* returnStorage, ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window should be moved. + /// + /// An instance of . + /// The new position. + public delegate void SetWindowPosDelegate(ImGuiViewportPtr viewport, Vector2 pos); + + /// + /// Delegate to be called when the window size is queried. + /// + /// The return value storage. + /// An instance of . + /// Same value with . + public unsafe delegate Vector2* GetWindowSizeDelegate(Vector2* returnStorage, ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window should be given focus. + /// + /// An instance of . + public delegate void SetWindowFocusDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window is focused. + /// + /// An instance of . + /// Whether the window is focused. + public delegate bool GetWindowFocusDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when whether the window is minimized is queried. + /// + /// An instance of . + /// Whether the window is minimized. + public delegate bool GetWindowMinimizedDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when the window title should be changed. + /// + /// An instance of . + /// The new title. + public delegate void SetWindowTitleDelegate(ImGuiViewportPtr viewport, string title); + + /// + /// Delegate to be called when the window alpha should be changed. + /// + /// An instance of . + /// The new alpha. + public delegate void SetWindowAlphaDelegate(ImGuiViewportPtr viewport, float alpha); + + /// + /// Delegate to be called when the IME input position should be changed. + /// + /// An instance of . + /// The new position. + public delegate void SetImeInputPosDelegate(ImGuiViewportPtr viewport, Vector2 pos); + + /// + /// Delegate to be called when the window's DPI scale value is queried. + /// + /// An instance of . + /// The DPI scale. + public delegate float GetWindowDpiScaleDelegate(ImGuiViewportPtr viewport); + + /// + /// Delegate to be called when viewport is changed. + /// + /// An instance of . + public delegate void ChangedViewportDelegate(ImGuiViewportPtr viewport); + + /// + /// Disables ImGui from disabling alpha for Viewport window backgrounds. + /// + public static unsafe void EnableViewportWindowBackgroundAlpha() + { + // TODO: patch imgui.cpp:6126, which disables background transparency for extra viewport windows + var offset = 0x00007FFB6ADA632C - 0x00007FFB6AD60000; + offset += Process.GetCurrentProcess().Modules.Cast().First(x => x.ModuleName == "cimgui.dll") + .BaseAddress; + var b = (byte*)offset; + uint old; + if (!VirtualProtect(b, 1, PAGE.PAGE_EXECUTE_READWRITE, &old)) + { + throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) + ?? throw new InvalidOperationException($"{nameof(VirtualProtect)} failed."); + } + + *b = 0xEB; + if (!VirtualProtect(b, 1, old, &old)) + { + throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) + ?? throw new InvalidOperationException($"{nameof(VirtualProtect)} failed."); + } + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs b/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs new file mode 100644 index 000000000..824ba382a --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs @@ -0,0 +1,230 @@ +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +using TerraFX.Interop.DirectX; +using TerraFX.Interop.Windows; + +using static TerraFX.Interop.Windows.Windows; + +namespace Dalamud.Interface.ImGuiBackend.Helpers; + +/// +/// Peels ReShade off stuff. +/// +[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed blocks")] +internal static unsafe class ReShadePeeler +{ + /// + /// Peels if it is wrapped by ReShade. + /// + /// [inout] The COM pointer to an instance of . + /// A COM type that is or extends . + /// true if peeled. + public static bool PeelSwapChain(ComPtr* comptr) + where T : unmanaged, IDXGISwapChain.Interface => + PeelIUnknown(comptr, sizeof(IDXGISwapChain.Vtbl)); + + private static bool PeelIUnknown(ComPtr* comptr, nint vtblSize) + where T : unmanaged, IUnknown.Interface + { + var changed = false; + while (comptr->Get() != null && IsReShadedComObject(comptr->Get())) + { + // Expectation: the pointer to the underlying object should come early after the overriden vtable. + for (nint i = 8; i <= 0x20; i += 8) + { + var ppObjectBehind = (nint)comptr->Get() + i; + + // Is the thing directly pointed from the address an actual something in the memory? + if (!IsValidReadableMemoryAddress(ppObjectBehind, 8)) + continue; + + var pObjectBehind = *(nint*)ppObjectBehind; + + // Is the address of vtable readable? + if (!IsValidReadableMemoryAddress(pObjectBehind, sizeof(nint))) + continue; + var pObjectBehindVtbl = *(nint*)pObjectBehind; + + // Is the vtable itself readable? + if (!IsValidReadableMemoryAddress(pObjectBehindVtbl, vtblSize)) + continue; + + // Are individual functions in vtable executable? + var valid = true; + for (var j = 0; valid && j < vtblSize; j += sizeof(nint)) + valid &= IsValidExecutableMemoryAddress(*(nint*)(pObjectBehindVtbl + j), 1); + if (!valid) + continue; + + // Interpret the object as an IUnknown. + // Note that `using` is not used, and `Attach` is used. We do not alter the reference count yet. + var punk = default(ComPtr); + punk.Attach((IUnknown*)pObjectBehind); + + // Is the IUnknown object also the type we want? + using var comptr2 = default(ComPtr); + if (punk.As(&comptr2).FAILED) + continue; + + comptr2.Swap(comptr); + changed = true; + break; + } + + if (!changed) + break; + } + + return changed; + } + + private static bool BelongsInReShadeDll(nint ptr) + { + foreach (ProcessModule processModule in Process.GetCurrentProcess().Modules) + { + if (ptr < processModule.BaseAddress) + continue; + + var dosh = (IMAGE_DOS_HEADER*)processModule.BaseAddress; + var nth = (IMAGE_NT_HEADERS64*)(processModule.BaseAddress + dosh->e_lfanew); + if (ptr >= processModule.BaseAddress + nth->OptionalHeader.SizeOfImage) + continue; + + fixed (byte* pfn0 = "CreateDXGIFactory"u8) + fixed (byte* pfn1 = "D2D1CreateDevice"u8) + fixed (byte* pfn2 = "D3D10CreateDevice"u8) + fixed (byte* pfn3 = "D3D11CreateDevice"u8) + fixed (byte* pfn4 = "D3D12CreateDevice"u8) + fixed (byte* pfn5 = "glBegin"u8) + fixed (byte* pfn6 = "vkCreateDevice"u8) + { + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn0) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn1) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn2) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn3) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn4) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn5) == 0) + continue; + if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn6) == 0) + continue; + } + + var fileInfo = FileVersionInfo.GetVersionInfo(processModule.FileName); + + if (fileInfo.FileDescription == null) + continue; + + if (!fileInfo.FileDescription.Contains("GShade") && !fileInfo.FileDescription.Contains("ReShade")) + continue; + + return true; + } + + return false; + } + + private static bool IsReShadedComObject(T* obj) + where T : unmanaged, IUnknown.Interface + { + if (!IsValidReadableMemoryAddress((nint)obj, sizeof(nint))) + return false; + + try + { + var vtbl = (nint**)Marshal.ReadIntPtr((nint)obj); + if (!IsValidReadableMemoryAddress((nint)vtbl, sizeof(nint) * 3)) + return false; + + for (var i = 0; i < 3; i++) + { + var pfn = Marshal.ReadIntPtr((nint)(vtbl + i)); + if (!IsValidExecutableMemoryAddress(pfn, 1)) + return false; + if (!BelongsInReShadeDll(pfn)) + return false; + } + + return true; + } + catch + { + return false; + } + } + + private static bool IsValidReadableMemoryAddress(nint p, nint size) + { + while (size > 0) + { + if (!IsValidUserspaceMemoryAddress(p)) + return false; + + MEMORY_BASIC_INFORMATION mbi; + if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) + return false; + + if (mbi is not + { + State: MEM.MEM_COMMIT, + Protect: PAGE.PAGE_READONLY or PAGE.PAGE_READWRITE or PAGE.PAGE_EXECUTE_READ + or PAGE.PAGE_EXECUTE_READWRITE, + }) + return false; + + var regionSize = (nint)((mbi.RegionSize + 0xFFFUL) & ~0x1000UL); + var checkedSize = ((nint)mbi.BaseAddress + regionSize) - p; + size -= checkedSize; + p += checkedSize; + } + + return true; + } + + private static bool IsValidExecutableMemoryAddress(nint p, nint size) + { + while (size > 0) + { + if (!IsValidUserspaceMemoryAddress(p)) + return false; + + MEMORY_BASIC_INFORMATION mbi; + if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) + return false; + + if (mbi is not + { + State: MEM.MEM_COMMIT, + Protect: PAGE.PAGE_EXECUTE or PAGE.PAGE_EXECUTE_READ or PAGE.PAGE_EXECUTE_READWRITE + or PAGE.PAGE_EXECUTE_WRITECOPY, + }) + return false; + + var regionSize = (nint)((mbi.RegionSize + 0xFFFUL) & ~0x1000UL); + var checkedSize = ((nint)mbi.BaseAddress + regionSize) - p; + size -= checkedSize; + p += checkedSize; + } + + return true; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static bool IsValidUserspaceMemoryAddress(nint p) + { + // https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/virtual-address-spaces + // A 64-bit process on 64-bit Windows has a virtual address space within the 128-terabyte range + // 0x000'00000000 through 0x7FFF'FFFFFFFF. + return p >= 0x10000 && p <= unchecked((nint)0x7FFF_FFFFFFFFUL); + } +} diff --git a/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs b/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs new file mode 100644 index 000000000..4a41191b5 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs @@ -0,0 +1,64 @@ +using Dalamud.Interface.ImGuiBackend.Delegates; +using Dalamud.Interface.ImGuiBackend.InputHandler; +using Dalamud.Interface.ImGuiBackend.Renderers; + +namespace Dalamud.Interface.ImGuiBackend; + +/// Backend for ImGui. +internal interface IImGuiBackend : IDisposable +{ + /// User methods invoked every ImGui frame to construct custom UIs. + event ImGuiBuildUiDelegate? BuildUi; + + /// User methods invoked every ImGui frame on handling inputs. + event ImGuiNewInputFrameDelegate? NewInputFrame; + + /// User methods invoked every ImGui frame on handling renders. + event ImGuiNewRenderFrameDelegate? NewRenderFrame; + + /// Gets or sets a value indicating whether the cursor should be overridden with the ImGui cursor. + /// + bool UpdateCursor { get; set; } + + /// Gets or sets the path of ImGui configuration .ini file. + string? IniPath { get; set; } + + /// Gets the device handle. + nint DeviceHandle { get; } + + /// Gets the input handler. + IImGuiInputHandler InputHandler { get; } + + /// Gets the renderer. + IImGuiRenderer Renderer { get; } + + /// Performs a render cycle. + void Render(); + + /// Handles stuff before resizing happens. + void OnPreResize(); + + /// Handles stuff after resizing happens. + /// The new width. + /// The new height. + void OnPostResize(int newWidth, int newHeight); + + /// Invalidates fonts immediately. + /// Call this while handling . + void InvalidateFonts(); + + /// Determines if is owned by this. + /// The cursor. + /// Whether it is the case. + bool IsImGuiCursor(nint cursorHandle); + + /// Determines if this instance of is rendering to + /// . + /// The present target handle. + /// Whether it is the case. + bool IsAttachedToPresentationTarget(nint targetHandle); + + /// Determines if the main viewport is full screen. + /// Whether it is the case. + bool IsMainViewportFullScreen(); +} diff --git a/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs b/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs new file mode 100644 index 000000000..0b158dfbc --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs @@ -0,0 +1,15 @@ +using TerraFX.Interop.Windows; + +namespace Dalamud.Interface.ImGuiBackend; + +/// with Win32 support. +internal interface IWin32Backend : IImGuiBackend +{ + /// Processes window messages. + /// Handle of the window. + /// Type of window message. + /// wParam. + /// lParam. + /// Return value. + public nint? ProcessWndProcW(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam); +} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs new file mode 100644 index 000000000..e6da2281e --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs @@ -0,0 +1,22 @@ +namespace Dalamud.Interface.ImGuiBackend.InputHandler; + +/// A simple shared public interface that all ImGui input implementations follows. +internal interface IImGuiInputHandler : IDisposable +{ + /// Gets or sets a value indicating whether the cursor should be overridden with the ImGui cursor. + /// + public bool UpdateCursor { get; set; } + + /// Gets or sets the path of ImGui configuration .ini file. + string? IniPath { get; set; } + + /// Determines if is owned by this. + /// The cursor. + /// Whether it is the case. + public bool IsImGuiCursor(nint cursorHandle); + + /// Marks the beginning of a new frame. + /// The width of the new frame. + /// The height of the new frame. + void NewFrame(int width, int height); +} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs new file mode 100644 index 000000000..5710a5991 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs @@ -0,0 +1,309 @@ +using System.Runtime.CompilerServices; + +using Dalamud.Bindings.ImGui; + +using TerraFX.Interop.Windows; + +namespace Dalamud.Interface.ImGuiBackend.InputHandler; + +/// +/// An implementation of , using Win32 APIs. +/// +internal sealed partial class Win32InputHandler +{ + /// + /// Maps a to . + /// + /// The virtual key. + /// The corresponding . + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiKey VirtualKeyToImGuiKey(int key) => key switch + { + VK.VK_TAB => ImGuiKey.Tab, + VK.VK_LEFT => ImGuiKey.LeftArrow, + VK.VK_RIGHT => ImGuiKey.RightArrow, + VK.VK_UP => ImGuiKey.UpArrow, + VK.VK_DOWN => ImGuiKey.DownArrow, + VK.VK_PRIOR => ImGuiKey.PageUp, + VK.VK_NEXT => ImGuiKey.PageDown, + VK.VK_HOME => ImGuiKey.Home, + VK.VK_END => ImGuiKey.End, + VK.VK_INSERT => ImGuiKey.Insert, + VK.VK_DELETE => ImGuiKey.Delete, + VK.VK_BACK => ImGuiKey.Backspace, + VK.VK_SPACE => ImGuiKey.Space, + VK.VK_RETURN => ImGuiKey.Enter, + VK.VK_ESCAPE => ImGuiKey.Escape, + VK.VK_OEM_7 => ImGuiKey.Apostrophe, + VK.VK_OEM_COMMA => ImGuiKey.Comma, + VK.VK_OEM_MINUS => ImGuiKey.Minus, + VK.VK_OEM_PERIOD => ImGuiKey.Period, + VK.VK_OEM_2 => ImGuiKey.Slash, + VK.VK_OEM_1 => ImGuiKey.Semicolon, + VK.VK_OEM_PLUS => ImGuiKey.Equal, + VK.VK_OEM_4 => ImGuiKey.LeftBracket, + VK.VK_OEM_5 => ImGuiKey.Backslash, + VK.VK_OEM_6 => ImGuiKey.RightBracket, + VK.VK_OEM_3 => ImGuiKey.GraveAccent, + VK.VK_CAPITAL => ImGuiKey.CapsLock, + VK.VK_SCROLL => ImGuiKey.ScrollLock, + VK.VK_NUMLOCK => ImGuiKey.NumLock, + VK.VK_SNAPSHOT => ImGuiKey.PrintScreen, + VK.VK_PAUSE => ImGuiKey.Pause, + VK.VK_NUMPAD0 => ImGuiKey.Keypad0, + VK.VK_NUMPAD1 => ImGuiKey.Keypad1, + VK.VK_NUMPAD2 => ImGuiKey.Keypad2, + VK.VK_NUMPAD3 => ImGuiKey.Keypad3, + VK.VK_NUMPAD4 => ImGuiKey.Keypad4, + VK.VK_NUMPAD5 => ImGuiKey.Keypad5, + VK.VK_NUMPAD6 => ImGuiKey.Keypad6, + VK.VK_NUMPAD7 => ImGuiKey.Keypad7, + VK.VK_NUMPAD8 => ImGuiKey.Keypad8, + VK.VK_NUMPAD9 => ImGuiKey.Keypad9, + VK.VK_DECIMAL => ImGuiKey.KeypadDecimal, + VK.VK_DIVIDE => ImGuiKey.KeypadDivide, + VK.VK_MULTIPLY => ImGuiKey.KeypadMultiply, + VK.VK_SUBTRACT => ImGuiKey.KeypadSubtract, + VK.VK_ADD => ImGuiKey.KeypadAdd, + VK.VK_RETURN + 256 => ImGuiKey.KeypadEnter, + VK.VK_LSHIFT => ImGuiKey.LeftShift, + VK.VK_LCONTROL => ImGuiKey.LeftCtrl, + VK.VK_LMENU => ImGuiKey.LeftAlt, + VK.VK_LWIN => ImGuiKey.LeftSuper, + VK.VK_RSHIFT => ImGuiKey.RightShift, + VK.VK_RCONTROL => ImGuiKey.RightCtrl, + VK.VK_RMENU => ImGuiKey.RightAlt, + VK.VK_RWIN => ImGuiKey.RightSuper, + VK.VK_APPS => ImGuiKey.Menu, + '0' => ImGuiKey.Key0, + '1' => ImGuiKey.Key1, + '2' => ImGuiKey.Key2, + '3' => ImGuiKey.Key3, + '4' => ImGuiKey.Key4, + '5' => ImGuiKey.Key5, + '6' => ImGuiKey.Key6, + '7' => ImGuiKey.Key7, + '8' => ImGuiKey.Key8, + '9' => ImGuiKey.Key9, + 'A' => ImGuiKey.A, + 'B' => ImGuiKey.B, + 'C' => ImGuiKey.C, + 'D' => ImGuiKey.D, + 'E' => ImGuiKey.E, + 'F' => ImGuiKey.F, + 'G' => ImGuiKey.G, + 'H' => ImGuiKey.H, + 'I' => ImGuiKey.I, + 'J' => ImGuiKey.J, + 'K' => ImGuiKey.K, + 'L' => ImGuiKey.L, + 'M' => ImGuiKey.M, + 'N' => ImGuiKey.N, + 'O' => ImGuiKey.O, + 'P' => ImGuiKey.P, + 'Q' => ImGuiKey.Q, + 'R' => ImGuiKey.R, + 'S' => ImGuiKey.S, + 'T' => ImGuiKey.T, + 'U' => ImGuiKey.U, + 'V' => ImGuiKey.V, + 'W' => ImGuiKey.W, + 'X' => ImGuiKey.X, + 'Y' => ImGuiKey.Y, + 'Z' => ImGuiKey.Z, + VK.VK_F1 => ImGuiKey.F1, + VK.VK_F2 => ImGuiKey.F2, + VK.VK_F3 => ImGuiKey.F3, + VK.VK_F4 => ImGuiKey.F4, + VK.VK_F5 => ImGuiKey.F5, + VK.VK_F6 => ImGuiKey.F6, + VK.VK_F7 => ImGuiKey.F7, + VK.VK_F8 => ImGuiKey.F8, + VK.VK_F9 => ImGuiKey.F9, + VK.VK_F10 => ImGuiKey.F10, + VK.VK_F11 => ImGuiKey.F11, + VK.VK_F12 => ImGuiKey.F12, + _ => ImGuiKey.None, + }; + + /// + /// Maps a to . + /// + /// The ImGui key. + /// The corresponding . + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImGuiKeyToVirtualKey(ImGuiKey key) => key switch + { + ImGuiKey.Tab => VK.VK_TAB, + ImGuiKey.LeftArrow => VK.VK_LEFT, + ImGuiKey.RightArrow => VK.VK_RIGHT, + ImGuiKey.UpArrow => VK.VK_UP, + ImGuiKey.DownArrow => VK.VK_DOWN, + ImGuiKey.PageUp => VK.VK_PRIOR, + ImGuiKey.PageDown => VK.VK_NEXT, + ImGuiKey.Home => VK.VK_HOME, + ImGuiKey.End => VK.VK_END, + ImGuiKey.Insert => VK.VK_INSERT, + ImGuiKey.Delete => VK.VK_DELETE, + ImGuiKey.Backspace => VK.VK_BACK, + ImGuiKey.Space => VK.VK_SPACE, + ImGuiKey.Enter => VK.VK_RETURN, + ImGuiKey.Escape => VK.VK_ESCAPE, + ImGuiKey.Apostrophe => VK.VK_OEM_7, + ImGuiKey.Comma => VK.VK_OEM_COMMA, + ImGuiKey.Minus => VK.VK_OEM_MINUS, + ImGuiKey.Period => VK.VK_OEM_PERIOD, + ImGuiKey.Slash => VK.VK_OEM_2, + ImGuiKey.Semicolon => VK.VK_OEM_1, + ImGuiKey.Equal => VK.VK_OEM_PLUS, + ImGuiKey.LeftBracket => VK.VK_OEM_4, + ImGuiKey.Backslash => VK.VK_OEM_5, + ImGuiKey.RightBracket => VK.VK_OEM_6, + ImGuiKey.GraveAccent => VK.VK_OEM_3, + ImGuiKey.CapsLock => VK.VK_CAPITAL, + ImGuiKey.ScrollLock => VK.VK_SCROLL, + ImGuiKey.NumLock => VK.VK_NUMLOCK, + ImGuiKey.PrintScreen => VK.VK_SNAPSHOT, + ImGuiKey.Pause => VK.VK_PAUSE, + ImGuiKey.Keypad0 => VK.VK_NUMPAD0, + ImGuiKey.Keypad1 => VK.VK_NUMPAD1, + ImGuiKey.Keypad2 => VK.VK_NUMPAD2, + ImGuiKey.Keypad3 => VK.VK_NUMPAD3, + ImGuiKey.Keypad4 => VK.VK_NUMPAD4, + ImGuiKey.Keypad5 => VK.VK_NUMPAD5, + ImGuiKey.Keypad6 => VK.VK_NUMPAD6, + ImGuiKey.Keypad7 => VK.VK_NUMPAD7, + ImGuiKey.Keypad8 => VK.VK_NUMPAD8, + ImGuiKey.Keypad9 => VK.VK_NUMPAD9, + ImGuiKey.KeypadDecimal => VK.VK_DECIMAL, + ImGuiKey.KeypadDivide => VK.VK_DIVIDE, + ImGuiKey.KeypadMultiply => VK.VK_MULTIPLY, + ImGuiKey.KeypadSubtract => VK.VK_SUBTRACT, + ImGuiKey.KeypadAdd => VK.VK_ADD, + ImGuiKey.KeypadEnter => VK.VK_RETURN + 256, + ImGuiKey.LeftShift => VK.VK_LSHIFT, + ImGuiKey.LeftCtrl => VK.VK_LCONTROL, + ImGuiKey.LeftAlt => VK.VK_LMENU, + ImGuiKey.LeftSuper => VK.VK_LWIN, + ImGuiKey.RightShift => VK.VK_RSHIFT, + ImGuiKey.RightCtrl => VK.VK_RCONTROL, + ImGuiKey.RightAlt => VK.VK_RMENU, + ImGuiKey.RightSuper => VK.VK_RWIN, + ImGuiKey.Menu => VK.VK_APPS, + ImGuiKey.Key0 => '0', + ImGuiKey.Key1 => '1', + ImGuiKey.Key2 => '2', + ImGuiKey.Key3 => '3', + ImGuiKey.Key4 => '4', + ImGuiKey.Key5 => '5', + ImGuiKey.Key6 => '6', + ImGuiKey.Key7 => '7', + ImGuiKey.Key8 => '8', + ImGuiKey.Key9 => '9', + ImGuiKey.A => 'A', + ImGuiKey.B => 'B', + ImGuiKey.C => 'C', + ImGuiKey.D => 'D', + ImGuiKey.E => 'E', + ImGuiKey.F => 'F', + ImGuiKey.G => 'G', + ImGuiKey.H => 'H', + ImGuiKey.I => 'I', + ImGuiKey.J => 'J', + ImGuiKey.K => 'K', + ImGuiKey.L => 'L', + ImGuiKey.M => 'M', + ImGuiKey.N => 'N', + ImGuiKey.O => 'O', + ImGuiKey.P => 'P', + ImGuiKey.Q => 'Q', + ImGuiKey.R => 'R', + ImGuiKey.S => 'S', + ImGuiKey.T => 'T', + ImGuiKey.U => 'U', + ImGuiKey.V => 'V', + ImGuiKey.W => 'W', + ImGuiKey.X => 'X', + ImGuiKey.Y => 'Y', + ImGuiKey.Z => 'Z', + ImGuiKey.F1 => VK.VK_F1, + ImGuiKey.F2 => VK.VK_F2, + ImGuiKey.F3 => VK.VK_F3, + ImGuiKey.F4 => VK.VK_F4, + ImGuiKey.F5 => VK.VK_F5, + ImGuiKey.F6 => VK.VK_F6, + ImGuiKey.F7 => VK.VK_F7, + ImGuiKey.F8 => VK.VK_F8, + ImGuiKey.F9 => VK.VK_F9, + ImGuiKey.F10 => VK.VK_F10, + ImGuiKey.F11 => VK.VK_F11, + ImGuiKey.F12 => VK.VK_F12, + _ => 0, + }; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static bool IsGamepadKey(ImGuiKey key) => (int)key is >= 617 and <= 640; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static bool IsModKey(ImGuiKey key) => + key is ImGuiKey.LeftShift + or ImGuiKey.RightShift + or ImGuiKey.ModShift + or ImGuiKey.LeftCtrl + or ImGuiKey.ModCtrl + or ImGuiKey.LeftAlt + or ImGuiKey.RightAlt + or ImGuiKey.ModAlt; + + private static void AddKeyEvent(ImGuiKey key, bool down, int nativeKeycode, int nativeScancode = -1) + { + var io = ImGui.GetIO(); + io.AddKeyEvent(key, down); + io.SetKeyEventNativeData(key, nativeKeycode, nativeScancode); + } + + private static void UpdateKeyModifiers() + { + var io = ImGui.GetIO(); + io.AddKeyEvent(ImGuiKey.ModCtrl, IsVkDown(VK.VK_CONTROL)); + io.AddKeyEvent(ImGuiKey.ModShift, IsVkDown(VK.VK_SHIFT)); + io.AddKeyEvent(ImGuiKey.ModAlt, IsVkDown(VK.VK_MENU)); + io.AddKeyEvent(ImGuiKey.ModSuper, IsVkDown(VK.VK_APPS)); + } + + private static void UpAllKeys() + { + var io = ImGui.GetIO(); + for (var i = (int)ImGuiKey.NamedKeyBegin; i < (int)ImGuiKey.NamedKeyEnd; i++) + io.AddKeyEvent((ImGuiKey)i, false); + } + + private static void UpAllMouseButton() + { + var io = ImGui.GetIO(); + for (var i = 0; i < io.MouseDown.Length; i++) + io.MouseDown[i] = false; + } + + private static bool IsVkDown(int key) => (TerraFX.Interop.Windows.Windows.GetKeyState(key) & 0x8000) != 0; + + private static int GetButton(uint msg, WPARAM wParam) => msg switch + { + WM.WM_LBUTTONUP or WM.WM_LBUTTONDOWN or WM.WM_LBUTTONDBLCLK => 0, + WM.WM_RBUTTONUP or WM.WM_RBUTTONDOWN or WM.WM_RBUTTONDBLCLK => 1, + WM.WM_MBUTTONUP or WM.WM_MBUTTONDOWN or WM.WM_MBUTTONDBLCLK => 2, + WM.WM_XBUTTONUP or WM.WM_XBUTTONDOWN or WM.WM_XBUTTONDBLCLK => + TerraFX.Interop.Windows.Windows.GET_XBUTTON_WPARAM(wParam) == TerraFX.Interop.Windows.Windows.XBUTTON1 ? 3 : 4, + _ => 0, + }; + + private static void ViewportFlagsToWin32Styles(ImGuiViewportFlags flags, out int style, out int exStyle) + { + style = (int)(flags.HasFlag(ImGuiViewportFlags.NoDecoration) ? WS.WS_POPUP : WS.WS_OVERLAPPEDWINDOW); + exStyle = + (int)(flags.HasFlag(ImGuiViewportFlags.NoTaskBarIcon) ? WS.WS_EX_TOOLWINDOW : (uint)WS.WS_EX_APPWINDOW); + exStyle |= WS.WS_EX_NOREDIRECTIONBITMAP; + if (flags.HasFlag(ImGuiViewportFlags.TopMost)) + exStyle |= WS.WS_EX_TOPMOST; + } +} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs new file mode 100644 index 000000000..a76eb1703 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs @@ -0,0 +1,1041 @@ +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Numerics; +using System.Runtime.InteropServices; +using System.Text; + +using Dalamud.Bindings.ImGui; + +using Serilog; + +using TerraFX.Interop.Windows; + +using static Dalamud.Interface.ImGuiBackend.Helpers.ImGuiViewportHelpers; + +using static TerraFX.Interop.Windows.Windows; + +using ERROR = TerraFX.Interop.Windows.ERROR; + +namespace Dalamud.Interface.ImGuiBackend.InputHandler; + +/// +/// An implementation of , using Win32 APIs.
+/// Largely a port of https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_win32.cpp, +/// though some changes and wndproc hooking. +///
+[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed/using scopes")] +internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler +{ + private readonly HWND hWnd; + private readonly HCURSOR[] cursors; + + private readonly WndProcDelegate wndProcDelegate; + private readonly bool[] imguiMouseIsDown; + private readonly nint platformNamePtr; + + private ViewportHandler viewportHandler; + + private long lastTime; + + private nint iniPathPtr; + + private bool disposedValue; + + /// + /// Initializes a new instance of the class. + /// + /// The window handle. + public Win32InputHandler(HWND hWnd) + { + var io = ImGui.GetIO(); + if (ImGui.GetIO().Handle->BackendPlatformName is not null) + throw new InvalidOperationException("ImGui backend platform seems to be have been already attached."); + + this.hWnd = hWnd; + + // hook wndproc + // have to hold onto the delegate to keep it in memory for unmanaged code + this.wndProcDelegate = this.WndProcDetour; + + io.BackendFlags |= ImGuiBackendFlags.HasMouseCursors | + ImGuiBackendFlags.HasSetMousePos | + ImGuiBackendFlags.RendererHasViewports | + ImGuiBackendFlags.PlatformHasViewports; + + this.platformNamePtr = Marshal.StringToHGlobalAnsi("imgui_impl_win32_c#"); + io.Handle->BackendPlatformName = (byte*)this.platformNamePtr; + + var mainViewport = ImGui.GetMainViewport(); + mainViewport.PlatformHandle = mainViewport.PlatformHandleRaw = hWnd; + if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable)) + this.viewportHandler = new(this); + + this.imguiMouseIsDown = new bool[5]; + + this.cursors = new HCURSOR[9]; + this.cursors[(int)ImGuiMouseCursor.Arrow] = LoadCursorW(default, IDC.IDC_ARROW); + this.cursors[(int)ImGuiMouseCursor.TextInput] = LoadCursorW(default, IDC.IDC_IBEAM); + this.cursors[(int)ImGuiMouseCursor.ResizeAll] = LoadCursorW(default, IDC.IDC_SIZEALL); + this.cursors[(int)ImGuiMouseCursor.ResizeEw] = LoadCursorW(default, IDC.IDC_SIZEWE); + this.cursors[(int)ImGuiMouseCursor.ResizeNs] = LoadCursorW(default, IDC.IDC_SIZENS); + this.cursors[(int)ImGuiMouseCursor.ResizeNesw] = LoadCursorW(default, IDC.IDC_SIZENESW); + this.cursors[(int)ImGuiMouseCursor.ResizeNwse] = LoadCursorW(default, IDC.IDC_SIZENWSE); + this.cursors[(int)ImGuiMouseCursor.Hand] = LoadCursorW(default, IDC.IDC_HAND); + this.cursors[(int)ImGuiMouseCursor.NotAllowed] = LoadCursorW(default, IDC.IDC_NO); + } + + /// + /// Finalizes an instance of the class. + /// + ~Win32InputHandler() => this.ReleaseUnmanagedResources(); + + private delegate LRESULT WndProcDelegate(HWND hWnd, uint uMsg, WPARAM wparam, LPARAM lparam); + + private delegate BOOL MonitorEnumProcDelegate(HMONITOR monitor, HDC hdc, RECT* rect, LPARAM lparam); + + /// + public bool UpdateCursor { get; set; } = true; + + /// + public string? IniPath + { + get + { + var ptr = (byte*)this.iniPathPtr; + if (ptr is null) + return string.Empty; + var len = 0; + while (ptr![len] != 0) + len++; + return Encoding.UTF8.GetString(ptr, len); + } + + set + { + if (this.iniPathPtr != 0) + Marshal.FreeHGlobal(this.iniPathPtr); + if (!string.IsNullOrEmpty(value)) + { + var e = Encoding.UTF8.GetByteCount(value); + var newAlloc = Marshal.AllocHGlobal(e + 2); + try + { + var span = new Span((void*)newAlloc, e + 2); + span[^1] = span[^2] = 0; + Encoding.UTF8.GetBytes(value, span); + } + catch + { + Marshal.FreeHGlobal(newAlloc); + throw; + } + + this.iniPathPtr = newAlloc; + } + + ImGui.GetIO().Handle->IniFilename = (byte*)this.iniPathPtr; + } + } + + /// + public void Dispose() + { + this.ReleaseUnmanagedResources(); + GC.SuppressFinalize(this); + } + + /// + public bool IsImGuiCursor(nint hCursor) => this.cursors.Contains((HCURSOR)hCursor); + + /// + public void NewFrame(int targetWidth, int targetHeight) + { + var io = ImGui.GetIO(); + + io.DisplaySize.X = targetWidth; + io.DisplaySize.Y = targetHeight; + io.DisplayFramebufferScale.X = 1f; + io.DisplayFramebufferScale.Y = 1f; + + var frequency = Stopwatch.Frequency; + var currentTime = Stopwatch.GetTimestamp(); + io.DeltaTime = this.lastTime > 0 ? (float)((double)(currentTime - this.lastTime) / frequency) : 1f / 60; + this.lastTime = currentTime; + + this.viewportHandler.UpdateMonitors(); + + this.UpdateMousePos(); + + this.ProcessKeyEventsWorkarounds(); + + // TODO: need to figure out some way to unify all this + // The bottom case works(?) if the caller hooks SetCursor, but otherwise causes fps issues + // The top case more or less works if we use ImGui's software cursor (and ideally hide the + // game's hardware cursor) + // It would be nice if hooking WM_SETCURSOR worked as it 'should' so that external hooking + // wasn't necessary + + // this is what imgui's example does, but it doesn't seem to work for us + // this could be a timing issue.. or their logic could just be wrong for many applications + // var cursor = io.MouseDrawCursor ? ImGuiMouseCursor.None : ImGui.GetMouseCursor(); + // if (_oldCursor != cursor) + // { + // _oldCursor = cursor; + // UpdateMouseCursor(); + // } + + // hacky attempt to make cursors work how I think they 'should' + if ((io.WantCaptureMouse || io.MouseDrawCursor) && this.UpdateCursor) + { + this.UpdateMouseCursor(); + } + + // Similar issue seen with overlapping mouse clicks + // eg, right click and hold on imgui window, drag off, left click and hold + // release right click, release left click -> right click was 'stuck' and imgui + // would become unresponsive + if (!io.WantCaptureMouse) + { + for (var i = 0; i < io.MouseDown.Length; i++) + { + io.MouseDown[i] = false; + } + } + } + + /// + /// Processes window messages. Supports both WndProcA and WndProcW. + /// + /// Handle of the window. + /// Type of window message. + /// wParam. + /// lParam. + /// Return value, if not doing further processing. + public LRESULT? ProcessWndProcW(HWND hWndCurrent, uint msg, WPARAM wParam, LPARAM lParam) + { + if (ImGui.GetCurrentContext().IsNull) + return null; + + var io = ImGui.GetIO(); + + switch (msg) + { + case WM.WM_LBUTTONDOWN: + case WM.WM_LBUTTONDBLCLK: + case WM.WM_RBUTTONDOWN: + case WM.WM_RBUTTONDBLCLK: + case WM.WM_MBUTTONDOWN: + case WM.WM_MBUTTONDBLCLK: + case WM.WM_XBUTTONDOWN: + case WM.WM_XBUTTONDBLCLK: + { + var button = GetButton(msg, wParam); + if (io.WantCaptureMouse) + { + if (!ImGui.IsAnyMouseDown() && GetCapture() == nint.Zero) + SetCapture(hWndCurrent); + + io.MouseDown[button] = true; + this.imguiMouseIsDown[button] = true; + return default(LRESULT); + } + + if (ImGui.IsAnyItemActive()) + ImGui.ClearWindowFocus(); + + break; + } + + case WM.WM_LBUTTONUP: + case WM.WM_RBUTTONUP: + case WM.WM_MBUTTONUP: + case WM.WM_XBUTTONUP: + { + var button = GetButton(msg, wParam); + if (io.WantCaptureMouse && this.imguiMouseIsDown[button]) + { + if (!ImGui.IsAnyMouseDown() && GetCapture() == hWndCurrent) + ReleaseCapture(); + + io.MouseDown[button] = false; + this.imguiMouseIsDown[button] = false; + return default(LRESULT); + } + + break; + } + + case WM.WM_MOUSEWHEEL: + if (io.WantCaptureMouse) + { + io.MouseWheel += GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; + return default(LRESULT); + } + + break; + case WM.WM_MOUSEHWHEEL: + if (io.WantCaptureMouse) + { + io.MouseWheelH += GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; + return default(LRESULT); + } + + break; + case WM.WM_KEYDOWN: + case WM.WM_SYSKEYDOWN: + case WM.WM_KEYUP: + case WM.WM_SYSKEYUP: + { + var isKeyDown = msg is WM.WM_KEYDOWN or WM.WM_SYSKEYDOWN; + if ((int)wParam >= 256) + break; + + // Submit modifiers + UpdateKeyModifiers(); + + // Obtain virtual key code + // (keypad enter doesn't have its own... VK_RETURN with KF_EXTENDED flag means keypad enter, see IM_VK_KEYPAD_ENTER definition for details, it is mapped to ImGuiKey.KeyPadEnter.) + var vk = (int)wParam; + if (vk == VK.VK_RETURN && ((int)lParam & (256 << 16)) > 0) + vk = VK.VK_RETURN + 256; + + // Submit key event + var key = VirtualKeyToImGuiKey(vk); + var scancode = ((int)lParam & 0xff0000) >> 16; + if (key != ImGuiKey.None && io.WantTextInput) + { + AddKeyEvent(key, isKeyDown, vk, scancode); + return nint.Zero; + } + + switch (vk) + { + // Submit individual left/right modifier events + case VK.VK_SHIFT: + // Important: Shift keys tend to get stuck when pressed together, missing key-up events are corrected in OnProcessKeyEventsWorkarounds() + if (IsVkDown(VK.VK_LSHIFT) == isKeyDown) + AddKeyEvent(ImGuiKey.LeftShift, isKeyDown, VK.VK_LSHIFT, scancode); + + if (IsVkDown(VK.VK_RSHIFT) == isKeyDown) + AddKeyEvent(ImGuiKey.RightShift, isKeyDown, VK.VK_RSHIFT, scancode); + + break; + + case VK.VK_CONTROL: + if (IsVkDown(VK.VK_LCONTROL) == isKeyDown) + AddKeyEvent(ImGuiKey.LeftCtrl, isKeyDown, VK.VK_LCONTROL, scancode); + + if (IsVkDown(VK.VK_RCONTROL) == isKeyDown) + AddKeyEvent(ImGuiKey.RightCtrl, isKeyDown, VK.VK_RCONTROL, scancode); + + break; + + case VK.VK_MENU: + if (IsVkDown(VK.VK_LMENU) == isKeyDown) + AddKeyEvent(ImGuiKey.LeftAlt, isKeyDown, VK.VK_LMENU, scancode); + + if (IsVkDown(VK.VK_RMENU) == isKeyDown) + AddKeyEvent(ImGuiKey.RightAlt, isKeyDown, VK.VK_RMENU, scancode); + + break; + } + + break; + } + + case WM.WM_CHAR: + if (io.WantTextInput) + { + io.AddInputCharacter(new Rune((uint)wParam)); + return nint.Zero; + } + + break; + + // this never seemed to work reasonably, but I'll leave it for now + case WM.WM_SETCURSOR: + if (io.WantCaptureMouse) + { + if (LOWORD(lParam) == HTCLIENT && this.UpdateMouseCursor()) + { + // this message returns 1 to block further processing + // because consistency is no fun + return 1; + } + } + + break; + + case WM.WM_DISPLAYCHANGE: + this.viewportHandler.UpdateMonitors(); + break; + + case WM.WM_KILLFOCUS when hWndCurrent == this.hWnd: + if (!ImGui.IsAnyMouseDown() && GetCapture() == hWndCurrent) + ReleaseCapture(); + + ImGui.GetIO().WantCaptureMouse = false; + ImGui.ClearWindowFocus(); + break; + } + + return null; + } + + private void UpdateMousePos() + { + var io = ImGui.GetIO(); + var pt = default(POINT); + + // Depending on if Viewports are enabled, we have to change how we process + // the cursor position. If viewports are enabled, we pass the absolute cursor + // position to ImGui. Otherwise, we use the old method of passing client-local + // mouse position to ImGui. + if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable)) + { + if (io.WantSetMousePos) + { + SetCursorPos((int)io.MousePos.X, (int)io.MousePos.Y); + } + + if (GetCursorPos(&pt)) + { + io.MousePos.X = pt.x; + io.MousePos.Y = pt.y; + } + else + { + io.MousePos.X = float.MinValue; + io.MousePos.Y = float.MinValue; + } + } + else + { + if (io.WantSetMousePos) + { + pt.x = (int)io.MousePos.X; + pt.y = (int)io.MousePos.Y; + ClientToScreen(this.hWnd, &pt); + SetCursorPos(pt.x, pt.y); + } + + if (GetCursorPos(&pt) && ScreenToClient(this.hWnd, &pt)) + { + io.MousePos.X = pt.x; + io.MousePos.Y = pt.y; + } + else + { + io.MousePos.X = float.MinValue; + io.MousePos.Y = float.MinValue; + } + } + } + + private bool UpdateMouseCursor() + { + var io = ImGui.GetIO(); + if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.NoMouseCursorChange)) + return false; + + var cur = ImGui.GetMouseCursor(); + if (cur == ImGuiMouseCursor.None || io.MouseDrawCursor) + SetCursor(default); + else + SetCursor(this.cursors[(int)cur]); + + return true; + } + + private void ProcessKeyEventsWorkarounds() + { + // Left & right Shift keys: when both are pressed together, Windows tend to not generate the WM_KEYUP event for the first released one. + if (ImGui.IsKeyDown(ImGuiKey.LeftShift) && !IsVkDown(VK.VK_LSHIFT)) + AddKeyEvent(ImGuiKey.LeftShift, false, VK.VK_LSHIFT); + if (ImGui.IsKeyDown(ImGuiKey.RightShift) && !IsVkDown(VK.VK_RSHIFT)) + AddKeyEvent(ImGuiKey.RightShift, false, VK.VK_RSHIFT); + + // Sometimes WM_KEYUP for Win key is not passed down to the app (e.g. for Win+V on some setups, according to GLFW). + if (ImGui.IsKeyDown(ImGuiKey.LeftSuper) && !IsVkDown(VK.VK_LWIN)) + AddKeyEvent(ImGuiKey.LeftSuper, false, VK.VK_LWIN); + if (ImGui.IsKeyDown(ImGuiKey.RightSuper) && !IsVkDown(VK.VK_RWIN)) + AddKeyEvent(ImGuiKey.RightSuper, false, VK.VK_RWIN); + + // From ImGui's FAQ: + // Note: Text input widget releases focus on "Return KeyDown", so the subsequent "Return KeyUp" event + // that your application receive will typically have io.WantCaptureKeyboard == false. Depending on your + // application logic it may or not be inconvenient. + // + // With how the local wndproc works, this causes the key up event to be missed when exiting ImGui text entry + // (eg, from hitting enter or escape. There may be other ways as well) + // This then causes the key to appear 'stuck' down, which breaks subsequent attempts to use the input field. + // This is something of a brute force fix that basically makes key up events irrelevant + // Holding a key will send repeated key down events and (re)set these where appropriate, so this should be ok. + var io = ImGui.GetIO(); + if (!io.WantTextInput) + { + // See: https://github.com/goatcorp/ImGuiScene/pull/13 + // > GetForegroundWindow from winuser.h is a surprisingly expensive function. + var isForeground = GetForegroundWindow() == this.hWnd; + for (var i = (int)ImGuiKey.NamedKeyBegin; i < (int)ImGuiKey.NamedKeyEnd; i++) + { + // Skip raising modifier keys if the game is focused. + // This allows us to raise the keys when one is held and the window becomes unfocused, + // but if we do not skip them, they will only be held down every 4th frame or so. + if (isForeground && (IsGamepadKey((ImGuiKey)i) || IsModKey((ImGuiKey)i))) + continue; + io.AddKeyEvent((ImGuiKey)i, false); + } + } + } + + /// + /// This WndProc is called for ImGuiScene windows. WndProc for main window will be called back from somewhere else. + /// + private LRESULT WndProcDetour(HWND hWndCurrent, uint msg, WPARAM wParam, LPARAM lParam) + { + // Attempt to process the result of this window message + // We will return the result here if we consider the message handled + var processResult = this.ProcessWndProcW(hWndCurrent, msg, wParam, lParam); + + if (processResult != null) return processResult.Value; + + // The message wasn't handled, but it's a platform window + // So we have to handle some messages ourselves + // BUT we might have disposed the context, so check that + if (ImGui.GetCurrentContext().IsNull) + return DefWindowProcW(hWndCurrent, msg, wParam, lParam); + + var viewport = ImGui.FindViewportByPlatformHandle(hWndCurrent); + if (viewport.Handle == null) + return DefWindowProcW(hWndCurrent, msg, wParam, lParam); + + switch (msg) + { + case WM.WM_CLOSE: + viewport.PlatformRequestClose = true; + return 0; + case WM.WM_MOVE: + viewport.PlatformRequestMove = true; + return 0; + case WM.WM_SIZE: + viewport.PlatformRequestResize = true; + return 0; + case WM.WM_MOUSEACTIVATE: + // We never want our platform windows to be active, or else Windows will think we + // want messages dispatched with its hWnd. We don't. The only way to activate a platform + // window is via clicking, it does not appear on the taskbar or alt-tab, so we just + // brute force behavior here. + + // Make the game the foreground window. This prevents ImGui windows from becoming + // choppy when users have the "limit FPS" option enabled in-game + SetForegroundWindow(this.hWnd); + + // Also set the window capture to the main window, as focus will not cause + // future messages to be dispatched to the main window unless it is receiving capture + SetCapture(this.hWnd); + + // We still want to return MA_NOACTIVATE + // https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-mouseactivate + return MA.MA_NOACTIVATE; + case WM.WM_NCHITTEST: + // Let mouse pass-through the window. This will allow the backend to set io.MouseHoveredViewport properly (which is OPTIONAL). + // The ImGuiViewportFlags_NoInputs flag is set while dragging a viewport, as want to detect the window behind the one we are dragging. + // If you cannot easily access those viewport flags from your windowing/event code: you may manually synchronize its state e.g. in + // your main loop after calling UpdatePlatformWindows(). Iterate all viewports/platform windows and pass the flag to your windowing system. + if (viewport.Flags.HasFlag(ImGuiViewportFlags.NoInputs)) + { + return HTTRANSPARENT; + } + + break; + } + + return DefWindowProcW(hWndCurrent, msg, wParam, lParam); + } + + private void ReleaseUnmanagedResources() + { + if (this.disposedValue) + return; + + this.viewportHandler.Dispose(); + + this.cursors.AsSpan().Clear(); + + if (ImGui.GetIO().Handle->BackendPlatformName == (void*)this.platformNamePtr) + ImGui.GetIO().Handle->BackendPlatformName = null; + if (this.platformNamePtr != nint.Zero) + Marshal.FreeHGlobal(this.platformNamePtr); + + if (this.iniPathPtr != nint.Zero) + { + ImGui.GetIO().Handle->IniFilename = null; + Marshal.FreeHGlobal(this.iniPathPtr); + this.iniPathPtr = nint.Zero; + } + + this.disposedValue = true; + } + + private struct ViewportHandler : IDisposable + { + [SuppressMessage("ReSharper", "CollectionNeverQueried.Local", Justification = "Keeping references alive")] + private readonly List delegateReferences = new(); + + private Win32InputHandler input; + private nint classNamePtr; + + private bool wantUpdateMonitors = true; + + public ViewportHandler(Win32InputHandler input) + { + this.input = input; + this.classNamePtr = Marshal.StringToHGlobalUni("ImGui Platform"); + + var pio = ImGui.GetPlatformIO(); + pio.PlatformCreateWindow = this.RegisterFunctionPointer(this.OnCreateWindow); + pio.PlatformDestroyWindow = this.RegisterFunctionPointer(this.OnDestroyWindow); + pio.PlatformShowWindow = this.RegisterFunctionPointer(this.OnShowWindow); + pio.PlatformSetWindowPos = this.RegisterFunctionPointer(this.OnSetWindowPos); + pio.PlatformGetWindowPos = this.RegisterFunctionPointer(this.OnGetWindowPos); + pio.PlatformSetWindowSize = this.RegisterFunctionPointer(this.OnSetWindowSize); + pio.PlatformGetWindowSize = this.RegisterFunctionPointer(this.OnGetWindowSize); + pio.PlatformSetWindowFocus = this.RegisterFunctionPointer(this.OnSetWindowFocus); + pio.PlatformGetWindowFocus = this.RegisterFunctionPointer(this.OnGetWindowFocus); + pio.PlatformGetWindowMinimized = + this.RegisterFunctionPointer(this.OnGetWindowMinimized); + pio.PlatformSetWindowTitle = this.RegisterFunctionPointer(this.OnSetWindowTitle); + pio.PlatformSetWindowAlpha = this.RegisterFunctionPointer(this.OnSetWindowAlpha); + pio.PlatformUpdateWindow = this.RegisterFunctionPointer(this.OnUpdateWindow); + // pio.Platform_SetImeInputPos = this.RegisterFunctionPointer(this.OnSetImeInputPos); + // pio.Platform_GetWindowDpiScale = this.RegisterFunctionPointer(this.OnGetWindowDpiScale); + // pio.Platform_ChangedViewport = this.RegisterFunctionPointer(this.OnChangedViewport); + + var wcex = new WNDCLASSEXW + { + cbSize = (uint)sizeof(WNDCLASSEXW), + style = CS.CS_HREDRAW | CS.CS_VREDRAW, + hInstance = GetModuleHandleW(null), + hbrBackground = (HBRUSH)(1 + COLOR.COLOR_BACKGROUND), + lpfnWndProc = (delegate* unmanaged)Marshal + .GetFunctionPointerForDelegate(this.input.wndProcDelegate), + lpszClassName = (ushort*)this.classNamePtr, + }; + + if (RegisterClassExW(&wcex) == 0) + throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) ?? new("RegisterClassEx Fail"); + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + var mainViewport = ImGui.GetMainViewport(); + + var data = (ImGuiViewportDataWin32*)Marshal.AllocHGlobal(Marshal.SizeOf()); + mainViewport.PlatformUserData = data; + data->Hwnd = this.input.hWnd; + data->HwndOwned = false; + mainViewport.PlatformHandle = this.input.hWnd; + } + + public void Dispose() + { + if (this.input is null) + return; + + var pio = ImGui.GetPlatformIO(); + + if (ImGui.GetPlatformIO().Handle->Monitors.Data != null) + { + // We allocated the platform monitor data in OnUpdateMonitors ourselves, + // so we have to free it ourselves to ImGui doesn't try to, or else it will crash + Marshal.FreeHGlobal(new IntPtr(ImGui.GetPlatformIO().Handle->Monitors.Data)); + ImGui.GetPlatformIO().Handle->Monitors = default; + } + + if (this.classNamePtr != 0) + { + UnregisterClassW((ushort*)this.classNamePtr, GetModuleHandleW(null)); + Marshal.FreeHGlobal(this.classNamePtr); + this.classNamePtr = 0; + } + + pio.PlatformCreateWindow = null; + pio.PlatformDestroyWindow = null; + pio.PlatformShowWindow = null; + pio.PlatformSetWindowPos = null; + pio.PlatformGetWindowPos = null; + pio.PlatformSetWindowSize = null; + pio.PlatformGetWindowSize = null; + pio.PlatformSetWindowFocus = null; + pio.PlatformGetWindowFocus = null; + pio.PlatformGetWindowMinimized = null; + pio.PlatformSetWindowTitle = null; + pio.PlatformSetWindowAlpha = null; + pio.PlatformUpdateWindow = null; + // pio.Platform_SetImeInputPos = nint.Zero; + // pio.Platform_GetWindowDpiScale = nint.Zero; + // pio.Platform_ChangedViewport = nint.Zero; + + this.input = null!; + } + + public void UpdateMonitors() + { + if (!this.wantUpdateMonitors || this.input is null) + return; + + this.wantUpdateMonitors = false; + + // Set up platformIO monitor structures + // Here we use a manual ImVector overload, free the existing monitor data, + // and allocate our own, as we are responsible for telling ImGui about monitors + var pio = ImGui.GetPlatformIO(); + var numMonitors = GetSystemMetrics(SM.SM_CMONITORS); + var data = Marshal.AllocHGlobal(Marshal.SizeOf() * numMonitors); + if (pio.Handle->Monitors.Data != null) + Marshal.FreeHGlobal(new IntPtr(pio.Handle->Monitors.Data)); + pio.Handle->Monitors = new(numMonitors, numMonitors, (ImGuiPlatformMonitor*)data.ToPointer()); + + // ImGuiPlatformIOPtr platformIO = ImGui.GetPlatformIO(); + // Marshal.FreeHGlobal(platformIO.Handle->Monitors.Data); + // int numMonitors = GetSystemMetrics(SystemMetric.SM_CMONITORS); + // nint data = Marshal.AllocHGlobal(Marshal.SizeOf() * numMonitors); + // platformIO.Handle->Monitors = new ImVector(numMonitors, numMonitors, data); + + var monitorIndex = -1; + var enumfn = new MonitorEnumProcDelegate( + (hMonitor, _, _, _) => + { + monitorIndex++; + var info = new MONITORINFO { cbSize = (uint)sizeof(MONITORINFO) }; + if (!GetMonitorInfoW(hMonitor, &info)) + return true; + + var monitorLt = new Vector2(info.rcMonitor.left, info.rcMonitor.top); + var monitorRb = new Vector2(info.rcMonitor.right, info.rcMonitor.bottom); + var workLt = new Vector2(info.rcWork.left, info.rcWork.top); + var workRb = new Vector2(info.rcWork.right, info.rcWork.bottom); + // Give ImGui the info for this display + + ref var imMonitor = ref ImGui.GetPlatformIO().Monitors.Ref(monitorIndex); + imMonitor.MainPos = monitorLt; + imMonitor.MainSize = monitorRb - monitorLt; + imMonitor.WorkPos = workLt; + imMonitor.WorkSize = workRb - workLt; + imMonitor.DpiScale = 1f; + return true; + }); + EnumDisplayMonitors( + default, + null, + (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(enumfn), + default); + + Log.Information("Monitors set up!"); + for (var i = 0; i < numMonitors; i++) + { + var monitor = pio.Handle->Monitors[i]; + Log.Information( + "Monitor {Index}: {MainPos} {MainSize} {WorkPos} {WorkSize}", + i, + monitor.MainPos, + monitor.MainSize, + monitor.WorkPos, + monitor.WorkSize); + } + } + + private void* RegisterFunctionPointer(T obj) + { + this.delegateReferences.Add(obj); + return Marshal.GetFunctionPointerForDelegate(obj).ToPointer(); + } + + private void OnCreateWindow(ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)Marshal.AllocHGlobal(Marshal.SizeOf()); + viewport.PlatformUserData = data; + viewport.Flags = + ImGuiViewportFlags.NoTaskBarIcon | + ImGuiViewportFlags.NoFocusOnClick | + ImGuiViewportFlags.NoFocusOnAppearing | + viewport.Flags; + ViewportFlagsToWin32Styles(viewport.Flags, out data->DwStyle, out data->DwExStyle); + + var parentWindow = default(HWND); + if (viewport.ParentViewportId != 0) + { + var parentViewport = ImGui.FindViewportByID(viewport.ParentViewportId); + parentWindow = (HWND)parentViewport.PlatformHandle; + } + + // Create window + var rect = new RECT + { + left = (int)viewport.Pos.X, + top = (int)viewport.Pos.Y, + right = (int)(viewport.Pos.X + viewport.Size.X), + bottom = (int)(viewport.Pos.Y + viewport.Size.Y), + }; + AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); + + fixed (char* pwszWindowTitle = "Untitled") + { + data->Hwnd = CreateWindowExW( + (uint)data->DwExStyle, + (ushort*)this.classNamePtr, + (ushort*)pwszWindowTitle, + (uint)data->DwStyle, + rect.left, + rect.top, + rect.right - rect.left, + rect.bottom - rect.top, + parentWindow, + default, + GetModuleHandleW(null), + default); + } + + data->HwndOwned = true; + viewport.PlatformRequestResize = false; + viewport.PlatformHandle = viewport.PlatformHandleRaw = data->Hwnd; + } + + private void OnDestroyWindow(ImGuiViewportPtr viewport) + { + // This is also called on the main viewport for some reason, and we never set that viewport's PlatformUserData + if (viewport.PlatformUserData == null) return; + + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + + if (GetCapture() == data->Hwnd) + { + // Transfer capture so if we started dragging from a window that later disappears, we'll still receive the MOUSEUP event. + ReleaseCapture(); + SetCapture(this.input.hWnd); + } + + if (data->Hwnd != nint.Zero && data->HwndOwned) + { + var result = DestroyWindow(data->Hwnd); + if (result == false && GetLastError() == ERROR.ERROR_ACCESS_DENIED) + { + // We are disposing, and we're doing it from a different thread because of course we are + // Just send the window the close message + PostMessageW(data->Hwnd, WM.WM_CLOSE, default, default); + } + } + + data->Hwnd = default; + Marshal.FreeHGlobal(new IntPtr(viewport.PlatformUserData)); + viewport.PlatformUserData = viewport.PlatformHandle = null; + } + + private void OnShowWindow(ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + + if (viewport.Flags.HasFlag(ImGuiViewportFlags.NoFocusOnAppearing)) + ShowWindow(data->Hwnd, SW.SW_SHOWNA); + else + ShowWindow(data->Hwnd, SW.SW_SHOW); + } + + private void OnUpdateWindow(ImGuiViewportPtr viewport) + { + // (Optional) Update Win32 style if it changed _after_ creation. + // Generally they won't change unless configuration flags are changed, but advanced uses (such as manually rewriting viewport flags) make this useful. + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + + viewport.Flags = + ImGuiViewportFlags.NoTaskBarIcon | + ImGuiViewportFlags.NoFocusOnClick | + ImGuiViewportFlags.NoFocusOnAppearing | + viewport.Flags; + ViewportFlagsToWin32Styles(viewport.Flags, out var newStyle, out var newExStyle); + + // Only reapply the flags that have been changed from our point of view (as other flags are being modified by Windows) + if (data->DwStyle != newStyle || data->DwExStyle != newExStyle) + { + // (Optional) Update TopMost state if it changed _after_ creation + var topMostChanged = (data->DwExStyle & WS.WS_EX_TOPMOST) != + (newExStyle & WS.WS_EX_TOPMOST); + + var insertAfter = default(HWND); + if (topMostChanged) + { + insertAfter = viewport.Flags.HasFlag(ImGuiViewportFlags.TopMost) + ? HWND.HWND_TOPMOST + : HWND.HWND_NOTOPMOST; + } + + var swpFlag = topMostChanged ? 0 : SWP.SWP_NOZORDER; + + // Apply flags and position (since it is affected by flags) + data->DwStyle = newStyle; + data->DwExStyle = newExStyle; + + _ = SetWindowLongW(data->Hwnd, GWL.GWL_STYLE, data->DwStyle); + _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, data->DwExStyle); + + // Create window + var rect = new RECT + { + left = (int)viewport.Pos.X, + top = (int)viewport.Pos.Y, + right = (int)(viewport.Pos.X + viewport.Size.X), + bottom = (int)(viewport.Pos.Y + viewport.Size.Y), + }; + AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); + SetWindowPos( + data->Hwnd, + insertAfter, + rect.left, + rect.top, + rect.right - rect.left, + rect.bottom - rect.top, + (uint)(swpFlag | SWP.SWP_NOACTIVATE | SWP.SWP_FRAMECHANGED)); + + // This is necessary when we alter the style + ShowWindow(data->Hwnd, SW.SW_SHOWNA); + viewport.PlatformRequestMove = viewport.PlatformRequestResize = true; + } + } + + private Vector2* OnGetWindowPos(Vector2* returnStorage, ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + var pt = new POINT { x = 0, y = 0 }; + ClientToScreen(data->Hwnd, &pt); + returnStorage->X = pt.x; + returnStorage->Y = pt.y; + return returnStorage; + } + + private void OnSetWindowPos(ImGuiViewportPtr viewport, Vector2 pos) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + var rect = new RECT((int)pos.X, (int)pos.Y, (int)pos.X, (int)pos.Y); + AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); + SetWindowPos( + data->Hwnd, + default, + rect.left, + rect.top, + 0, + 0, + SWP.SWP_NOZORDER | + SWP.SWP_NOSIZE | + SWP.SWP_NOACTIVATE); + } + + private Vector2* OnGetWindowSize(Vector2* returnStorage, ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + RECT rect; + GetClientRect(data->Hwnd, &rect); + returnStorage->X = rect.right - rect.left; + returnStorage->Y = rect.bottom - rect.top; + return returnStorage; + } + + private void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + + var rect = new RECT(0, 0, (int)size.X, (int)size.Y); + AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); + SetWindowPos( + data->Hwnd, + default, + 0, + 0, + rect.right - rect.left, + rect.bottom - rect.top, + SWP.SWP_NOZORDER | + SWP.SWP_NOMOVE | + SWP.SWP_NOACTIVATE); + } + + private void OnSetWindowFocus(ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + + BringWindowToTop(data->Hwnd); + SetForegroundWindow(data->Hwnd); + SetFocus(data->Hwnd); + } + + private bool OnGetWindowFocus(ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + return GetForegroundWindow() == data->Hwnd; + } + + private bool OnGetWindowMinimized(ImGuiViewportPtr viewport) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + return IsIconic(data->Hwnd); + } + + private void OnSetWindowTitle(ImGuiViewportPtr viewport, string title) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + fixed (char* pwszTitle = title) + SetWindowTextW(data->Hwnd, (ushort*)pwszTitle); + } + + private void OnSetWindowAlpha(ImGuiViewportPtr viewport, float alpha) + { + var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; + var style = GetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE); + + alpha = Math.Clamp(alpha, 0f, 1f); + if (alpha < 1.0f) + { + style |= WS.WS_EX_LAYERED; + _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, style); + } + else + { + style &= ~WS.WS_EX_LAYERED; + _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, style); + } + + _ = SetLayeredWindowAttributes(data->Hwnd, 0, (byte)(255 * alpha), LWA.LWA_ALPHA); + } + + // TODO: Decode why IME is miserable + // private void OnSetImeInputPos(ImGuiViewportPtr viewport, Vector2 pos) { + // COMPOSITIONFORM cs = new COMPOSITIONFORM( + // 0x20, + // new POINT( + // (int) (pos.X - viewport.Pos.X), + // (int) (pos.Y - viewport.Pos.Y)), + // new RECT(0, 0, 0, 0) + // ); + // var hwnd = viewport.PlatformHandle; + // if (hwnd != nint.Zero) { + // var himc = ImmGetContext(hwnd); + // if (himc != nint.Zero) { + // ImmSetCompositionWindow(himc, ref cs); + // ImmReleaseContext(hwnd, himc); + // } + // } + // } + + // Helper structure we store in the void* RenderUserData field of each ImGuiViewport to easily retrieve our backend data-> + private struct ImGuiViewportDataWin32 + { + public HWND Hwnd; + public bool HwndOwned; + public int DwStyle; + public int DwExStyle; + } + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs new file mode 100644 index 000000000..fe83d58a9 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs @@ -0,0 +1,372 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.InteropServices; + +using Dalamud.Bindings.ImGui; +using Dalamud.Interface.ImGuiBackend.Helpers; +using Dalamud.Utility; +using TerraFX.Interop.DirectX; +using TerraFX.Interop.Windows; + +using static TerraFX.Interop.Windows.Windows; + +namespace Dalamud.Interface.ImGuiBackend.Renderers; + +/// +/// Deals with rendering ImGui using DirectX 11. +/// See https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_dx11.cpp for the original implementation. +/// +[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed/using scopes")] +internal unsafe partial class Dx11Renderer +{ + private class ViewportHandler : IDisposable + { + private readonly Dx11Renderer renderer; + + [SuppressMessage("ReSharper", "NotAccessedField.Local", Justification = "Keeping reference alive")] + private readonly ImGuiViewportHelpers.CreateWindowDelegate cwd; + + public ViewportHandler(Dx11Renderer renderer) + { + this.renderer = renderer; + + var pio = ImGui.GetPlatformIO(); + pio.RendererCreateWindow = Marshal.GetFunctionPointerForDelegate(this.cwd = this.OnCreateWindow).ToPointer(); + pio.RendererDestroyWindow = (delegate* unmanaged)&OnDestroyWindow; + pio.RendererSetWindowSize = (delegate* unmanaged)&OnSetWindowSize; + pio.RendererRenderWindow = (delegate* unmanaged)&OnRenderWindow; + pio.RendererSwapBuffers = (delegate* unmanaged)&OnSwapBuffers; + } + + ~ViewportHandler() => ReleaseUnmanagedResources(); + + public void Dispose() + { + ReleaseUnmanagedResources(); + GC.SuppressFinalize(this); + } + + private static void ReleaseUnmanagedResources() + { + var pio = ImGui.GetPlatformIO(); + pio.RendererCreateWindow = null; + pio.RendererDestroyWindow = null; + pio.RendererSetWindowSize = null; + pio.RendererRenderWindow = null; + pio.RendererSwapBuffers = null; + } + + [UnmanagedCallersOnly] + private static void OnDestroyWindow(ImGuiViewportPtr viewport) + { + if (viewport.RendererUserData == null) + return; + ViewportData.Attach(viewport.RendererUserData).Dispose(); + viewport.RendererUserData = null; + } + + [UnmanagedCallersOnly] + private static void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size) => + ViewportData.Attach(viewport.RendererUserData).ResizeBuffers((int)size.X, (int)size.Y, true); + + [UnmanagedCallersOnly] + private static void OnRenderWindow(ImGuiViewportPtr viewport, nint v) => + ViewportData.Attach(viewport.RendererUserData).Draw(viewport.DrawData, true); + + [UnmanagedCallersOnly] + private static void OnSwapBuffers(ImGuiViewportPtr viewport, nint v) => + ViewportData.Attach(viewport.RendererUserData).PresentIfSwapChainAvailable(); + + private void OnCreateWindow(ImGuiViewportPtr viewport) + { + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backend will leave PlatformHandleRaw NULL, in which case we assume PlatformHandle will contain the HWND. + var hWnd = viewport.PlatformHandleRaw; + if (hWnd == null) + hWnd = viewport.PlatformHandle; + try + { + viewport.RendererUserData = ViewportData.CreateDComposition(this.renderer, (HWND)hWnd).Handle; + } + catch + { + viewport.RendererUserData = ViewportData.Create(this.renderer, (HWND)hWnd).Handle; + } + } + } + + private sealed class ViewportData : IDisposable + { + private readonly Dx11Renderer parent; + + private GCHandle selfGcHandle; + private ComPtr swapChain; + private ComPtr renderTarget; + private ComPtr renderTargetView; + private ComPtr dcompVisual; + private ComPtr dcompTarget; + + private int width; + private int height; + + public ViewportData( + Dx11Renderer parent, + IDXGISwapChain* swapChain, + int width, + int height, + IDCompositionVisual* dcompVisual, + IDCompositionTarget* dcompTarget) + { + this.parent = parent; + this.swapChain = new(swapChain); + this.width = width; + this.height = height; + if (dcompVisual is not null) + this.dcompVisual = new(dcompVisual); + if (dcompTarget is not null) + this.dcompTarget = new(dcompTarget); + this.selfGcHandle = GCHandle.Alloc(this); + } + + public IDXGISwapChain* SwapChain => this.swapChain; + + public void* Handle => GCHandle.ToIntPtr(this.selfGcHandle).ToPointer(); + + private DXGI_FORMAT RtvFormat => this.parent.rtvFormat; + + public static ViewportData Attach(void* handle) => + (ViewportData)GCHandle.FromIntPtr(new IntPtr(handle)).Target ?? throw new InvalidOperationException(); + + public static ViewportData Create( + Dx11Renderer renderer, + IDXGISwapChain* swapChain, + IDCompositionVisual* dcompVisual, + IDCompositionTarget* dcompTarget) + { + DXGI_SWAP_CHAIN_DESC desc; + swapChain->GetDesc(&desc).ThrowOnError(); + return new( + renderer, + swapChain, + (int)desc.BufferDesc.Width, + (int)desc.BufferDesc.Height, + dcompVisual, + dcompTarget); + } + + public static ViewportData CreateDComposition(Dx11Renderer renderer, HWND hWnd) + { + if (renderer.dcompDevice.IsEmpty()) + throw new NotSupportedException(); + + var mvsd = default(DXGI_SWAP_CHAIN_DESC); + renderer.mainViewport.SwapChain->GetDesc(&mvsd).ThrowOnError(); + + using var dxgiFactory = default(ComPtr); + fixed (Guid* piidFactory = &IID.IID_IDXGIFactory4) + { +#if DEBUG + DirectX.CreateDXGIFactory2( + DXGI.DXGI_CREATE_FACTORY_DEBUG, + piidFactory, + (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); +#else + DirectX.CreateDXGIFactory1(piidFactory, (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); +#endif + } + + RECT rc; + if (!GetWindowRect(hWnd, &rc) || rc.right == rc.left || rc.bottom == rc.top) + rc = new(0, 0, 4, 4); + + using var swapChain1 = default(ComPtr); + var sd1 = new DXGI_SWAP_CHAIN_DESC1 + { + Width = (uint)(rc.right - rc.left), + Height = (uint)(rc.bottom - rc.top), + Format = renderer.rtvFormat, + Stereo = false, + SampleDesc = new(1, 0), + BufferUsage = DXGI.DXGI_USAGE_RENDER_TARGET_OUTPUT, + BufferCount = Math.Max(2u, mvsd.BufferCount), + Scaling = DXGI_SCALING.DXGI_SCALING_STRETCH, + SwapEffect = DXGI_SWAP_EFFECT.DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, + AlphaMode = DXGI_ALPHA_MODE.DXGI_ALPHA_MODE_PREMULTIPLIED, + Flags = 0, + }; + dxgiFactory.Get()->CreateSwapChainForComposition( + (IUnknown*)renderer.device.Get(), + &sd1, + null, + swapChain1.GetAddressOf()).ThrowOnError(); + + if (ReShadePeeler.PeelSwapChain(&swapChain1)) + { + swapChain1.Get()->ResizeBuffers(sd1.BufferCount, sd1.Width, sd1.Height, sd1.Format, sd1.Flags) + .ThrowOnError(); + } + + using var dcTarget = default(ComPtr); + renderer.dcompDevice.Get()->CreateTargetForHwnd(hWnd, BOOL.TRUE, dcTarget.GetAddressOf()); + + using var dcVisual = default(ComPtr); + renderer.dcompDevice.Get()->CreateVisual(dcVisual.GetAddressOf()).ThrowOnError(); + + dcVisual.Get()->SetContent((IUnknown*)swapChain1.Get()).ThrowOnError(); + dcTarget.Get()->SetRoot(dcVisual).ThrowOnError(); + renderer.dcompDevice.Get()->Commit().ThrowOnError(); + + using var swapChain = default(ComPtr); + swapChain1.As(&swapChain).ThrowOnError(); + return Create(renderer, swapChain, dcVisual, dcTarget); + } + + public static ViewportData Create(Dx11Renderer renderer, HWND hWnd) + { + using var dxgiFactory = default(ComPtr); + fixed (Guid* piidFactory = &IID.IID_IDXGIFactory) + { +#if DEBUG + DirectX.CreateDXGIFactory2( + DXGI.DXGI_CREATE_FACTORY_DEBUG, + piidFactory, + (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); +#else + DirectX.CreateDXGIFactory(piidFactory, (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); +#endif + } + + // Create swapchain + using var swapChain = default(ComPtr); + var desc = new DXGI_SWAP_CHAIN_DESC + { + BufferDesc = + { + Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, + }, + SampleDesc = new(1, 0), + BufferUsage = DXGI.DXGI_USAGE_RENDER_TARGET_OUTPUT, + BufferCount = 1, + OutputWindow = hWnd, + Windowed = true, + SwapEffect = DXGI_SWAP_EFFECT.DXGI_SWAP_EFFECT_DISCARD, + }; + dxgiFactory.Get()->CreateSwapChain((IUnknown*)renderer.device.Get(), &desc, swapChain.GetAddressOf()) + .ThrowOnError(); + + if (ReShadePeeler.PeelSwapChain(&swapChain)) + { + swapChain.Get()->ResizeBuffers( + desc.BufferCount, + desc.BufferDesc.Width, + desc.BufferDesc.Height, + desc.BufferDesc.Format, + desc.Flags) + .ThrowOnError(); + } + + return Create(renderer, swapChain, null, null); + } + + public void Dispose() + { + if (!this.selfGcHandle.IsAllocated) + return; + + this.ResetBuffers(); + this.dcompVisual.Reset(); + this.dcompTarget.Reset(); + this.swapChain.Reset(); + this.selfGcHandle.Free(); + } + + public void Draw(ImDrawDataPtr drawData, bool clearRenderTarget) + { + if (this.width < 1 || this.height < 1) + return; + + this.EnsureRenderTarget(); + this.parent.RenderDrawDataInternal(this.renderTargetView, drawData, clearRenderTarget); + } + + public void PresentIfSwapChainAvailable() + { + if (this.width < 1 || this.height < 1) + return; + + if (!this.swapChain.IsEmpty()) + this.swapChain.Get()->Present(0, 0).ThrowOnError(); + } + + public void ResetBuffers() + { + this.renderTargetView.Reset(); + this.renderTarget.Reset(); + } + + public void ResizeBuffers(int newWidth, int newHeight, bool resizeSwapChain) + { + this.ResetBuffers(); + + this.width = newWidth; + this.height = newHeight; + if (this.width < 1 || this.height < 1) + return; + + if (resizeSwapChain && !this.swapChain.IsEmpty()) + { + DXGI_SWAP_CHAIN_DESC desc; + this.swapChain.Get()->GetDesc(&desc).ThrowOnError(); + this.swapChain.Get()->ResizeBuffers( + desc.BufferCount, + (uint)newWidth, + (uint)newHeight, + DXGI_FORMAT.DXGI_FORMAT_UNKNOWN, + desc.Flags).ThrowOnError(); + } + } + + private void EnsureRenderTarget() + { + if (!this.renderTarget.IsEmpty() && !this.renderTargetView.IsEmpty()) + return; + + this.ResetBuffers(); + + fixed (ID3D11Texture2D** pprt = &this.renderTarget.GetPinnableReference()) + fixed (ID3D11RenderTargetView** pprtv = &this.renderTargetView.GetPinnableReference()) + { + if (this.swapChain.IsEmpty()) + { + var desc = new D3D11_TEXTURE2D_DESC + { + Width = (uint)this.width, + Height = (uint)this.height, + MipLevels = 1, + ArraySize = 1, + Format = this.RtvFormat, + SampleDesc = new(1, 0), + Usage = D3D11_USAGE.D3D11_USAGE_DEFAULT, + BindFlags = (uint)D3D11_BIND_FLAG.D3D11_BIND_SHADER_RESOURCE, + CPUAccessFlags = 0, + MiscFlags = (uint)D3D11_RESOURCE_MISC_FLAG.D3D11_RESOURCE_MISC_SHARED_NTHANDLE, + }; + this.parent.device.Get()->CreateTexture2D(&desc, null, pprt).ThrowOnError(); + } + else + { + fixed (Guid* piid = &IID.IID_ID3D11Texture2D) + { + this.swapChain.Get()->GetBuffer(0u, piid, (void**)pprt) + .ThrowOnError(); + } + } + + this.parent.device.Get()->CreateRenderTargetView((ID3D11Resource*)*pprt, null, pprtv).ThrowOnError(); + } + } + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs new file mode 100644 index 000000000..9e97a11b8 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs @@ -0,0 +1,686 @@ +using System.Buffers; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Numerics; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +using Dalamud.Bindings.ImGui; +using Dalamud.Interface.ImGuiBackend.Helpers; +using Dalamud.Interface.ImGuiBackend.Helpers.D3D11; +using Dalamud.Interface.Textures; +using Dalamud.Interface.Textures.TextureWraps; +using Dalamud.Interface.Textures.TextureWraps.Internal; +using Dalamud.Interface.Utility; +using Dalamud.Utility; +using TerraFX.Interop.DirectX; +using TerraFX.Interop.Windows; + +namespace Dalamud.Interface.ImGuiBackend.Renderers; + +/// +/// Deals with rendering ImGui using DirectX 11. +/// See https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_dx11.cpp for the original implementation. +/// +[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed/using scopes")] +internal unsafe partial class Dx11Renderer : IImGuiRenderer +{ + private readonly List fontTextures = new(); + private readonly D3D_FEATURE_LEVEL featureLevel; + private readonly ViewportHandler viewportHandler; + private readonly nint renderNamePtr; + private readonly DXGI_FORMAT rtvFormat; + private readonly ViewportData mainViewport; + + private bool releaseUnmanagedResourceCalled; + + private ComPtr device; + private ComPtr context; + private ComPtr vertexShader; + private ComPtr pixelShader; + private ComPtr sampler; + private ComPtr inputLayout; + private ComPtr vertexConstantBuffer; + private ComPtr blendState; + private ComPtr rasterizerState; + private ComPtr depthStencilState; + private ComPtr vertexBuffer; + private ComPtr indexBuffer; + private int vertexBufferSize; + private int indexBufferSize; + + private ComPtr dcompDevice; + + /// + /// Initializes a new instance of the class. + /// + /// The swap chain. + /// A pointer to an instance of . + /// A pointer to an instance of . + public Dx11Renderer(IDXGISwapChain* swapChain, ID3D11Device* device, ID3D11DeviceContext* context) + { + var io = ImGui.GetIO(); + if (ImGui.GetIO().Handle->BackendRendererName is not null) + throw new InvalidOperationException("ImGui backend renderer seems to be have been already attached."); + try + { + DXGI_SWAP_CHAIN_DESC desc; + swapChain->GetDesc(&desc).ThrowOnError(); + this.rtvFormat = desc.BufferDesc.Format; + this.device = new(device); + this.context = new(context); + this.featureLevel = device->GetFeatureLevel(); + + io.BackendFlags |= ImGuiBackendFlags.RendererHasVtxOffset | ImGuiBackendFlags.RendererHasViewports; + + this.renderNamePtr = Marshal.StringToHGlobalAnsi("imgui_impl_dx11_c#"); + io.Handle->BackendRendererName = (byte*)this.renderNamePtr; + + if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable)) + { + try + { + fixed (IDCompositionDevice** pp = &this.dcompDevice.GetPinnableReference()) + fixed (Guid* piidDCompositionDevice = &IID.IID_IDCompositionDevice) + DirectX.DCompositionCreateDevice(null, piidDCompositionDevice, (void**)pp).ThrowOnError(); + + ImGuiViewportHelpers.EnableViewportWindowBackgroundAlpha(); + } + catch + { + // don't care; not using DComposition then + } + + this.viewportHandler = new(this); + } + + this.mainViewport = ViewportData.Create(this, swapChain, null, null); + var vp = ImGui.GetPlatformIO().Viewports[0]; + vp.RendererUserData = this.mainViewport.Handle; + } + catch + { + this.ReleaseUnmanagedResources(); + throw; + } + } + + /// + /// Finalizes an instance of the class. + /// + ~Dx11Renderer() => this.ReleaseUnmanagedResources(); + + /// + public void Dispose() + { + this.ReleaseUnmanagedResources(); + GC.SuppressFinalize(this); + } + + /// + public void OnNewFrame() + { + this.EnsureDeviceObjects(); + } + + /// + public void OnPreResize() => this.mainViewport.ResetBuffers(); + + /// + public void OnPostResize(int width, int height) => this.mainViewport.ResizeBuffers(width, height, false); + + /// + public void RenderDrawData(ImDrawDataPtr drawData) => + this.mainViewport.Draw(drawData, this.mainViewport.SwapChain == null); + + /// + /// Rebuilds font texture. + /// + public void RebuildFontTexture() + { + foreach (var fontResourceView in this.fontTextures) + fontResourceView.Dispose(); + this.fontTextures.Clear(); + + this.CreateFontsTexture(); + } + + /// + public IDalamudTextureWrap CreateTexture2D( + ReadOnlySpan data, + RawImageSpecification specs, + bool cpuRead, + bool cpuWrite, + bool allowRenderTarget, + [CallerMemberName] string debugName = "") + { + if (cpuRead && cpuWrite) + throw new ArgumentException("cpuRead and cpuWrite cannot be set at the same time."); + + var cpuaf = default(D3D11_CPU_ACCESS_FLAG); + if (cpuRead) + cpuaf |= D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_READ; + if (cpuWrite) + cpuaf |= D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE; + + D3D11_USAGE usage; + if (cpuRead) + usage = D3D11_USAGE.D3D11_USAGE_STAGING; + else if (cpuWrite) + usage = D3D11_USAGE.D3D11_USAGE_DYNAMIC; + else + usage = D3D11_USAGE.D3D11_USAGE_DEFAULT; + + var texDesc = new D3D11_TEXTURE2D_DESC + { + Width = (uint)specs.Width, + Height = (uint)specs.Height, + MipLevels = 1, + ArraySize = 1, + Format = specs.Format, + SampleDesc = new(1, 0), + Usage = usage, + BindFlags = (uint)(D3D11_BIND_FLAG.D3D11_BIND_SHADER_RESOURCE | + (allowRenderTarget ? D3D11_BIND_FLAG.D3D11_BIND_RENDER_TARGET : 0)), + CPUAccessFlags = (uint)cpuaf, + MiscFlags = 0, + }; + using var texture = default(ComPtr); + if (data.IsEmpty) + { + Marshal.ThrowExceptionForHR(this.device.Get()->CreateTexture2D(&texDesc, null, texture.GetAddressOf())); + } + else + { + fixed (void* dataPtr = data) + { + var subrdata = new D3D11_SUBRESOURCE_DATA { pSysMem = dataPtr, SysMemPitch = (uint)specs.Pitch }; + Marshal.ThrowExceptionForHR( + this.device.Get()->CreateTexture2D(&texDesc, &subrdata, texture.GetAddressOf())); + } + } + + texture.Get()->SetDebugName($"Texture:{debugName}:SRV"); + + using var srvTemp = default(ComPtr); + var srvDesc = new D3D11_SHADER_RESOURCE_VIEW_DESC( + texture, + D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); + this.device.Get()->CreateShaderResourceView((ID3D11Resource*)texture.Get(), &srvDesc, srvTemp.GetAddressOf()) + .ThrowOnError(); + srvTemp.Get()->SetDebugName($"Texture:{debugName}:SRV"); + + return new UnknownTextureWrap((IUnknown*)srvTemp.Get(), specs.Width, specs.Height, true); + } + + private void RenderDrawDataInternal( + ID3D11RenderTargetView* renderTargetView, + ImDrawDataPtr drawData, + bool clearRenderTarget) + { + // Avoid rendering when minimized + if (drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0) + return; + + using var oldState = new D3D11DeviceContextStateBackup(this.featureLevel, this.context.Get()); + + // Setup desired DX state + this.SetupRenderState(drawData); + + this.context.Get()->OMSetRenderTargets(1, &renderTargetView, null); + if (clearRenderTarget) + { + var color = default(Vector4); + this.context.Get()->ClearRenderTargetView(renderTargetView, (float*)&color); + } + + if (!drawData.Valid || drawData.CmdListsCount == 0) + return; + + var cmdLists = new Span(drawData.Handle->CmdLists, drawData.Handle->CmdListsCount); + + // Create and grow vertex/index buffers if needed + if (this.vertexBufferSize < drawData.TotalVtxCount) + this.vertexBuffer.Dispose(); + if (this.vertexBuffer.Get() is null) + { + this.vertexBufferSize = drawData.TotalVtxCount + 5000; + var desc = new D3D11_BUFFER_DESC( + (uint)(sizeof(ImDrawVert) * this.vertexBufferSize), + (uint)D3D11_BIND_FLAG.D3D11_BIND_VERTEX_BUFFER, + D3D11_USAGE.D3D11_USAGE_DYNAMIC, + (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); + var buffer = default(ID3D11Buffer*); + this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); + this.vertexBuffer.Attach(buffer); + } + + if (this.indexBufferSize < drawData.TotalIdxCount) + this.indexBuffer.Dispose(); + if (this.indexBuffer.Get() is null) + { + this.indexBufferSize = drawData.TotalIdxCount + 5000; + var desc = new D3D11_BUFFER_DESC( + (uint)(sizeof(ushort) * this.indexBufferSize), + (uint)D3D11_BIND_FLAG.D3D11_BIND_INDEX_BUFFER, + D3D11_USAGE.D3D11_USAGE_DYNAMIC, + (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); + var buffer = default(ID3D11Buffer*); + this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); + this.indexBuffer.Attach(buffer); + } + + // Upload vertex/index data into a single contiguous GPU buffer + try + { + var vertexData = default(D3D11_MAPPED_SUBRESOURCE); + var indexData = default(D3D11_MAPPED_SUBRESOURCE); + this.context.Get()->Map( + (ID3D11Resource*)this.vertexBuffer.Get(), + 0, + D3D11_MAP.D3D11_MAP_WRITE_DISCARD, + 0, + &vertexData).ThrowOnError(); + this.context.Get()->Map( + (ID3D11Resource*)this.indexBuffer.Get(), + 0, + D3D11_MAP.D3D11_MAP_WRITE_DISCARD, + 0, + &indexData).ThrowOnError(); + + var targetVertices = new Span(vertexData.pData, this.vertexBufferSize); + var targetIndices = new Span(indexData.pData, this.indexBufferSize); + foreach (ref var cmdList in cmdLists) + { + var vertices = new ImVectorWrapper(cmdList.Handle->VtxBuffer.ToUntyped()); + var indices = new ImVectorWrapper(cmdList.Handle->IdxBuffer.ToUntyped()); + + vertices.DataSpan.CopyTo(targetVertices); + indices.DataSpan.CopyTo(targetIndices); + + targetVertices = targetVertices[vertices.Length..]; + targetIndices = targetIndices[indices.Length..]; + } + } + finally + { + this.context.Get()->Unmap((ID3D11Resource*)this.vertexBuffer.Get(), 0); + this.context.Get()->Unmap((ID3D11Resource*)this.indexBuffer.Get(), 0); + } + + // Setup orthographic projection matrix into our constant buffer. + // Our visible imgui space lies from DisplayPos (LT) to DisplayPos+DisplaySize (RB). + // DisplayPos is (0,0) for single viewport apps. + try + { + var data = default(D3D11_MAPPED_SUBRESOURCE); + this.context.Get()->Map( + (ID3D11Resource*)this.vertexConstantBuffer.Get(), + 0, + D3D11_MAP.D3D11_MAP_WRITE_DISCARD, + 0, + &data).ThrowOnError(); + *(Matrix4x4*)data.pData = Matrix4x4.CreateOrthographicOffCenter( + drawData.DisplayPos.X, + drawData.DisplayPos.X + drawData.DisplaySize.X, + drawData.DisplayPos.Y + drawData.DisplaySize.Y, + drawData.DisplayPos.Y, + 1f, + 0f); + } + finally + { + this.context.Get()->Unmap((ID3D11Resource*)this.vertexConstantBuffer.Get(), 0); + } + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + var vertexOffset = 0; + var indexOffset = 0; + var clipOff = new Vector4(drawData.DisplayPos, drawData.DisplayPos.X, drawData.DisplayPos.Y); + this.context.Get()->PSSetShader(this.pixelShader, null, 0); + this.context.Get()->PSSetSamplers(0, 1, this.sampler.GetAddressOf()); + foreach (ref var cmdList in cmdLists) + { + var cmds = new ImVectorWrapper(cmdList.Handle->CmdBuffer.ToUntyped()); + foreach (ref var cmd in cmds.DataSpan) + { + switch ((ImDrawCallbackEnum)(nint)cmd.UserCallback) + { + case ImDrawCallbackEnum.Empty: + { + var clipV4 = cmd.ClipRect - clipOff; + var clipRect = new RECT((int)clipV4.X, (int)clipV4.Y, (int)clipV4.Z, (int)clipV4.W); + + // Skip the draw if nothing would be visible + if (clipRect.left >= clipRect.right || clipRect.top >= clipRect.bottom) + continue; + + this.context.Get()->RSSetScissorRects(1, &clipRect); + + // Bind texture and draw + var srv = (ID3D11ShaderResourceView*)cmd.TextureId.Handle; + this.context.Get()->PSSetShaderResources(0, 1, &srv); + this.context.Get()->DrawIndexed( + cmd.ElemCount, + (uint)(cmd.IdxOffset + indexOffset), + (int)(cmd.VtxOffset + vertexOffset)); + break; + } + + case ImDrawCallbackEnum.ResetRenderState: + { + // Special callback value used by the user to request the renderer to reset render state. + this.SetupRenderState(drawData); + break; + } + + default: + { + // User callback, registered via ImDrawList::AddCallback() + var cb = (delegate*)cmd.UserCallback; + cb(cmdList, ref cmd); + break; + } + } + } + + indexOffset += cmdList.IdxBuffer.Size; + vertexOffset += cmdList.VtxBuffer.Size; + } + } + + /// + /// Builds fonts as necessary, and uploads the built data onto the GPU.
+ /// No-op if it has already been done. + ///
+ private void CreateFontsTexture() + { + if (this.device.IsEmpty()) + throw new ObjectDisposedException(nameof(Dx11Renderer)); + + if (this.fontTextures.Any()) + return; + + var io = ImGui.GetIO(); + if (io.Fonts.Textures.Size == 0) + io.Fonts.Build(); + + for (int textureIndex = 0, textureCount = io.Fonts.Textures.Size; + textureIndex < textureCount; + textureIndex++) + { + int width = 0, height = 0, bytespp = 0; + byte* fontPixels = null; + + // Build texture atlas + io.Fonts.GetTexDataAsRGBA32( + textureIndex, + &fontPixels, + ref width, + ref height, + ref bytespp); + + var tex = this.CreateTexture2D( + new(fontPixels, width * height * bytespp), + new(width, height, (int)DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, width * bytespp), + false, + false, + false, + $"Font#{textureIndex}"); + io.Fonts.SetTexID(textureIndex, tex.Handle); + this.fontTextures.Add(tex); + } + + io.Fonts.ClearTexData(); + } + + /// + /// Initializes the device context's render state to what we would use for rendering ImGui by default. + /// + /// The relevant ImGui draw data. + private void SetupRenderState(ImDrawDataPtr drawData) + { + var ctx = this.context.Get(); + ctx->IASetInputLayout(this.inputLayout); + var buffer = this.vertexBuffer.Get(); + var stride = (uint)sizeof(ImDrawVert); + var offset = 0u; + ctx->IASetVertexBuffers(0, 1, &buffer, &stride, &offset); + ctx->IASetIndexBuffer(this.indexBuffer, DXGI_FORMAT.DXGI_FORMAT_R16_UINT, 0); + ctx->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY.D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + + var viewport = new D3D11_VIEWPORT(0, 0, drawData.DisplaySize.X, drawData.DisplaySize.Y); + ctx->RSSetState(this.rasterizerState); + ctx->RSSetViewports(1, &viewport); + + var blendColor = default(Vector4); + ctx->OMSetBlendState(this.blendState, (float*)&blendColor, 0xffffffff); + ctx->OMSetDepthStencilState(this.depthStencilState, 0); + + ctx->VSSetShader(this.vertexShader.Get(), null, 0); + buffer = this.vertexConstantBuffer.Get(); + ctx->VSSetConstantBuffers(0, 1, &buffer); + + // PS handled later + + ctx->GSSetShader(null, null, 0); + ctx->HSSetShader(null, null, 0); + ctx->DSSetShader(null, null, 0); + ctx->CSSetShader(null, null, 0); + } + + /// + /// Creates objects from the device as necessary.
+ /// No-op if objects already are built. + ///
+ private void EnsureDeviceObjects() + { + if (this.device.IsEmpty()) + throw new ObjectDisposedException(nameof(Dx11Renderer)); + + var assembly = Assembly.GetExecutingAssembly(); + + // Create the vertex shader + if (this.vertexShader.IsEmpty() || this.inputLayout.IsEmpty()) + { + using var stream = assembly.GetManifestResourceStream("imgui-vertex.hlsl.bytes")!; + var array = ArrayPool.Shared.Rent((int)stream.Length); + stream.ReadExactly(array, 0, (int)stream.Length); + fixed (byte* pArray = array) + fixed (ID3D11VertexShader** ppShader = &this.vertexShader.GetPinnableReference()) + fixed (ID3D11InputLayout** ppInputLayout = &this.inputLayout.GetPinnableReference()) + fixed (void* pszPosition = "POSITION"u8) + fixed (void* pszTexCoord = "TEXCOORD"u8) + fixed (void* pszColor = "COLOR"u8) + { + this.device.Get()->CreateVertexShader(pArray, (nuint)stream.Length, null, ppShader).ThrowOnError(); + + var ied = stackalloc D3D11_INPUT_ELEMENT_DESC[] + { + new() + { + SemanticName = (sbyte*)pszPosition, + Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, + AlignedByteOffset = uint.MaxValue, + }, + new() + { + SemanticName = (sbyte*)pszTexCoord, + Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, + AlignedByteOffset = uint.MaxValue, + }, + new() + { + SemanticName = (sbyte*)pszColor, + Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, + AlignedByteOffset = uint.MaxValue, + }, + }; + this.device.Get()->CreateInputLayout(ied, 3, pArray, (nuint)stream.Length, ppInputLayout) + .ThrowOnError(); + } + + ArrayPool.Shared.Return(array); + } + + // Create the pixel shader + if (this.pixelShader.IsEmpty()) + { + using var stream = assembly.GetManifestResourceStream("imgui-frag.hlsl.bytes")!; + var array = ArrayPool.Shared.Rent((int)stream.Length); + stream.ReadExactly(array, 0, (int)stream.Length); + fixed (byte* pArray = array) + fixed (ID3D11PixelShader** ppShader = &this.pixelShader.GetPinnableReference()) + this.device.Get()->CreatePixelShader(pArray, (nuint)stream.Length, null, ppShader).ThrowOnError(); + ArrayPool.Shared.Return(array); + } + + // Create the sampler state + if (this.sampler.IsEmpty()) + { + var samplerDesc = new D3D11_SAMPLER_DESC + { + Filter = D3D11_FILTER.D3D11_FILTER_MIN_MAG_MIP_LINEAR, + AddressU = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, + AddressV = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, + AddressW = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, + MipLODBias = 0, + MaxAnisotropy = 0, + ComparisonFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, + MinLOD = 0, + MaxLOD = 0, + }; + + fixed (ID3D11SamplerState** ppSampler = &this.sampler.GetPinnableReference()) + this.device.Get()->CreateSamplerState(&samplerDesc, ppSampler).ThrowOnError(); + } + + // Create the constant buffer + if (this.vertexConstantBuffer.IsEmpty()) + { + var bufferDesc = new D3D11_BUFFER_DESC( + (uint)sizeof(Matrix4x4), + (uint)D3D11_BIND_FLAG.D3D11_BIND_CONSTANT_BUFFER, + D3D11_USAGE.D3D11_USAGE_DYNAMIC, + (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); + fixed (ID3D11Buffer** ppBuffer = &this.vertexConstantBuffer.GetPinnableReference()) + this.device.Get()->CreateBuffer(&bufferDesc, null, ppBuffer).ThrowOnError(); + } + + // Create the blending setup + if (this.blendState.IsEmpty()) + { + var blendStateDesc = new D3D11_BLEND_DESC + { + RenderTarget = + { + e0 = + { + BlendEnable = true, + SrcBlend = D3D11_BLEND.D3D11_BLEND_SRC_ALPHA, + DestBlend = D3D11_BLEND.D3D11_BLEND_INV_SRC_ALPHA, + BlendOp = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, + SrcBlendAlpha = D3D11_BLEND.D3D11_BLEND_INV_DEST_ALPHA, + DestBlendAlpha = D3D11_BLEND.D3D11_BLEND_ONE, + BlendOpAlpha = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, + RenderTargetWriteMask = (byte)D3D11_COLOR_WRITE_ENABLE.D3D11_COLOR_WRITE_ENABLE_ALL, + }, + }, + }; + fixed (ID3D11BlendState** ppBlendState = &this.blendState.GetPinnableReference()) + this.device.Get()->CreateBlendState(&blendStateDesc, ppBlendState).ThrowOnError(); + } + + // Create the rasterizer state + if (this.rasterizerState.IsEmpty()) + { + var rasterizerDesc = new D3D11_RASTERIZER_DESC + { + FillMode = D3D11_FILL_MODE.D3D11_FILL_SOLID, + CullMode = D3D11_CULL_MODE.D3D11_CULL_NONE, + ScissorEnable = true, + DepthClipEnable = true, + }; + fixed (ID3D11RasterizerState** ppRasterizerState = &this.rasterizerState.GetPinnableReference()) + this.device.Get()->CreateRasterizerState(&rasterizerDesc, ppRasterizerState).ThrowOnError(); + } + + // Create the depth-stencil State + if (this.depthStencilState.IsEmpty()) + { + var dsDesc = new D3D11_DEPTH_STENCIL_DESC + { + DepthEnable = false, + DepthWriteMask = D3D11_DEPTH_WRITE_MASK.D3D11_DEPTH_WRITE_MASK_ALL, + DepthFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, + StencilEnable = false, + StencilReadMask = byte.MaxValue, + StencilWriteMask = byte.MaxValue, + FrontFace = + { + StencilFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilDepthFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilPassOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, + }, + BackFace = + { + StencilFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilDepthFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilPassOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, + StencilFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, + }, + }; + fixed (ID3D11DepthStencilState** ppDepthStencilState = &this.depthStencilState.GetPinnableReference()) + this.device.Get()->CreateDepthStencilState(&dsDesc, ppDepthStencilState).ThrowOnError(); + } + + this.CreateFontsTexture(); + } + + private void ReleaseUnmanagedResources() + { + if (this.releaseUnmanagedResourceCalled) + return; + this.releaseUnmanagedResourceCalled = true; + + this.mainViewport.Dispose(); + var vp = ImGui.GetPlatformIO().Viewports[0]; + vp.RendererUserData = null; + ImGui.DestroyPlatformWindows(); + + this.viewportHandler.Dispose(); + + var io = ImGui.GetIO(); + if (io.Handle->BackendRendererName == (void*)this.renderNamePtr) + io.Handle->BackendRendererName = null; + if (this.renderNamePtr != 0) + Marshal.FreeHGlobal(this.renderNamePtr); + + foreach (var fontResourceView in this.fontTextures) + fontResourceView.Dispose(); + + foreach (var i in Enumerable.Range(0, io.Fonts.Textures.Size)) + io.Fonts.SetTexID(i, ImTextureID.Null); + + this.device.Reset(); + this.context.Reset(); + this.vertexShader.Reset(); + this.pixelShader.Reset(); + this.sampler.Reset(); + this.inputLayout.Reset(); + this.vertexConstantBuffer.Reset(); + this.blendState.Reset(); + this.rasterizerState.Reset(); + this.depthStencilState.Reset(); + this.vertexBuffer.Reset(); + this.indexBuffer.Reset(); + this.dcompDevice.Reset(); + } +} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs b/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs new file mode 100644 index 000000000..2aa0cb086 --- /dev/null +++ b/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs @@ -0,0 +1,42 @@ +using System.Runtime.CompilerServices; + +using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Textures; +using Dalamud.Interface.Textures.TextureWraps; + +namespace Dalamud.Interface.ImGuiBackend.Renderers; + +/// A simple shared public interface that all ImGui render implementations follow. +internal interface IImGuiRenderer : IDisposable +{ + /// Load an image from a span of bytes of specified format. + /// The data to load. + /// Texture specifications. + /// Whether to support reading from CPU, while disabling reading from GPU. + /// Whether to support writing from CPU, while disabling writing from GPU. + /// Whether to allow rendering to this texture. + /// Name for debugging. + /// A texture, ready to use in ImGui. + IDalamudTextureWrap CreateTexture2D( + ReadOnlySpan data, + RawImageSpecification specs, + bool cpuRead, + bool cpuWrite, + bool allowRenderTarget, + [CallerMemberName] string debugName = ""); + + /// Notifies that the window is about to be resized. + void OnPreResize(); + + /// Notifies that the window has been resized. + /// The new window width. + /// The new window height. + void OnPostResize(int width, int height); + + /// Marks the beginning of a new frame. + void OnNewFrame(); + + /// Renders the draw data. + /// The draw data. + void RenderDrawData(ImDrawDataPtr drawData); +} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes new file mode 100644 index 000000000..2a9fbf5a3 Binary files /dev/null and b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes differ diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes new file mode 100644 index 000000000..572a04538 Binary files /dev/null and b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes differ diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs index 608455650..3c02f9559 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs @@ -3,9 +3,10 @@ using System.IO; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.ImGuiFileDialog; @@ -152,7 +153,7 @@ public partial class FileDialog private void DrawPathComposer() { - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); if (ImGui.Button(this.pathInputActivated ? FontAwesomeIcon.Times.ToIconString() : FontAwesomeIcon.Edit.ToIconString())) { this.pathInputActivated = !this.pathInputActivated; @@ -167,7 +168,7 @@ public partial class FileDialog if (this.pathInputActivated) { ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - ImGui.InputText("##pathedit", ref this.pathInputBuffer, 255); + ImGui.InputText("##pathedit"u8, ref this.pathInputBuffer, 255); } else { @@ -205,7 +206,7 @@ public partial class FileDialog private void DrawSearchBar() { - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); if (ImGui.Button(FontAwesomeIcon.Home.ToIconString())) { this.SetPath("."); @@ -215,7 +216,7 @@ public partial class FileDialog if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Reset to current directory"); + ImGui.SetTooltip("Reset to current directory"u8); } ImGui.SameLine(); @@ -225,10 +226,10 @@ public partial class FileDialog if (!this.createDirectoryMode) { ImGui.SameLine(); - ImGui.TextUnformatted("Search :"); + ImGui.Text("Search :"u8); ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputText("##InputImGuiFileDialogSearchField", ref this.searchBuffer, 255)) + if (ImGui.InputText("##InputImGuiFileDialogSearchField"u8, ref this.searchBuffer, 255)) { this.ApplyFilteringOnFileList(); } @@ -239,7 +240,7 @@ public partial class FileDialog { if (this.flags.HasFlag(ImGuiFileDialogFlags.DisableCreateDirectoryButton)) return; - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); if (ImGui.Button(FontAwesomeIcon.FolderPlus.ToIconString()) && !this.createDirectoryMode) { this.createDirectoryMode = true; @@ -250,21 +251,21 @@ public partial class FileDialog if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Create Directory"); + ImGui.SetTooltip("Create Directory"u8); } if (this.createDirectoryMode) { ImGui.SameLine(); - ImGui.TextUnformatted("New Directory Name"); + ImGui.Text("New Directory Name"u8); ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X - Scaled(100)); - ImGui.InputText("##DirectoryFileName", ref this.createDirectoryBuffer, 255); + ImGui.InputText("##DirectoryFileName"u8, ref this.createDirectoryBuffer, 255); ImGui.SameLine(); - if (ImGui.Button("Ok")) + if (ImGui.Button("Ok"u8)) { if (this.CreateDir(this.createDirectoryBuffer)) { @@ -276,7 +277,7 @@ public partial class FileDialog ImGui.SameLine(); - if (ImGui.Button("Cancel")) + if (ImGui.Button("Cancel"u8)) { this.createDirectoryMode = false; } @@ -289,9 +290,9 @@ public partial class FileDialog if (!this.flags.HasFlag(ImGuiFileDialogFlags.HideSideBar)) { - if (ImGui.BeginChild("##FileDialog_ColumnChild", size)) + if (ImGui.BeginChild("##FileDialog_ColumnChild"u8, size)) { - ImGui.Columns(2, "##FileDialog_Columns"); + ImGui.Columns(2, "##FileDialog_Columns"u8); this.DrawSideBar(size with { X = Scaled(150) }); @@ -313,7 +314,7 @@ public partial class FileDialog private void DrawSideBar(Vector2 size) { - if (ImGui.BeginChild("##FileDialog_SideBar", size)) + if (ImGui.BeginChild("##FileDialog_SideBar"u8, size)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() + Scaled(5)); @@ -328,10 +329,10 @@ public partial class FileDialog this.selectedSideBar = qa.Text; } - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); ImGui.SameLine(); ImGui.SetCursorPosX(0); - ImGui.TextUnformatted(qa.Icon.ToIconString()); + ImGui.Text(qa.Icon.ToIconString()); ImGui.PopFont(); ImGui.PopID(); @@ -343,14 +344,14 @@ public partial class FileDialog private unsafe void DrawFileListView(Vector2 size) { - if (!ImGui.BeginChild("##FileDialog_FileList", size)) + if (!ImGui.BeginChild("##FileDialog_FileList"u8, size)) { ImGui.EndChild(); return; } const ImGuiTableFlags tableFlags = ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg | ImGuiTableFlags.Hideable | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoHostExtendX; - if (ImGui.BeginTable("##FileTable", 4, tableFlags, size)) + if (ImGui.BeginTable("##FileTable"u8, 4, tableFlags, size)) { ImGui.TableSetupScrollFreeze(0, 1); @@ -358,10 +359,10 @@ public partial class FileDialog var hideSize = this.flags.HasFlag(ImGuiFileDialogFlags.HideColumnSize); var hideDate = this.flags.HasFlag(ImGuiFileDialogFlags.HideColumnDate); - ImGui.TableSetupColumn(" File Name", ImGuiTableColumnFlags.WidthStretch, -1, 0); - ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthFixed | (hideType ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 1); - ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed | (hideSize ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 2); - ImGui.TableSetupColumn("Date", ImGuiTableColumnFlags.WidthFixed | (hideDate ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 3); + ImGui.TableSetupColumn(" File Name"u8, ImGuiTableColumnFlags.WidthStretch, -1, 0); + ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed | (hideType ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 1); + ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed | (hideSize ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 2); + ImGui.TableSetupColumn("Date"u8, ImGuiTableColumnFlags.WidthFixed | (hideDate ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 3); ImGui.TableNextRow(ImGuiTableRowFlags.Headers); for (var column = 0; column < 4; column++) @@ -380,11 +381,7 @@ public partial class FileDialog if (this.filteredFiles.Count > 0) { - ImGuiListClipperPtr clipper; - unsafe - { - clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); - } + var clipper = ImGui.ImGuiListClipper(); lock (this.filesLock) { @@ -417,18 +414,18 @@ public partial class FileDialog if (ImGui.TableNextColumn()) { - ImGui.TextUnformatted(file.Ext); + ImGui.Text(file.Ext); } if (ImGui.TableNextColumn()) { if (file.Type == FileStructType.File) { - ImGui.TextUnformatted(file.FormattedFileSize + " "); + ImGui.Text(file.FormattedFileSize + " "); } else { - ImGui.TextUnformatted(" "); + ImGui.Text(" "u8); } } @@ -436,7 +433,7 @@ public partial class FileDialog { var sz = ImGui.CalcTextSize(file.FileModifiedDate); ImGui.SetNextItemWidth(sz.X + Scaled(5)); - ImGui.TextUnformatted(file.FileModifiedDate + " "); + ImGui.Text(file.FileModifiedDate + " "); } ImGui.PopStyleColor(); @@ -479,9 +476,9 @@ public partial class FileDialog { const ImGuiSelectableFlags flags = ImGuiSelectableFlags.AllowDoubleClick | ImGuiSelectableFlags.SpanAllColumns; - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); - ImGui.TextUnformatted(icon.ToIconString()); + ImGui.Text(icon.ToIconString()); ImGui.PopFont(); ImGui.SameLine(Scaled(25f)); @@ -685,11 +682,11 @@ public partial class FileDialog if (this.IsDirectoryMode()) { - ImGui.TextUnformatted("Directory Path :"); + ImGui.Text("Directory Path :"u8); } else { - ImGui.TextUnformatted("File Name :"); + ImGui.Text("File Name :"u8); } ImGui.SameLine(); @@ -704,7 +701,7 @@ public partial class FileDialog ImGui.SetNextItemWidth(width); if (selectOnly) ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.5f); - ImGui.InputText("##FileName", ref this.fileNameBuffer, 255, selectOnly ? ImGuiInputTextFlags.ReadOnly : ImGuiInputTextFlags.None); + ImGui.InputText("##FileName"u8, ref this.fileNameBuffer, 255, selectOnly ? ImGuiInputTextFlags.ReadOnly : ImGuiInputTextFlags.None); if (selectOnly) ImGui.PopStyleVar(); if (this.filters.Count > 0) @@ -713,7 +710,7 @@ public partial class FileDialog var needToApplyNewFilter = false; ImGui.SetNextItemWidth(Scaled(150f)); - if (ImGui.BeginCombo("##Filters", this.selectedFilter.Filter, ImGuiComboFlags.None)) + if (ImGui.BeginCombo("##Filters"u8, this.selectedFilter.Filter, ImGuiComboFlags.None)) { var idx = 0; foreach (var filter in this.filters) @@ -745,7 +742,7 @@ public partial class FileDialog var disableOk = string.IsNullOrEmpty(this.fileNameBuffer) || (selectOnly && !this.IsItemSelected()); if (disableOk) ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.5f); - if (ImGui.Button("Ok") && !disableOk) + if (ImGui.Button("Ok"u8) && !disableOk) { this.isOk = true; res = true; @@ -755,7 +752,7 @@ public partial class FileDialog ImGui.SameLine(); - if (ImGui.Button("Cancel")) + if (ImGui.Button("Cancel"u8)) { this.isOk = false; res = true; @@ -808,8 +805,8 @@ public partial class FileDialog ImGui.OpenPopup(name); if (ImGui.BeginPopupModal(name, ref open, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove)) { - ImGui.TextUnformatted("Would you like to Overwrite it ?"); - if (ImGui.Button("Confirm")) + ImGui.Text("Would you like to Overwrite it ?"u8); + if (ImGui.Button("Confirm"u8)) { this.okResultToConfirm = false; this.isOk = true; @@ -818,7 +815,7 @@ public partial class FileDialog } ImGui.SameLine(); - if (ImGui.Button("Cancel")) + if (ImGui.Button("Cancel"u8)) { this.okResultToConfirm = false; this.isOk = false; diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs index 1d31642d3..3d8246ffd 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ImGuiFileDialog; diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs index 5b466cba2..ee12e7424 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ImGuiFileDialog; diff --git a/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs b/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs index f03518ada..6a381f5b2 100644 --- a/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs +++ b/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs @@ -5,6 +5,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.FontIdentifier; @@ -12,9 +13,6 @@ using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; using Dalamud.Utility; - -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -89,7 +87,7 @@ public sealed class SingleFontChooserDialog : IDisposable private bool popupSizeChanged; private Vector2 popupPosition = new(float.NaN); private Vector2 popupSize = new(float.NaN); - + /// Initializes a new instance of the class. /// The relevant instance of UiBuilder. /// Whether the fonts in the atlas is global scaled. @@ -207,8 +205,8 @@ public sealed class SingleFontChooserDialog : IDisposable /// Gets or sets a value indicating whether this popup should be modal, blocking everything behind from /// being interacted. - /// If true, then will be - /// used. Otherwise, will be used. + /// If true, then will be + /// used. Otherwise, will be used. public bool IsModal { get; set; } = true; /// Gets or sets the window flags. @@ -274,7 +272,7 @@ public sealed class SingleFontChooserDialog : IDisposable return new Vector2(40, 30) * ImGui.GetTextLineHeight(); } - /// + /// public void Dispose() { this.fontHandle?.Dispose(); @@ -393,16 +391,16 @@ public sealed class SingleFontChooserDialog : IDisposable var baseOffset = ImGui.GetCursorPos() - windowPad; var actionSize = Vector2.Zero; - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("OK")); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Cancel")); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Refresh")); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Reset")); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("OK"u8)); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Cancel"u8)); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Refresh"u8)); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Reset"u8)); actionSize += framePad * 2; var bodySize = ImGui.GetContentRegionAvail(); ImGui.SetCursorPos(baseOffset + windowPad); if (ImGui.BeginChild( - "##choicesBlock", + "##choicesBlock"u8, bodySize with { X = bodySize.X - windowPad.X - actionSize.X }, false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse)) @@ -414,7 +412,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.SetCursorPos(baseOffset + windowPad + new Vector2(bodySize.X - actionSize.X, 0)); - if (ImGui.BeginChild("##actionsBlock", bodySize with { X = actionSize.X })) + if (ImGui.BeginChild("##actionsBlock"u8, bodySize with { X = actionSize.X })) { this.DrawActionButtons(actionSize); } @@ -432,7 +430,7 @@ public sealed class SingleFontChooserDialog : IDisposable this.firstDrawAfterRefresh = false; } - private static float GetDistanceFromMonitor(Vector2 point, ImGuiPlatformMonitorPtr monitor) + private static float GetDistanceFromMonitor(Vector2 point, ImGuiPlatformMonitor monitor) { var lt = monitor.MainPos; var rb = monitor.MainPos + monitor.MainSize; @@ -462,25 +460,25 @@ public sealed class SingleFontChooserDialog : IDisposable var tableSize = ImGui.GetContentRegionAvail() - new Vector2(0, ImGui.GetStyle().WindowPadding.Y + previewHeight + advancedOptionsHeight); if (ImGui.BeginChild( - "##tableContainer", + "##tableContainer"u8, tableSize, false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse) - && ImGui.BeginTable("##table", 3, ImGuiTableFlags.None)) + && ImGui.BeginTable("##table"u8, 3, ImGuiTableFlags.None)) { ImGui.PushStyleColor(ImGuiCol.TableHeaderBg, Vector4.Zero); ImGui.PushStyleColor(ImGuiCol.HeaderHovered, Vector4.Zero); ImGui.PushStyleColor(ImGuiCol.HeaderActive, Vector4.Zero); ImGui.TableSetupColumn( - "Font:##familyColumn", + "Font:##familyColumn"u8, ImGuiTableColumnFlags.WidthStretch, 0.4f); ImGui.TableSetupColumn( - "Style:##fontColumn", + "Style:##fontColumn"u8, ImGuiTableColumnFlags.WidthStretch, 0.4f); ImGui.TableSetupColumn( - "Size:##sizeColumn", + "Size:##sizeColumn"u8, ImGuiTableColumnFlags.WidthStretch, 0.2f); ImGui.TableHeadersRow(); @@ -512,7 +510,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.EndChild(); - ImGui.Checkbox("Show advanced options", ref this.useAdvancedOptions); + ImGui.Checkbox("Show advanced options"u8, ref this.useAdvancedOptions); if (this.useAdvancedOptions) { if (this.DrawAdvancedOptions()) @@ -541,40 +539,29 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.fontHandle is null) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); - ImGui.TextUnformatted("Select a font."); + ImGui.Text("Select a font."u8); } else if (this.fontHandle.LoadException is { } loadException) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - ImGui.TextUnformatted(loadException.Message); + ImGui.Text(loadException.Message); ImGui.PopStyleColor(); } else if (!this.fontHandle.Available) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); - ImGui.TextUnformatted("Loading font..."); + ImGui.Text("Loading font..."u8); } else { ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); using (this.fontHandle?.Push()) { - unsafe - { - fixed (byte* buf = this.fontPreviewText) - fixed (byte* label = "##fontPreviewText"u8) - { - ImGuiNative.igInputTextMultiline( - label, - buf, - (uint)this.fontPreviewText.Length, - ImGui.GetContentRegionAvail(), - ImGuiInputTextFlags.None, - null, - null); - } - } + ImGui.InputTextMultiline( + "##fontPreviewText"u8, + this.fontPreviewText, + ImGui.GetContentRegionAvail()); } } } @@ -584,14 +571,14 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.fontFamilies?.IsCompleted is not true) { ImGui.SetScrollY(0); - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); return false; } if (!this.fontFamilies.IsCompletedSuccessfully) { ImGui.SetScrollY(0); - ImGui.TextUnformatted("Error: " + this.fontFamilies.Exception); + ImGui.Text("Error: " + this.fontFamilies.Exception); return false; } @@ -606,19 +593,19 @@ public sealed class SingleFontChooserDialog : IDisposable var changed = false; if (ImGui.InputText( - "##familySearch", + "##familySearch"u8, ref this.familySearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory, - data => + (ref ImGuiInputTextCallbackData data) => { if (families.Count == 0) return 0; var baseIndex = this.selectedFamilyIndex; - if (data->SelectionStart == 0 && data->SelectionEnd == data->BufTextLen) + if (data.SelectionStart == 0 && data.SelectionEnd == data.BufTextLen) { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: this.selectedFamilyIndex = (this.selectedFamilyIndex + 1) % families.Count; @@ -634,13 +621,13 @@ public sealed class SingleFontChooserDialog : IDisposable if (changed) { ImGuiHelpers.SetTextFromCallback( - data, + ref data, this.ExtractName(families[this.selectedFamilyIndex])); } } else { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: this.selectedFamilyIndex = families.FindIndex( @@ -689,9 +676,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##familyList", ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("##familyList"u8, ImGui.GetContentRegionAvail())) { - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if ((changed || this.firstDrawAfterRefresh) && this.selectedFamilyIndex != -1) @@ -708,7 +695,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.TextUnformatted(" "); + ImGui.Text(" "u8); continue; } @@ -748,13 +735,13 @@ public sealed class SingleFontChooserDialog : IDisposable { if (this.fontFamilies?.IsCompleted is not true) { - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); return changed; } if (!this.fontFamilies.IsCompletedSuccessfully) { - ImGui.TextUnformatted("Error: " + this.fontFamilies.Exception); + ImGui.Text("Error: " + this.fontFamilies.Exception); return changed; } @@ -774,19 +761,19 @@ public sealed class SingleFontChooserDialog : IDisposable } if (ImGui.InputText( - "##fontSearch", + "##fontSearch"u8, ref this.fontSearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory, - data => + (ref ImGuiInputTextCallbackData data) => { if (fonts.Count == 0) return 0; var baseIndex = this.selectedFontIndex; - if (data->SelectionStart == 0 && data->SelectionEnd == data->BufTextLen) + if (data.SelectionStart == 0 && data.SelectionEnd == data.BufTextLen) { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: this.selectedFontIndex = (this.selectedFontIndex + 1) % fonts.Count; @@ -801,13 +788,13 @@ public sealed class SingleFontChooserDialog : IDisposable if (changed) { ImGuiHelpers.SetTextFromCallback( - data, + ref data, this.ExtractName(fonts[this.selectedFontIndex])); } } else { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: this.selectedFontIndex = fonts.FindIndex( @@ -856,9 +843,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##fontList")) + if (ImGui.BeginChild("##fontList"u8)) { - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if ((changed || this.firstDrawAfterRefresh) && this.selectedFontIndex != -1) @@ -875,7 +862,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.TextUnformatted(" "); + ImGui.Text(" "u8); continue; } @@ -922,14 +909,14 @@ public sealed class SingleFontChooserDialog : IDisposable } if (ImGui.InputText( - "##fontSizeSearch", + "##fontSizeSearch"u8, ref this.fontSizeSearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory | ImGuiInputTextFlags.CharsDecimal, - data => + (ref ImGuiInputTextCallbackData data) => { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: this.selectedFont = this.selectedFont with @@ -948,7 +935,7 @@ public sealed class SingleFontChooserDialog : IDisposable } if (changed) - ImGuiHelpers.SetTextFromCallback(data, $"{this.selectedFont.SizePt:0.##}"); + ImGuiHelpers.SetTextFromCallback(ref data, $"{this.selectedFont.SizePt:0.##}"); return 0; })) @@ -960,9 +947,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##fontSizeList")) + if (ImGui.BeginChild("##fontSizeList"u8)) { - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if (changed && this.selectedFontIndex != -1) @@ -979,7 +966,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.TextUnformatted(" "); + ImGui.Text(" "u8); continue; } @@ -1023,36 +1010,36 @@ public sealed class SingleFontChooserDialog : IDisposable { var changed = false; - if (!ImGui.BeginTable("##advancedOptions", 4)) + if (!ImGui.BeginTable("##advancedOptions"u8, 4)) return false; - var labelWidth = ImGui.CalcTextSize("Letter Spacing:").X; - labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Offset:").X); - labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Line Height:").X); + var labelWidth = ImGui.CalcTextSize("Letter Spacing:"u8).X; + labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Offset:"u8).X); + labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Line Height:"u8).X); labelWidth += ImGui.GetStyle().FramePadding.X; - var inputWidth = ImGui.CalcTextSize("000.000").X + (ImGui.GetStyle().FramePadding.X * 2); + var inputWidth = ImGui.CalcTextSize("000.000"u8).X + (ImGui.GetStyle().FramePadding.X * 2); ImGui.TableSetupColumn( - "##inputLabelColumn", + "##inputLabelColumn"u8, ImGuiTableColumnFlags.WidthFixed, labelWidth); ImGui.TableSetupColumn( - "##input1Column", + "##input1Column"u8, ImGuiTableColumnFlags.WidthFixed, inputWidth); ImGui.TableSetupColumn( - "##input2Column", + "##input2Column"u8, ImGuiTableColumnFlags.WidthFixed, inputWidth); ImGui.TableSetupColumn( - "##fillerColumn", + "##fillerColumn"u8, ImGuiTableColumnFlags.WidthStretch, 1f); ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Offset:"); + ImGui.Text("Offset:"u8); ImGui.TableNextColumn(); if (FloatInputText( @@ -1083,7 +1070,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Letter Spacing:"); + ImGui.Text("Letter Spacing:"u8); ImGui.TableNextColumn(); if (FloatInputText( @@ -1098,7 +1085,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Line Height:"); + ImGui.Text("Line Height:"u8); ImGui.TableNextColumn(); if (FloatInputText( @@ -1131,25 +1118,25 @@ public sealed class SingleFontChooserDialog : IDisposable 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory | ImGuiInputTextFlags.CharsDecimal, - data => + (ref ImGuiInputTextCallbackData data) => { - switch (data->EventKey) + switch (data.EventKey) { case ImGuiKey.DownArrow: changed2 = true; value = Math.Min(max, (MathF.Round(value / step) * step) + step); - ImGuiHelpers.SetTextFromCallback(data, $"{value:0.##}"); + ImGuiHelpers.SetTextFromCallback(ref data, $"{value:0.##}"); break; case ImGuiKey.UpArrow: changed2 = true; value = Math.Max(min, (MathF.Round(value / step) * step) - step); - ImGuiHelpers.SetTextFromCallback(data, $"{value:0.##}"); + ImGuiHelpers.SetTextFromCallback(ref data, $"{value:0.##}"); break; } return 0; }); - + if (stylePushed) ImGui.PopStyleColor(); @@ -1172,15 +1159,15 @@ public sealed class SingleFontChooserDialog : IDisposable || this.FontFamilyExcludeFilter?.Invoke(this.selectedFont.FontId.Family) is true) { ImGui.BeginDisabled(); - ImGui.Button("OK", buttonSize); + ImGui.Button("OK"u8, buttonSize); ImGui.EndDisabled(); } - else if (ImGui.Button("OK", buttonSize)) + else if (ImGui.Button("OK"u8, buttonSize)) { this.tcs.SetResult(this.selectedFont); } - if (ImGui.Button("Cancel", buttonSize)) + if (ImGui.Button("Cancel"u8, buttonSize)) { this.Cancel(); } @@ -1191,10 +1178,10 @@ public sealed class SingleFontChooserDialog : IDisposable { isFirst = doRefresh = this.fontFamilies is null; ImGui.BeginDisabled(); - ImGui.Button("Refresh", buttonSize); + ImGui.Button("Refresh"u8, buttonSize); ImGui.EndDisabled(); } - else if (ImGui.Button("Refresh", buttonSize)) + else if (ImGui.Button("Refresh"u8, buttonSize)) { doRefresh = true; } @@ -1231,7 +1218,7 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.useAdvancedOptions) { - if (ImGui.Button("Reset", buttonSize)) + if (ImGui.Button("Reset"u8, buttonSize)) { this.selectedFont = this.selectedFont with { diff --git a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs index ed39332bd..d03234356 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs @@ -1,12 +1,11 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ImGuiNotification.Internal; /// Represents an active notification. @@ -155,7 +154,11 @@ internal sealed partial class ActiveNotification if (!isTakingKeyboardInput && !isHovered && isFocused) { - ImGui.SetWindowFocus(null); + unsafe + { + ImGui.SetWindowFocus((byte*)null); + } + isFocused = false; } @@ -215,7 +218,7 @@ internal sealed partial class ActiveNotification /// Calculates the effective expiry, taking ImGui window state into account. /// Notification will not dismiss while this paramter is true. /// The calculated effective expiry. - /// Expected to be called BETWEEN and . + /// Expected to be called BETWEEN and . private DateTime CalculateEffectiveExpiry(ref bool warrantsExtension) { DateTime expiry; @@ -380,7 +383,7 @@ internal sealed partial class ActiveNotification ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * relativeOpacity); ImGui.SetCursorPos(new(NotificationConstants.ScaledWindowPadding)); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.WhenTextColor); - ImGui.TextUnformatted( + ImGui.Text( ImGui.IsWindowHovered(ImGuiHoveredFlags.AllowWhenBlockedByActiveItem) ? this.CreatedAt.LocAbsolute() : ReducedMotions @@ -401,7 +404,7 @@ internal sealed partial class ActiveNotification var agoSize = ImGui.CalcTextSize(agoText); ImGui.SetCursorPos(new(width - ((height + agoSize.X) / 2f), NotificationConstants.ScaledWindowPadding)); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.WhenTextColor); - ImGui.TextUnformatted(agoText); + ImGui.Text(agoText); ImGui.PopStyleColor(); this.DrawIcon( @@ -412,7 +415,7 @@ internal sealed partial class ActiveNotification windowPos + new Vector2(width - height, height), true); ImGui.SetCursorPos(new(height, NotificationConstants.ScaledWindowPadding)); - ImGui.TextUnformatted(this.EffectiveMinimizedText); + ImGui.Text(this.EffectiveMinimizedText); ImGui.PopClipRect(); ImGui.PopStyleVar(); @@ -499,13 +502,13 @@ internal sealed partial class ActiveNotification if ((this.Title ?? this.Type.ToTitle()) is { } title) { ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.TitleTextColor); - ImGui.TextUnformatted(title); + ImGui.Text(title); ImGui.PopStyleColor(); } ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.BlameTextColor); ImGui.SetCursorPos(minCoord with { Y = ImGui.GetCursorPosY() }); - ImGui.TextUnformatted(this.InitiatorString); + ImGui.Text(this.InitiatorString); ImGui.PopStyleColor(); ImGui.PopTextWrapPos(); @@ -517,7 +520,7 @@ internal sealed partial class ActiveNotification ImGui.SetCursorPos(minCoord); ImGui.PushTextWrapPos(minCoord.X + width); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.BodyTextColor); - ImGui.TextUnformatted(this.Content); + ImGui.Text(this.Content); ImGui.PopStyleColor(); ImGui.PopTextWrapPos(); } @@ -596,9 +599,9 @@ internal sealed partial class ActiveNotification verts[vertPtr++] = lastOff; unsafe { - var dlist = ImGui.GetWindowDrawList().NativePtr; + var dlist = ImGui.GetWindowDrawList().Handle; fixed (Vector2* pvert = verts) - ImGuiNative.ImDrawList_AddConvexPolyFilled(dlist, pvert, vertPtr, color); + dlist->AddConvexPolyFilled(pvert, vertPtr, color); } } diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs index b8759fc2a..340763a55 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs @@ -2,6 +2,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Gui; using Dalamud.Interface.GameFonts; @@ -13,8 +14,6 @@ using Dalamud.IoC.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using ImGuiNET; - namespace Dalamud.Interface.ImGuiNotification.Internal; /// Class handling notifications/toasts in ImGui. diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs index 9cda48145..3622e2e0d 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs @@ -1,12 +1,11 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ImGuiNotification.Internal; /// @@ -55,7 +54,7 @@ internal class NotificationPositionChooser ImGui.SetNextWindowBgAlpha(0.6f); ImGui.Begin( - "###NotificationPositionChooser", + "###NotificationPositionChooser"u8, ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav); diff --git a/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs b/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs index b31321d8b..4f0830fa1 100644 --- a/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs +++ b/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs @@ -3,6 +3,7 @@ using System.Numerics; using System.Runtime.CompilerServices; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; using Dalamud.Interface.Internal; using Dalamud.Interface.Internal.Windows; @@ -13,8 +14,6 @@ using Dalamud.Interface.Utility; using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; -using ImGuiNET; - namespace Dalamud.Interface.ImGuiNotification; /// Utilities for implementing stuff under . @@ -56,7 +55,7 @@ public static class NotificationUtilities using (fontHandle.Push()) { var font = ImGui.GetFont(); - var glyphPtr = (ImGuiHelpers.ImFontGlyphReal*)font.FindGlyphNoFallback(c).NativePtr; + var glyphPtr = (ImGuiHelpers.ImFontGlyphReal*)font.FindGlyphNoFallback(c); if (glyphPtr is null) return false; @@ -103,7 +102,7 @@ public static class NotificationUtilities return false; try { - var handle = texture.ImGuiHandle; + var handle = texture.Handle; var size = texture.Size; if (size.X > maxCoord.X - minCoord.X) size *= (maxCoord.X - minCoord.X) / size.X; diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs index 9221c2dc5..d0c40cd9f 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs @@ -4,19 +4,15 @@ using System.Runtime.InteropServices; using System.Text; using BitFaster.Caching.Lru; - +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Interface.ImGuiSeStringRenderer.Internal.TextProcessing; using Dalamud.Interface.Utility; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI; - -using ImGuiNET; - using Lumina.Excel.Sheets; using Lumina.Text; using Lumina.Text.Parse; @@ -58,7 +54,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService private readonly SeStringColorStackSet colorStackSet; /// Splits a draw list so that different layers of a single glyph can be drawn out of order. - private ImDrawListSplitter* splitter = ImGuiNative.ImDrawListSplitter_ImDrawListSplitter(); + private ImDrawListSplitter* splitter = ImGui.ImDrawListSplitter(); [ServiceManager.ServiceConstructor] private SeStringRenderer(DataManager dm, TargetSigScanner sigScanner) @@ -146,15 +142,23 @@ internal unsafe class SeStringRenderer : IInternalDisposableService size = Vector2.Max(size, fragment.Offset + new Vector2(fragment.VisibleWidth, state.LineHeight)); // If we're not drawing at all, stop further processing. - if (state.DrawList.NativePtr is null) + if (state.DrawList.Handle is null) return new() { Size = size }; state.SplitDrawList(); // Handle cases where ImGui.AlignTextToFramePadding has been called. - var pCurrentWindow = *(nint*)(ImGui.GetCurrentContext() + ImGuiContextCurrentWindowOffset); - var pWindowDc = pCurrentWindow + ImGuiWindowDcOffset; - var currLineTextBaseOffset = *(float*)(pWindowDc + ImGuiWindowTempDataCurrLineTextBaseOffset); + var context = ImGui.GetCurrentContext(); + var currLineTextBaseOffset = 0f; + if (!context.IsNull) + { + var currentWindow = context.CurrentWindow; + if (!currentWindow.IsNull) + { + currLineTextBaseOffset = currentWindow.DC.CurrLineTextBaseOffset; + } + } + var itemSize = size; if (currLineTextBaseOffset != 0f) { @@ -199,7 +203,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService var cursorPosBackup = ImGui.GetCursorScreenPos(); ImGui.SetCursorScreenPos(state.ScreenOffset + f.Offset); - clicked = ImGui.InvisibleButton("##link", sz, buttonFlags); + clicked = ImGui.InvisibleButton("##link"u8, sz, buttonFlags); if (ImGui.IsItemHovered()) hoveredLinkOffset = f.Link; if (ImGui.IsItemActive()) @@ -214,7 +218,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService if (!invisibleButtonDrawn) { ImGui.SetCursorScreenPos(state.ScreenOffset); - clicked = ImGui.InvisibleButton("##text", itemSize, buttonFlags); + clicked = ImGui.InvisibleButton("##text"u8, itemSize, buttonFlags); } ImGui.PopID(); @@ -280,7 +284,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService { if (this.splitter is not null) { - ImGuiNative.ImDrawListSplitter_destroy(this.splitter); + this.splitter->Destroy(); this.splitter = null; } } @@ -295,7 +299,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService var link = -1; foreach (var (breakAt, mandatory) in new LineBreakEnumerator(state.Span, UtfEnumeratorFlags.Utf8SeString)) { - // Might have happened if custom entity was longer than the previous break unit. + // Might have happened if custom entity was longer than the previous break unit. if (prev > breakAt) continue; @@ -487,7 +491,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService if (gfdTextureSrv != 0) { state.Draw( - gfdTextureSrv, + new ImTextureID(gfdTextureSrv), offset + new Vector2(x, MathF.Round((state.LineHeight - size.Y) / 2)), size, useHq ? gfdEntry.HqUv0 : gfdEntry.Uv0, diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs index e03f60a32..f3d4c44e9 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs @@ -1,6 +1,6 @@ using System.Numerics; -using ImGuiNET; +using Dalamud.Bindings.ImGui; using Lumina.Text.Payloads; @@ -21,7 +21,7 @@ public record struct SeStringDrawParams public SeStringReplacementEntity.GetEntityDelegate? GetEntity { get; set; } /// Gets or sets the screen offset of the left top corner. - /// Screen offset to draw at, or null to use . + /// Screen offset to draw at, or null to use . public Vector2? ScreenOffset { get; set; } /// Gets or sets the font to use. @@ -40,7 +40,7 @@ public record struct SeStringDrawParams /// Gets or sets the wrapping width. /// Width in pixels, or null to wrap at the end of available content region from - /// (the default). + /// (the default). public float? WrapWidth { get; set; } /// Gets or sets the thickness of underline under links. @@ -105,8 +105,8 @@ public record struct SeStringDrawParams /// Gets the effective font. internal readonly unsafe ImFont* EffectiveFont => - (this.Font ?? ImGui.GetFont()) is var f && f.NativePtr is not null - ? f.NativePtr + (this.Font ?? ImGui.GetFont()) is var f && f.Handle is not null + ? f.Handle : throw new ArgumentException("Specified font is empty."); /// Gets the effective line height in pixels. diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs index 5f95ac1b9..64a7f3db3 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs @@ -3,13 +3,10 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; using Dalamud.Interface.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; - using Lumina.Text.Payloads; using Lumina.Text.ReadOnly; @@ -150,7 +147,7 @@ public unsafe ref struct SeStringDrawState /// Channel to switch to. [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly void SetCurrentChannel(SeStringDrawChannel channelIndex) => - ImGuiNative.ImDrawListSplitter_SetCurrentChannel(this.splitter, this.drawList, (int)channelIndex); + this.splitter->SetCurrentChannel(this.drawList, (int)channelIndex); /// Draws a single texture. /// ImGui texture ID to draw from. @@ -160,7 +157,7 @@ public unsafe ref struct SeStringDrawState /// Right bottom corner of the glyph w.r.t. its glyph origin in the source texture. /// Color of the glyph in RGBA. public readonly void Draw( - nint igTextureId, + ImTextureID igTextureId, Vector2 offset, Vector2 size, Vector2 uv0, @@ -193,7 +190,7 @@ public unsafe ref struct SeStringDrawState /// top and bottom pixels to apply faux italicization by and /// respectively. public readonly void Draw( - nint igTextureId, + ImTextureID igTextureId, Vector2 offset, Vector2 xy0, Vector2 xy1, @@ -305,7 +302,7 @@ public unsafe ref struct SeStringDrawState internal readonly ref ImGuiHelpers.ImFontGlyphReal FindGlyph(Rune rune) { var p = rune.Value is >= ushort.MinValue and < ushort.MaxValue - ? ImGuiNative.ImFont_FindGlyph(this.Font, (ushort)rune.Value) + ? this.Font->FindGlyph((ushort)rune.Value) : this.Font->FallbackGlyph; return ref *(ImGuiHelpers.ImFontGlyphReal*)p; } @@ -340,8 +337,7 @@ public unsafe ref struct SeStringDrawState return 0; return MathF.Round( - ImGuiNative.ImFont_GetDistanceAdjustmentForPair( - this.Font, + this.Font->GetDistanceAdjustmentForPair( (ushort)left.Value, (ushort)right.Value) * this.FontSizeScale); } @@ -398,9 +394,9 @@ public unsafe ref struct SeStringDrawState /// Splits the draw list. [MethodImpl(MethodImplOptions.AggressiveInlining)] internal readonly void SplitDrawList() => - ImGuiNative.ImDrawListSplitter_Split(this.splitter, this.drawList, ChannelCount); + this.splitter->Split(this.drawList, ChannelCount); /// Merges the draw list. [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal readonly void MergeDrawList() => ImGuiNative.ImDrawListSplitter_Merge(this.splitter, this.drawList); + internal readonly void MergeDrawList() => this.splitter->Merge(this.drawList); } diff --git a/Dalamud/Interface/Internal/Asserts/AssertHandler.cs b/Dalamud/Interface/Internal/Asserts/AssertHandler.cs index 56050cdfb..91323f8ac 100644 --- a/Dalamud/Interface/Internal/Asserts/AssertHandler.cs +++ b/Dalamud/Interface/Internal/Asserts/AssertHandler.cs @@ -29,14 +29,14 @@ internal class AssertHandler : IDisposable /// /// Initializes a new instance of the class. /// - public AssertHandler() + public unsafe AssertHandler() { - this.callback = (expr, file, line) => this.OnImGuiAssert(expr, file, line); + this.callback = this.OnImGuiAssert; } - private delegate void AssertCallbackDelegate( - [MarshalAs(UnmanagedType.LPStr)] string expr, - [MarshalAs(UnmanagedType.LPStr)] string file, + private unsafe delegate void AssertCallbackDelegate( + void* expr, + void* file, int line); /// @@ -53,15 +53,15 @@ internal class AssertHandler : IDisposable /// /// Register the cimgui assert handler with the native library. /// - public void Setup() + public unsafe void Setup() { - CustomNativeFunctions.igCustom_SetAssertCallback(this.callback); + CustomNativeFunctions.igCustom_SetAssertCallback(Marshal.GetFunctionPointerForDelegate(this.callback).ToPointer()); } /// /// Unregister the cimgui assert handler with the native library. /// - public void Shutdown() + public unsafe void Shutdown() { CustomNativeFunctions.igCustom_SetAssertCallback(null); } @@ -72,8 +72,19 @@ internal class AssertHandler : IDisposable this.Shutdown(); } - private void OnImGuiAssert(string expr, string file, int line) + private unsafe void OnImGuiAssert(void* pExpr, void* pFile, int line) { + var expr = Marshal.PtrToStringAnsi(new IntPtr(pExpr)); + var file = Marshal.PtrToStringAnsi(new IntPtr(pFile)); + if (expr == null || file == null) + { + Log.Warning("ImGui assertion failed: {Expr} at {File}:{Line} (failed to parse)", + expr, + file, + line); + return; + } + var key = $"{file}:{line}"; if (this.ignoredAsserts.Contains(key)) return; @@ -218,11 +229,11 @@ internal class AssertHandler : IDisposable } } - private static class CustomNativeFunctions + private static unsafe class CustomNativeFunctions { [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] #pragma warning disable SA1300 - public static extern void igCustom_SetAssertCallback(AssertCallbackDelegate? callback); + public static extern void igCustom_SetAssertCallback(void* cb); #pragma warning restore SA1300 } } diff --git a/Dalamud/Interface/Internal/DalamudCommands.cs b/Dalamud/Interface/Internal/DalamudCommands.cs index a3b28d4a8..b1fdb5232 100644 --- a/Dalamud/Interface/Internal/DalamudCommands.cs +++ b/Dalamud/Interface/Internal/DalamudCommands.cs @@ -140,12 +140,6 @@ internal class DalamudCommands : IServiceType "Open Dalamud's startup timing profiler."), }); - commandManager.AddHandler("/imdebug", new CommandInfo(this.OnDebugImInfoCommand) - { - HelpMessage = "ImGui DEBUG", - ShowInHelp = false, - }); - commandManager.AddHandler("/xlcopylog", new CommandInfo(this.OnCopyLogCommand) { HelpMessage = Loc.Localize( @@ -305,29 +299,6 @@ internal class DalamudCommands : IServiceType Service.Get().ToggleLogWindow(); } - private void OnDebugImInfoCommand(string command, string arguments) - { - var io = Service.Get().LastImGuiIoPtr; - var info = $"WantCaptureKeyboard: {io.WantCaptureKeyboard}\n"; - info += $"WantCaptureMouse: {io.WantCaptureMouse}\n"; - info += $"WantSetMousePos: {io.WantSetMousePos}\n"; - info += $"WantTextInput: {io.WantTextInput}\n"; - info += $"WantSaveIniSettings: {io.WantSaveIniSettings}\n"; - info += $"BackendFlags: {(int)io.BackendFlags}\n"; - info += $"DeltaTime: {io.DeltaTime}\n"; - info += $"DisplaySize: {io.DisplaySize.X} {io.DisplaySize.Y}\n"; - info += $"Framerate: {io.Framerate}\n"; - info += $"MetricsActiveWindows: {io.MetricsActiveWindows}\n"; - info += $"MetricsRenderWindows: {io.MetricsRenderWindows}\n"; - info += $"MousePos: {io.MousePos.X} {io.MousePos.Y}\n"; - info += $"MouseClicked: {io.MouseClicked}\n"; - info += $"MouseDown: {io.MouseDown}\n"; - info += $"NavActive: {io.NavActive}\n"; - info += $"NavVisible: {io.NavVisible}\n"; - - Log.Information(info); - } - private void OnVersionInfoCommand(string command, string arguments) { var chatGui = Service.Get(); diff --git a/Dalamud/Interface/Internal/DalamudIme.cs b/Dalamud/Interface/Internal/DalamudIme.cs index a1c4a0a95..0e778ba7e 100644 --- a/Dalamud/Interface/Internal/DalamudIme.cs +++ b/Dalamud/Interface/Internal/DalamudIme.cs @@ -11,6 +11,7 @@ using System.Runtime.InteropServices; using System.Text; using System.Text.Unicode; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Text; using Dalamud.Hooking.WndProcHook; @@ -19,8 +20,6 @@ using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; -using ImGuiNET; - #if IMEDEBUG using Serilog; #endif @@ -47,24 +46,24 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService .ToDictionary(x => x.Item1, x => x.Name); private static readonly UnicodeRange[] HanRange = - { + [ UnicodeRanges.CjkRadicalsSupplement, UnicodeRanges.CjkSymbolsandPunctuation, UnicodeRanges.CjkUnifiedIdeographsExtensionA, UnicodeRanges.CjkUnifiedIdeographs, UnicodeRanges.CjkCompatibilityIdeographs, - UnicodeRanges.CjkCompatibilityForms, + UnicodeRanges.CjkCompatibilityForms // No more; Extension B~ are outside BMP range - }; + ]; private static readonly UnicodeRange[] HangulRange = - { + [ UnicodeRanges.HangulJamo, UnicodeRanges.HangulSyllables, UnicodeRanges.HangulCompatibilityJamo, UnicodeRanges.HangulJamoExtendedA, - UnicodeRanges.HangulJamoExtendedB, - }; + UnicodeRanges.HangulJamoExtendedB + ]; [ServiceManager.ServiceDependency] private readonly DalamudConfiguration dalamudConfiguration = Service.Get(); @@ -110,24 +109,6 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService private bool updateInputLanguage = true; private bool updateImeStatusAgain; - [SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1003:Symbols should be spaced correctly", Justification = ".")] - static DalamudIme() - { - nint cimgui; - try - { - _ = ImGui.GetCurrentContext(); - - cimgui = Process.GetCurrentProcess().Modules.Cast() - .First(x => x.ModuleName == "cimgui.dll") - .BaseAddress; - } - catch - { - return; - } - } - [ServiceManager.ServiceConstructor] private DalamudIme(InterfaceManager.InterfaceManagerWithScene imws) { @@ -136,7 +117,8 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.interfaceManager = imws.Manager; this.setPlatformImeDataDelegate = this.ImGuiSetPlatformImeData; - ImGui.GetIO().SetPlatformImeDataFn = Marshal.GetFunctionPointerForDelegate(this.setPlatformImeDataDelegate); + var io = ImGui.GetIO(); + io.SetPlatformImeDataFn = Marshal.GetFunctionPointerForDelegate(this.setPlatformImeDataDelegate).ToPointer(); this.interfaceManager.Draw += this.Draw; this.wndProcHookManager.PreWndProc += this.WndProcHookManagerOnPreWndProc; } @@ -169,12 +151,12 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService return true; if (!ImGui.GetIO().ConfigInputTextCursorBlink) return true; - var textState = CustomNativeFunctions.igCustom_GetInputTextState(); - if (textState->Id == 0 || (textState->Flags & ImGuiInputTextFlags.ReadOnly) != 0) + var textState = GetInputTextState(); + if (textState.ID == 0 || (textState.Flags & ImGuiInputTextFlags.ReadOnly) != 0) return true; - if (textState->CursorAnim <= 0) + if (textState.CursorAnim <= 0) return true; - return textState->CursorAnim % 1.2f <= 0.8f; + return textState.CursorAnim % 1.2f <= 0.8f; } } @@ -227,6 +209,9 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService } } + private static ImGuiInputTextStatePtr GetInputTextState() => + (ImGuiInputTextState*)((nint)ImGui.GetCurrentContext().Handle + 0x4588); + private static (string String, bool Supported) ToUcs2(char* data, int nc = -1) { if (nc == -1) @@ -278,7 +263,10 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService private void ReleaseUnmanagedResources() { if (ImGuiHelpers.IsImGuiInitialized) - ImGui.GetIO().SetPlatformImeDataFn = nint.Zero; + { + var io = ImGui.GetIO(); + io.SetPlatformImeDataFn = null; + } } private void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) @@ -322,8 +310,8 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService try { - var textState = CustomNativeFunctions.igCustom_GetInputTextState(); - var invalidTarget = textState->Id == 0 || (textState->Flags & ImGuiInputTextFlags.ReadOnly) != 0; + var textState = GetInputTextState(); + var invalidTarget = textState.ID == 0 || (textState.Flags & ImGuiInputTextFlags.ReadOnly) != 0; #if IMEDEBUG switch (args.Message) @@ -477,7 +465,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService if (!string.IsNullOrEmpty(ImmGetCompositionString(hImc, GCS.GCS_COMPSTR))) { ImmNotifyIME(hImc, NI.NI_COMPOSITIONSTR, CPS_COMPLETE, 0); - + // Disable further handling of mouse button down event, or something would lock up the cursor. args.SuppressWithValue(1); } @@ -552,20 +540,20 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.ReflectCharacterEncounters(newString); - var textState = CustomNativeFunctions.igCustom_GetInputTextState(); + var textState = GetInputTextState(); if (this.temporaryUndoSelection is not null) { - textState->Undo(); - textState->SelectionTuple = this.temporaryUndoSelection.Value; + textState.Undo(); + textState.SetSelectionTuple(this.temporaryUndoSelection.Value); this.temporaryUndoSelection = null; } - textState->SanitizeSelectionRange(); - if (textState->ReplaceSelectionAndPushUndo(newString)) - this.temporaryUndoSelection = textState->SelectionTuple; + textState.SanitizeSelectionRange(); + if (textState.ReplaceSelectionAndPushUndo(newString)) + this.temporaryUndoSelection = textState.GetSelectionTuple(); // Put the cursor at the beginning, so that the candidate window appears aligned with the text. - textState->SetSelectionRange(textState->SelectionTuple.Start, newString.Length, 0); + textState.SetSelectionRange(textState.GetSelectionTuple().Start, newString.Length, 0); if (finalCommit) { @@ -611,8 +599,8 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.compositionCursorOffset = 0; this.temporaryUndoSelection = null; - var textState = CustomNativeFunctions.igCustom_GetInputTextState(); - textState->Stb.SelectStart = textState->Stb.Cursor = textState->Stb.SelectEnd; + var textState = GetInputTextState(); + textState.Stb.SelectStart = textState.Stb.Cursor = textState.Stb.SelectEnd; this.candidateStrings.Clear(); this.immCandNative = default; @@ -670,7 +658,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService return; var viewport = ime.associatedViewport; - if (viewport.NativePtr is null) + if (viewport.Handle is null) return; var drawCand = ime.candidateStrings.Count != 0; @@ -922,197 +910,6 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService } } - /// - /// Ported from imstb_textedit.h. - /// - [StructLayout(LayoutKind.Sequential, Size = 0xE2C)] - private struct StbTextEditState - { - /// - /// Position of the text cursor within the string. - /// - public int Cursor; - - /// - /// Selection start point. - /// - public int SelectStart; - - /// - /// selection start and end point in characters; if equal, no selection. - /// - /// - /// Note that start may be less than or greater than end (e.g. when dragging the mouse, - /// start is where the initial click was, and you can drag in either direction.) - /// - public int SelectEnd; - - /// - /// Each text field keeps its own insert mode state. - /// To keep an app-wide insert mode, copy this value in/out of the app state. - /// - public byte InsertMode; - - /// - /// Page size in number of row. - /// This value MUST be set to >0 for pageup or pagedown in multilines documents. - /// - public int RowCountPerPage; - - // Remainder is stb-private data. - } - - [StructLayout(LayoutKind.Sequential)] - private struct ImGuiInputTextState - { - public uint Id; - public int CurLenW; - public int CurLenA; - public ImVector TextWRaw; - public ImVector TextARaw; - public ImVector InitialTextARaw; - public bool TextAIsValid; - public int BufCapacityA; - public float ScrollX; - public StbTextEditState Stb; - public float CursorAnim; - public bool CursorFollow; - public bool SelectedAllMouseLock; - public bool Edited; - public ImGuiInputTextFlags Flags; - - public ImVectorWrapper TextW => new((ImVector*)&this.ThisPtr->TextWRaw); - - public (int Start, int End, int Cursor) SelectionTuple - { - get => (this.Stb.SelectStart, this.Stb.SelectEnd, this.Stb.Cursor); - set => (this.Stb.SelectStart, this.Stb.SelectEnd, this.Stb.Cursor) = value; - } - - private ImGuiInputTextState* ThisPtr => (ImGuiInputTextState*)Unsafe.AsPointer(ref this); - - public void SetSelectionRange(int offset, int length, int relativeCursorOffset) - { - this.Stb.SelectStart = offset; - this.Stb.SelectEnd = offset + length; - if (relativeCursorOffset >= 0) - this.Stb.Cursor = this.Stb.SelectStart + relativeCursorOffset; - else - this.Stb.Cursor = this.Stb.SelectEnd + 1 + relativeCursorOffset; - this.SanitizeSelectionRange(); - } - - public void SanitizeSelectionRange() - { - ref var s = ref this.Stb.SelectStart; - ref var e = ref this.Stb.SelectEnd; - ref var c = ref this.Stb.Cursor; - s = Math.Clamp(s, 0, this.CurLenW); - e = Math.Clamp(e, 0, this.CurLenW); - c = Math.Clamp(c, 0, this.CurLenW); - if (s == e) - s = e = c; - if (s > e) - (s, e) = (e, s); - } - - public void Undo() => CustomNativeFunctions.igCustom_StbTextUndo(this.ThisPtr); - - public bool MakeUndoReplace(int offset, int oldLength, int newLength) - { - if (oldLength == 0 && newLength == 0) - return false; - - CustomNativeFunctions.igCustom_StbTextMakeUndoReplace(this.ThisPtr, offset, oldLength, newLength); - return true; - } - - public bool ReplaceSelectionAndPushUndo(ReadOnlySpan newText) - { - var off = this.Stb.SelectStart; - var len = this.Stb.SelectEnd - this.Stb.SelectStart; - return this.MakeUndoReplace(off, len, newText.Length) && this.ReplaceChars(off, len, newText); - } - - public bool ReplaceChars(int pos, int len, ReadOnlySpan newText) - { - this.DeleteChars(pos, len); - return this.InsertChars(pos, newText); - } - - // See imgui_widgets.cpp: STB_TEXTEDIT_DELETECHARS - public void DeleteChars(int pos, int n) - { - if (n == 0) - return; - - var dst = this.TextW.Data + pos; - - // We maintain our buffer length in both UTF-8 and wchar formats - this.Edited = true; - this.CurLenA -= Encoding.UTF8.GetByteCount(dst, n); - this.CurLenW -= n; - - // Offset remaining text (FIXME-OPT: Use memmove) - var src = this.TextW.Data + pos + n; - int i; - for (i = 0; src[i] != 0; i++) - dst[i] = src[i]; - dst[i] = '\0'; - } - - // See imgui_widgets.cpp: STB_TEXTEDIT_INSERTCHARS - public bool InsertChars(int pos, ReadOnlySpan newText) - { - if (newText.Length == 0) - return true; - - var isResizable = (this.Flags & ImGuiInputTextFlags.CallbackResize) != 0; - var textLen = this.CurLenW; - Debug.Assert(pos <= textLen, "pos <= text_len"); - - var newTextLenUtf8 = Encoding.UTF8.GetByteCount(newText); - if (!isResizable && newTextLenUtf8 + this.CurLenA + 1 > this.BufCapacityA) - return false; - - // Grow internal buffer if needed - if (newText.Length + textLen + 1 > this.TextW.Length) - { - if (!isResizable) - return false; - - Debug.Assert(textLen < this.TextW.Length, "text_len < this.TextW.Length"); - this.TextW.Resize(textLen + Math.Clamp(newText.Length * 4, 32, Math.Max(256, newText.Length)) + 1); - } - - var text = this.TextW.DataSpan; - if (pos != textLen) - text.Slice(pos, textLen - pos).CopyTo(text[(pos + newText.Length)..]); - newText.CopyTo(text[pos..]); - - this.Edited = true; - this.CurLenW += newText.Length; - this.CurLenA += newTextLenUtf8; - this.TextW[this.CurLenW] = '\0'; - - return true; - } - } - - private static class CustomNativeFunctions - { -#pragma warning disable SA1300 - [DllImport("cimgui")] - public static extern ImGuiInputTextState* igCustom_GetInputTextState(); - - [DllImport("cimgui")] - public static extern void igCustom_StbTextMakeUndoReplace(ImGuiInputTextState* str, int where, int old_length, int new_length); - - [DllImport("cimgui")] - public static extern void igCustom_StbTextUndo(ImGuiInputTextState* str); -#pragma warning restore SA1300 - } - #if IMEDEBUG private static class ImeDebug { diff --git a/Dalamud/Interface/Internal/DalamudInterface.cs b/Dalamud/Interface/Internal/DalamudInterface.cs index 97edb8716..70645fdde 100644 --- a/Dalamud/Interface/Internal/DalamudInterface.cs +++ b/Dalamud/Interface/Internal/DalamudInterface.cs @@ -7,6 +7,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using CheapLoc; +using Dalamud.Bindings.ImGui; +using Dalamud.Bindings.ImPlot; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game.Addon.Lifecycle; @@ -33,15 +35,9 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal; using Dalamud.Storage.Assets; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.System.Framework; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; - -using ImPlotNET; -using PInvoke; using Serilog.Events; namespace Dalamud.Interface.Internal; @@ -579,13 +575,6 @@ internal class DalamudInterface : IInternalDisposableService if (this.isCreditsDarkening) this.DrawCreditsDarkeningAnimation(); - - // Release focus of any ImGui window if we click into the game. - var io = ImGui.GetIO(); - if (!io.WantCaptureMouse && (User32.GetKeyState((int)User32.VirtualKey.VK_LBUTTON) & 0x8000) != 0) - { - ImGui.SetWindowFocus(null); - } } catch (Exception ex) { @@ -607,7 +596,7 @@ internal class DalamudInterface : IInternalDisposableService ImGui.SetNextWindowBgAlpha(Math.Min(this.creditsDarkeningAnimation.EasedPoint.X, CreditsDarkeningMaxAlpha)); ImGui.Begin( - "###CreditsDarkenWindow", + "###CreditsDarkenWindow"u8, ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoBringToFrontOnFocus | ImGuiWindowFlags.NoNav); @@ -636,28 +625,28 @@ internal class DalamudInterface : IInternalDisposableService ImGui.SetNextWindowPos(windowPos, ImGuiCond.Always); ImGui.SetNextWindowBgAlpha(1); - if (ImGui.Begin("DevMenu Opener", ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) + if (ImGui.Begin("DevMenu Opener"u8, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) { ImGui.SetNextItemWidth(40); - if (ImGui.Button("###devMenuOpener", new Vector2(20, 20))) + if (ImGui.Button("###devMenuOpener"u8, new Vector2(20, 20))) this.isImGuiDrawDevMenu = true; - - ImGui.End(); } + ImGui.End(); + if (EnvironmentConfiguration.DalamudForceMinHook) { ImGui.SetNextWindowPos(windowPos, ImGuiCond.Always); ImGui.SetNextWindowBgAlpha(1); if (ImGui.Begin( - "Disclaimer", + "Disclaimer"u8, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoMouseInputs | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) { - ImGui.TextColored(ImGuiColors.DalamudRed, "Is force MinHook!"); + ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, "Is force MinHook!"u8); } ImGui.End(); @@ -665,7 +654,7 @@ internal class DalamudInterface : IInternalDisposableService } } - private void DrawDevMenu() + private unsafe void DrawDevMenu() { if (this.isImGuiDrawDevMenu) { @@ -673,11 +662,11 @@ internal class DalamudInterface : IInternalDisposableService { var pluginManager = Service.Get(); - if (ImGui.BeginMenu("Dalamud")) + if (ImGui.BeginMenu("Dalamud"u8)) { - ImGui.MenuItem("Draw dev menu", string.Empty, ref this.isImGuiDrawDevMenu); - var devBarAtStartup = this.configuration.DevBarOpenAtStartup; - if (ImGui.MenuItem("Draw dev menu at startup", string.Empty, ref devBarAtStartup)) + ImGui.MenuItem("Draw dev menu"u8, (byte*)null, ref this.isImGuiDrawDevMenu); + + if (ImGui.MenuItem("Draw dev menu at startup"u8, (byte*)null, this.configuration.DevBarOpenAtStartup)) { this.configuration.DevBarOpenAtStartup ^= true; this.configuration.QueueSave(); @@ -685,16 +674,16 @@ internal class DalamudInterface : IInternalDisposableService ImGui.Separator(); - if (ImGui.MenuItem("Open Log window")) + if (ImGui.MenuItem("Open Log window"u8)) { this.OpenLogWindow(); } - if (ImGui.BeginMenu("Set log level...")) + if (ImGui.BeginMenu("Set log level..."u8)) { foreach (var logLevel in Enum.GetValues(typeof(LogEventLevel)).Cast()) { - if (ImGui.MenuItem(logLevel + "##logLevelSwitch", string.Empty, EntryPoint.LogLevelSwitch.MinimumLevel == logLevel)) + if (ImGui.MenuItem(logLevel + "##logLevelSwitch", (byte*)null, EntryPoint.LogLevelSwitch.MinimumLevel == logLevel)) { EntryPoint.LogLevelSwitch.MinimumLevel = logLevel; this.configuration.LogLevel = logLevel; @@ -705,10 +694,9 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - var logSynchronously = this.configuration.LogSynchronously; - if (ImGui.MenuItem("Log Synchronously", null, ref logSynchronously)) + if (ImGui.MenuItem("Log Synchronously"u8, (byte*)null, this.configuration.LogSynchronously)) { - this.configuration.LogSynchronously = logSynchronously; + this.configuration.LogSynchronously ^= true; this.configuration.QueueSave(); EntryPoint.InitLogging( @@ -720,78 +708,78 @@ internal class DalamudInterface : IInternalDisposableService ImGui.Separator(); - if (ImGui.MenuItem("Open Data window")) + if (ImGui.MenuItem("Open Data window"u8)) { this.OpenDataWindow(); } - if (ImGui.MenuItem("Open Settings window")) + if (ImGui.MenuItem("Open Settings window"u8)) { this.OpenSettings(); } - if (ImGui.MenuItem("Open Changelog window")) + if (ImGui.MenuItem("Open Changelog window"u8)) { this.OpenChangelogWindow(); } - if (ImGui.MenuItem("Open Components Demo")) + if (ImGui.MenuItem("Open Components Demo"u8)) { this.OpenComponentDemoWindow(); } - if (ImGui.MenuItem("Open Colors Demo")) + if (ImGui.MenuItem("Open Colors Demo"u8)) { this.OpenColorsDemoWindow(); } - if (ImGui.MenuItem("Open Self-Test")) + if (ImGui.MenuItem("Open Self-Test"u8)) { this.OpenSelfTest(); } - if (ImGui.MenuItem("Open Style Editor")) + if (ImGui.MenuItem("Open Style Editor"u8)) { this.OpenStyleEditor(); } - if (ImGui.MenuItem("Open Profiler")) + if (ImGui.MenuItem("Open Profiler"u8)) { this.OpenProfiler(); } - if (ImGui.MenuItem("Open Hitch Settings")) + if (ImGui.MenuItem("Open Hitch Settings"u8)) { this.OpenHitchSettings(); } ImGui.Separator(); - if (ImGui.MenuItem("Unload Dalamud")) + if (ImGui.MenuItem("Unload Dalamud"u8)) { Service.Get().Unload(); } - if (ImGui.MenuItem("Restart game")) + if (ImGui.MenuItem("Restart game"u8)) { Dalamud.RestartGame(); } - if (ImGui.MenuItem("Kill game")) + if (ImGui.MenuItem("Kill game"u8)) { Process.GetCurrentProcess().Kill(); } ImGui.Separator(); - if (ImGui.BeginMenu("Crash game")) + if (ImGui.BeginMenu("Crash game"u8)) { - if (ImGui.MenuItem("Access Violation")) + if (ImGui.MenuItem("Access Violation"u8)) { Marshal.ReadByte(IntPtr.Zero); } - if (ImGui.MenuItem("Set UiModule to NULL")) + if (ImGui.MenuItem("Set UiModule to NULL"u8)) { unsafe { @@ -800,7 +788,7 @@ internal class DalamudInterface : IInternalDisposableService } } - if (ImGui.MenuItem("Set UiModule to invalid ptr")) + if (ImGui.MenuItem("Set UiModule to invalid ptr"u8)) { unsafe { @@ -809,7 +797,7 @@ internal class DalamudInterface : IInternalDisposableService } } - if (ImGui.MenuItem("Deref nullptr in Hook")) + if (ImGui.MenuItem("Deref nullptr in Hook"u8)) { unsafe { @@ -824,7 +812,7 @@ internal class DalamudInterface : IInternalDisposableService } } - if (ImGui.MenuItem("Cause CLR fastfail")) + if (ImGui.MenuItem("Cause CLR fastfail"u8)) { unsafe void CauseFastFail() { @@ -836,7 +824,7 @@ internal class DalamudInterface : IInternalDisposableService Service.Get().RunOnTick(CauseFastFail); } - if (ImGui.MenuItem("Cause ImGui assert")) + if (ImGui.MenuItem("Cause ImGui assert"u8)) { ImGui.PopStyleVar(); ImGui.PopStyleVar(); @@ -845,15 +833,15 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.MenuItem("Report crashes at shutdown", null, this.configuration.ReportShutdownCrashes)) + if (ImGui.MenuItem("Report crashes at shutdown"u8, (byte*)null, this.configuration.ReportShutdownCrashes)) { - this.configuration.ReportShutdownCrashes = !this.configuration.ReportShutdownCrashes; + this.configuration.ReportShutdownCrashes ^= true; this.configuration.QueueSave(); } ImGui.Separator(); - if (ImGui.MenuItem("Open Dalamud branch switcher")) + if (ImGui.MenuItem("Open Dalamud branch switcher"u8)) { this.OpenBranchSwitcher(); } @@ -865,29 +853,27 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("GUI")) + if (ImGui.BeginMenu("GUI"u8)) { - ImGui.MenuItem("Use Monospace font for following windows", string.Empty, ref this.isImGuiTestWindowsInMonospace); - ImGui.MenuItem("Draw ImGui demo", string.Empty, ref this.isImGuiDrawDemoWindow); - ImGui.MenuItem("Draw ImPlot demo", string.Empty, ref this.isImPlotDrawDemoWindow); - ImGui.MenuItem("Draw metrics", string.Empty, ref this.isImGuiDrawMetricsWindow); + ImGui.MenuItem("Use Monospace font for following windows"u8, (byte*)null, ref this.isImGuiTestWindowsInMonospace); + ImGui.MenuItem("Draw ImGui demo"u8, (byte*)null, ref this.isImGuiDrawDemoWindow); + ImGui.MenuItem("Draw ImPlot demo"u8, (byte*)null, ref this.isImPlotDrawDemoWindow); + ImGui.MenuItem("Draw metrics"u8, (byte*)null, ref this.isImGuiDrawMetricsWindow); ImGui.Separator(); - var showAsserts = this.interfaceManager.ShowAsserts; - if (ImGui.MenuItem("Enable assert popups", string.Empty, ref showAsserts)) + if (ImGui.MenuItem("Enable assert popups"u8, (byte*)null, this.interfaceManager.ShowAsserts)) { - this.interfaceManager.ShowAsserts = showAsserts; + this.interfaceManager.ShowAsserts ^= true; } - var enableVerboseAsserts = this.interfaceManager.EnableVerboseAssertLogging; - if (ImGui.MenuItem("Enable verbose assert logging", string.Empty, ref enableVerboseAsserts)) + if (ImGui.MenuItem("Enable verbose assert logging"u8, (byte*)null, this.interfaceManager.EnableVerboseAssertLogging)) { - this.interfaceManager.EnableVerboseAssertLogging = enableVerboseAsserts; + this.interfaceManager.EnableVerboseAssertLogging ^= true; } var assertsEnabled = this.configuration.ImGuiAssertsEnabledAtStartup ?? false; - if (ImGui.MenuItem("Enable asserts at startup", null, assertsEnabled)) + if (ImGui.MenuItem("Enable asserts at startup"u8, (byte*)null, assertsEnabled)) { this.configuration.ImGuiAssertsEnabledAtStartup = !assertsEnabled; this.configuration.QueueSave(); @@ -895,17 +881,17 @@ internal class DalamudInterface : IInternalDisposableService ImGui.Separator(); - if (ImGui.MenuItem("Clear focus")) + if (ImGui.MenuItem("Clear focus"u8)) { - ImGui.SetWindowFocus(null); + ImGui.SetWindowFocus((byte*)null); } - if (ImGui.MenuItem("Clear stacks")) + if (ImGui.MenuItem("Clear stacks"u8)) { this.interfaceManager.ClearStacks(); } - if (ImGui.MenuItem("Dump style")) + if (ImGui.MenuItem("Dump style"u8)) { var info = string.Empty; var style = StyleModelV1.Get(); @@ -938,14 +924,14 @@ internal class DalamudInterface : IInternalDisposableService Log.Information(info); } - if (ImGui.MenuItem("Show dev bar info", null, this.configuration.ShowDevBarInfo)) + if (ImGui.MenuItem("Show dev bar info"u8, (byte*)null, this.configuration.ShowDevBarInfo)) { - this.configuration.ShowDevBarInfo = !this.configuration.ShowDevBarInfo; + this.configuration.ShowDevBarInfo ^= true; } ImGui.Separator(); - if (ImGui.MenuItem("Show loading window")) + if (ImGui.MenuItem("Show loading window"u8)) { var dialog = new LoadingDialog(); dialog.Show(); @@ -954,19 +940,19 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("Game")) + if (ImGui.BeginMenu("Game"u8)) { - if (ImGui.MenuItem("Use in-game default ExceptionHandler")) + if (ImGui.MenuItem("Use in-game default ExceptionHandler"u8)) { this.dalamud.UseDefaultExceptionHandler(); } - if (ImGui.MenuItem("Use in-game debug ExceptionHandler")) + if (ImGui.MenuItem("Use in-game debug ExceptionHandler"u8)) { this.dalamud.UseDebugExceptionHandler(); } - if (ImGui.MenuItem("Disable in-game ExceptionHandler")) + if (ImGui.MenuItem("Disable in-game ExceptionHandler"u8)) { this.dalamud.UseNoExceptionHandler(); } @@ -974,26 +960,26 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("Plugins")) + if (ImGui.BeginMenu("Plugins"u8)) { - if (ImGui.MenuItem("Open Plugin installer")) + if (ImGui.MenuItem("Open Plugin installer"u8)) { this.OpenPluginInstaller(); } - if (ImGui.MenuItem("Clear cached images/icons")) + if (ImGui.MenuItem("Clear cached images/icons"u8)) { this.pluginWindow?.ClearIconCache(); } ImGui.Separator(); - if (ImGui.MenuItem("Open Plugin Stats")) + if (ImGui.MenuItem("Open Plugin Stats"u8)) { this.OpenPluginStats(); } - if (ImGui.MenuItem("Print plugin info")) + if (ImGui.MenuItem("Print plugin info"u8)) { foreach (var plugin in pluginManager.InstalledPlugins) { @@ -1002,24 +988,24 @@ internal class DalamudInterface : IInternalDisposableService } } - if (ImGui.MenuItem("Scan dev plugins")) + if (ImGui.MenuItem("Scan dev plugins"u8)) { _ = pluginManager.ScanDevPluginsAsync(); } ImGui.Separator(); - if (ImGui.MenuItem("Load all API levels (ONLY FOR DEVELOPERS!!!)", null, pluginManager.LoadAllApiLevels)) + if (ImGui.MenuItem("Load all API levels"u8, (byte*)null, pluginManager.LoadAllApiLevels)) { - pluginManager.LoadAllApiLevels = !pluginManager.LoadAllApiLevels; + pluginManager.LoadAllApiLevels ^= true; } - if (ImGui.MenuItem("Load blacklisted plugins", null, pluginManager.LoadBannedPlugins)) + if (ImGui.MenuItem("Load blacklisted plugins"u8, (byte*)null, pluginManager.LoadBannedPlugins)) { - pluginManager.LoadBannedPlugins = !pluginManager.LoadBannedPlugins; + pluginManager.LoadBannedPlugins ^= true; } - if (pluginManager.SafeMode && ImGui.MenuItem("Disable Safe Mode")) + if (pluginManager.SafeMode && ImGui.MenuItem("Disable Safe Mode"u8)) { pluginManager.SafeMode = false; } @@ -1030,23 +1016,23 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("Localization")) + if (ImGui.BeginMenu("Localization"u8)) { var localization = Service.Get(); - if (ImGui.MenuItem("Export localizable")) + if (ImGui.MenuItem("Export localizable"u8)) { localization.ExportLocalizable(true); } - if (ImGui.BeginMenu("Load language...")) + if (ImGui.BeginMenu("Load language..."u8)) { - if (ImGui.MenuItem("From Fallbacks")) + if (ImGui.MenuItem("From Fallbacks"u8)) { localization.SetupWithFallbacks(); } - if (ImGui.MenuItem("From UICulture")) + if (ImGui.MenuItem("From UICulture"u8)) { localization.SetupWithUiCulture(); } @@ -1066,7 +1052,7 @@ internal class DalamudInterface : IInternalDisposableService } if (Service.Get().GameUiHidden) - ImGui.BeginMenu("UI is hidden...", false); + ImGui.BeginMenu("UI is hidden..."u8, false); if (this.configuration.ShowDevBarInfo) { diff --git a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs index d525af484..6e332e69c 100644 --- a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs +++ b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs @@ -1,11 +1,10 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Internal.DesignSystem; /// @@ -45,7 +44,7 @@ internal static partial class DalamudComponents return Button(text); } } - + private static bool Button(string text) { using (ImRaii.PushStyle(ImGuiStyleVar.FramePadding, ButtonPadding)) diff --git a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs index 3d31bbda6..33bcffd38 100644 --- a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs +++ b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs @@ -2,15 +2,13 @@ using System.Numerics; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.DesignSystem; /// @@ -41,11 +39,11 @@ internal static partial class DalamudComponents var width = ImGuiHelpers.GlobalScale * 300; ImGui.SetNextItemWidth(width); - ImGui.InputTextWithHint("###pluginPickerSearch", Locs.SearchHint, ref pickerSearch, 255); + ImGui.InputTextWithHint("###pluginPickerSearch"u8, Locs.SearchHint, ref pickerSearch, 255); var currentSearchString = pickerSearch; - using var listBox = ImRaii.ListBox("###pluginPicker", new Vector2(width, width - 80)); + using var listBox = ImRaii.ListBox("###pluginPicker"u8, new Vector2(width, width - 80)); if (listBox.Success) { // TODO: Plugin searching should be abstracted... installer and this should use the same search diff --git a/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs b/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs index 9fa21a31b..b7bfd21f1 100644 --- a/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs +++ b/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs @@ -3,13 +3,10 @@ using System.Runtime.InteropServices; using System.Text; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.Toast; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; - -using ImGuiNET; - using TerraFX.Interop.Windows; using static TerraFX.Interop.Windows.Windows; @@ -38,13 +35,13 @@ namespace Dalamud.Interface.Internal; internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposableService { private static readonly ModuleLog Log = new(nameof(ImGuiClipboardFunctionProvider)); - private readonly nint clipboardUserDataOriginal; - private readonly nint setTextOriginal; - private readonly nint getTextOriginal; + private readonly void* clipboardUserDataOriginal; + private readonly void* setTextOriginal; + private readonly void* getTextOriginal; [ServiceManager.ServiceDependency] private readonly ToastGui toastGui = Service.Get(); - + private ImVectorWrapper clipboardData; private GCHandle clipboardUserData; @@ -58,9 +55,9 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl this.clipboardUserDataOriginal = io.ClipboardUserData; this.setTextOriginal = io.SetClipboardTextFn; this.getTextOriginal = io.GetClipboardTextFn; - io.ClipboardUserData = GCHandle.ToIntPtr(this.clipboardUserData = GCHandle.Alloc(this)); - io.SetClipboardTextFn = (nint)(delegate* unmanaged)&StaticSetClipboardTextImpl; - io.GetClipboardTextFn = (nint)(delegate* unmanaged)&StaticGetClipboardTextImpl; + io.ClipboardUserData = GCHandle.ToIntPtr(this.clipboardUserData = GCHandle.Alloc(this)).ToPointer(); + io.SetClipboardTextFn = (delegate* unmanaged)&StaticSetClipboardTextImpl; + io.GetClipboardTextFn = (delegate* unmanaged)&StaticGetClipboardTextImpl; this.clipboardData = new(0); return; @@ -118,7 +115,7 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl var hMem = GlobalAlloc(GMEM.GMEM_MOVEABLE, (nuint)((str.Length + 1) * 2)); if (hMem == 0) throw new OutOfMemoryException(); - + var ptr = (char*)GlobalLock(hMem); if (ptr == null) { @@ -150,7 +147,7 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl private byte* GetClipboardTextImpl() { this.clipboardData.Clear(); - + var formats = stackalloc uint[] { CF.CF_UNICODETEXT, CF.CF_TEXT }; if (GetPriorityClipboardFormat(formats, 2) < 1 || !this.OpenClipboardOrShowError()) { diff --git a/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs b/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs new file mode 100644 index 000000000..ab5fdaac8 --- /dev/null +++ b/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs @@ -0,0 +1,123 @@ +using System.Diagnostics; +using System.Text; + +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Interface.Internal; + +#pragma warning disable SA1600 +internal static unsafe class ImGuiInputTextStatePtrExtensions +{ + public static (int Start, int End, int Cursor) GetSelectionTuple(this ImGuiInputTextStatePtr self) => + (self.Stb.SelectStart, self.Stb.SelectEnd, self.Stb.Cursor); + + public static void SetSelectionTuple(this ImGuiInputTextStatePtr self, (int Start, int End, int Cursor) value) => + (self.Stb.SelectStart, self.Stb.SelectEnd, self.Stb.Cursor) = value; + + public static void SetSelectionRange(this ImGuiInputTextStatePtr self, int offset, int length, int relativeCursorOffset) + { + self.Stb.SelectStart = offset; + self.Stb.SelectEnd = offset + length; + if (relativeCursorOffset >= 0) + self.Stb.Cursor = self.Stb.SelectStart + relativeCursorOffset; + else + self.Stb.Cursor = self.Stb.SelectEnd + 1 + relativeCursorOffset; + self.SanitizeSelectionRange(); + } + + public static void SanitizeSelectionRange(this ImGuiInputTextStatePtr self) + { + ref var s = ref self.Stb.SelectStart; + ref var e = ref self.Stb.SelectEnd; + ref var c = ref self.Stb.Cursor; + s = Math.Clamp(s, 0, self.CurLenW); + e = Math.Clamp(e, 0, self.CurLenW); + c = Math.Clamp(c, 0, self.CurLenW); + if (s == e) + s = e = c; + if (s > e) + (s, e) = (e, s); + } + + public static void Undo(this ImGuiInputTextStatePtr self) => ImGuiP.Custom_StbTextUndo(self); + + public static bool MakeUndoReplace(this ImGuiInputTextStatePtr self, int offset, int oldLength, int newLength) + { + if (oldLength == 0 && newLength == 0) + return false; + + ImGuiP.Custom_StbTextMakeUndoReplace(self, offset, oldLength, newLength); + return true; + } + + public static bool ReplaceSelectionAndPushUndo(this ImGuiInputTextStatePtr self, ReadOnlySpan newText) + { + var off = self.Stb.SelectStart; + var len = self.Stb.SelectEnd - self.Stb.SelectStart; + return self.MakeUndoReplace(off, len, newText.Length) && self.ReplaceChars(off, len, newText); + } + + public static bool ReplaceChars(this ImGuiInputTextStatePtr self, int pos, int len, ReadOnlySpan newText) + { + self.DeleteChars(pos, len); + return self.InsertChars(pos, newText); + } + + // See imgui_widgets.cpp: STB_TEXTEDIT_DELETECHARS + public static void DeleteChars(this ImGuiInputTextStatePtr self, int pos, int n) + { + if (n == 0) + return; + + var dst = (char*)self.TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + self.Edited = true; + self.CurLenA -= Encoding.UTF8.GetByteCount(dst, n); + self.CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + var src = (char*)self.TextW.Data + pos + n; + int i; + for (i = 0; src[i] != 0; i++) + dst[i] = src[i]; + dst[i] = '\0'; + } + + // See imgui_widgets.cpp: STB_TEXTEDIT_INSERTCHARS + public static bool InsertChars(this ImGuiInputTextStatePtr self, int pos, ReadOnlySpan newText) + { + if (newText.Length == 0) + return true; + + var isResizable = (self.Flags & ImGuiInputTextFlags.CallbackResize) != 0; + var textLen = self.CurLenW; + Debug.Assert(pos <= textLen, "pos <= text_len"); + + var newTextLenUtf8 = Encoding.UTF8.GetByteCount(newText); + if (!isResizable && newTextLenUtf8 + self.CurLenA + 1 > self.BufCapacityA) + return false; + + // Grow internal buffer if needed + if (newText.Length + textLen + 1 > self.TextW.Size) + { + if (!isResizable) + return false; + + Debug.Assert(textLen < self.TextW.Size, "text_len < self.TextW.Length"); + self.TextW.Resize(textLen + Math.Clamp(newText.Length * 4, 32, Math.Max(256, newText.Length)) + 1); + } + + var text = new Span(self.TextW.Data, self.TextW.Size); + if (pos != textLen) + text.Slice(pos, textLen - pos).CopyTo(text[(pos + newText.Length)..]); + newText.CopyTo(text[pos..]); + + self.Edited = true; + self.CurLenW += newText.Length; + self.CurLenA += newTextLenUtf8; + self.TextW[self.CurLenW] = '\0'; + + return true; + } +} diff --git a/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs b/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs index 3ad25f97d..05af78949 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs @@ -119,13 +119,13 @@ internal unsafe partial class InterfaceManager this.ResizeBuffers?.InvokeSafely(); - this.scene?.OnPreResize(); + this.backend?.OnPreResize(); var ret = this.dxgiSwapChainResizeBuffersHook!.Original(swapChain, bufferCount, width, height, newFormat, swapChainFlags); if (ret == DXGI.DXGI_ERROR_INVALID_CALL) Log.Error("invalid call to resizeBuffers"); - this.scene?.OnPostResize((int)width, (int)height); + this.backend?.OnPostResize((int)width, (int)height); return ret; } diff --git a/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs b/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs index 73c0a4d15..cd4b0a418 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs @@ -14,23 +14,23 @@ internal unsafe partial class InterfaceManager private void ReShadeAddonInterfaceOnDestroySwapChain(ref ReShadeAddonInterface.ApiObject swapChain) { var swapChainNative = swapChain.GetNative(); - if (this.scene?.SwapChain.NativePointer != (nint)swapChainNative) + if (this.backend?.IsAttachedToPresentationTarget((nint)swapChainNative) is not true) return; - this.scene?.OnPreResize(); + this.backend?.OnPreResize(); } private void ReShadeAddonInterfaceOnInitSwapChain(ref ReShadeAddonInterface.ApiObject swapChain) { var swapChainNative = swapChain.GetNative(); - if (this.scene?.SwapChain.NativePointer != (nint)swapChainNative) + if (this.backend?.IsAttachedToPresentationTarget((nint)swapChainNative) is not true) return; DXGI_SWAP_CHAIN_DESC desc; if (swapChainNative->GetDesc(&desc).FAILED) return; - this.scene?.OnPostResize((int)desc.BufferDesc.Width, (int)desc.BufferDesc.Height); + this.backend?.OnPostResize((int)desc.BufferDesc.Width, (int)desc.BufferDesc.Height); } private void ReShadeAddonInterfaceOnPresent( @@ -42,16 +42,16 @@ internal unsafe partial class InterfaceManager { var swapChainNative = swapChain.GetNative(); - if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activeScene) - this.RenderDalamudDraw(activeScene); + if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activebackend) + this.RenderDalamudDraw(activebackend); } private void ReShadeAddonInterfaceOnReShadeOverlay(ref ReShadeAddonInterface.ApiObject runtime) { var swapChainNative = runtime.GetNative(); - if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activeScene) - this.RenderDalamudDraw(activeScene); + if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activebackend) + this.RenderDalamudDraw(activebackend); } private int AsReShadeAddonDxgiSwapChainResizeBuffersDetour( diff --git a/Dalamud/Interface/Internal/InterfaceManager.cs b/Dalamud/Interface/Internal/InterfaceManager.cs index ed6fffb4e..e94501d92 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.cs @@ -9,7 +9,7 @@ using System.Threading; using System.Threading.Tasks; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.ClientState.GamePad; @@ -17,6 +17,8 @@ using Dalamud.Game.ClientState.Keys; using Dalamud.Hooking; using Dalamud.Hooking.Internal; using Dalamud.Hooking.WndProcHook; +using Dalamud.Interface.ImGuiBackend; +using Dalamud.Interface.ImGuiBackend.Delegates; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Internal.Asserts; @@ -33,20 +35,16 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; using Dalamud.Utility.Timing; - -using ImGuiNET; - -using ImGuiScene; - using JetBrains.Annotations; - -using PInvoke; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.Windows.Windows; + using CSFramework = FFXIVClientStructs.FFXIV.Client.System.Framework.Framework; +using DWMWINDOWATTRIBUTE = Windows.Win32.Graphics.Dwm.DWMWINDOWATTRIBUTE; + // general dev notes, here because it's easiest /* @@ -102,7 +100,7 @@ internal partial class InterfaceManager : IInternalDisposableService private readonly AssertHandler assertHandler = new(); - private RawDX11Scene? scene; + private IWin32Backend? backend; private Hook? setCursorHook; private Hook? reShadeDxgiSwapChainPresentHook; @@ -115,9 +113,9 @@ internal partial class InterfaceManager : IInternalDisposableService private ILockedImFont? defaultFontResourceLock; // can't access imgui IO before first present call - private bool lastWantCapture = false; + private HWND gameWindowHandle; + private bool lastWantCapture; private bool isOverrideGameCursor = true; - private IntPtr gameWindowHandle; [ServiceManager.ServiceConstructor] private InterfaceManager() @@ -126,12 +124,12 @@ internal partial class InterfaceManager : IInternalDisposableService } [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate IntPtr SetCursorDelegate(IntPtr hCursor); + private delegate nint SetCursorDelegate(nint hCursor); /// /// This event gets called each frame to facilitate ImGui drawing. /// - public event RawDX11Scene.BuildUIDelegate? Draw; + public event ImGuiBuildUiDelegate? Draw; /// /// This event gets called when ResizeBuffers is called. @@ -143,6 +141,23 @@ internal partial class InterfaceManager : IInternalDisposableService /// public event Action? AfterBuildFonts; + /// + /// Invoked when the default global scale used by ImGui has been changed through Dalamud. + /// + /// Fonts will generally not have finished rebuilding when this is invoked, so if you need to access the font you should subscribe to .ImFontChanged instead. + public event Action? DefaultGlobalScaleChanged; + + /// + /// Invoked when the default font used by ImGui has been changed through Dalamud. + /// + /// Fonts will generally not have finished rebuilding when this is invoked, so if you need to access the font you should subscribe to .ImFontChanged instead. + public event Action? DefaultFontChanged; + + /// + /// Invoked when either the currently chosen style in Dalamud or a style or color variable within the currently chosen style has been changed through Dalamud. + /// + public event Action? DefaultStyleChanged; + /// /// Gets the default ImGui font.
/// Accessing this static property outside of the main thread is dangerous and not supported. @@ -199,36 +214,26 @@ internal partial class InterfaceManager : IInternalDisposableService /// /// Gets the DX11 scene. /// - public RawDX11Scene? Scene => this.scene; - - /// - /// Gets the D3D11 device instance. - /// - public SharpDX.Direct3D11.Device? Device => this.scene?.Device; - - /// - /// Gets the address handle to the main process window. - /// - public IntPtr WindowHandlePtr => this.scene?.WindowHandlePtr ?? IntPtr.Zero; + public IImGuiBackend? Backend => this.backend; /// /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor. /// public bool OverrideGameCursor { - get => this.scene?.UpdateCursor ?? this.isOverrideGameCursor; + get => this.backend?.UpdateCursor ?? this.isOverrideGameCursor; set { this.isOverrideGameCursor = value; - if (this.scene != null) - this.scene.UpdateCursor = value; + if (this.backend != null) + this.backend.UpdateCursor = value; } } /// /// Gets a value indicating whether the Dalamud interface ready to use. /// - public bool IsReady => this.scene != null; + public bool IsReady => this.backend != null; /// /// Gets or sets a value indicating whether Draw events should be dispatched. @@ -242,20 +247,24 @@ internal partial class InterfaceManager : IInternalDisposableService /// /// Gets a value indicating the native handle of the game main window. /// - public IntPtr GameWindowHandle + public unsafe HWND GameWindowHandle { get { if (this.gameWindowHandle == 0) { - nint gwh = 0; - while ((gwh = NativeFunctions.FindWindowEx(0, gwh, "FFXIVGAME", 0)) != 0) + var gwh = default(HWND); + fixed (char* pClass = "FFXIVGAME") { - _ = User32.GetWindowThreadProcessId(gwh, out var pid); - if (pid == Environment.ProcessId && User32.IsWindowVisible(gwh)) + while ((gwh = FindWindowExW(default, gwh, (ushort*)pClass, default)) != default) { - this.gameWindowHandle = gwh; - break; + uint pid; + _ = GetWindowThreadProcessId(gwh, &pid); + if (pid == Environment.ProcessId && IsWindowVisible(gwh)) + { + this.gameWindowHandle = gwh; + break; + } } } } @@ -324,7 +333,7 @@ internal partial class InterfaceManager : IInternalDisposableService this.IconFontHandle = null; Interlocked.Exchange(ref this.dalamudAtlas, null)?.Dispose(); - Interlocked.Exchange(ref this.scene, null)?.Dispose(); + Interlocked.Exchange(ref this.backend, null)?.Dispose(); return; @@ -459,27 +468,27 @@ internal partial class InterfaceManager : IInternalDisposableService /// Get video memory information. /// /// The currently used video memory, or null if not available. - public (long Used, long Available)? GetD3dMemoryInfo() + public unsafe (long Used, long Available)? GetD3dMemoryInfo() { - if (this.Device == null) + if (this.backend?.DeviceHandle is 0 or null) return null; - try - { - var dxgiDev = this.Device.QueryInterfaceOrNull(); - var dxgiAdapter = dxgiDev?.Adapter.QueryInterfaceOrNull(); - if (dxgiAdapter == null) - return null; + using var device = default(ComPtr); + using var adapter = default(ComPtr); + using var adapter4 = default(ComPtr); - var memInfo = dxgiAdapter.QueryVideoMemoryInfo(0, SharpDX.DXGI.MemorySegmentGroup.Local); - return (memInfo.CurrentUsage, memInfo.CurrentReservation); - } - catch - { - // ignored - } + if (new ComPtr((IUnknown*)this.backend.DeviceHandle).As(&device).FAILED) + return null; - return null; + if (device.Get()->GetAdapter(adapter.GetAddressOf()).FAILED) + return null; + + if (adapter.As(&adapter4).FAILED) + return null; + + var vmi = default(DXGI_QUERY_VIDEO_MEMORY_INFO); + adapter4.Get()->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP.DXGI_MEMORY_SEGMENT_GROUP_LOCAL, &vmi); + return ((long)vmi.CurrentUsage, (long)vmi.CurrentReservation); } /// @@ -488,25 +497,38 @@ internal partial class InterfaceManager : IInternalDisposableService /// public void ClearStacks() { - this.scene?.ClearStacksOnContext(); + ImGuiHelpers.ClearStacksOnContext(); } /// /// Toggle Windows 11 immersive mode on the game window. /// /// Value. - internal void SetImmersiveMode(bool enabled) + internal unsafe void SetImmersiveMode(bool enabled) { if (this.GameWindowHandle == 0) throw new InvalidOperationException("Game window is not yet ready."); - var value = enabled ? 1 : 0; - ((HRESULT)NativeFunctions.DwmSetWindowAttribute( - this.GameWindowHandle, - NativeFunctions.DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, - ref value, - sizeof(int))).ThrowOnError(); + + var value = enabled ? 1u : 0u; + global::Windows.Win32.PInvoke.DwmSetWindowAttribute( + new(new IntPtr(this.GameWindowHandle.Value)), + DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, + &value, + sizeof(uint)).ThrowOnFailure(); } + /// Safely invoke . + internal void InvokeGlobalScaleChanged() + => this.DefaultGlobalScaleChanged.InvokeSafely(); + + /// Safely invoke . + internal void InvokeFontChanged() + => this.DefaultFontChanged.InvokeSafely(); + + /// Safely invoke . + internal void InvokeStyleChanged() + => this.DefaultStyleChanged.InvokeSafely(); + private static InterfaceManager WhenFontsReady() { var im = Service.GetNullable(); @@ -537,9 +559,9 @@ internal partial class InterfaceManager : IInternalDisposableService /// and initializes ImGui for drawing.
/// The swap chain to test and initialize ImGui with if conditions are met. /// Flags passed to . - /// An initialized instance of , or null if + /// An initialized instance of , or null if /// is not the main swap chain. - private unsafe RawDX11Scene? RenderDalamudCheckAndInitialize(IDXGISwapChain* swapChain, uint flags) + private unsafe IImGuiBackend? RenderDalamudCheckAndInitialize(IDXGISwapChain* swapChain, uint flags) { // Quoting ReShade dxgi_swapchain.cpp DXGISwapChain::on_present: // > Some D3D11 games test presentation for timing and composition purposes @@ -552,7 +574,7 @@ internal partial class InterfaceManager : IInternalDisposableService Debug.Assert(this.dalamudAtlas is not null, "dalamudAtlas should have been set already"); - var activeScene = this.scene ?? this.InitScene(swapChain); + var activeBackend = this.backend ?? this.InitBackend(swapChain); if (!this.dalamudAtlas!.HasBuiltAtlas) { @@ -566,12 +588,12 @@ internal partial class InterfaceManager : IInternalDisposableService return null; } - return activeScene; + return activeBackend; } /// Draws Dalamud to the given scene representing the ImGui context. - /// The scene to draw to. - private void RenderDalamudDraw(RawDX11Scene activeScene) + /// The scene to draw to. + private void RenderDalamudDraw(IImGuiBackend activeBackend) { this.CumulativePresentCalls++; this.IsMainThreadInPresent = true; @@ -584,7 +606,7 @@ internal partial class InterfaceManager : IInternalDisposableService // Enable viewports if there are no issues. var viewportsEnable = this.dalamudConfiguration.IsDisableViewport || - activeScene.SwapChain.IsFullScreen || + activeBackend.IsMainViewportFullScreen() || ImGui.GetPlatformIO().Monitors.Size == 1; if (viewportsEnable) ImGui.GetIO().ConfigFlags &= ~ImGuiConfigFlags.ViewportsEnable; @@ -592,41 +614,48 @@ internal partial class InterfaceManager : IInternalDisposableService ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.ViewportsEnable; // Call drawing functions, which in turn will call Draw event. - activeScene.Render(); + activeBackend.Render(); this.PostImGuiRender(); this.IsMainThreadInPresent = false; } - private unsafe RawDX11Scene InitScene(IDXGISwapChain* swapChain) + private unsafe IImGuiBackend InitBackend(IDXGISwapChain* swapChain) { - RawDX11Scene newScene; + IWin32Backend newBackend; using (Timings.Start("IM Scene Init")) { try { + newBackend = new Dx11Win32Backend(swapChain); this.assertHandler.Setup(); - newScene = new RawDX11Scene((nint)swapChain); } catch (DllNotFoundException ex) { Service.ProvideException(ex); Log.Error(ex, "Could not load ImGui dependencies."); - var res = User32.MessageBox( - IntPtr.Zero, - "Dalamud plugins require the Microsoft Visual C++ Redistributable to be installed.\nPlease install the runtime from the official Microsoft website or disable Dalamud.\n\nDo you want to download the redistributable now?", - "Dalamud Error", - User32.MessageBoxOptions.MB_YESNO | User32.MessageBoxOptions.MB_TOPMOST | User32.MessageBoxOptions.MB_ICONERROR); - - if (res == User32.MessageBoxResult.IDYES) + fixed (void* lpText = + "Dalamud plugins require the Microsoft Visual C++ Redistributable to be installed.\nPlease install the runtime from the official Microsoft website or disable Dalamud.\n\nDo you want to download the redistributable now?") { - var psi = new ProcessStartInfo + fixed (void* lpCaption = "Dalamud Error") { - FileName = "https://aka.ms/vs/16/release/vc_redist.x64.exe", - UseShellExecute = true, - }; - Process.Start(psi); + var res = MessageBoxW( + default, + (ushort*)lpText, + (ushort*)lpCaption, + MB.MB_YESNO | MB.MB_TOPMOST | MB.MB_ICONERROR); + + if (res == IDYES) + { + var psi = new ProcessStartInfo + { + FileName = "https://aka.ms/vs/16/release/vc_redist.x64.exe", + UseShellExecute = true, + }; + Process.Start(psi); + } + } } Environment.Exit(-1); @@ -638,7 +667,8 @@ internal partial class InterfaceManager : IInternalDisposableService var startInfo = Service.Get().StartInfo; var configuration = Service.Get(); - var iniFileInfo = new FileInfo(Path.Combine(Path.GetDirectoryName(startInfo.ConfigurationPath)!, "dalamudUI.ini")); + var iniFileInfo = new FileInfo( + Path.Combine(Path.GetDirectoryName(startInfo.ConfigurationPath)!, "dalamudUI.ini")); try { @@ -661,16 +691,18 @@ internal partial class InterfaceManager : IInternalDisposableService Log.Error(ex, "Could not delete dalamudUI.ini"); } - newScene.UpdateCursor = this.isOverrideGameCursor; - newScene.ImGuiIniPath = iniFileInfo.FullName; - newScene.OnBuildUI += this.Display; - newScene.OnNewInputFrame += this.OnNewInputFrame; + newBackend.UpdateCursor = this.isOverrideGameCursor; + newBackend.IniPath = iniFileInfo.FullName; + newBackend.BuildUi += this.Display; + newBackend.NewInputFrame += this.OnNewInputFrame; StyleModel.TransferOldModels(); - if (configuration.SavedStyles == null || configuration.SavedStyles.All(x => x.Name != StyleModelV1.DalamudStandard.Name)) + if (configuration.SavedStyles == null || + configuration.SavedStyles.All(x => x.Name != StyleModelV1.DalamudStandard.Name)) { - configuration.SavedStyles = new List { StyleModelV1.DalamudStandard, StyleModelV1.DalamudClassic }; + configuration.SavedStyles = new List + { StyleModelV1.DalamudStandard, StyleModelV1.DalamudClassic }; configuration.ChosenStyle = StyleModelV1.DalamudStandard.Name; } else if (configuration.SavedStyles.Count == 1) @@ -726,16 +758,16 @@ internal partial class InterfaceManager : IInternalDisposableService Log.Information("[IM] Scene & ImGui setup OK!"); } - this.scene = newScene; + this.backend = newBackend; Service.Provide(new(this)); this.wndProcHookManager.PreWndProc += this.WndProcHookManagerOnPreWndProc; - return newScene; + return newBackend; } - private unsafe void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) + private void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) { - var r = this.scene?.ProcessWndProcW(args.Hwnd, (User32.WindowMessage)args.Message, args.WParam, args.LParam); + var r = this.backend?.ProcessWndProcW(args.Hwnd, args.Message, args.WParam, args.LParam); if (r is not null) args.SuppressWithValue(r.Value); } @@ -792,7 +824,7 @@ internal partial class InterfaceManager : IInternalDisposableService new() { SizePx = Service.Get().DefaultFontSpec.SizePx, - GlyphRanges = new ushort[] { 0x20, 0x20, 0x00 }, + GlyphRanges = [0x20, 0x20, 0x00], }))); this.MonoFontHandle = (FontHandle)this.dalamudAtlas.NewDelegateFontHandle( e => e.OnPreBuild( @@ -825,7 +857,7 @@ internal partial class InterfaceManager : IInternalDisposableService () => { // Update the ImGui default font. - ImGui.GetIO().NativePtr->FontDefault = fontLocked.ImFont; + ImGui.GetIO().Handle->FontDefault = fontLocked.ImFont; // Update the reference to the resources of the default font. this.defaultFontResourceLock?.Dispose(); @@ -1057,13 +1089,13 @@ internal partial class InterfaceManager : IInternalDisposableService this.dxgiSwapChainHook?.Enable(); } - private IntPtr SetCursorDetour(IntPtr hCursor) + private nint SetCursorDetour(nint hCursor) { - if (this.lastWantCapture && (!this.scene?.IsImGuiCursor(hCursor) ?? false) && this.OverrideGameCursor) - return IntPtr.Zero; + if (this.lastWantCapture && (!this.backend?.IsImGuiCursor(hCursor) ?? false) && this.OverrideGameCursor) + return default; return this.setCursorHook?.IsDisposed is not false - ? User32.SetCursor(new(hCursor, false)).DangerousGetHandle() + ? SetCursor((HCURSOR)hCursor) : this.setCursorHook.Original(hCursor); } diff --git a/Dalamud/Interface/Internal/UiDebug.cs b/Dalamud/Interface/Internal/UiDebug.cs index d0ebc8fac..82aec5c41 100644 --- a/Dalamud/Interface/Internal/UiDebug.cs +++ b/Dalamud/Interface/Internal/UiDebug.cs @@ -1,5 +1,6 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Game.Gui; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; @@ -10,8 +11,6 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI.Misc; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; - using Lumina.Text.ReadOnly; // Customised version of https://github.com/aers/FFXIVUIDebug @@ -65,17 +64,17 @@ internal unsafe class UiDebug public void Draw() { ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(3, 2)); - ImGui.BeginChild("st_uiDebug_unitBaseSelect", new Vector2(250, -1), true); + ImGui.BeginChild("st_uiDebug_unitBaseSelect"u8, new Vector2(250, -1), true); ImGui.SetNextItemWidth(-1); - ImGui.InputTextWithHint("###atkUnitBaseSearch", "Search", ref this.searchInput, 0x20); + ImGui.InputTextWithHint("###atkUnitBaseSearch"u8, "Search"u8, ref this.searchInput, 0x20); this.DrawUnitBaseList(); ImGui.EndChild(); if (this.selectedUnitBase != null) { ImGui.SameLine(); - ImGui.BeginChild("st_uiDebug_selectedUnitBase", new Vector2(-1, -1), true); + ImGui.BeginChild("st_uiDebug_selectedUnitBase"u8, new Vector2(-1, -1), true); this.DrawUnitBase(this.selectedUnitBase); ImGui.EndChild(); } @@ -89,25 +88,25 @@ internal unsafe class UiDebug var addonName = atkUnitBase->NameString; var agent = Service.Get().FindAgentInterface(atkUnitBase); - ImGui.Text($"{addonName}"); + ImGui.Text(addonName); ImGui.SameLine(); ImGui.PushStyleColor(ImGuiCol.Text, isVisible ? 0xFF00FF00 : 0xFF0000FF); ImGui.Text(isVisible ? "Visible" : "Not Visible"); ImGui.PopStyleColor(); ImGui.SameLine(ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X - 25); - if (ImGui.SmallButton("V")) + if (ImGui.SmallButton("V"u8)) { atkUnitBase->IsVisible = !atkUnitBase->IsVisible; } ImGui.Separator(); - ImGuiHelpers.ClickToCopyText($"Address: {(ulong)atkUnitBase:X}", $"{(ulong)atkUnitBase:X}"); - ImGuiHelpers.ClickToCopyText($"Agent: {(ulong)agent:X}", $"{(ulong)agent:X}"); + ImGuiHelpers.ClickToCopyText($"Address: {(nint)atkUnitBase:X}", $"{(nint)atkUnitBase:X}"); + ImGuiHelpers.ClickToCopyText($"Agent: {(nint)agent:X}", $"{(nint)agent:X}"); ImGui.Separator(); ImGui.Text($"Position: [ {atkUnitBase->X} , {atkUnitBase->Y} ]"); - ImGui.Text($"Scale: {atkUnitBase->Scale * 100}%%"); + ImGui.Text($"Scale: {atkUnitBase->Scale * 100}%"); ImGui.Text($"Widget Count {atkUnitBase->UldManager.ObjectCount}"); ImGui.Separator(); @@ -185,7 +184,7 @@ internal unsafe class UiDebug popped = true; } - ImGui.Text("Node: "); + ImGui.Text("Node: "u8); ImGui.SameLine(); ImGuiHelpers.ClickToCopyText($"{(ulong)node:X}"); ImGui.SameLine(); @@ -209,11 +208,11 @@ internal unsafe class UiDebug { case NodeType.Text: var textNode = (AtkTextNode*)node; - ImGui.Text("text: "); + ImGui.Text("text: "u8); ImGui.SameLine(); Service.Get().Draw(textNode->NodeText); - ImGui.InputText($"Replace Text##{(ulong)textNode:X}", new IntPtr(textNode->NodeText.StringPtr), (uint)textNode->NodeText.BufSize); + ImGui.InputText($"Replace Text##{(ulong)textNode:X}", new(textNode->NodeText.StringPtr, (int)textNode->NodeText.BufSize)); ImGui.SameLine(); if (ImGui.Button($"Encode##{(ulong)textNode:X}")) @@ -244,13 +243,11 @@ internal unsafe class UiDebug ImGui.Text($"BGColor: #{textNode->BackgroundColor.R:X2}{textNode->BackgroundColor.G:X2}{textNode->BackgroundColor.B:X2}{textNode->BackgroundColor.A:X2}"); ImGui.Text($"TextFlags: {textNode->TextFlags}"); - ImGui.SameLine(); - ImGui.Text($"TextFlags2: {textNode->TextFlags2}"); break; case NodeType.Counter: var counterNode = (AtkCounterNode*)node; - ImGui.Text("text: "); + ImGui.Text("text: "u8); ImGui.SameLine(); Service.Get().Draw(counterNode->NodeText); break; @@ -284,7 +281,7 @@ internal unsafe class UiDebug { if (partId > partsList->PartCount) { - ImGui.Text("part id > part count?"); + ImGui.Text("part id > part count?"u8); } else { @@ -301,7 +298,7 @@ internal unsafe class UiDebug if (ImGui.TreeNode($"Texture##{(ulong)kernelTexture->D3D11ShaderResourceView:X}")) { ImGui.Image( - new IntPtr(kernelTexture->D3D11ShaderResourceView), + new ImTextureID(kernelTexture->D3D11ShaderResourceView), new Vector2(kernelTexture->ActualWidth, kernelTexture->ActualHeight)); ImGui.TreePop(); } @@ -312,7 +309,7 @@ internal unsafe class UiDebug $"Texture##{(ulong)textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView:X}")) { ImGui.Image( - new IntPtr(textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView), + new ImTextureID(textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView), new Vector2( textureInfo->AtkTexture.KernelTexture->ActualWidth, textureInfo->AtkTexture.KernelTexture->ActualHeight)); @@ -349,7 +346,7 @@ internal unsafe class UiDebug } else { - ImGui.Text("no texture loaded"); + ImGui.Text("no texture loaded"u8); } } } @@ -385,12 +382,12 @@ internal unsafe class UiDebug popped = true; } - ImGui.Text("Node: "); + ImGui.Text("Node: "u8); ImGui.SameLine(); ImGuiHelpers.ClickToCopyText($"{(ulong)node:X}"); ImGui.SameLine(); Util.ShowStruct(*compNode, (ulong)compNode); - ImGui.Text("Component: "); + ImGui.Text("Component: "u8); ImGui.SameLine(); ImGuiHelpers.ClickToCopyText($"{(ulong)compNode->Component:X}"); ImGui.SameLine(); @@ -415,31 +412,31 @@ internal unsafe class UiDebug { case ComponentType.TextInput: var textInputComponent = (AtkComponentTextInput*)compNode->Component; - ImGui.Text("InputBase Text1: "); + ImGui.Text("InputBase Text1: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->AtkComponentInputBase.UnkText1); - ImGui.Text("InputBase Text2: "); + ImGui.Text("InputBase Text2: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->AtkComponentInputBase.UnkText2); - ImGui.Text("Text1: "); + ImGui.Text("Text1: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->UnkText01); - ImGui.Text("Text2: "); + ImGui.Text("Text2: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->UnkText02); - ImGui.Text("AvailableLines: "); + ImGui.Text("AvailableLines: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->AvailableLines); - ImGui.Text("HighlightedAutoTranslateOptionColorPrefix: "); + ImGui.Text("HighlightedAutoTranslateOptionColorPrefix: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->HighlightedAutoTranslateOptionColorPrefix); - ImGui.Text("HighlightedAutoTranslateOptionColorSuffix: "); + ImGui.Text("HighlightedAutoTranslateOptionColorSuffix: "u8); ImGui.SameLine(); Service.Get().Draw(textInputComponent->HighlightedAutoTranslateOptionColorSuffix); break; @@ -605,7 +602,7 @@ internal unsafe class UiDebug if (noResults) { - ImGui.TextDisabled("No Results"); + ImGui.TextDisabled("No Results"u8); } if (!foundSelected) diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs index c3f6133dd..b31f74264 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs @@ -1,12 +1,13 @@ +using System.Numerics; + +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal.UiDebug2.Utility; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Memory; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; - using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.ValueType; namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -26,13 +27,13 @@ public unsafe partial class AddonTree using var tree = ImRaii.TreeNode($"Atk Values [{addon->AtkValuesCount}]###atkValues_{addon->NameString}"); if (tree.Success) { - using var tbl = ImRaii.Table("atkUnitBase_atkValueTable", 3, ImGuiTableFlags.Borders | ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg); + using var tbl = ImRaii.Table("atkUnitBase_atkValueTable"u8, 3, ImGuiTableFlags.Borders | ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg); if (tbl.Success) { - ImGui.TableSetupColumn("Index"); - ImGui.TableSetupColumn("Type"); - ImGui.TableSetupColumn("Value"); + ImGui.TableSetupColumn("Index"u8); + ImGui.TableSetupColumn("Type"u8); + ImGui.TableSetupColumn("Value"u8); ImGui.TableHeadersRow(); try @@ -52,7 +53,7 @@ public unsafe partial class AddonTree ImGui.TableNextColumn(); if (atkValue->Type == 0) { - ImGui.TextDisabled("Not Set"); + ImGui.TextDisabled("Not Set"u8); } else { @@ -68,7 +69,7 @@ public unsafe partial class AddonTree case ValueType.Int: case ValueType.UInt: { - ImGui.TextUnformatted($"{atkValue->Int}"); + ImGui.Text($"{atkValue->Int}"); break; } @@ -78,7 +79,7 @@ public unsafe partial class AddonTree { if (atkValue->String.Value == null) { - ImGui.TextDisabled("null"); + ImGui.TextDisabled("null"u8); } else { @@ -90,17 +91,17 @@ public unsafe partial class AddonTree case ValueType.Bool: { - ImGui.TextUnformatted($"{atkValue->Byte != 0}"); + ImGui.Text($"{atkValue->Byte != 0}"); break; } case ValueType.Pointer: - ImGui.TextUnformatted($"{(nint)atkValue->Pointer}"); + ImGui.Text($"{(nint)atkValue->Pointer}"); break; default: { - ImGui.TextDisabled("Unhandled Type"); + ImGui.TextDisabled("Unhandled Type"u8); ImGui.SameLine(); Util.ShowStruct(atkValue); break; @@ -112,7 +113,7 @@ public unsafe partial class AddonTree } catch (Exception ex) { - ImGui.TextColored(new(1, 0, 0, 1), $"{ex}"); + ImGui.TextColored(new Vector4(1, 0, 0, 1), $"{ex}"); } } } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs index 9d6575a55..7cb2cc704 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs @@ -2,10 +2,11 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; +using Dalamud.Interface.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static Dalamud.Interface.FontAwesomeIcon; using static Dalamud.Interface.Internal.UiDebug2.ElementSelector; @@ -81,7 +82,7 @@ public unsafe partial class AddonTree : IDisposable { var ptr = GameGui.GetAddonByName(name); - if ((AtkUnitBase*)ptr != null) + if (!ptr.IsNull) { if (AddonTrees.TryGetValue(name, out var tree)) { @@ -118,11 +119,11 @@ public unsafe partial class AddonTree : IDisposable var isVisible = addon->IsVisible; - ImGui.TextUnformatted($"{this.AddonName}"); + ImGui.Text($"{this.AddonName}"); ImGui.SameLine(); ImGui.SameLine(); - ImGui.TextColored(isVisible ? new(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible" : "Not Visible"); + ImGui.TextColored(isVisible ? new Vector4(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible"u8 : "Not Visible"u8); ImGui.SameLine(ImGui.GetWindowWidth() - 100); @@ -133,7 +134,7 @@ public unsafe partial class AddonTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Visibility"); + ImGui.SetTooltip("Toggle Visibility"u8); } ImGui.SameLine(); @@ -144,7 +145,7 @@ public unsafe partial class AddonTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Popout Window"); + ImGui.SetTooltip("Toggle Popout Window"u8); } PaddedSeparator(1); @@ -152,7 +153,7 @@ public unsafe partial class AddonTree : IDisposable var uldManager = addon->UldManager; PrintFieldValuePair("Address", $"{(nint)addon:X}"); - PrintFieldValuePair("Agent", $"{GameGui.FindAgentInterface(addon):X}"); + PrintFieldValuePair("Agent", $"{(nint)GameGui.FindAgentInterface(addon):X}"); PrintFieldValuePairs( ("X", $"{addon->X}"), @@ -234,7 +235,7 @@ public unsafe partial class AddonTree : IDisposable /// true if the addon is found. private bool ValidateAddon(out AtkUnitBase* addon) { - addon = (AtkUnitBase*)GameGui.GetAddonByName(this.AddonName); + addon = GameGui.GetAddonByName(this.AddonName).Struct; if (addon == null || (nint)addon != this.InitialPtr) { this.Dispose(); diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs index c98cc933f..98c7d9efe 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs @@ -1,13 +1,12 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; -using static ImGuiNET.ImGuiTableColumnFlags; -using static ImGuiNET.ImGuiTableFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableFlags; namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -36,13 +35,13 @@ public static class Events if (tbl.Success) { - ImGui.TableSetupColumn("#", WidthFixed); - ImGui.TableSetupColumn("Type", WidthFixed); - ImGui.TableSetupColumn("Param", WidthFixed); - ImGui.TableSetupColumn("Flags", WidthFixed); - ImGui.TableSetupColumn("StateFlags1", WidthFixed); - ImGui.TableSetupColumn("Target", WidthFixed); - ImGui.TableSetupColumn("Listener", WidthFixed); + ImGui.TableSetupColumn("#"u8, WidthFixed); + ImGui.TableSetupColumn("Type"u8, WidthFixed); + ImGui.TableSetupColumn("Param"u8, WidthFixed); + ImGui.TableSetupColumn("Flags"u8, WidthFixed); + ImGui.TableSetupColumn("StateFlags1"u8, WidthFixed); + ImGui.TableSetupColumn("Target"u8, WidthFixed); + ImGui.TableSetupColumn("Listener"u8, WidthFixed); ImGui.TableHeadersRow(); @@ -50,19 +49,19 @@ public static class Events while (evt != null) { ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{i++}"); + ImGui.Text($"{i++}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{evt->State.EventType}"); + ImGui.Text($"{evt->State.EventType}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{evt->Param}"); + ImGui.Text($"{evt->Param}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{evt->State.StateFlags}"); + ImGui.Text($"{evt->State.StateFlags}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{evt->State.UnkFlags1}"); + ImGui.Text($"{evt->State.ReturnFlags}"); ImGui.TableNextColumn(); - ImGuiHelpers.ClickToCopyText($"{(nint)evt->Target:X}", null, new Vector4(0.6f, 0.6f, 0.6f, 1)); + ImGuiHelpers.ClickToCopyText($"{(nint)evt->Target:X}", default, new Vector4(0.6f, 0.6f, 0.6f, 1)); ImGui.TableNextColumn(); - ImGuiHelpers.ClickToCopyText($"{(nint)evt->Listener:X}", null, new Vector4(0.6f, 0.6f, 0.6f, 1)); + ImGuiHelpers.ClickToCopyText($"{(nint)evt->Listener:X}", default, new Vector4(0.6f, 0.6f, 0.6f, 1)); evt = evt->NextEvent; } } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs index dc9d377bb..b3e7d1b21 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs @@ -1,7 +1,7 @@ using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; @@ -89,25 +89,25 @@ internal unsafe class ComponentNodeTree : ResNodeTree { case TextInput: var textInputComponent = (AtkComponentTextInput*)this.Component; - ImGui.TextUnformatted( + ImGui.Text( $"InputBase Text1: {Marshal.PtrToStringAnsi(new(textInputComponent->AtkComponentInputBase.UnkText1.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"InputBase Text2: {Marshal.PtrToStringAnsi(new(textInputComponent->AtkComponentInputBase.UnkText2.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"Text1: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText01.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"Text2: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText02.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"AvailableLines: {Marshal.PtrToStringAnsi(new(textInputComponent->AvailableLines.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"HighlightedAutoTranslateOptionColorPrefix: {Marshal.PtrToStringAnsi(new(textInputComponent->HighlightedAutoTranslateOptionColorPrefix.StringPtr))}"); - ImGui.TextUnformatted( + ImGui.Text( $"HighlightedAutoTranslateOptionColorSuffix: {Marshal.PtrToStringAnsi(new(textInputComponent->HighlightedAutoTranslateOptionColorSuffix.StringPtr))}"); break; case List: case TreeList: var l = (AtkComponentList*)this.Component; - if (ImGui.SmallButton("Inc.Selected")) + if (ImGui.SmallButton("Inc.Selected"u8)) { l->SelectedItemIndex++; } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs index 1f5abd0bf..ae6f5fffa 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs @@ -1,21 +1,20 @@ using System.Collections.Generic; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; +using static Dalamud.Bindings.ImGui.ImGuiColorEditFlags; +using static Dalamud.Bindings.ImGui.ImGuiInputTextFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.FontAwesomeIcon; using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Interface.Utility.ImGuiHelpers; -using static ImGuiNET.ImGuiColorEditFlags; -using static ImGuiNET.ImGuiInputTextFlags; -using static ImGuiNET.ImGuiTableColumnFlags; -using static ImGuiNET.ImGuiTableFlags; namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -51,12 +50,12 @@ internal unsafe partial class ResNodeTree var hov = false; - ImGui.TableSetupColumn("Labels", WidthFixed); - ImGui.TableSetupColumn("Editors", WidthFixed); + ImGui.TableSetupColumn("Labels"u8, WidthFixed); + ImGui.TableSetupColumn("Editors"u8, WidthFixed); ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Position:"); + ImGui.Text("Position:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); @@ -71,7 +70,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Size:"); + ImGui.Text("Size:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.DragFloat2($"##{(nint)this.Node:X}size", ref size, 1, 0, default, "%.0f")) @@ -85,7 +84,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Scale:"); + ImGui.Text("Scale:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.DragFloat2($"##{(nint)this.Node:X}scale", ref scale, 0.05f)) @@ -99,7 +98,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Origin:"); + ImGui.Text("Origin:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.DragFloat2($"##{(nint)this.Node:X}origin", ref origin, 1, default, default, "%.0f")) @@ -113,7 +112,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Rotation:"); + ImGui.Text("Rotation:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); while (angle > 180) @@ -129,7 +128,7 @@ internal unsafe partial class ResNodeTree if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Rotation (deg)"); + ImGui.SetTooltip("Rotation (deg)"u8); hov = true; } @@ -144,7 +143,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("RGBA:"); + ImGui.Text("RGBA:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}RGBA", ref rgba, DisplayHex)) @@ -154,7 +153,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Multiply:"); + ImGui.Text("Multiply:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit3($"##{(nint)this.Node:X}multiplyRGB", ref mult, DisplayHex)) @@ -166,7 +165,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Add:"); + ImGui.Text("Add:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(124); @@ -204,7 +203,7 @@ internal unsafe partial class CounterNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Counter:"); + ImGui.Text("Counter:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); @@ -230,7 +229,7 @@ internal unsafe partial class ImageNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Part Id:"); + ImGui.Text("Part Id:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.InputInt($"##partId{(nint)this.Node:X}", ref partId, 1, 1)) @@ -263,10 +262,10 @@ internal unsafe partial class NineGridNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Ninegrid Offsets:"); + ImGui.Text("Ninegrid Offsets:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetLR", ref lr, 1, 0)) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetLR", ref lr, 1f, 0f)) { this.NgNode->LeftOffset = (short)Math.Max(0, lr.X); this.NgNode->RightOffset = (short)Math.Max(0, lr.Y); @@ -278,7 +277,7 @@ internal unsafe partial class NineGridNodeTree ImGui.TableNextColumn(); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetTB", ref tb, 1, 0)) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetTB", ref tb, 1f, 0f)) { this.NgNode->TopOffset = (short)Math.Max(0, tb.X); this.NgNode->BottomOffset = (short)Math.Max(0, tb.Y); @@ -309,7 +308,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Text:"); + ImGui.Text("Text:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(Math.Max(ImGui.GetWindowContentRegionMax().X - ImGui.GetCursorPosX() - 50f, 150)); if (ImGui.InputText($"##{(nint)this.Node:X}textEdit", ref text, 512, EnterReturnsTrue)) @@ -319,17 +318,17 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Font:"); + ImGui.Text("Font:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.Combo($"##{(nint)this.Node:X}fontType", ref fontIndex, FontNames, FontList.Count)) + if (ImGui.Combo($"##{(nint)this.Node:X}fontType", ref fontIndex, FontNames)) { this.TxtNode->FontType = FontList[fontIndex]; } ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Font Size:"); + ImGui.Text("Font Size:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.InputInt($"##{(nint)this.Node:X}fontSize", ref fontSize, 1, 10)) @@ -339,7 +338,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Alignment:"); + ImGui.Text("Alignment:"u8); ImGui.TableNextColumn(); if (InputAlignment($"##{(nint)this.Node:X}alignment", ref alignment)) { @@ -348,7 +347,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Text Color:"); + ImGui.Text("Text Color:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}TextRGB", ref textColor, DisplayHex)) @@ -358,7 +357,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Edge Color:"); + ImGui.Text("Edge Color:"u8); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}EdgeRGB", ref edgeColor, DisplayHex)) diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs index 8d93b3e76..260ea4942 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs @@ -1,19 +1,19 @@ using System.Numerics; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; +using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableFlags; +using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.TextureType; -using static ImGuiNET.ImGuiTableColumnFlags; -using static ImGuiNET.ImGuiTableFlags; -using static ImGuiNET.ImGuiTreeNodeFlags; namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -77,13 +77,13 @@ internal unsafe partial class ImageNodeTree : ResNodeTree PrintFieldValuePairs(("Texture Path", this.TexData.Path)); } - if (ImGui.RadioButton("Full Image##textureDisplayStyle0", TexDisplayStyle == 0)) + if (ImGui.RadioButton("Full Image##textureDisplayStyle0"u8, TexDisplayStyle == 0)) { TexDisplayStyle = 0; } ImGui.SameLine(); - if (ImGui.RadioButton("Parts List##textureDisplayStyle1", TexDisplayStyle == 1)) + if (ImGui.RadioButton("Parts List##textureDisplayStyle1"u8, TexDisplayStyle == 1)) { TexDisplayStyle = 1; } @@ -153,7 +153,7 @@ internal unsafe partial class ImageNodeTree : ResNodeTree if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Click to copy as Vector2\nShift-click to copy as Vector4"); + ImGui.SetTooltip("Click to copy as Vector2\nShift-click to copy as Vector4"u8); } var suffix = asFloat ? "f" : string.Empty; @@ -192,9 +192,9 @@ internal unsafe partial class ImageNodeTree : ResNodeTree using var tbl = ImRaii.Table($"partsTable##{(nint)this.TexData.Texture->D3D11ShaderResourceView:X}", 3, Borders | RowBg | Reorderable); if (tbl.Success) { - ImGui.TableSetupColumn("Part ID", WidthFixed); - ImGui.TableSetupColumn("Part Texture", WidthFixed); - ImGui.TableSetupColumn("Coordinates", WidthFixed); + ImGui.TableSetupColumn("Part ID"u8, WidthFixed); + ImGui.TableSetupColumn("Part Texture"u8, WidthFixed); + ImGui.TableSetupColumn("Coordinates"u8, WidthFixed); ImGui.TableHeadersRow(); @@ -227,19 +227,19 @@ internal unsafe partial class ImageNodeTree : ResNodeTree ImGui.TableNextColumn(); - ImGui.TextColored(!hiRes ? new(1) : new(0.6f, 0.6f, 0.6f, 1), "Standard:\t"); + ImGui.TextColored(!hiRes ? new Vector4(1) : new(0.6f, 0.6f, 0.6f, 1), "Standard:\t"); ImGui.SameLine(); var cursX = ImGui.GetCursorPosX(); PrintPartCoords(u / 2f, v / 2f, width / 2f, height / 2f); - ImGui.TextColored(hiRes ? new(1) : new(0.6f, 0.6f, 0.6f, 1), "Hi-Res:\t"); + ImGui.TextColored(hiRes ? new Vector4(1) : new(0.6f, 0.6f, 0.6f, 1), "Hi-Res:\t"); ImGui.SameLine(); ImGui.SetCursorPosX(cursX); PrintPartCoords(u, v, width, height); - ImGui.Text("UV:\t"); + ImGui.Text("UV:\t"u8); ImGui.SameLine(); ImGui.SetCursorPosX(cursX); diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs index 48825becb..489135ed0 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs @@ -1,7 +1,8 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal.UiDebug2.Utility; +using Dalamud.Interface.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Utility.Util; @@ -80,7 +81,7 @@ internal unsafe partial class NineGridNodeTree : ImageNodeTree { if (!isEditorOpen) { - ImGui.Text("NineGrid Offsets:\t"); + ImGui.Text("NineGrid Offsets:\t"u8); ImGui.SameLine(); this.Offsets.Print(); } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs index 4440f7d34..418156811 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs @@ -2,13 +2,15 @@ using System.Linq; using System.Numerics; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.UiDebug2.Utility; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; +using static Dalamud.Bindings.ImGui.ImGuiCol; +using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.FontAwesomeIcon; using static Dalamud.Interface.Internal.UiDebug2.Browsing.Events; @@ -18,9 +20,6 @@ using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeFlags; -using static ImGuiNET.ImGuiCol; -using static ImGuiNET.ImGuiTreeNodeFlags; - namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// @@ -169,7 +168,7 @@ internal unsafe partial class ResNodeTree : IDisposable /// internal void WriteTreeHeading() { - ImGui.TextUnformatted(this.GetHeaderText()); + ImGui.Text(this.GetHeaderText()); this.PrintFieldLabels(); } @@ -385,7 +384,7 @@ internal unsafe partial class ResNodeTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Visibility"); + ImGui.SetTooltip("Toggle Visibility"u8); } ImGui.SameLine(); @@ -401,7 +400,7 @@ internal unsafe partial class ResNodeTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Popout Window"); + ImGui.SetTooltip("Toggle Popout Window"u8); } } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs index 02bd5feca..1435335db 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs @@ -1,15 +1,15 @@ +using System.Numerics; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; @@ -47,7 +47,7 @@ internal unsafe partial class TextNodeTree : ResNodeTree return; } - ImGui.TextColored(new(1), "Text:"); + ImGui.TextColored(new Vector4(1), "Text:"u8); ImGui.SameLine(); try @@ -64,7 +64,7 @@ internal unsafe partial class TextNodeTree : ResNodeTree } catch { - ImGui.TextUnformatted(Marshal.PtrToStringAnsi(new(this.NodeText.StringPtr)) ?? string.Empty); + ImGui.Text(Marshal.PtrToStringAnsi(new(this.NodeText.StringPtr)) ?? string.Empty); } PrintFieldValuePairs( @@ -96,7 +96,7 @@ internal unsafe partial class TextNodeTree : ResNodeTree for (var i = 0; i < seString.Payloads.Count; i++) { var payload = seString.Payloads[i]; - ImGui.TextUnformatted($"[{i}]"); + ImGui.Text($"[{i}]"); ImGui.SameLine(); switch (payload.Type) { @@ -108,7 +108,7 @@ internal unsafe partial class TextNodeTree : ResNodeTree default: { - ImGui.TextUnformatted(payload.ToString()); + ImGui.Text(payload.ToString()); break; } } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs index 2ba416b4f..71323088b 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -66,7 +66,7 @@ public readonly partial struct TimelineTree /// The default print function, if none is specified. ///
/// The value to print. - public static void PlainTextCell(T value) => ImGui.TextUnformatted($"{value}"); + public static void PlainTextCell(T value) => ImGui.Text($"{value}"); /// /// Adds a value to this column. @@ -83,7 +83,7 @@ public readonly partial struct TimelineTree } else { - ImGui.TextDisabled("..."); + ImGui.TextDisabled("..."u8); } } } diff --git a/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs index 30ff795f3..21f4fb54a 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs @@ -2,20 +2,19 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.Graphics; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; +using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; +using static Dalamud.Bindings.ImGui.ImGuiTableFlags; +using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeType; -using static ImGuiNET.ImGuiTableColumnFlags; -using static ImGuiNET.ImGuiTableFlags; -using static ImGuiNET.ImGuiTreeNodeFlags; // ReSharper disable SuggestBaseTypeForParameter namespace Dalamud.Interface.Internal.UiDebug2.Browsing; @@ -75,7 +74,7 @@ public readonly unsafe partial struct TimelineTree ("Frame Time", $"{this.NodeTimeline->FrameTime:F2} ({this.NodeTimeline->FrameTime * 30:F0})")); PrintFieldValuePairs(("Active Label Id", $"{this.NodeTimeline->ActiveLabelId}"), ("Duration", $"{this.NodeTimeline->LabelFrameIdxDuration}"), ("End Frame", $"{this.NodeTimeline->LabelEndFrameIdx}")); - ImGui.TextColored(new(0.6f, 0.6f, 0.6f, 1), "Animation List"); + ImGui.TextColored(new Vector4(0.6f, 0.6f, 0.6f, 1), "Animation List"u8); for (var a = 0; a < animationCount; a++) { @@ -152,7 +151,7 @@ public readonly unsafe partial struct TimelineTree return; } - var rotColumn = new KeyGroupColumn("Rotation", static r => ImGui.TextUnformatted($"{r * (180d / Math.PI):F1}°")); + var rotColumn = new KeyGroupColumn("Rotation", static r => ImGui.Text($"{r * (180d / Math.PI):F1}°")); for (var f = 0; f < keyGroup.KeyFrameCount; f++) { @@ -408,7 +407,7 @@ public readonly unsafe partial struct TimelineTree ("StartFrameIdx", $"{this.NodeTimeline->Resource->LabelSets->StartFrameIdx}"), ("EndFrameIdx", $"{this.NodeTimeline->Resource->LabelSets->EndFrameIdx}")); - using var labelSetTable = ImRaii.TreeNode("Entries"); + using var labelSetTable = ImRaii.TreeNode("Entries"u8); if (labelSetTable.Success) { var keyFrameGroup = this.Resource->LabelSets->LabelKeyGroup; @@ -416,13 +415,13 @@ public readonly unsafe partial struct TimelineTree using var table = ImRaii.Table($"##{(nint)this.node}labelSetKeyFrameTable", 7, Borders | SizingFixedFit | RowBg | NoHostExtendX); if (table.Success) { - ImGui.TableSetupColumn("Frame ID", WidthFixed); - ImGui.TableSetupColumn("Speed Start", WidthFixed); - ImGui.TableSetupColumn("Speed End", WidthFixed); - ImGui.TableSetupColumn("Interpolation", WidthFixed); - ImGui.TableSetupColumn("Label ID", WidthFixed); - ImGui.TableSetupColumn("Jump Behavior", WidthFixed); - ImGui.TableSetupColumn("Target Label ID", WidthFixed); + ImGui.TableSetupColumn("Frame ID"u8, WidthFixed); + ImGui.TableSetupColumn("Speed Start"u8, WidthFixed); + ImGui.TableSetupColumn("Speed End"u8, WidthFixed); + ImGui.TableSetupColumn("Interpolation"u8, WidthFixed); + ImGui.TableSetupColumn("Label ID"u8, WidthFixed); + ImGui.TableSetupColumn("Jump Behavior"u8, WidthFixed); + ImGui.TableSetupColumn("Target Label ID"u8, WidthFixed); ImGui.TableHeadersRow(); @@ -431,25 +430,25 @@ public readonly unsafe partial struct TimelineTree var keyFrame = keyFrameGroup.KeyFrames[l]; ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.FrameIdx}"); + ImGui.Text($"{keyFrame.FrameIdx}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.SpeedCoefficient1:F2}"); + ImGui.Text($"{keyFrame.SpeedCoefficient1:F2}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.SpeedCoefficient2:F2}"); + ImGui.Text($"{keyFrame.SpeedCoefficient2:F2}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.Interpolation}"); + ImGui.Text($"{keyFrame.Interpolation}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.Value.Label.LabelId}"); + ImGui.Text($"{keyFrame.Value.Label.LabelId}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.Value.Label.JumpBehavior}"); + ImGui.Text($"{keyFrame.Value.Label.JumpBehavior}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"{keyFrame.Value.Label.JumpLabelId}"); + ImGui.Text($"{keyFrame.Value.Label.JumpLabelId}"); } } } diff --git a/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs b/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs index 65537e210..2ea8fd5d2 100644 --- a/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs +++ b/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs @@ -3,23 +3,23 @@ using System.Globalization; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static System.Globalization.NumberFormatInfo; +using static Dalamud.Bindings.ImGui.ImGuiCol; +using static Dalamud.Bindings.ImGui.ImGuiWindowFlags; using static Dalamud.Interface.FontAwesomeIcon; using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; using static Dalamud.Interface.UiBuilder; using static Dalamud.Interface.Utility.ImGuiHelpers; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeFlags; -using static ImGuiNET.ImGuiCol; -using static ImGuiNET.ImGuiWindowFlags; + // ReSharper disable StructLacksIEquatable.Global #pragma warning disable CS0659 @@ -79,7 +79,7 @@ internal unsafe class ElementSelector : IDisposable /// internal void DrawInterface() { - using var ch = ImRaii.Child("###sidebar_elementSelector", new(250, -1), true); + using var ch = ImRaii.Child("###sidebar_elementSelector"u8, new(250, -1), true); if (ch.Success) { @@ -105,15 +105,15 @@ internal unsafe class ElementSelector : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Element Selector"); + ImGui.SetTooltip("Element Selector"u8); } ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X - 32); ImGui.InputTextWithHint( - "###addressSearchInput", - "Address Search", + "###addressSearchInput"u8, + "Address Search"u8, ref this.addressSearchInput, 18, ImGuiInputTextFlags.AutoSelectAll); @@ -144,10 +144,10 @@ internal unsafe class ElementSelector : IDisposable return; } - ImGui.Text("ELEMENT SELECTOR"); - ImGui.TextDisabled("Use the mouse to hover and identify UI elements, then click to jump to them in the inspector"); - ImGui.TextDisabled("Use the scrollwheel to choose between overlapping elements"); - ImGui.TextDisabled("Press ESCAPE to cancel"); + ImGui.Text("ELEMENT SELECTOR"u8); + ImGui.TextDisabled("Use the mouse to hover and identify UI elements, then click to jump to them in the inspector"u8); + ImGui.TextDisabled("Use the scrollwheel to choose between overlapping elements"u8); + ImGui.TextDisabled("Press ESCAPE to cancel"u8); ImGui.Spacing(); var mousePos = ImGui.GetMousePos() - MainViewport.Pos; @@ -155,7 +155,7 @@ internal unsafe class ElementSelector : IDisposable using (ImRaii.PushColor(WindowBg, new Vector4(0.5f))) { - using var ch = ImRaii.Child("noClick", new(800, 2000), false, NoInputs | NoBackground | NoScrollWithMouse); + using var ch = ImRaii.Child("noClick"u8, new(800, 2000), false, NoInputs | NoBackground | NoScrollWithMouse); if (ch.Success) { using var gr = ImRaii.Group(); @@ -163,13 +163,13 @@ internal unsafe class ElementSelector : IDisposable { Gui.PrintFieldValuePair("Mouse Position", $"{mousePos.X}, {mousePos.Y}"); ImGui.Spacing(); - ImGui.Text("RESULTS:\n"); + ImGui.Text("RESULTS:\n"u8); var i = 0; foreach (var a in addonResults) { var name = a.Addon->NameString; - ImGui.TextUnformatted($"[Addon] {name}"); + ImGui.Text($"[Addon] {name}"); ImGui.Indent(15); foreach (var n in a.Nodes) { diff --git a/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs b/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs index 76112945e..4684caa60 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs @@ -1,9 +1,9 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; -using ImGuiNET; namespace Dalamud.Interface.Internal.UiDebug2; diff --git a/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs b/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs index fe8bc87ea..da4b95256 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs @@ -1,10 +1,10 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; diff --git a/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs index 50967453d..210da896f 100644 --- a/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs +++ b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs @@ -1,14 +1,14 @@ using System.Collections.Generic; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static System.StringComparison; + using static Dalamud.Interface.FontAwesomeIcon; namespace Dalamud.Interface.Internal.UiDebug2; @@ -49,7 +49,7 @@ internal unsafe partial class UiDebug2 /// Gets the base address for all unit lists. ///
/// The address, if found. - internal static AtkUnitList* GetUnitListBaseAddr() => &((UIModule*)GameGui.GetUIModule())->GetRaptureAtkModule()->RaptureAtkUnitManager.AtkUnitManager.DepthLayerOneList; + internal static AtkUnitList* GetUnitListBaseAddr() => &RaptureAtkUnitManager.Instance()->DepthLayerOneList; private void DrawSidebar() { @@ -64,7 +64,7 @@ internal unsafe partial class UiDebug2 private void DrawNameSearch() { - using var ch = ImRaii.Child("###sidebar_nameSearch", new(250, 40), true); + using var ch = ImRaii.Child("###sidebar_nameSearch"u8, new(250, 40), true); if (ch.Success) { @@ -78,13 +78,13 @@ internal unsafe partial class UiDebug2 if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Filter by visibility"); + ImGui.SetTooltip("Filter by visibility"u8); } ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputTextWithHint("###atkUnitBaseSearch", "Filter by name", ref atkUnitBaseSearch, 0x20)) + if (ImGui.InputTextWithHint("###atkUnitBaseSearch"u8, "Filter by name"u8, ref atkUnitBaseSearch, 0x20)) { this.addonNameSearch = atkUnitBaseSearch; } @@ -93,7 +93,7 @@ internal unsafe partial class UiDebug2 private void DrawAddonSelectionList() { - using var ch = ImRaii.Child("###sideBar_addonList", new(250, -44), true, ImGuiWindowFlags.AlwaysVerticalScrollbar); + using var ch = ImRaii.Child("###sideBar_addonList"u8, new(250, -44), true, ImGuiWindowFlags.AlwaysVerticalScrollbar); if (ch.Success) { var unitListBaseAddr = GetUnitListBaseAddr(); diff --git a/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs index 74727f2a5..ce4c6dfeb 100644 --- a/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs +++ b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs @@ -1,17 +1,15 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; using Dalamud.Plugin.Services; - using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; - -using static ImGuiNET.ImGuiWindowFlags; +using static Dalamud.Bindings.ImGui.ImGuiWindowFlags; namespace Dalamud.Interface.Internal.UiDebug2; @@ -83,7 +81,7 @@ internal partial class UiDebug2 : IDisposable { ImGui.SameLine(); - using var ch = ImRaii.Child("###uiDebugMainPanel", new(-1, -1), true, HorizontalScrollbar); + using var ch = ImRaii.Child("###uiDebugMainPanel"u8, new(-1, -1), true, HorizontalScrollbar); if (ch.Success) { diff --git a/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs b/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs index cc4f1b698..da5f30e68 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs @@ -1,13 +1,12 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.Graphics; -using ImGuiNET; +using static Dalamud.Bindings.ImGui.ImGuiCol; using static Dalamud.Interface.ColorHelpers; -using static ImGuiNET.ImGuiCol; namespace Dalamud.Interface.Internal.UiDebug2.Utility; @@ -24,12 +23,12 @@ internal static class Gui /// Whether to enable click-to-copy. internal static void PrintFieldValuePair(string fieldName, string value, bool copy = true) { - ImGui.TextUnformatted($"{fieldName}:"); + ImGui.Text($"{fieldName}:"); ImGui.SameLine(); var grey60 = new Vector4(0.6f, 0.6f, 0.6f, 1); if (copy) { - ImGuiHelpers.ClickToCopyText(value, null, grey60); + ImGuiHelpers.ClickToCopyText(value, default, grey60); } else { @@ -109,7 +108,7 @@ internal static class Gui if (tt.Success) { - ImGui.TextUnformatted(tooltips[index]); + ImGui.Text(tooltips[index]); } return true; diff --git a/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs b/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs index 3d28cb836..832c7f357 100644 --- a/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs @@ -2,11 +2,12 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; -using ImGuiNET; using static System.MathF; + using static Dalamud.Interface.ColorHelpers; namespace Dalamud.Interface.Internal.UiDebug2.Utility; diff --git a/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs b/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs index 055cb9f49..5caf8b5be 100644 --- a/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs +++ b/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs @@ -5,13 +5,12 @@ using System.Linq; using System.Net.Http.Json; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Networking.Http; - -using ImGuiNET; using Newtonsoft.Json; namespace Dalamud.Interface.Internal.Windows; @@ -62,20 +61,20 @@ public class BranchSwitcherWindow : Window { if (this.branches == null) { - ImGui.TextColored(ImGuiColors.DalamudGrey, "Loading branches..."); + ImGui.TextColored(ImGuiColors.DalamudGrey, "Loading branches..."u8); return; } var si = Service.Get().StartInfo; var itemsArray = this.branches.Select(x => x.Key).ToArray(); - ImGui.ListBox("Branch", ref this.selectedBranchIndex, itemsArray, itemsArray.Length); + ImGui.ListBox("Branch", ref this.selectedBranchIndex, itemsArray); var pickedBranch = this.branches.ElementAt(this.selectedBranchIndex); if (pickedBranch.Value.SupportedGameVer != si.GameVersion) { - ImGui.TextColored(ImGuiColors.DalamudRed, "Can't pick this branch. GameVer != SupportedGameVer."); + ImGui.TextColored(ImGuiColors.DalamudRed, "Can't pick this branch. GameVer != SupportedGameVer."u8); } else { @@ -92,7 +91,7 @@ public class BranchSwitcherWindow : Window config.QueueSave(); } - if (ImGui.Button("Pick")) + if (ImGui.Button("Pick"u8)) { Pick(); this.IsOpen = false; @@ -100,7 +99,7 @@ public class BranchSwitcherWindow : Window ImGui.SameLine(); - if (ImGui.Button("Pick & Restart")) + if (ImGui.Button("Pick & Restart"u8)) { Pick(); diff --git a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs index d42dc3669..b0a910ead 100644 --- a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Numerics; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Gui; @@ -22,11 +22,8 @@ using Dalamud.Plugin.Internal.AutoUpdate; using Dalamud.Plugin.Services; using Dalamud.Storage.Assets; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.UI; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows; /// @@ -35,7 +32,7 @@ namespace Dalamud.Interface.Internal.Windows; internal sealed class ChangelogWindow : Window, IDisposable { private const string WarrantsChangelogForMajorMinor = "10.0."; - + private const string ChangeLog = @"• Updated Dalamud for compatibility with Patch 7.0 • Made a lot of behind-the-scenes changes to make Dalamud and plugins more stable and reliable @@ -43,7 +40,7 @@ internal sealed class ChangelogWindow : Window, IDisposable • Refreshed the Dalamud/plugin installer UI "; - private static readonly TimeSpan TitleScreenWaitTime = TimeSpan.FromSeconds(0.5f); + private static readonly TimeSpan TitleScreenWaitTime = TimeSpan.FromSeconds(0.5f); private readonly TitleScreenMenuWindow tsmWindow; @@ -54,40 +51,40 @@ internal sealed class ChangelogWindow : Window, IDisposable private readonly Lazy bannerFont; private readonly Lazy apiBumpExplainerTexture; private readonly Lazy logoTexture; - + private readonly InOutCubic windowFade = new(TimeSpan.FromSeconds(2.5f)) { Point1 = Vector2.Zero, Point2 = new Vector2(2f), }; - + private readonly InOutCubic bodyFade = new(TimeSpan.FromSeconds(0.8f)) { Point1 = Vector2.Zero, Point2 = Vector2.One, }; - + private readonly InOutCubic titleFade = new(TimeSpan.FromSeconds(0.5f)) { Point1 = Vector2.Zero, Point2 = Vector2.One, }; - + private readonly InOutCubic fadeOut = new(TimeSpan.FromSeconds(0.5f)) { Point1 = Vector2.One, Point2 = Vector2.Zero, }; - + private State state = State.WindowFadeIn; - + private bool needFadeRestart = false; - + private bool isFadingOutForStateChange = false; private State? stateAfterFadeOut; - + private AutoUpdateBehavior? chosenAutoUpdateBehavior; - + private Dictionary currentFtueLevels = new(); private DateTime? isEligibleSince; @@ -110,7 +107,7 @@ internal sealed class ChangelogWindow : Window, IDisposable : base("What's new in Dalamud?##ChangelogWindow", ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse, true) { this.gameGui = gameGui; - + this.tsmWindow = tsmWindow; this.Namespace = "DalamudChangelogWindow"; this.privateAtlas = this.scopedFinalizer.Add( @@ -125,7 +122,7 @@ internal sealed class ChangelogWindow : Window, IDisposable // If we are going to show a changelog, make sure we have the font ready, otherwise it will hitch if (WarrantsChangelog()) _ = this.bannerFont.Value; - + framework.Update += this.FrameworkOnUpdate; this.scopedFinalizer.Add(() => framework.Update -= this.FrameworkOnUpdate); } @@ -138,7 +135,7 @@ internal sealed class ChangelogWindow : Window, IDisposable AskAutoUpdate, Links, } - + /// /// Check if a changelog should be shown. /// @@ -163,7 +160,7 @@ internal sealed class ChangelogWindow : Window, IDisposable this.isFadingOutForStateChange = false; this.stateAfterFadeOut = null; - + this.state = State.WindowFadeIn; this.windowFade.Reset(); this.bodyFade.Reset(); @@ -172,9 +169,9 @@ internal sealed class ChangelogWindow : Window, IDisposable this.needFadeRestart = true; this.chosenAutoUpdateBehavior = null; - + this.currentFtueLevels = Service.Get().SeenFtueLevels; - + base.OnOpen(); } @@ -182,17 +179,17 @@ internal sealed class ChangelogWindow : Window, IDisposable public override void OnClose() { base.OnClose(); - + this.tsmWindow.AllowDrawing = true; Service.Get().SetCreditsDarkeningAnimation(false); var configuration = Service.Get(); - + if (this.chosenAutoUpdateBehavior.HasValue) { configuration.AutoUpdateBehavior = this.chosenAutoUpdateBehavior.Value; } - + configuration.SeenFtueLevels = this.currentFtueLevels; configuration.QueueSave(); } @@ -203,7 +200,7 @@ internal sealed class ChangelogWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.WindowBorderSize, 0); ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, Vector2.Zero); ImGui.PushStyleVar(ImGuiStyleVar.WindowRounding, 10f); - + base.PreDraw(); if (this.needFadeRestart) @@ -212,15 +209,15 @@ internal sealed class ChangelogWindow : Window, IDisposable this.titleFade.Restart(); this.needFadeRestart = false; } - + this.windowFade.Update(); this.titleFade.Update(); this.fadeOut.Update(); ImGui.SetNextWindowBgAlpha(Math.Clamp(this.windowFade.EasedPoint.X, 0, 0.9f)); - + this.Size = new Vector2(900, 400); this.SizeCondition = ImGuiCond.Always; - + // Center the window on the main viewport var viewportPos = ImGuiHelpers.MainViewport.Pos; var viewportSize = ImGuiHelpers.MainViewport.Size; @@ -233,9 +230,9 @@ internal sealed class ChangelogWindow : Window, IDisposable public override void PostDraw() { ImGui.PopStyleVar(3); - + this.ResetMovieTimer(); - + base.PostDraw(); } @@ -248,37 +245,37 @@ internal sealed class ChangelogWindow : Window, IDisposable configuration.LastChangelogMajorMinor = WarrantsChangelogForMajorMinor; configuration.QueueSave(); } - + var windowSize = ImGui.GetWindowSize(); - + var dummySize = 10 * ImGuiHelpers.GlobalScale; ImGui.Dummy(new Vector2(dummySize)); ImGui.SameLine(); - + var logoContainerSize = new Vector2(windowSize.X * 0.2f - dummySize, windowSize.Y); - using (var child = ImRaii.Child("###logoContainer", logoContainerSize, false)) + using (var child = ImRaii.Child("###logoContainer"u8, logoContainerSize, false)) { if (!child) return; var logoSize = new Vector2(logoContainerSize.X); - + // Center the logo in the container ImGui.SetCursorPos(new Vector2(logoContainerSize.X / 2 - logoSize.X / 2, logoContainerSize.Y / 2 - logoSize.Y / 2)); - + using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, Math.Clamp(this.windowFade.EasedPoint.X - 0.5f, 0f, 1f))) - ImGui.Image(this.logoTexture.Value.ImGuiHandle, logoSize); + ImGui.Image(this.logoTexture.Value.Handle, logoSize); } - + ImGui.SameLine(); ImGui.Dummy(new Vector2(dummySize)); ImGui.SameLine(); - - using (var child = ImRaii.Child("###textContainer", new Vector2((windowSize.X * 0.8f) - dummySize * 4, windowSize.Y), false)) + + using (var child = ImRaii.Child("###textContainer"u8, new Vector2((windowSize.X * 0.8f) - dummySize * 4, windowSize.Y), false)) { if (!child) return; - + ImGuiHelpers.ScaledDummy(20); var titleFadeVal = this.isFadingOutForStateChange ? this.fadeOut.EasedPoint.X : this.titleFade.EasedPoint.X; @@ -292,21 +289,21 @@ internal sealed class ChangelogWindow : Window, IDisposable case State.ExplainerIntro: ImGuiHelpers.CenteredText("New And Improved"); break; - + case State.ExplainerApiBump: ImGuiHelpers.CenteredText("Plugin Updates"); break; - + case State.AskAutoUpdate: ImGuiHelpers.CenteredText("Auto-Updates"); break; - + case State.Links: ImGuiHelpers.CenteredText("Enjoy!"); break; } } - + ImGuiHelpers.ScaledDummy(8); if (this.state == State.WindowFadeIn && this.windowFade.EasedPoint.X > 1.5f) @@ -321,11 +318,11 @@ internal sealed class ChangelogWindow : Window, IDisposable this.bodyFade.Restart(); this.titleFade.Restart(); - + this.isFadingOutForStateChange = false; this.stateAfterFadeOut = null; } - + this.bodyFade.Update(); var bodyFadeVal = this.isFadingOutForStateChange ? this.fadeOut.EasedPoint.X : this.bodyFade.EasedPoint.X; using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, Math.Clamp(bodyFadeVal, 0, 1f))) @@ -334,10 +331,10 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.isFadingOutForStateChange = true; this.stateAfterFadeOut = nextState; - + this.fadeOut.Restart(); } - + bool DrawNextButton(State nextState) { // Draw big, centered next button at the bottom of the window @@ -346,7 +343,7 @@ internal sealed class ChangelogWindow : Window, IDisposable var buttonWidth = ImGui.CalcTextSize(buttonText).X + 40 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPosY(windowSize.Y - buttonHeight - (20 * ImGuiHelpers.GlobalScale)); ImGuiHelpers.CenterCursorFor((int)buttonWidth); - + if (ImGui.Button(buttonText, new Vector2(buttonWidth, buttonHeight)) && !this.isFadingOutForStateChange) { GoToNextState(nextState); @@ -355,7 +352,7 @@ internal sealed class ChangelogWindow : Window, IDisposable return false; } - + switch (this.state) { case State.WindowFadeIn: @@ -364,28 +361,28 @@ internal sealed class ChangelogWindow : Window, IDisposable ImGuiHelpers.ScaledDummy(5); ImGui.TextWrapped(ChangeLog); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("This changelog is a quick overview of the most important changes in this version."); - ImGui.TextWrapped("Please click next to see a quick guide to updating your plugins."); - + ImGui.TextWrapped("This changelog is a quick overview of the most important changes in this version."u8); + ImGui.TextWrapped("Please click next to see a quick guide to updating your plugins."u8); + DrawNextButton(State.ExplainerApiBump); break; - + case State.ExplainerApiBump: - ImGui.TextWrapped("Take care! Due to changes in this patch, all of your plugins need to be updated and were disabled automatically."); - ImGui.TextWrapped("This is normal and required for major game updates."); + ImGui.TextWrapped("Take care! Due to changes in this patch, all of your plugins need to be updated and were disabled automatically."u8); + ImGui.TextWrapped("This is normal and required for major game updates."u8); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("To update your plugins, open the plugin installer and click 'update plugins'. Updated plugins should update and then re-enable themselves."); + ImGui.TextWrapped("To update your plugins, open the plugin installer and click 'update plugins'. Updated plugins should update and then re-enable themselves."u8); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("Please keep in mind that not all of your plugins may already be updated for the new version."); - ImGui.TextWrapped("If some plugins are displayed with a red cross in the 'Installed Plugins' tab, they may not yet be available."); - + ImGui.TextWrapped("Please keep in mind that not all of your plugins may already be updated for the new version."u8); + ImGui.TextWrapped("If some plugins are displayed with a red cross in the 'Installed Plugins' tab, they may not yet be available."u8); + ImGuiHelpers.ScaledDummy(15); ImGuiHelpers.CenterCursorFor(this.apiBumpExplainerTexture.Value.Width); ImGui.Image( - this.apiBumpExplainerTexture.Value.ImGuiHandle, + this.apiBumpExplainerTexture.Value.Handle, this.apiBumpExplainerTexture.Value.Size); - + if (!this.currentFtueLevels.TryGetValue(FtueLevels.AutoUpdate.Name, out var autoUpdateLevel) || autoUpdateLevel < FtueLevels.AutoUpdate.AutoUpdateInitial) { if (DrawNextButton(State.AskAutoUpdate)) @@ -397,23 +394,23 @@ internal sealed class ChangelogWindow : Window, IDisposable { DrawNextButton(State.Links); } - + break; - + case State.AskAutoUpdate: - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", + ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", "Dalamud can update your plugins automatically, making sure that you always " + "have the newest features and bug fixes. You can choose when and how auto-updates are run here.")); ImGuiHelpers.ScaledDummy(2); - - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", + + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", "You can always update your plugins manually by clicking the update button in the plugin list. " + "You can also opt into updates for specific plugins by right-clicking them and selecting \"Always auto-update\".")); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", "Dalamud will only notify you about updates while you are idle.")); - + ImGuiHelpers.ScaledDummy(15); - + bool DrawCenteredButton(string text, float height) { var buttonHeight = height * ImGuiHelpers.GlobalScale; @@ -427,97 +424,97 @@ internal sealed class ChangelogWindow : Window, IDisposable using (ImRaii.PushColor(ImGuiCol.Button, ImGuiColors.DPSRed)) { if (DrawCenteredButton("Enable auto-updates", 30)) - { + { this.chosenAutoUpdateBehavior = AutoUpdateBehavior.UpdateMainRepo; GoToNextState(State.Links); } } - + ImGuiHelpers.ScaledDummy(2); - + using (ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 1)) using (var buttonColor = ImRaii.PushColor(ImGuiCol.Button, Vector4.Zero)) { buttonColor.Push(ImGuiCol.Border, ImGuiColors.DalamudGrey3); if (DrawCenteredButton("Disable auto-updates", 25)) - { + { this.chosenAutoUpdateBehavior = AutoUpdateBehavior.OnlyNotify; GoToNextState(State.Links); } } - + break; - + case State.Links: - ImGui.TextWrapped("If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help."); - ImGui.TextWrapped("Enjoy your time with the game and Dalamud!"); - + ImGui.TextWrapped("If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help."u8); + ImGui.TextWrapped("Enjoy your time with the game and Dalamud!"u8); + ImGuiHelpers.ScaledDummy(45); - + bool CenteredIconButton(FontAwesomeIcon icon, string text) { var buttonWidth = ImGuiComponents.GetIconButtonWithTextWidth(icon, text); ImGuiHelpers.CenterCursorFor((int)buttonWidth); return ImGuiComponents.IconButtonWithText(icon, text); } - + if (CenteredIconButton(FontAwesomeIcon.Download, "Open Plugin Installer")) { Service.Get().OpenPluginInstaller(); this.IsOpen = false; Dismiss(); } - + ImGuiHelpers.ScaledDummy(5); - + ImGuiHelpers.CenterCursorFor( (int)(ImGuiComponents.GetIconButtonWithTextWidth(FontAwesomeIcon.Globe, "See the FAQ") + ImGuiComponents.GetIconButtonWithTextWidth(FontAwesomeIcon.LaughBeam, "Join our Discord server") + - (5 * ImGuiHelpers.GlobalScale) + + (5 * ImGuiHelpers.GlobalScale) + (ImGui.GetStyle().ItemSpacing.X * 4))); if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Globe, "See the FAQ")) { Util.OpenLink("https://goatcorp.github.io/faq/"); } - + ImGui.SameLine(); ImGuiHelpers.ScaledDummy(5); ImGui.SameLine(); - + if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.LaughBeam, "Join our Discord server")) { Util.OpenLink("https://discord.gg/3NMcUV5"); } - + ImGuiHelpers.ScaledDummy(5); - + if (CenteredIconButton(FontAwesomeIcon.Heart, "Support what we care about")) { Util.OpenLink("https://goatcorp.github.io/faq/support"); } - + var buttonHeight = 30 * ImGuiHelpers.GlobalScale; var buttonText = "Close"; var buttonWidth = ImGui.CalcTextSize(buttonText).X + 40 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPosY(windowSize.Y - buttonHeight - (20 * ImGuiHelpers.GlobalScale)); ImGuiHelpers.CenterCursorFor((int)buttonWidth); - + if (ImGui.Button(buttonText, new Vector2(buttonWidth, buttonHeight))) { this.IsOpen = false; Dismiss(); } - + break; } } - + // Draw close button in the top right corner ImGui.PushStyleVar(ImGuiStyleVar.FrameRounding, 100f); var btnAlpha = Math.Clamp(this.windowFade.EasedPoint.X - 0.5f, 0f, 1f); ImGui.PushStyleColor(ImGuiCol.Button, ImGuiColors.DPSRed.WithAlpha(btnAlpha).Desaturate(0.3f)); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudWhite.WithAlpha(btnAlpha)); - + var childSize = ImGui.GetWindowSize(); var closeButtonSize = 15 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPos(new Vector2(childSize.X - closeButtonSize - (10 * ImGuiHelpers.GlobalScale), 10 * ImGuiHelpers.GlobalScale)); @@ -532,7 +529,7 @@ internal sealed class ChangelogWindow : Window, IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("I don't care about this"); + ImGui.SetTooltip("I don't care about this"u8); } } } @@ -544,7 +541,7 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.scopedFinalizer.Dispose(); } - + private void FrameworkOnUpdate(IFramework unused) { if (!WarrantsChangelog()) @@ -555,7 +552,7 @@ internal sealed class ChangelogWindow : Window, IDisposable if (this.openedThroughEligibility) return; - + var isEligible = this.gameGui.GetAddonByName("_TitleMenu", 1) != IntPtr.Zero; var charaSelect = this.gameGui.GetAddonByName("CharaSelect", 1); @@ -572,14 +569,14 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.isEligibleSince = null; } - + if (this.isEligibleSince != null && DateTime.Now - this.isEligibleSince > TitleScreenWaitTime) { this.IsOpen = true; this.openedThroughEligibility = true; } } - + private unsafe void ResetMovieTimer() { var uiModule = UIModule.Instance(); diff --git a/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs b/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs index 3d2b585ac..1bff1d5c1 100644 --- a/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs @@ -3,9 +3,10 @@ using System.Linq; using System.Numerics; using System.Reflection; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; +using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -52,7 +53,7 @@ internal sealed class ColorDemoWindow : Window /// public override void Draw() { - ImGui.Text("This is a collection of UI colors you can use in your plugin."); + ImGui.Text("This is a collection of UI colors you can use in your plugin."u8); ImGui.Separator(); diff --git a/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs b/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs index c0d2e4c61..9096d78de 100644 --- a/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs @@ -1,13 +1,13 @@ using System.Collections.Generic; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Animation; using Dalamud.Interface.Animation.EasingFunctions; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -73,7 +73,7 @@ internal sealed class ComponentDemoWindow : Window /// public override void Draw() { - ImGui.Text("This is a collection of UI components you can use in your plugin."); + ImGui.Text("This is a collection of UI components you can use in your plugin."u8); for (var i = 0; i < this.componentDemos.Count; i++) { @@ -85,7 +85,7 @@ internal sealed class ComponentDemoWindow : Window } } - if (ImGui.CollapsingHeader("Easing animations")) + if (ImGui.CollapsingHeader("Easing animations"u8)) { this.EasingsDemo(); } @@ -93,22 +93,22 @@ internal sealed class ComponentDemoWindow : Window private static void HelpMarkerDemo() { - ImGui.Text("Hover over the icon to learn more."); + ImGui.Text("Hover over the icon to learn more."u8); ImGuiComponents.HelpMarker("help me!"); } private static void IconButtonDemo() { - ImGui.Text("Click on the icon to use as a button."); + ImGui.Text("Click on the icon to use as a button."u8); ImGui.SameLine(); if (ImGuiComponents.IconButton(1, FontAwesomeIcon.Carrot)) { - ImGui.OpenPopup("IconButtonDemoPopup"); + ImGui.OpenPopup("IconButtonDemoPopup"u8); } - if (ImGui.BeginPopup("IconButtonDemoPopup")) + if (ImGui.BeginPopup("IconButtonDemoPopup"u8)) { - ImGui.Text("You clicked!"); + ImGui.Text("You clicked!"u8); ImGui.EndPopup(); } } @@ -120,7 +120,7 @@ internal sealed class ComponentDemoWindow : Window private void EasingsDemo() { - ImGui.SliderInt("Speed in MS", ref this.animationTimeMs, 200, 5000); + ImGui.SliderInt("Speed in MS"u8, ref this.animationTimeMs, 200, 5000); foreach (var easing in this.easings) { @@ -154,7 +154,7 @@ internal sealed class ComponentDemoWindow : Window private void ColorPickerWithPaletteDemo() { - ImGui.Text("Click on the color button to use the picker."); + ImGui.Text("Click on the color button to use the picker."u8); ImGui.SameLine(); this.defaultColor = ImGuiComponents.ColorPickerWithPalette(1, "ColorPickerWithPalette Demo", this.defaultColor); } diff --git a/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs b/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs index 8ef49fffc..74df500db 100644 --- a/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs @@ -7,6 +7,7 @@ using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; @@ -21,9 +22,6 @@ using Dalamud.Interface.Windowing; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; - -using ImGuiNET; - using Serilog; using Serilog.Events; @@ -114,10 +112,7 @@ internal class ConsoleWindow : Window, IDisposable this.configuration.DalamudConfigurationSaved += this.OnDalamudConfigurationSaved; - unsafe - { - this.clipperPtr = new(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); - } + this.clipperPtr = ImGui.ImGuiListClipper(); } /// Gets the queue where log entries that are not processed yet are stored. @@ -166,7 +161,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TextColored( ImGuiColors.DalamudRed, $"Regex Filter Error: {this.exceptionLogFilter.GetType().Name}"); - ImGui.TextUnformatted(this.exceptionLogFilter.Message); + ImGui.Text(this.exceptionLogFilter.Message); } if (this.exceptionLogHighlight is not null) @@ -174,14 +169,14 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TextColored( ImGuiColors.DalamudRed, $"Regex Highlight Error: {this.exceptionLogHighlight.GetType().Name}"); - ImGui.TextUnformatted(this.exceptionLogHighlight.Message); + ImGui.Text(this.exceptionLogHighlight.Message); } - var sendButtonSize = ImGui.CalcTextSize("Send") + + var sendButtonSize = ImGui.CalcTextSize("Send"u8) + ((new Vector2(16, 0) + (ImGui.GetStyle().FramePadding * 2)) * ImGuiHelpers.GlobalScale); var scrollingHeight = ImGui.GetContentRegionAvail().Y - sendButtonSize.Y; ImGui.BeginChild( - "scrolling", + "scrolling"u8, new Vector2(0, scrollingHeight), false, ImGuiWindowFlags.AlwaysHorizontalScrollbar | ImGuiWindowFlags.AlwaysVerticalScrollbar); @@ -194,9 +189,9 @@ internal class ConsoleWindow : Window, IDisposable var childDrawList = ImGui.GetWindowDrawList(); var childSize = ImGui.GetWindowSize(); - var timestampWidth = ImGui.CalcTextSize("00:00:00.000").X; - var levelWidth = ImGui.CalcTextSize("AAA").X; - var separatorWidth = ImGui.CalcTextSize(" | ").X; + var timestampWidth = ImGui.CalcTextSize("00:00:00.000"u8).X; + var levelWidth = ImGui.CalcTextSize("AAA"u8).X; + var separatorWidth = ImGui.CalcTextSize(" | "u8).X; var cursorLogLevel = timestampWidth + separatorWidth; var cursorLogLine = cursorLogLevel + levelWidth + separatorWidth; @@ -230,7 +225,7 @@ internal class ConsoleWindow : Window, IDisposable } ImGui.Selectable( - "###console_null", + "###console_null"u8, true, ImGuiSelectableFlags.AllowItemOverlap | ImGuiSelectableFlags.SpanAllColumns); @@ -243,11 +238,11 @@ internal class ConsoleWindow : Window, IDisposable if (!line.IsMultiline) { - ImGui.TextUnformatted(line.TimestampString); + ImGui.Text(line.TimestampString); ImGui.SameLine(); ImGui.SetCursorPosX(cursorLogLevel); - ImGui.TextUnformatted(GetTextForLogEventLevel(line.Level)); + ImGui.Text(GetTextForLogEventLevel(line.Level)); ImGui.SameLine(); } @@ -263,7 +258,7 @@ internal class ConsoleWindow : Window, IDisposable } else { - ImGui.TextUnformatted(line.Line); + ImGui.Text(line.Line); } var currentLinePosY = ImGui.GetCursorPosY(); @@ -326,7 +321,7 @@ internal class ConsoleWindow : Window, IDisposable unsafe { if (ImGui.InputText( - "##command_box", + "##command_box"u8, ref this.commandText, 255, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.CallbackCompletion | @@ -346,7 +341,7 @@ internal class ConsoleWindow : Window, IDisposable if (hadColor) ImGui.PopStyleColor(); - if (ImGui.Button("Send", sendButtonSize)) + if (ImGui.Button("Send"u8, sendButtonSize)) { this.ProcessCommand(); } @@ -478,7 +473,7 @@ internal class ConsoleWindow : Window, IDisposable private void DrawOptionsToolbar() { ImGui.PushItemWidth(150.0f * ImGuiHelpers.GlobalScale); - if (ImGui.BeginCombo("##log_level", $"{EntryPoint.LogLevelSwitch.MinimumLevel}+")) + if (ImGui.BeginCombo("##log_level"u8, $"{EntryPoint.LogLevelSwitch.MinimumLevel}+")) { foreach (var value in Enum.GetValues()) { @@ -496,7 +491,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.SameLine(); - var settingsPopup = ImGui.BeginPopup("##console_settings"); + var settingsPopup = ImGui.BeginPopup("##console_settings"u8); if (settingsPopup) { this.DrawSettingsPopup(); @@ -511,7 +506,7 @@ internal class ConsoleWindow : Window, IDisposable this.settingsPopupWasOpen = settingsPopup; if (this.DrawToggleButtonWithTooltip("show_settings", "Show settings", FontAwesomeIcon.List, ref settingsPopup)) - ImGui.OpenPopup("##console_settings"); + ImGui.OpenPopup("##console_settings"u8); ImGui.SameLine(); @@ -542,7 +537,7 @@ internal class ConsoleWindow : Window, IDisposable this.QueueClear(); } - if (ImGui.IsItemHovered()) ImGui.SetTooltip("Clear Log"); + if (ImGui.IsItemHovered()) ImGui.SetTooltip("Clear Log"u8); ImGui.SameLine(); @@ -578,7 +573,7 @@ internal class ConsoleWindow : Window, IDisposable this.killGameArmed = true; } - if (ImGui.IsItemHovered()) ImGui.SetTooltip("Kill game"); + if (ImGui.IsItemHovered()) ImGui.SetTooltip("Kill game"u8); ImGui.SameLine(); @@ -600,8 +595,8 @@ internal class ConsoleWindow : Window, IDisposable ImGui.PushItemWidth(inputWidth); if (ImGui.InputTextWithHint( - "##textHighlight", - "regex highlight", + "##textHighlight"u8, + "regex highlight"u8, ref this.textHighlight, 2048, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.AutoSelectAll) @@ -628,8 +623,8 @@ internal class ConsoleWindow : Window, IDisposable ImGui.PushItemWidth(inputWidth); if (ImGui.InputTextWithHint( - "##textFilter", - "regex global filter", + "##textFilter"u8, + "regex global filter"u8, ref this.textFilter, 2048, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.AutoSelectAll) @@ -660,21 +655,21 @@ internal class ConsoleWindow : Window, IDisposable private void DrawSettingsPopup() { - if (ImGui.Checkbox("Open at startup", ref this.autoOpen)) + if (ImGui.Checkbox("Open at startup"u8, ref this.autoOpen)) { this.configuration.LogOpenAtStartup = this.autoOpen; this.configuration.QueueSave(); } - if (ImGui.Checkbox("Auto-scroll", ref this.autoScroll)) + if (ImGui.Checkbox("Auto-scroll"u8, ref this.autoScroll)) { this.configuration.LogAutoScroll = this.autoScroll; this.configuration.QueueSave(); } - ImGui.TextUnformatted("Logs buffer"); - ImGui.SliderInt("lines", ref this.logLinesLimit, LogLinesMinimum, LogLinesMaximum); - if (ImGui.Button("Apply")) + ImGui.Text("Logs buffer"u8); + ImGui.SliderInt("lines"u8, ref this.logLinesLimit, LogLinesMinimum, LogLinesMaximum); + if (ImGui.Button("Apply"u8)) { this.logLinesLimit = Math.Max(LogLinesMinimum, this.logLinesLimit); @@ -691,15 +686,15 @@ internal class ConsoleWindow : Window, IDisposable PluginFilterEntry? removalEntry = null; using var table = ImRaii.Table( - "plugin_filter_entries", + "plugin_filter_entries"u8, 4, ImGuiTableFlags.Resizable | ImGuiTableFlags.BordersInnerV); if (!table) return; - ImGui.TableSetupColumn("##remove_button", ImGuiTableColumnFlags.WidthFixed, 25.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##source_name", ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##log_level", ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##filter_text", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("##remove_button"u8, ImGuiTableColumnFlags.WidthFixed, 25.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##source_name"u8, ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##log_level"u8, ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##filter_text"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableNextColumn(); if (ImGuiComponents.IconButton("add_entry", FontAwesomeIcon.Plus)) @@ -720,7 +715,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TableNextColumn(); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.BeginCombo("##Sources", this.selectedSource, ImGuiComboFlags.HeightLarge)) + if (ImGui.BeginCombo("##Sources"u8, this.selectedSource, ImGuiComboFlags.HeightLarge)) { var sourceNames = Service.Get().InstalledPlugins .Select(p => p.Manifest.InternalName) @@ -734,12 +729,12 @@ internal class ConsoleWindow : Window, IDisposable .ToList(); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - ImGui.InputTextWithHint("##PluginSearchFilter", "Filter Plugin List", ref this.pluginFilter, 2048); + ImGui.InputTextWithHint("##PluginSearchFilter"u8, "Filter Plugin List"u8, ref this.pluginFilter, 2048); ImGui.Separator(); - if (!sourceNames.Any()) + if (sourceNames.Count == 0) { - ImGui.TextColored(ImGuiColors.DalamudRed, "No Results"); + ImGui.TextColored(ImGuiColors.DalamudRed, "No Results"u8); } foreach (var selectable in sourceNames) @@ -771,7 +766,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TableNextColumn(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.BeginCombo("##levels", $"{entry.Level}+")) + if (ImGui.BeginCombo("##levels"u8, $"{entry.Level}+")) { foreach (var value in Enum.GetValues()) { @@ -789,7 +784,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); var entryFilter = entry.Filter; if (ImGui.InputTextWithHint( - "##filter", + "##filter"u8, $"{entry.Source} regex filter", ref entryFilter, 2048, @@ -840,11 +835,9 @@ internal class ConsoleWindow : Window, IDisposable } } - private unsafe int CommandInputCallback(ImGuiInputTextCallbackData* data) + private int CommandInputCallback(ref ImGuiInputTextCallbackData data) { - var ptr = new ImGuiInputTextCallbackDataPtr(data); - - switch (data->EventFlag) + switch (data.EventFlag) { case ImGuiInputTextFlags.CallbackEdit: this.completionZipText = null; @@ -852,9 +845,7 @@ internal class ConsoleWindow : Window, IDisposable break; case ImGuiInputTextFlags.CallbackCompletion: - var textBytes = new byte[data->BufTextLen]; - Marshal.Copy((IntPtr)data->Buf, textBytes, 0, data->BufTextLen); - var text = Encoding.UTF8.GetString(textBytes); + var text = Encoding.UTF8.GetString(data.BufTextSpan); var words = text.Split(); @@ -899,8 +890,8 @@ internal class ConsoleWindow : Window, IDisposable if (toComplete != null) { - ptr.DeleteChars(0, ptr.BufTextLen); - ptr.InsertChars(0, toComplete); + data.DeleteChars(0, data.BufTextLen); + data.InsertChars(0, toComplete); } } @@ -909,14 +900,14 @@ internal class ConsoleWindow : Window, IDisposable case ImGuiInputTextFlags.CallbackHistory: var prevPos = this.historyPos; - if (ptr.EventKey == ImGuiKey.UpArrow) + if (data.EventKey == ImGuiKey.UpArrow) { if (this.historyPos == -1) this.historyPos = this.configuration.LogCommandHistory.Count - 1; else if (this.historyPos > 0) this.historyPos--; } - else if (data->EventKey == ImGuiKey.DownArrow) + else if (data.EventKey == ImGuiKey.DownArrow) { if (this.historyPos != -1) { @@ -931,8 +922,8 @@ internal class ConsoleWindow : Window, IDisposable { var historyStr = this.historyPos >= 0 ? this.configuration.LogCommandHistory[this.historyPos] : string.Empty; - ptr.DeleteChars(0, ptr.BufTextLen); - ptr.InsertChars(0, historyStr); + data.DeleteChars(0, data.BufTextLen); + data.InsertChars(0, historyStr); } break; @@ -1121,7 +1112,7 @@ internal class ConsoleWindow : Window, IDisposable charOffsets[charOffsetsIndex++] = line.Length; var screenPos = ImGui.GetCursorScreenPos(); - var drawList = ImGui.GetWindowDrawList().NativePtr; + var drawList = ImGui.GetWindowDrawList().Handle; var font = ImGui.GetFont(); var size = ImGui.GetFontSize(); var scale = size / font.FontSize; diff --git a/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs b/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs index 7326f6745..ae86958dd 100644 --- a/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs +++ b/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs @@ -1,14 +1,13 @@ using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.Windows.Data.Widgets; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility; - -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data; @@ -131,10 +130,10 @@ internal class DataWindow : Window, IDisposable return; } - if (ImGui.BeginTable("XlData_Table", 2, ImGuiTableFlags.BordersInnerV | ImGuiTableFlags.Resizable)) + if (ImGui.BeginTable("XlData_Table"u8, 2, ImGuiTableFlags.BordersInnerV | ImGuiTableFlags.Resizable)) { - ImGui.TableSetupColumn("##SelectionColumn", ImGuiTableColumnFlags.WidthFixed, 200.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##ContentsColumn", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("##SelectionColumn"u8, ImGuiTableColumnFlags.WidthFixed, 200.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##ContentsColumn"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableNextColumn(); this.DrawSelection(); @@ -148,9 +147,9 @@ internal class DataWindow : Window, IDisposable private void DrawSelection() { - if (ImGui.BeginChild("XlData_SelectionPane", ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_SelectionPane"u8, ImGui.GetContentRegionAvail())) { - if (ImGui.BeginListBox("WidgetSelectionListbox", ImGui.GetContentRegionAvail())) + if (ImGui.BeginListBox("WidgetSelectionListbox"u8, ImGui.GetContentRegionAvail())) { foreach (var widget in this.orderedModules) { @@ -169,7 +168,7 @@ internal class DataWindow : Window, IDisposable private void DrawContents() { - if (ImGui.BeginChild("XlData_ContentsPane", ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_ContentsPane"u8, ImGui.GetContentRegionAvail())) { if (ImGuiComponents.IconButton("collapse-expand", this.selectionCollapsed ? FontAwesomeIcon.ArrowRight : FontAwesomeIcon.ArrowLeft)) { @@ -191,7 +190,7 @@ internal class DataWindow : Window, IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Force Reload"); + ImGui.SetTooltip("Force Reload"u8); } ImGui.SameLine(); @@ -200,7 +199,7 @@ internal class DataWindow : Window, IDisposable ImGuiHelpers.ScaledDummy(10.0f); - if (ImGui.BeginChild("XlData_WidgetContents", ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_WidgetContents"u8, ImGui.GetContentRegionAvail())) { if (copy) ImGui.LogToClipboard(); @@ -213,7 +212,7 @@ internal class DataWindow : Window, IDisposable } else { - ImGui.TextUnformatted("Data not ready."); + ImGui.Text("Data not ready."u8); } this.isExcept = false; @@ -227,7 +226,7 @@ internal class DataWindow : Window, IDisposable this.isExcept = true; - ImGui.TextUnformatted(ex.ToString()); + ImGui.Text(ex.ToString()); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs b/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs index 24adb8bc5..a81d3edf3 100644 --- a/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs +++ b/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs @@ -1,9 +1,9 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; - -using ImGuiNET; +using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.Data; @@ -26,11 +26,11 @@ internal static class DataWindowWidgetExtensions var xoff = ImGui.GetColumnWidth() - width; offset.X += xoff; ImGui.SetCursorPosX(ImGui.GetCursorPosX() + xoff); - ImGui.TextUnformatted(s); + ImGui.Text(s); } else { - ImGui.TextUnformatted(s); + ImGui.Text(s); } if (ImGui.IsItemHovered()) @@ -41,7 +41,7 @@ internal static class DataWindowWidgetExtensions ImGui.SetNextWindowSizeConstraints(Vector2.One, new(wrx, float.MaxValue)); ImGui.BeginTooltip(); ImGui.PushTextWrapPos(wrx); - ImGui.TextWrapped(s.Replace("%", "%%")); + ImGui.TextWrapped(s); ImGui.PopTextWrapPos(); ImGui.EndTooltip(); } diff --git a/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs index 5cede00cf..55f619e9f 100644 --- a/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Inventory; using Dalamud.Game.Inventory.InventoryEventArgTypes; @@ -7,9 +8,6 @@ using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Logging.Internal; - -using ImGuiNET; - using Serilog.Events; namespace Dalamud.Interface.Internal.Windows.Data; @@ -42,22 +40,22 @@ internal class GameInventoryTestWidget : IDataWindowWidget { if (Service.Get().LogLevel > LogEventLevel.Information) { - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudRed, - "Enable LogLevel=Information display to see the logs."); + "Enable LogLevel=Information display to see the logs."u8); } - + using var table = ImRaii.Table(this.DisplayName, 3, ImGuiTableFlags.SizingFixedFit); if (!table.Success) return; ImGui.TableNextColumn(); - ImGui.TextUnformatted("Standard Logging"); + ImGui.Text("Standard Logging"u8); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.standardEnabled)) { - if (ImGui.Button("Enable##standard-enable") && !this.standardEnabled) + if (ImGui.Button("Enable##standard-enable"u8) && !this.standardEnabled) { this.scoped ??= new(); this.scoped.InventoryChanged += ScopedOnInventoryChanged; @@ -68,7 +66,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(!this.standardEnabled)) { - if (ImGui.Button("Disable##standard-disable") && this.scoped is not null && this.standardEnabled) + if (ImGui.Button("Disable##standard-disable"u8) && this.scoped is not null && this.standardEnabled) { this.scoped.InventoryChanged -= ScopedOnInventoryChanged; this.standardEnabled = false; @@ -83,12 +81,12 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted("Raw Logging"); + ImGui.Text("Raw Logging"u8); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.rawEnabled)) { - if (ImGui.Button("Enable##raw-enable") && !this.rawEnabled) + if (ImGui.Button("Enable##raw-enable"u8) && !this.rawEnabled) { this.scoped ??= new(); this.scoped.InventoryChangedRaw += ScopedOnInventoryChangedRaw; @@ -99,7 +97,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(!this.rawEnabled)) { - if (ImGui.Button("Disable##raw-disable") && this.scoped is not null && this.rawEnabled) + if (ImGui.Button("Disable##raw-disable"u8) && this.scoped is not null && this.rawEnabled) { this.scoped.InventoryChangedRaw -= ScopedOnInventoryChangedRaw; this.rawEnabled = false; @@ -114,12 +112,12 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted("All"); + ImGui.Text("All"u8); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.standardEnabled && this.rawEnabled)) { - if (ImGui.Button("Enable##all-enable")) + if (ImGui.Button("Enable##all-enable"u8)) { this.scoped ??= new(); if (!this.standardEnabled) @@ -133,7 +131,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(this.scoped is null)) { - if (ImGui.Button("Disable##all-disable")) + if (ImGui.Button("Disable##all-disable"u8)) { ((IInternalDisposableService)this.scoped)?.DisposeService(); this.scoped = null; diff --git a/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs b/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs index 209970e24..bb8bd8ea1 100644 --- a/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs +++ b/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data; /// @@ -16,13 +15,13 @@ internal class WidgetUtil /// The text in the tooltip. internal static void DrawCopyableText(string text, string tooltipText = "Copy") { - ImGuiHelpers.SafeTextWrapped(text); + ImGui.TextWrapped(text); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); ImGui.BeginTooltip(); - ImGui.TextUnformatted(tooltipText); + ImGui.Text(tooltipText); ImGui.EndTooltip(); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs index 53066765e..b58166e89 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs @@ -1,12 +1,12 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -19,11 +19,11 @@ public class AddonLifecycleWidget : IDataWindowWidget /// public string DisplayName { get; init; } = "Addon Lifecycle"; - + /// [MemberNotNullWhen(true, "AddonLifecycle")] public bool Ready { get; set; } - + private AddonLifecycle? AddonLifecycle { get; set; } /// @@ -38,35 +38,35 @@ public class AddonLifecycleWidget : IDataWindowWidget this.Ready = true; }); } - + /// public void Draw() { if (!this.Ready) { - ImGui.Text("AddonLifecycle Reference is null, reload module."); + ImGui.Text("AddonLifecycle Reference is null, reload module."u8); return; } - if (ImGui.CollapsingHeader("Listeners")) + if (ImGui.CollapsingHeader("Listeners"u8)) { ImGui.Indent(); this.DrawEventListeners(); ImGui.Unindent(); } - if (ImGui.CollapsingHeader("ReceiveEvent Hooks")) + if (ImGui.CollapsingHeader("ReceiveEvent Hooks"u8)) { ImGui.Indent(); this.DrawReceiveEventHooks(); ImGui.Unindent(); } } - + private void DrawEventListeners() { if (!this.Ready) return; - + foreach (var eventType in Enum.GetValues()) { if (ImGui.CollapsingHeader(eventType.ToString())) @@ -76,13 +76,13 @@ public class AddonLifecycleWidget : IDataWindowWidget if (listeners.Count == 0) { - ImGui.Text("No Listeners Registered for Event"); + ImGui.Text("No Listeners Registered for Event"u8); } - - if (ImGui.BeginTable("AddonLifecycleListenersTable", 2)) + + if (ImGui.BeginTable("AddonLifecycleListenersTable"u8, 2)) { - ImGui.TableSetupColumn("##AddonName", ImGuiTableColumnFlags.WidthFixed, 100.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##MethodInvoke", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("##AddonName"u8, ImGuiTableColumnFlags.WidthFixed, 100.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##MethodInvoke"u8, ImGuiTableColumnFlags.WidthStretch); foreach (var listener in listeners) { @@ -92,10 +92,10 @@ public class AddonLifecycleWidget : IDataWindowWidget ImGui.TableNextColumn(); ImGui.Text($"{listener.FunctionDelegate.Method.DeclaringType?.FullName ?? "Unknown Declaring Type"}::{listener.FunctionDelegate.Method.Name}"); } - + ImGui.EndTable(); } - + ImGui.Unindent(); } } @@ -109,33 +109,35 @@ public class AddonLifecycleWidget : IDataWindowWidget if (listeners.Count == 0) { - ImGui.Text("No ReceiveEvent Hooks are Registered"); + ImGui.Text("No ReceiveEvent Hooks are Registered"u8); } - + foreach (var receiveEventListener in this.AddonLifecycle.ReceiveEventListeners) { if (ImGui.CollapsingHeader(string.Join(", ", receiveEventListener.AddonNames))) { ImGui.Columns(2); - ImGui.Text("Hook Address"); + var functionAddress = receiveEventListener.FunctionAddress; + + ImGui.Text("Hook Address"u8); ImGui.NextColumn(); - ImGui.Text(receiveEventListener.FunctionAddress.ToString("X")); + ImGui.Text($"0x{functionAddress:X} (ffxiv_dx11.exe+{functionAddress - Process.GetCurrentProcess().MainModule!.BaseAddress:X})"); ImGui.NextColumn(); - ImGui.Text("Hook Status"); + ImGui.Text("Hook Status"u8); ImGui.NextColumn(); if (receiveEventListener.Hook is null) { - ImGui.Text("Hook is null"); + ImGui.Text("Hook is null"u8); } else { var color = receiveEventListener.Hook.IsEnabled ? ImGuiColors.HealerGreen : ImGuiColors.DalamudRed; - var text = receiveEventListener.Hook.IsEnabled ? "Enabled" : "Disabled"; + var text = receiveEventListener.Hook.IsEnabled ? "Enabled"u8 : "Disabled"u8; ImGui.TextColored(color, text); } - + ImGui.Columns(1); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs index 18bcd9334..c0f923fc7 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs @@ -1,7 +1,7 @@ -using Dalamud.Game.Gui; -using Dalamud.Memory; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.Gui; +using Dalamud.Game.NativeWrapper; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,10 +12,10 @@ internal unsafe class AddonWidget : IDataWindowWidget { private string inputAddonName = string.Empty; private int inputAddonIndex; - private nint findAgentInterfacePtr; + private AgentInterfacePtr agentInterfacePtr; /// - public string DisplayName { get; init; } = "Addon"; + public string DisplayName { get; init; } = "Addon"; /// public string[]? CommandShortcuts { get; init; } @@ -34,36 +34,33 @@ internal unsafe class AddonWidget : IDataWindowWidget { var gameGui = Service.Get(); - ImGui.InputText("Addon Name", ref this.inputAddonName, 256); - ImGui.InputInt("Addon Index", ref this.inputAddonIndex); + ImGui.InputText("Addon Name"u8, ref this.inputAddonName, 256); + ImGui.InputInt("Addon Index"u8, ref this.inputAddonIndex); if (this.inputAddonName.IsNullOrEmpty()) return; - var address = gameGui.GetAddonByName(this.inputAddonName, this.inputAddonIndex); - - if (address == nint.Zero) + var addon = gameGui.GetAddonByName(this.inputAddonName, this.inputAddonIndex); + if (addon.IsNull) { - ImGui.Text("Null"); + ImGui.Text("Null"u8); return; } - var addon = (FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase*)address; - var name = addon->NameString; - ImGui.TextUnformatted($"{name} - {Util.DescribeAddress(address)}\n v:{addon->IsVisible} x:{addon->X} y:{addon->Y} s:{addon->Scale}, w:{addon->RootNode->Width}, h:{addon->RootNode->Height}"); + ImGui.Text($"{addon.Name} - {Util.DescribeAddress(addon)}\n v:{addon.IsVisible} x:{addon.X} y:{addon.Y} s:{addon.Scale}, w:{addon.Width}, h:{addon.Height}"); - if (ImGui.Button("Find Agent")) + if (ImGui.Button("Find Agent"u8)) { - this.findAgentInterfacePtr = gameGui.FindAgentInterface(address); + this.agentInterfacePtr = gameGui.FindAgentInterface(addon); } - if (this.findAgentInterfacePtr != nint.Zero) + if (!this.agentInterfacePtr.IsNull) { - ImGui.TextUnformatted($"Agent: {Util.DescribeAddress(this.findAgentInterfacePtr)}"); + ImGui.Text($"Agent: {Util.DescribeAddress(this.agentInterfacePtr)}"); ImGui.SameLine(); - if (ImGui.Button("C")) - ImGui.SetClipboardText(this.findAgentInterfacePtr.ToInt64().ToString("X")); + if (ImGui.Button("C"u8)) + ImGui.SetClipboardText(this.agentInterfacePtr.Address.ToString("X")); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs index c7ed526e1..6f41fa46f 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -19,7 +18,7 @@ internal class AddressesWidget : IDataWindowWidget public string[]? CommandShortcuts { get; init; } = { "address" }; /// - public string DisplayName { get; init; } = "Addresses"; + public string DisplayName { get; init; } = "Addresses"; /// public bool Ready { get; set; } @@ -29,12 +28,12 @@ internal class AddressesWidget : IDataWindowWidget { this.Ready = true; } - + /// public void Draw() { - ImGui.InputText(".text sig", ref this.inputSig, 400); - if (ImGui.Button("Resolve")) + ImGui.InputText(".text sig"u8, ref this.inputSig, 400); + if (ImGui.Button("Resolve"u8)) { try { @@ -54,10 +53,10 @@ internal class AddressesWidget : IDataWindowWidget foreach (var debugScannedValue in BaseAddressResolver.DebugScannedValues) { - ImGui.TextUnformatted($"{debugScannedValue.Key}"); + ImGui.Text($"{debugScannedValue.Key}"); foreach (var valueTuple in debugScannedValue.Value) { - ImGui.TextUnformatted( + ImGui.Text( $" {valueTuple.ClassName} - {Util.DescribeAddress(valueTuple.Address)}"); ImGui.SameLine(); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs index 9a3b231e5..cc5492228 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Aetherytes; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -14,9 +13,9 @@ internal class AetherytesWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "aetherytes" }; - + /// - public string DisplayName { get; init; } = "Aetherytes"; + public string DisplayName { get; init; } = "Aetherytes"; /// public void Load() @@ -27,21 +26,21 @@ internal class AetherytesWidget : IDataWindowWidget /// public void Draw() { - if (!ImGui.BeginTable("##aetheryteTable", 11, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) + if (!ImGui.BeginTable("##aetheryteTable"u8, 11, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) return; ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Idx", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("ID", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Zone", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Ward", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Plot", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Sub", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Gil", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Fav", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Shared", ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Apartment", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Idx"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("ID"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Zone"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Ward"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Plot"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Sub"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Gil"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Fav"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Shared"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Apartment"u8, ImGuiTableColumnFlags.WidthFixed); ImGui.TableHeadersRow(); var tpList = Service.Get(); @@ -53,37 +52,37 @@ internal class AetherytesWidget : IDataWindowWidget continue; ImGui.TableNextColumn(); // Idx - ImGui.TextUnformatted($"{i}"); + ImGui.Text($"{i}"); ImGui.TableNextColumn(); // Name - ImGui.TextUnformatted($"{info.AetheryteData.ValueNullable?.PlaceName.ValueNullable?.Name}"); + ImGui.Text($"{info.AetheryteData.ValueNullable?.PlaceName.ValueNullable?.Name}"); ImGui.TableNextColumn(); // ID - ImGui.TextUnformatted($"{info.AetheryteId}"); + ImGui.Text($"{info.AetheryteId}"); ImGui.TableNextColumn(); // Zone - ImGui.TextUnformatted($"{info.TerritoryId}"); + ImGui.Text($"{info.TerritoryId}"); ImGui.TableNextColumn(); // Ward - ImGui.TextUnformatted($"{info.Ward}"); + ImGui.Text($"{info.Ward}"); ImGui.TableNextColumn(); // Plot - ImGui.TextUnformatted($"{info.Plot}"); + ImGui.Text($"{info.Plot}"); ImGui.TableNextColumn(); // Sub - ImGui.TextUnformatted($"{info.SubIndex}"); + ImGui.Text($"{info.SubIndex}"); ImGui.TableNextColumn(); // Gil - ImGui.TextUnformatted($"{info.GilCost}"); + ImGui.Text($"{info.GilCost}"); ImGui.TableNextColumn(); // Favourite - ImGui.TextUnformatted($"{info.IsFavourite}"); + ImGui.Text($"{info.IsFavourite}"); ImGui.TableNextColumn(); // Shared - ImGui.TextUnformatted($"{info.IsSharedHouse}"); + ImGui.Text($"{info.IsSharedHouse}"); ImGui.TableNextColumn(); // Apartment - ImGui.TextUnformatted($"{info.IsApartment}"); + ImGui.Text($"{info.IsApartment}"); } ImGui.EndTable(); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs index c3499570c..c3074e807 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs @@ -1,13 +1,10 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; - using Lumina.Text.ReadOnly; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -36,7 +33,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "atkarray" }; - + /// public string DisplayName { get; init; } = "Atk Array Data"; @@ -49,7 +46,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget /// public void Draw() { - using var tabs = ImRaii.TabBar("AtkArrayDataTabs"); + using var tabs = ImRaii.TabBar("AtkArrayDataTabs"u8); if (!tabs) return; this.DrawNumberArrayTab(); @@ -59,12 +56,12 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget private void DrawArrayList(Type? arrayType, int arrayCount, short* arrayKeys, AtkArrayData** arrays, ref int selectedIndex) { - using var table = ImRaii.Table("ArkArrayTable", 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders, new Vector2(300, -1)); + using var table = ImRaii.Table("ArkArrayTable"u8, 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders, new Vector2(300, -1)); if (!table) return; - ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(3, 1); ImGui.TableHeadersRow(); @@ -84,11 +81,10 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget var stringArrayData = (StringArrayData*)arrays[arrayIndex]; for (var rowIndex = 0; rowIndex < arrays[arrayIndex]->Size; rowIndex++) { - var isNull = (nint)stringArrayData->StringArray[rowIndex] == 0; - if (isNull) + if (!stringArrayData->StringArray[rowIndex].HasValue) continue; - if (new ReadOnlySeStringSpan(stringArrayData->StringArray[rowIndex]).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) + if (new ReadOnlySeStringSpan(stringArrayData->StringArray[rowIndex].Value).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) rowsFound++; } @@ -106,7 +102,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextColumn(); // Type if (arrayType != null && Enum.IsDefined(arrayType, arrayIndex)) { - ImGui.TextUnformatted(Enum.GetName(arrayType, arrayIndex)); + ImGui.Text(Enum.GetName(arrayType, arrayIndex)); } else if (inUse && arrays[arrayIndex]->SubscribedAddonsCount > 0) { @@ -118,41 +114,41 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget continue; using (ImRaii.PushColor(ImGuiCol.Text, 0xFF00FFFF)) - ImGui.TextUnformatted(raptureAtkUnitManager->GetAddonById(arrays[arrayIndex]->SubscribedAddons[j])->NameString); + ImGui.Text(raptureAtkUnitManager->GetAddonById(arrays[arrayIndex]->SubscribedAddons[j])->NameString); break; } } ImGui.TableNextColumn(); // Size if (inUse) - ImGui.TextUnformatted((rowsFound > 0 ? rowsFound : arrays[arrayIndex]->Size).ToString()); + ImGui.Text((rowsFound > 0 ? rowsFound : arrays[arrayIndex]->Size).ToString()); } } private void DrawArrayHeader(Type? arrayType, string type, int index, AtkArrayData* array) { - ImGui.TextUnformatted($"{type} Array #{index}"); + ImGui.Text($"{type} Array #{index}"); if (arrayType != null && Enum.IsDefined(arrayType, index)) { ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" ({Enum.GetName(arrayType, index)})"); + ImGui.Text($" ({Enum.GetName(arrayType, index)})"); } ImGui.SameLine(); - ImGui.TextUnformatted("–"); + ImGui.Text("–"u8); ImGui.SameLine(); - ImGui.TextUnformatted("Address: "); + ImGui.Text("Address: "u8); ImGui.SameLine(0, 0); WidgetUtil.DrawCopyableText($"0x{(nint)array:X}", "Copy address"); if (array->SubscribedAddonsCount > 0) { ImGui.SameLine(); - ImGui.TextUnformatted("–"); + ImGui.Text("–"u8); ImGui.SameLine(); using (ImRaii.PushColor(ImGuiCol.Text, 0xFF00FFFF)) - ImGui.TextUnformatted($"{array->SubscribedAddonsCount} Subscribed Addon" + (array->SubscribedAddonsCount > 1 ? 's' : string.Empty)); + ImGui.Text($"{array->SubscribedAddonsCount} Subscribed Addon" + (array->SubscribedAddonsCount > 1 ? 's' : string.Empty)); if (ImGui.IsItemHovered()) { @@ -166,7 +162,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget if (array->SubscribedAddons[j] == 0) continue; - ImGui.TextUnformatted(raptureAtkUnitManager->GetAddonById(array->SubscribedAddons[j])->NameString); + ImGui.Text(raptureAtkUnitManager->GetAddonById(array->SubscribedAddons[j])->NameString); } } } @@ -177,7 +173,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; - using var tab = ImRaii.TabItem("Number Arrays"); + using var tab = ImRaii.TabItem("Number Arrays"u8); if (!tab) return; this.DrawArrayList( @@ -192,22 +188,22 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); if (!child) return; var array = atkArrayDataHolder.NumberArrays[this.selectedNumberArray]; this.DrawArrayHeader(this.numberType, "Number", this.selectedNumberArray, (AtkArrayData*)array); - using var table = ImRaii.Table("NumberArrayDataTable", 7, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("NumberArrayDataTable"u8, 7, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Integer", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Short", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Byte", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Float", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Hex", ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Integer"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Short"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Byte"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Float"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Hex"u8, ImGuiTableColumnFlags.WidthFixed, 100); ImGui.TableSetupScrollFreeze(7, 1); ImGui.TableHeadersRow(); @@ -215,7 +211,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.TextUnformatted($"#{i}"); + ImGui.Text($"#{i}"); var ptr = &array->IntArray[i]; @@ -241,17 +237,17 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget private void DrawStringArrayTab() { - using var tab = ImRaii.TabItem("String Arrays"); + using var tab = ImRaii.TabItem("String Arrays"u8); if (!tab) return; var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; - using (var sidebarchild = ImRaii.Child("StringArraySidebar", new Vector2(300, -1), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings)) + using (var sidebarchild = ImRaii.Child("StringArraySidebar"u8, new Vector2(300, -1), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings)) { if (sidebarchild) { ImGui.SetNextItemWidth(-1); - ImGui.InputTextWithHint("##TextSearch", "Search...", ref this.searchTerm, 256, ImGuiInputTextFlags.AutoSelectAll); + ImGui.InputTextWithHint("##TextSearch"u8, "Search..."u8, ref this.searchTerm, 256, ImGuiInputTextFlags.AutoSelectAll); this.DrawArrayList( this.stringType, @@ -267,24 +263,24 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); if (!child) return; var array = atkArrayDataHolder.StringArrays[this.selectedStringArray]; this.DrawArrayHeader(this.stringType, "String", this.selectedStringArray, (AtkArrayData*)array); - ImGui.Checkbox("Hide unset entries##HideUnsetStringArrayEntriesCheckbox", ref this.hideUnsetStringArrayEntries); + ImGui.Checkbox("Hide unset entries##HideUnsetStringArrayEntriesCheckbox"u8, ref this.hideUnsetStringArrayEntries); ImGui.SameLine(); - ImGui.Checkbox("Show text address##WordWrapCheckbox", ref this.showTextAddress); + ImGui.Checkbox("Show text address##WordWrapCheckbox"u8, ref this.showTextAddress); ImGui.SameLine(); - ImGui.Checkbox("Show macro string##RenderStringsCheckbox", ref this.showMacroString); + ImGui.Checkbox("Show macro string##RenderStringsCheckbox"u8, ref this.showMacroString); - using var table = ImRaii.Table("StringArrayDataTable", 4, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("StringArrayDataTable"u8, 4, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn(this.showTextAddress ? "Text Address" : "Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Managed", ImGuiTableColumnFlags.WidthFixed, 60); - ImGui.TableSetupColumn("Text", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn(this.showTextAddress ? "Text Address"u8 : "Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Managed"u8, ImGuiTableColumnFlags.WidthFixed, 60); + ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(4, 1); ImGui.TableHeadersRow(); @@ -292,7 +288,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget for (var i = 0; i < array->Size; i++) { - var isNull = (nint)array->StringArray[i] == 0; + var isNull = !array->StringArray[i].HasValue; if (isNull && this.hideUnsetStringArrayEntries) continue; @@ -301,7 +297,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget if (isNull) continue; - if (!new ReadOnlySeStringSpan(array->StringArray[i]).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) + if (!new ReadOnlySeStringSpan(array->StringArray[i].Value).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) continue; } @@ -309,13 +305,13 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.TextUnformatted($"#{i}"); + ImGui.Text($"#{i}"); ImGui.TableNextColumn(); // Address if (this.showTextAddress) { if (!isNull) - WidgetUtil.DrawCopyableText($"0x{(nint)array->StringArray[i]:X}", "Copy text address"); + WidgetUtil.DrawCopyableText($"0x{(nint)array->StringArray[i].Value:X}", "Copy text address"); } else { @@ -325,7 +321,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextColumn(); // Managed if (!isNull) { - ImGui.TextUnformatted(((nint)array->StringArray[i] != 0 && array->ManagedStringArray[i] == array->StringArray[i]).ToString()); + ImGui.Text((array->StringArray[i].HasValue && array->ManagedStringArray[i].Value == array->StringArray[i]).ToString()); } ImGui.TableNextColumn(); // Text @@ -333,11 +329,11 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { if (this.showMacroString) { - WidgetUtil.DrawCopyableText(new ReadOnlySeStringSpan(array->StringArray[i]).ToString(), "Copy text"); + WidgetUtil.DrawCopyableText(new ReadOnlySeStringSpan(array->StringArray[i].Value).ToString(), "Copy text"); } else { - ImGuiHelpers.SeStringWrapped(new ReadOnlySeStringSpan(array->StringArray[i])); + ImGuiHelpers.SeStringWrapped(new ReadOnlySeStringSpan(array->StringArray[i].Value)); } } } @@ -345,7 +341,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget private void DrawExtendArrayTab() { - using var tab = ImRaii.TabItem("Extend Arrays"); + using var tab = ImRaii.TabItem("Extend Arrays"u8); if (!tab) return; var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; @@ -362,18 +358,18 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); var array = atkArrayDataHolder.ExtendArrays[this.selectedExtendArray]; this.DrawArrayHeader(null, "Extend", this.selectedExtendArray, (AtkArrayData*)array); - ImGui.Checkbox("Hide unset entries##HideUnsetExtendArrayEntriesCheckbox", ref this.hideUnsetExtendArrayEntries); + ImGui.Checkbox("Hide unset entries##HideUnsetExtendArrayEntriesCheckbox"u8, ref this.hideUnsetExtendArrayEntries); - using var table = ImRaii.Table("ExtendArrayDataTable", 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("ExtendArrayDataTable"u8, 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Pointer", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Pointer"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(3, 1); ImGui.TableHeadersRow(); @@ -387,7 +383,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.TextUnformatted($"#{i}"); + ImGui.Text($"#{i}"); ImGui.TableNextColumn(); // Address WidgetUtil.DrawCopyableText($"0x{(nint)(&array->DataArray[i]):X}", "Copy entry address"); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs index 961d3c3c0..07ff2fdce 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs @@ -1,6 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Buddy; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -16,9 +16,9 @@ internal class BuddyListWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "buddy", "buddylist" }; - + /// - public string DisplayName { get; init; } = "Buddy List"; + public string DisplayName { get; init; } = "Buddy List"; /// public void Load() @@ -31,12 +31,12 @@ internal class BuddyListWidget : IDataWindowWidget { var buddyList = Service.Get(); - ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); + ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); { var member = buddyList.CompanionBuddy; if (member == null) { - ImGui.Text("[Companion] null"); + ImGui.Text("[Companion] null"u8); } else { @@ -46,7 +46,7 @@ internal class BuddyListWidget : IDataWindowWidget var gameObject = member.GameObject; if (gameObject == null) { - ImGui.Text("GameObject was null"); + ImGui.Text("GameObject was null"u8); } else { @@ -60,7 +60,7 @@ internal class BuddyListWidget : IDataWindowWidget var member = buddyList.PetBuddy; if (member == null) { - ImGui.Text("[Pet] null"); + ImGui.Text("[Pet] null"u8); } else { @@ -70,7 +70,7 @@ internal class BuddyListWidget : IDataWindowWidget var gameObject = member.GameObject; if (gameObject == null) { - ImGui.Text("GameObject was null"); + ImGui.Text("GameObject was null"u8); } else { @@ -84,7 +84,7 @@ internal class BuddyListWidget : IDataWindowWidget var count = buddyList.Length; if (count == 0) { - ImGui.Text("[BattleBuddy] None present"); + ImGui.Text("[BattleBuddy] None present"u8); } else { @@ -97,7 +97,7 @@ internal class BuddyListWidget : IDataWindowWidget var gameObject = member?.GameObject; if (gameObject == null) { - ImGui.Text("GameObject was null"); + ImGui.Text("GameObject was null"u8); } else { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs index 07695c02a..f5a521672 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs @@ -1,10 +1,10 @@ -using System.Linq; +using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Command; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -14,9 +14,9 @@ internal class CommandWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "command" }; - + /// - public string DisplayName { get; init; } = "Command"; + public string DisplayName { get; init; } = "Command"; /// public bool Ready { get; set; } @@ -34,17 +34,17 @@ internal class CommandWidget : IDataWindowWidget var tableFlags = ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders | ImGuiTableFlags.SizingStretchProp | ImGuiTableFlags.Sortable | ImGuiTableFlags.SortTristate; - using var table = ImRaii.Table("CommandList", 4, tableFlags); + using var table = ImRaii.Table("CommandList"u8, 4, tableFlags); if (table) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Command"); - ImGui.TableSetupColumn("Plugin"); - ImGui.TableSetupColumn("HelpMessage", ImGuiTableColumnFlags.NoSort); - ImGui.TableSetupColumn("In Help?", ImGuiTableColumnFlags.NoSort); + ImGui.TableSetupColumn("Command"u8); + ImGui.TableSetupColumn("Plugin"u8); + ImGui.TableSetupColumn("HelpMessage"u8, ImGuiTableColumnFlags.NoSort); + ImGui.TableSetupColumn("In Help?"u8, ImGuiTableColumnFlags.NoSort); ImGui.TableHeadersRow(); - + var sortSpecs = ImGui.TableGetSortSpecs(); var commands = commandManager.Commands.ToArray(); @@ -65,16 +65,16 @@ internal class CommandWidget : IDataWindowWidget foreach (var command in commands) { ImGui.TableNextRow(); - + ImGui.TableSetColumnIndex(0); ImGui.Text(command.Key); - + ImGui.TableNextColumn(); ImGui.Text(commandManager.GetHandlerAssemblyName(command.Key, command.Value)); - + ImGui.TableNextColumn(); ImGui.TextWrapped(command.Value.HelpMessage); - + ImGui.TableNextColumn(); ImGui.Text(command.Value.ShowInHelp ? "Yes" : "No"); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs index 355a73a71..6ecee48ed 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs @@ -1,8 +1,7 @@ -using Dalamud.Game.ClientState.Conditions; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState.Conditions; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -15,9 +14,9 @@ internal class ConditionWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "condition" }; - + /// - public string DisplayName { get; init; } = "Condition"; + public string DisplayName { get; init; } = "Condition"; /// public void Load() @@ -34,7 +33,7 @@ internal class ConditionWidget : IDataWindowWidget ImGui.Text($"ptr: {Util.DescribeAddress(condition.Address)}"); #endif - ImGui.Text("Current Conditions:"); + ImGui.Text("Current Conditions:"u8); ImGui.Separator(); var didAny = false; @@ -52,6 +51,6 @@ internal class ConditionWidget : IDataWindowWidget } if (!didAny) - ImGui.Text("None. Talk to a shop NPC or visit a market board to find out more!"); + ImGui.Text("None. Talk to a shop NPC or visit a market board to find out more!"u8); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs index b1bd0f05c..83db4ac6e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs @@ -1,18 +1,16 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Reflection; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Ipc.Internal; - -using ImGuiNET; - using Newtonsoft.Json; using Formatting = Newtonsoft.Json.Formatting; @@ -53,13 +51,13 @@ internal class DataShareWidget : IDataWindowWidget /// public unsafe void Draw() { - using var tabbar = ImRaii.TabBar("##tabbar"); + using var tabbar = ImRaii.TabBar("##tabbar"u8); if (!tabbar.Success) return; var d = true; using (var tabitem = ImRaii.TabItem( - "Data Share##tabbar-datashare", + "Data Share##tabbar-datashare"u8, ref d, NoCloseButton | (this.nextTab == 0 ? ImGuiTabItemFlags.SetSelected : 0))) { @@ -68,7 +66,7 @@ internal class DataShareWidget : IDataWindowWidget } using (var tabitem = ImRaii.TabItem( - "Call Gate##tabbar-callgate", + "Call Gate##tabbar-callgate"u8, ref d, NoCloseButton | (this.nextTab == 1 ? ImGuiTabItemFlags.SetSelected : 0))) { @@ -90,7 +88,7 @@ internal class DataShareWidget : IDataWindowWidget if (!tabitem.Success) continue; - if (ImGui.Button("Refresh")) + if (ImGui.Button("Refresh"u8)) data = null; if (data is null) @@ -121,24 +119,14 @@ internal class DataShareWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Copy")) - { - fixed (byte* pData = data) - ImGuiNative.igSetClipboardText(pData); - } + if (ImGui.Button("Copy"u8)) + ImGui.SetClipboardText(data); - fixed (byte* pLabel = "text"u8) - fixed (byte* pData = data) - { - ImGuiNative.igInputTextMultiline( - pLabel, - pData, - (uint)data.Length, - ImGui.GetContentRegionAvail(), - ImGuiInputTextFlags.ReadOnly, - null, - null); - } + ImGui.InputTextMultiline( + "text"u8, + data, + ImGui.GetContentRegionAvail(), + ImGuiInputTextFlags.ReadOnly); } this.nextTab = -1; @@ -148,7 +136,7 @@ internal class DataShareWidget : IDataWindowWidget { if (mi is null) return "-"; - + var sb = new StringBuilder(); sb.Append(ReprType(mi.DeclaringType)) .Append("::") @@ -226,7 +214,7 @@ internal class DataShareWidget : IDataWindowWidget var offset = ImGui.GetCursorScreenPos() + new Vector2(0, framepad ? ImGui.GetStyle().FramePadding.Y : 0); if (framepad) ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(s); + ImGui.Text(s); if (ImGui.IsItemHovered()) { ImGui.SetNextWindowPos(offset - ImGui.GetStyle().WindowPadding); @@ -236,7 +224,7 @@ internal class DataShareWidget : IDataWindowWidget using (ImRaii.Tooltip()) { ImGui.PushTextWrapPos(wrx); - ImGui.TextWrapped((tooltip?.Invoke() ?? s).Replace("%", "%%")); + ImGui.TextWrapped(tooltip?.Invoke() ?? s); ImGui.PopTextWrapPos(); } } @@ -254,15 +242,15 @@ internal class DataShareWidget : IDataWindowWidget private void DrawCallGate() { var callGate = Service.Get(); - if (ImGui.Button("Purge empty call gates")) + if (ImGui.Button("Purge empty call gates"u8)) callGate.PurgeEmptyGates(); - using var table = ImRaii.Table("##callgate-table", 5); - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.DefaultSort); - ImGui.TableSetupColumn("Action"); - ImGui.TableSetupColumn("Func"); - ImGui.TableSetupColumn("#", ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Subscriber"); + using var table = ImRaii.Table("##callgate-table"u8, 5); + ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.DefaultSort); + ImGui.TableSetupColumn("Action"u8); + ImGui.TableSetupColumn("Func"u8); + ImGui.TableSetupColumn("#"u8, ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Subscriber"u8); ImGui.TableHeadersRow(); var gates2 = callGate.Gates; @@ -299,16 +287,16 @@ internal class DataShareWidget : IDataWindowWidget private void DrawDataShare() { - if (!ImGui.BeginTable("###DataShareTable", 5, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg)) + if (!ImGui.BeginTable("###DataShareTable"u8, 5, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg)) return; try { - ImGui.TableSetupColumn("Shared Tag"); - ImGui.TableSetupColumn("Show"); - ImGui.TableSetupColumn("Creator Assembly"); - ImGui.TableSetupColumn("#", ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Consumers"); + ImGui.TableSetupColumn("Shared Tag"u8); + ImGui.TableSetupColumn("Show"u8); + ImGui.TableSetupColumn("Creator Assembly"u8); + ImGui.TableSetupColumn("#"u8, ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Consumers"u8); ImGui.TableHeadersRow(); foreach (var share in Service.Get().GetAllShares()) { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs index 8b7a692d4..0a40c9be7 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs @@ -1,12 +1,11 @@ using System.Linq; using System.Threading; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Gui.Dtr; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -45,7 +44,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable { if (this.loadTestThread?.IsAlive is not true) { - if (ImGui.Button("Do multithreaded add/remove operation")) + if (ImGui.Button("Do multithreaded add/remove operation"u8)) { var ct = this.loadTestThreadCt = new(); var dbar = Service.Get(); @@ -136,7 +135,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable } else { - if (ImGui.Button("Stop multithreaded add/remove operation")) + if (ImGui.Button("Stop multithreaded add/remove operation"u8)) this.ClearState(); } @@ -150,7 +149,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable this.DrawDtrTestEntry(ref this.dtrTest3, "DTR Test #3"); ImGui.Separator(); - ImGui.Text("IDtrBar.Entries:"); + ImGui.Text("IDtrBar.Entries:"u8); foreach (var e in Service.Get().Entries) ImGui.Text(e.Title); @@ -158,7 +157,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable if (configuration.DtrOrder != null) { ImGui.Separator(); - ImGui.Text("DtrOrder:"); + ImGui.Text("DtrOrder:"u8); foreach (var order in configuration.DtrOrder) ImGui.Text(order); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs index 34b04dae0..50ed79b3d 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs @@ -1,10 +1,9 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Fates; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -14,9 +13,9 @@ internal class FateTableWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "fate", "fatetable" }; - + /// - public string DisplayName { get; init; } = "Fate Table"; + public string DisplayName { get; init; } = "Fate Table"; /// public bool Ready { get; set; } @@ -35,26 +34,26 @@ internal class FateTableWidget : IDataWindowWidget if (fateTable.Length == 0) { - ImGui.TextUnformatted("No fates or data not ready."); + ImGui.Text("No fates or data not ready."u8); return; } - using var table = ImRaii.Table("FateTable", 13, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); + using var table = ImRaii.Table("FateTable"u8, 13, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Address", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("FateId", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("State", ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Level", ImGuiTableColumnFlags.WidthFixed, 50); - ImGui.TableSetupColumn("Icon", ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("MapIcon", ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Progress", ImGuiTableColumnFlags.WidthFixed, 55); - ImGui.TableSetupColumn("Duration", ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Bonus", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Position", ImGuiTableColumnFlags.WidthFixed, 240); - ImGui.TableSetupColumn("Radius", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("FateId"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("State"u8, ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Level"u8, ImGuiTableColumnFlags.WidthFixed, 50); + ImGui.TableSetupColumn("Icon"u8, ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("MapIcon"u8, ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Progress"u8, ImGuiTableColumnFlags.WidthFixed, 55); + ImGui.TableSetupColumn("Duration"u8, ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Bonus"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Position"u8, ImGuiTableColumnFlags.WidthFixed, 240); + ImGui.TableSetupColumn("Radius"u8, ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(7, 1); ImGui.TableHeadersRow(); @@ -66,7 +65,7 @@ internal class FateTableWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.TextUnformatted($"#{i}"); + ImGui.Text($"#{i}"); ImGui.TableNextColumn(); // Address WidgetUtil.DrawCopyableText($"0x{fate.Address:X}", "Click to copy Address"); @@ -75,17 +74,17 @@ internal class FateTableWidget : IDataWindowWidget WidgetUtil.DrawCopyableText(fate.FateId.ToString(), "Click to copy FateId (RowId of Fate sheet)"); ImGui.TableNextColumn(); // State - ImGui.TextUnformatted(fate.State.ToString()); + ImGui.Text(fate.State.ToString()); ImGui.TableNextColumn(); // Level if (fate.Level == fate.MaxLevel) { - ImGui.TextUnformatted($"{fate.Level}"); + ImGui.Text($"{fate.Level}"); } else { - ImGui.TextUnformatted($"{fate.Level}-{fate.MaxLevel}"); + ImGui.Text($"{fate.Level}-{fate.MaxLevel}"); } ImGui.TableNextColumn(); // Icon @@ -94,15 +93,15 @@ internal class FateTableWidget : IDataWindowWidget { if (textureManager.Shared.GetFromGameIcon(fate.IconId).TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.ImGuiHandle, new(ImGui.GetTextLineHeight())); + ImGui.Image(texture.Handle, new(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); ImGui.BeginTooltip(); - ImGui.TextUnformatted("Click to copy IconId"); - ImGui.TextUnformatted($"ID: {fate.IconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.Text("Click to copy IconId"u8); + ImGui.Text($"ID: {fate.IconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); ImGui.EndTooltip(); } @@ -119,15 +118,15 @@ internal class FateTableWidget : IDataWindowWidget { if (textureManager.Shared.GetFromGameIcon(fate.MapIconId).TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.ImGuiHandle, new(ImGui.GetTextLineHeight())); + ImGui.Image(texture.Handle, new(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); ImGui.BeginTooltip(); - ImGui.TextUnformatted("Click to copy MapIconId"); - ImGui.TextUnformatted($"ID: {fate.MapIconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.Text("Click to copy MapIconId"u8); + ImGui.Text($"ID: {fate.MapIconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); ImGui.EndTooltip(); } @@ -143,17 +142,17 @@ internal class FateTableWidget : IDataWindowWidget WidgetUtil.DrawCopyableText(fate.Name.ToString(), "Click to copy Name"); ImGui.TableNextColumn(); // Progress - ImGui.TextUnformatted($"{fate.Progress}%"); + ImGui.Text($"{fate.Progress}%"); ImGui.TableNextColumn(); // TimeRemaining if (fate.State == FateState.Running) { - ImGui.TextUnformatted($"{TimeSpan.FromSeconds(fate.TimeRemaining):mm\\:ss} / {TimeSpan.FromSeconds(fate.Duration):mm\\:ss}"); + ImGui.Text($"{TimeSpan.FromSeconds(fate.TimeRemaining):mm\\:ss} / {TimeSpan.FromSeconds(fate.Duration):mm\\:ss}"); } ImGui.TableNextColumn(); // HasExpBonus - ImGui.TextUnformatted(fate.HasBonus.ToString()); + ImGui.Text(fate.HasBonus.ToString()); ImGui.TableNextColumn(); // Position WidgetUtil.DrawCopyableText(fate.Position.ToString(), "Click to copy Position"); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs index 41dac5b43..d20aa5cb1 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs @@ -1,10 +1,9 @@ -using System.Linq; +using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.FlyText; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -21,12 +20,12 @@ internal class FlyTextWidget : IDataWindowWidget private int flyIcon; private int flyDmgIcon; private Vector4 flyColor = new(1, 0, 0, 1); - + /// public string[]? CommandShortcuts { get; init; } = { "flytext" }; - + /// - public string DisplayName { get; init; } = "Fly Text"; + public string DisplayName { get; init; } = "Fly Text"; /// public bool Ready { get; set; } @@ -40,7 +39,7 @@ internal class FlyTextWidget : IDataWindowWidget /// public void Draw() { - if (ImGui.BeginCombo("Kind", $"{this.flyKind} ({(int)this.flyKind})")) + if (ImGui.BeginCombo("Kind"u8, $"{this.flyKind} ({(int)this.flyKind})")) { var values = Enum.GetValues().Distinct(); foreach (var value in values) @@ -54,19 +53,19 @@ internal class FlyTextWidget : IDataWindowWidget ImGui.EndCombo(); } - ImGui.InputText("Text1", ref this.flyText1, 200); - ImGui.InputText("Text2", ref this.flyText2, 200); + ImGui.InputText("Text1"u8, ref this.flyText1, 200); + ImGui.InputText("Text2"u8, ref this.flyText2, 200); - ImGui.InputInt("Val1", ref this.flyVal1); - ImGui.InputInt("Val2", ref this.flyVal2); + ImGui.InputInt("Val1"u8, ref this.flyVal1); + ImGui.InputInt("Val2"u8, ref this.flyVal2); - ImGui.InputInt("Icon ID", ref this.flyIcon); - ImGui.InputInt("Damage Icon ID", ref this.flyDmgIcon); + ImGui.InputInt("Icon ID"u8, ref this.flyIcon); + ImGui.InputInt("Damage Icon ID"u8, ref this.flyDmgIcon); ImGui.ColorEdit4("Color", ref this.flyColor); - ImGui.InputInt("Actor Index", ref this.flyActor); + ImGui.InputInt("Actor Index"u8, ref this.flyActor); var sendColor = ImGui.ColorConvertFloat4ToU32(this.flyColor); - if (ImGui.Button("Send")) + if (ImGui.Button("Send"u8)) { Service.Get().AddFlyText( this.flyKind, diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs index a6d76f44f..91f1af98e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs @@ -1,9 +1,9 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -19,12 +19,12 @@ internal class FontAwesomeTestWidget : IDataWindowWidget private string iconSearchInput = string.Empty; private bool iconSearchChanged = true; private bool useFixedWidth = false; - + /// public string[]? CommandShortcuts { get; init; } = { "fa", "fatest", "fontawesome" }; - + /// - public string DisplayName { get; init; } = "Font Awesome Test"; + public string DisplayName { get; init; } = "Font Awesome Test"; /// public bool Ready { get; set; } @@ -69,7 +69,7 @@ internal class FontAwesomeTestWidget : IDataWindowWidget ImGui.SetNextItemWidth(160f); var categoryIndex = this.selectedIconCategory; - if (ImGui.Combo("####FontAwesomeCategorySearch", ref categoryIndex, this.iconCategories, this.iconCategories.Length)) + if (ImGui.Combo("####FontAwesomeCategorySearch", ref categoryIndex, this.iconCategories)) { this.selectedIconCategory = categoryIndex; this.iconSearchChanged = true; @@ -77,12 +77,12 @@ internal class FontAwesomeTestWidget : IDataWindowWidget ImGui.SameLine(170f); ImGui.SetNextItemWidth(180f); - if (ImGui.InputTextWithHint($"###FontAwesomeInputSearch", "search icons", ref this.iconSearchInput, 50)) + if (ImGui.InputTextWithHint($"###FontAwesomeInputSearch", "search icons"u8, ref this.iconSearchInput, 50)) { this.iconSearchChanged = true; } - - ImGui.Checkbox("Use fixed width font", ref this.useFixedWidth); + + ImGui.Checkbox("Use fixed width font"u8, ref this.useFixedWidth); ImGuiHelpers.ScaledDummy(10f); for (var i = 0; i < this.icons?.Count; i++) @@ -96,7 +96,7 @@ internal class FontAwesomeTestWidget : IDataWindowWidget ImGui.PopFont(); ImGuiHelpers.ScaledDummy(2f); } - + ImGui.PopStyleVar(); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs index 469ef3dc3..c653e9185 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs @@ -1,10 +1,12 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Numerics; +using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; @@ -13,9 +15,6 @@ using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; using Dalamud.Utility; - -using ImGuiNET; - using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -62,61 +61,29 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable public unsafe void Draw() { ImGui.AlignTextToFramePadding(); - if (ImGui.Combo("Global Scale per Font", ref this.fontScaleMode, FontScaleModes, FontScaleModes.Length)) + if (ImGui.Combo("Global Scale per Font"u8, ref this.fontScaleMode, FontScaleModes)) + this.ClearAtlas(); + + if (ImGui.Checkbox("Global Scale for Atlas"u8, ref this.atlasScaleMode)) this.ClearAtlas(); - fixed (byte* labelPtr = "Global Scale for Atlas"u8) - { - var v = (byte)(this.atlasScaleMode ? 1 : 0); - if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) - { - this.atlasScaleMode = v != 0; - this.ClearAtlas(); - } - } ImGui.SameLine(); - fixed (byte* labelPtr = "Word Wrap"u8) - { - var v = (byte)(this.useWordWrap ? 1 : 0); - if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) - this.useWordWrap = v != 0; - } - - ImGui.SameLine(); - fixed (byte* labelPtr = "Italic"u8) - { - var v = (byte)(this.useItalic ? 1 : 0); - if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) - { - this.useItalic = v != 0; - this.ClearAtlas(); - } - } - - ImGui.SameLine(); - fixed (byte* labelPtr = "Bold"u8) - { - var v = (byte)(this.useBold ? 1 : 0); - if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) - { - this.useBold = v != 0; - this.ClearAtlas(); - } - } - - ImGui.SameLine(); - fixed (byte* labelPtr = "Minimum Range"u8) - { - var v = (byte)(this.useMinimumBuild ? 1 : 0); - if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) - { - this.useMinimumBuild = v != 0; - this.ClearAtlas(); - } - } + ImGui.Checkbox("Word Wrap"u8, ref this.useWordWrap); ImGui.SameLine(); - if (ImGui.Button("Reset Text") || this.testStringBuffer.IsDisposed) + if (ImGui.Checkbox("Italic"u8, ref this.useItalic)) + this.ClearAtlas(); + + ImGui.SameLine(); + if (ImGui.Checkbox("Bold"u8, ref this.useBold)) + this.ClearAtlas(); + + ImGui.SameLine(); + if (ImGui.Checkbox("Minimum Range"u8, ref this.useMinimumBuild)) + this.ClearAtlas(); + + ImGui.SameLine(); + if (ImGui.Button("Reset Text"u8) || this.testStringBuffer.IsDisposed) { this.testStringBuffer.Dispose(); this.testStringBuffer = ImVectorWrapper.CreateFromSpan( @@ -125,10 +92,10 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable } ImGui.SameLine(); - if (ImGui.Button("Test Lock")) + if (ImGui.Button("Test Lock"u8)) Task.Run(this.TestLock); - if (ImGui.Button("Choose Editor Font")) + if (ImGui.Button("Choose Editor Font"u8)) { if (this.chooserDialog is null) { @@ -183,10 +150,10 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable if (this.chooserDialog is not null) { ImGui.SameLine(); - ImGui.TextUnformatted($"{this.chooserDialog.PopupPosition}, {this.chooserDialog.PopupSize}"); + ImGui.Text($"{this.chooserDialog.PopupPosition}, {this.chooserDialog.PopupSize}"); ImGui.SameLine(); - if (ImGui.Button("Random Location")) + if (ImGui.Button("Random Location"u8)) { var monitors = ImGui.GetPlatformIO().Monitors; var monitor = monitors[Random.Shared.Next() % monitors.Size]; @@ -211,17 +178,13 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable fixed (byte* labelPtr = "Test Input"u8) { if (!this.atlasScaleMode) - ImGuiNative.igSetWindowFontScale(1 / ImGuiHelpers.GlobalScale); + ImGui.SetWindowFontScale(1 / ImGuiHelpers.GlobalScale); using (this.fontDialogHandle.Push()) { - if (ImGuiNative.igInputTextMultiline( + if (ImGui.InputTextMultiline( labelPtr, - this.testStringBuffer.Data, - (uint)this.testStringBuffer.Capacity, - new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3), - 0, - null, - null) != 0) + this.testStringBuffer.StorageSpan, + new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3))) { var len = this.testStringBuffer.StorageSpan.IndexOf((byte)0); if (len + 4 >= this.testStringBuffer.Capacity) @@ -238,7 +201,7 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable } if (!this.atlasScaleMode) - ImGuiNative.igSetWindowFontScale(1); + ImGui.SetWindowFontScale(1); } this.fontHandles ??= @@ -274,7 +237,7 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable }) .ToArray()); - var offsetX = ImGui.CalcTextSize("99.9pt").X + (ImGui.GetStyle().FramePadding.X * 2); + var offsetX = ImGui.CalcTextSize("99.9pt"u8).X + (ImGui.GetStyle().FramePadding.X * 2); var counter = 0; foreach (var (family, items) in this.fontHandles) { @@ -283,45 +246,40 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable foreach (var (gfs, handle) in items) { - ImGui.TextUnformatted($"{gfs.SizePt}pt"); + ImGui.Text($"{gfs.SizePt}pt"); ImGui.SameLine(offsetX); - ImGuiNative.igPushTextWrapPos(this.useWordWrap ? 0f : -1f); + ImGui.PushTextWrapPos(this.useWordWrap ? 0f : -1f); try { if (handle.Value.LoadException is { } exc) { - ImGui.TextUnformatted(exc.ToString()); + ImGui.Text(exc.ToString()); } else if (!handle.Value.Available) { - fixed (byte* labelPtr = "Loading..."u8) - ImGuiNative.igTextUnformatted(labelPtr, labelPtr + 8 + ((Environment.TickCount / 200) % 3)); + ImGui.Text("Loading..."u8[..(8 + ((Environment.TickCount / 200) % 3))]); } else { if (!this.atlasScaleMode) - ImGuiNative.igSetWindowFontScale(1 / ImGuiHelpers.GlobalScale); + ImGui.SetWindowFontScale(1 / ImGuiHelpers.GlobalScale); if (counter++ % 2 == 0) { using var pushPop = handle.Value.Push(); - ImGuiNative.igTextUnformatted( - this.testStringBuffer.Data, - this.testStringBuffer.Data + this.testStringBuffer.Length); + ImGui.Text(this.testStringBuffer.DataSpan); } else { handle.Value.Push(); - ImGuiNative.igTextUnformatted( - this.testStringBuffer.Data, - this.testStringBuffer.Data + this.testStringBuffer.Length); + ImGui.Text(this.testStringBuffer.DataSpan); handle.Value.Pop(); } } } finally { - ImGuiNative.igSetWindowFontScale(1); - ImGuiNative.igPopTextWrapPos(); + ImGui.SetWindowFontScale(1); + ImGui.PopTextWrapPos(); } } } @@ -380,12 +338,9 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable return; - unsafe void TestSingle(ImFontPtr fontPtr, IFontHandle handle) + void TestSingle(ImFontPtr fontPtr, IFontHandle handle) { - var dim = default(Vector2); - var test = "Test string"u8; - fixed (byte* pTest = test) - ImGuiNative.ImFont_CalcTextSizeA(&dim, fontPtr, fontPtr.FontSize, float.MaxValue, 0, pTest, null, null); + var dim = ImGui.CalcTextSizeA(fontPtr, fontPtr.FontSize, float.MaxValue, 0f, "Test string"u8, out _); Log.Information($"{nameof(GamePrebakedFontsTestWidget)}: {handle} => {dim}"); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs index 610fa90cc..65e6cd3d6 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs @@ -1,8 +1,7 @@ -using Dalamud.Game.ClientState.GamePad; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState.GamePad; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs index f30585406..bf6800a53 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs @@ -1,8 +1,8 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.JobGauge; using Dalamud.Game.ClientState.JobGauge.Types; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -13,9 +13,9 @@ internal class GaugeWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "gauge", "jobgauge", "job" }; - + /// - public string DisplayName { get; init; } = "Job Gauge"; + public string DisplayName { get; init; } = "Job Gauge"; /// public bool Ready { get; set; } @@ -35,7 +35,7 @@ internal class GaugeWidget : IDataWindowWidget var player = clientState.LocalPlayer; if (player == null) { - ImGui.Text("Player is not present"); + ImGui.Text("Player is not present"u8); return; } @@ -68,7 +68,7 @@ internal class GaugeWidget : IDataWindowWidget if (gauge == null) { - ImGui.Text("No supported gauge exists for this job."); + ImGui.Text("No supported gauge exists for this job."u8); return; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs index ec5f12d6e..3ad8f86c2 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs @@ -3,16 +3,14 @@ using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Hooking; -using Dalamud.Hooking.Internal; - using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; -using PInvoke; using Serilog; +using Windows.Win32.Foundation; +using Windows.Win32.UI.WindowsAndMessaging; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -42,7 +40,7 @@ internal unsafe class HookWidget : IDataWindowWidget IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] string text, [MarshalAs(UnmanagedType.LPWStr)] string caption, - NativeFunctions.MessageBoxType type); + MESSAGEBOX_STYLE type); private delegate void AddonFinalizeDelegate(AtkUnitManager* unitManager, AtkUnitBase** atkUnitBase); @@ -76,30 +74,30 @@ internal unsafe class HookWidget : IDataWindowWidget { try { - ImGui.Checkbox("Use MinHook (only for regular hooks, AsmHook is Reloaded-only)", ref this.hookUseMinHook); + ImGui.Checkbox("Use MinHook (only for regular hooks, AsmHook is Reloaded-only)"u8, ref this.hookUseMinHook); ImGui.Separator(); - if (ImGui.Button("Create")) + if (ImGui.Button("Create"u8)) this.messageBoxMinHook = Hook.FromSymbol("User32", "MessageBoxW", this.MessageBoxWDetour, this.hookUseMinHook); - if (ImGui.Button("Enable")) + if (ImGui.Button("Enable"u8)) this.messageBoxMinHook?.Enable(); - if (ImGui.Button("Disable")) + if (ImGui.Button("Disable"u8)) this.messageBoxMinHook?.Disable(); - if (ImGui.Button("Call Original")) - this.messageBoxMinHook?.Original(IntPtr.Zero, "Hello from .Original", "Hook Test", NativeFunctions.MessageBoxType.Ok); + if (ImGui.Button("Call Original"u8)) + this.messageBoxMinHook?.Original(IntPtr.Zero, "Hello from .Original", "Hook Test", MESSAGEBOX_STYLE.MB_OK); - if (ImGui.Button("Dispose")) + if (ImGui.Button("Dispose"u8)) { this.messageBoxMinHook?.Dispose(); this.messageBoxMinHook = null; } - if (ImGui.Button("Test")) - _ = NativeFunctions.MessageBoxW(IntPtr.Zero, "Hi", "Hello", NativeFunctions.MessageBoxType.Ok); + if (ImGui.Button("Test"u8)) + _ = global::Windows.Win32.PInvoke.MessageBox(HWND.Null, "Hi", "Hello", MESSAGEBOX_STYLE.MB_OK); if (this.messageBoxMinHook != null) ImGui.Text("Enabled: " + this.messageBoxMinHook?.IsEnabled); @@ -107,15 +105,15 @@ internal unsafe class HookWidget : IDataWindowWidget ImGui.Separator(); ImGui.BeginDisabled(this.hookStressTestRunning); - ImGui.Text("Stress Test"); + ImGui.Text("Stress Test"u8); - if (ImGui.InputInt("Max", ref this.hookStressTestMax)) + if (ImGui.InputInt("Max"u8, ref this.hookStressTestMax)) this.hookStressTestCount = 0; - ImGui.InputInt("Wait (ms)", ref this.hookStressTestWait); - ImGui.InputInt("Max Degree of Parallelism", ref this.hookStressTestMaxDegreeOfParallelism); + ImGui.InputInt("Wait (ms)"u8, ref this.hookStressTestWait); + ImGui.InputInt("Max Degree of Parallelism"u8, ref this.hookStressTestMaxDegreeOfParallelism); - if (ImGui.BeginCombo("Target", HookTargetToString(this.hookStressTestHookTarget))) + if (ImGui.BeginCombo("Target"u8, HookTargetToString(this.hookStressTestHookTarget))) { foreach (var target in Enum.GetValues()) { @@ -126,7 +124,7 @@ internal unsafe class HookWidget : IDataWindowWidget ImGui.EndCombo(); } - if (ImGui.Button("Stress Test")) + if (ImGui.Button("Stress Test"u8)) { Task.Run(() => { @@ -167,7 +165,7 @@ internal unsafe class HookWidget : IDataWindowWidget ImGui.EndDisabled(); - ImGui.TextUnformatted("Status: " + (this.hookStressTestRunning ? "Running" : "Idle")); + ImGui.Text("Status: " + (this.hookStressTestRunning ? "Running" : "Idle")); ImGui.ProgressBar(this.hookStressTestCount / (float)this.hookStressTestMax, new System.Numerics.Vector2(0, 0), $"{this.hookStressTestCount}/{this.hookStressTestMax}"); } catch (Exception ex) @@ -186,13 +184,13 @@ internal unsafe class HookWidget : IDataWindowWidget }; } - private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, NativeFunctions.MessageBoxType type) + private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, MESSAGEBOX_STYLE type) { Log.Information("[DATAHOOK] {Hwnd} {Text} {Caption} {Type}", hwnd, text, caption, type); - var result = this.messageBoxWOriginal!(hwnd, "Cause Access Violation?", caption, NativeFunctions.MessageBoxType.YesNo); + var result = this.messageBoxWOriginal!(hwnd, "Cause Access Violation?", caption, MESSAGEBOX_STYLE.MB_YESNO); - if (result == (int)User32.MessageBoxResult.IDYES) + if (result == (int)MESSAGEBOX_RESULT.IDYES) { Marshal.ReadByte(IntPtr.Zero); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs index 3f510b088..0395f4c96 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs @@ -1,15 +1,14 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Numerics; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Internal; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -73,17 +72,17 @@ public class IconBrowserWidget : IDataWindowWidget if (!this.iconIdsTask.IsCompleted) { - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); } else if (!this.iconIdsTask.IsCompletedSuccessfully) { - ImGui.TextUnformatted(this.iconIdsTask.Exception?.ToString() ?? "Unknown error"); + ImGui.Text(this.iconIdsTask.Exception?.ToString() ?? "Unknown error"); } else { this.RecalculateIndexRange(); - if (ImGui.BeginChild("ScrollableSection", ImGui.GetContentRegionAvail(), false, ImGuiWindowFlags.NoMove)) + if (ImGui.BeginChild("ScrollableSection"u8, ImGui.GetContentRegionAvail(), false, ImGuiWindowFlags.NoMove)) { var itemsPerRow = (int)MathF.Floor( ImGui.GetContentRegionMax().X / (this.iconSize.X + ImGui.GetStyle().ItemSpacing.X)); @@ -120,7 +119,7 @@ public class IconBrowserWidget : IDataWindowWidget ImGui.Columns(2); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputInt("##StartRange", ref this.startRange, 0, 0)) + if (ImGui.InputInt("##StartRange"u8, ref this.startRange, 0, 0)) { this.startRange = Math.Clamp(this.startRange, 0, MaxIconId); this.valueRange = null; @@ -128,14 +127,14 @@ public class IconBrowserWidget : IDataWindowWidget ImGui.NextColumn(); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputInt("##StopRange", ref this.stopRange, 0, 0)) + if (ImGui.InputInt("##StopRange"u8, ref this.stopRange, 0, 0)) { this.stopRange = Math.Clamp(this.stopRange, 0, MaxIconId); this.valueRange = null; } ImGui.NextColumn(); - ImGui.Checkbox("Show Image in Tooltip", ref this.showTooltipImage); + ImGui.Checkbox("Show Image in Tooltip"u8, ref this.showTooltipImage); ImGui.NextColumn(); ImGui.InputFloat2("Icon Size", ref this.editIconSize); @@ -154,7 +153,7 @@ public class IconBrowserWidget : IDataWindowWidget if (texm.Shared.GetFromGameIcon(iconId).TryGetWrap(out var texture, out var exc)) { - ImGui.Image(texture.ImGuiHandle, this.iconSize); + ImGui.Image(texture.Handle, this.iconSize); // If we have the option to show a tooltip image, draw the image, but make sure it's not too big. if (ImGui.IsItemHovered() && this.showTooltipImage) @@ -168,7 +167,7 @@ public class IconBrowserWidget : IDataWindowWidget texture.Size.X * scale / 2.0f - textSize.X / 2.0f + ImGui.GetStyle().FramePadding.X * 2.0f); ImGui.Text(iconId.ToString()); - ImGui.Image(texture.ImGuiHandle, texture.Size * scale); + ImGui.Image(texture.Handle, texture.Size * scale); ImGui.EndTooltip(); } @@ -205,7 +204,7 @@ public class IconBrowserWidget : IDataWindowWidget } if (ImGui.IsItemHovered()) - ImGui.SetTooltip($"{iconId}\n{exc}".Replace("%", "%%")); + ImGui.SetTooltip($"{iconId}\n{exc}"); ImGui.GetWindowDrawList().AddRect( cursor, diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs index 08d29398b..d4afce48d 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs @@ -1,7 +1,8 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; @@ -11,8 +12,6 @@ using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Windowing; using Dalamud.Storage.Assets; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -50,46 +49,38 @@ internal class ImGuiWidget : IDataWindowWidget ImGui.Text("Monitor count: " + ImGui.GetPlatformIO().Monitors.Size); ImGui.Text("OverrideGameCursor: " + interfaceManager.OverrideGameCursor); - ImGui.Button("THIS IS A BUTTON###hoverTestButton"); + ImGui.Button("THIS IS A BUTTON###hoverTestButton"u8); interfaceManager.OverrideGameCursor = !ImGui.IsItemHovered(); ImGui.Separator(); - ImGui.TextUnformatted( + ImGui.Text( $"WindowSystem.TimeSinceLastAnyFocus: {WindowSystem.TimeSinceLastAnyFocus.TotalMilliseconds:0}ms"); ImGui.Separator(); - ImGui.Checkbox("##manualContent", ref this.notificationTemplate.ManualContent); + ImGui.Checkbox("##manualContent"u8, ref this.notificationTemplate.ManualContent); ImGui.SameLine(); - ImGui.InputText("Content##content", ref this.notificationTemplate.Content, 255); + ImGui.InputText("Content##content"u8, ref this.notificationTemplate.Content, 255); - ImGui.Checkbox("##manualTitle", ref this.notificationTemplate.ManualTitle); + ImGui.Checkbox("##manualTitle"u8, ref this.notificationTemplate.ManualTitle); ImGui.SameLine(); - ImGui.InputText("Title##title", ref this.notificationTemplate.Title, 255); + ImGui.InputText("Title##title"u8, ref this.notificationTemplate.Title, 255); - ImGui.Checkbox("##manualMinimizedText", ref this.notificationTemplate.ManualMinimizedText); + ImGui.Checkbox("##manualMinimizedText"u8, ref this.notificationTemplate.ManualMinimizedText); ImGui.SameLine(); - ImGui.InputText("MinimizedText##minimizedText", ref this.notificationTemplate.MinimizedText, 255); + ImGui.InputText("MinimizedText##minimizedText"u8, ref this.notificationTemplate.MinimizedText, 255); - ImGui.Checkbox("##manualType", ref this.notificationTemplate.ManualType); + ImGui.Checkbox("##manualType"u8, ref this.notificationTemplate.ManualType); ImGui.SameLine(); - ImGui.Combo( - "Type##type", - ref this.notificationTemplate.TypeInt, - NotificationTemplate.TypeTitles, - NotificationTemplate.TypeTitles.Length); + ImGui.Combo("Type##type", ref this.notificationTemplate.TypeInt, NotificationTemplate.TypeTitles); - ImGui.Combo( - "Icon##iconCombo", - ref this.notificationTemplate.IconInt, - NotificationTemplate.IconTitles, - NotificationTemplate.IconTitles.Length); + ImGui.Combo("Icon##iconCombo", ref this.notificationTemplate.IconInt, NotificationTemplate.IconTitles); switch (this.notificationTemplate.IconInt) { case 1 or 2: ImGui.InputText( - "Icon Text##iconText", + "Icon Text##iconText"u8, ref this.notificationTemplate.IconText, 255); break; @@ -97,18 +88,17 @@ internal class ImGuiWidget : IDataWindowWidget ImGui.Combo( "Asset##iconAssetCombo", ref this.notificationTemplate.IconAssetInt, - NotificationTemplate.AssetSources, - NotificationTemplate.AssetSources.Length); + NotificationTemplate.AssetSources); break; case 3 or 7: ImGui.InputText( - "Game Path##iconText", + "Game Path##iconText"u8, ref this.notificationTemplate.IconText, 255); break; case 4 or 8: ImGui.InputText( - "File Path##iconText", + "File Path##iconText"u8, ref this.notificationTemplate.IconText, 255); break; @@ -117,34 +107,31 @@ internal class ImGuiWidget : IDataWindowWidget ImGui.Combo( "Initial Duration", ref this.notificationTemplate.InitialDurationInt, - NotificationTemplate.InitialDurationTitles, - NotificationTemplate.InitialDurationTitles.Length); + NotificationTemplate.InitialDurationTitles); ImGui.Combo( "Extension Duration", ref this.notificationTemplate.HoverExtendDurationInt, - NotificationTemplate.HoverExtendDurationTitles, - NotificationTemplate.HoverExtendDurationTitles.Length); + NotificationTemplate.HoverExtendDurationTitles); ImGui.Combo( "Progress", ref this.notificationTemplate.ProgressMode, - NotificationTemplate.ProgressModeTitles, - NotificationTemplate.ProgressModeTitles.Length); + NotificationTemplate.ProgressModeTitles); - ImGui.Checkbox("Respect UI Hidden", ref this.notificationTemplate.RespectUiHidden); + ImGui.Checkbox("Respect UI Hidden"u8, ref this.notificationTemplate.RespectUiHidden); - ImGui.Checkbox("Minimized", ref this.notificationTemplate.Minimized); + ImGui.Checkbox("Minimized"u8, ref this.notificationTemplate.Minimized); - ImGui.Checkbox("Show Indeterminate If No Expiry", ref this.notificationTemplate.ShowIndeterminateIfNoExpiry); + ImGui.Checkbox("Show Indeterminate If No Expiry"u8, ref this.notificationTemplate.ShowIndeterminateIfNoExpiry); - ImGui.Checkbox("User Dismissable", ref this.notificationTemplate.UserDismissable); + ImGui.Checkbox("User Dismissable"u8, ref this.notificationTemplate.UserDismissable); ImGui.Checkbox( - "Action Bar (always on if not user dismissable for the example)", + "Action Bar (always on if not user dismissable for the example)"u8, ref this.notificationTemplate.ActionBar); - if (ImGui.Button("Add notification")) + if (ImGui.Button("Add notification"u8)) { var text = "Bla bla bla bla bla bla bla bla bla bla bla.\nBla bla bla bla bla bla bla bla bla bla bla bla bla bla."; @@ -279,10 +266,10 @@ internal class ImGuiWidget : IDataWindowWidget n.DrawActions += an => { ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted($"{nclick}"); + ImGui.Text($"{nclick}"); ImGui.SameLine(); - if (ImGui.Button("Update")) + if (ImGui.Button("Update"u8)) { NewRandom(out title, out type, out progress); an.Notification.Title = title; @@ -291,18 +278,18 @@ internal class ImGuiWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Dismiss")) + if (ImGui.Button("Dismiss"u8)) an.Notification.DismissNow(); ImGui.SameLine(); ImGui.SetNextItemWidth(an.MaxCoord.X - ImGui.GetCursorPosX()); - ImGui.InputText("##input", ref testString, 255); + ImGui.InputText("##input"u8, ref testString, 255); }; } } ImGui.SameLine(); - if (ImGui.Button("Replace images using setter")) + if (ImGui.Button("Replace images using setter"u8)) { foreach (var n in this.notifications) { @@ -457,7 +444,7 @@ internal class ImGuiWidget : IDataWindowWidget public DisposeLoggingTextureWrap(IDalamudTextureWrap inner) => this.inner = inner; - public nint ImGuiHandle => this.inner.ImGuiHandle; + public ImTextureID Handle => this.inner.Handle; public int Width => this.inner.Width; diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs index dce6341a2..c0ec3d490 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs @@ -2,19 +2,15 @@ using System.Buffers.Binary; using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.Inventory; -using Dalamud.Game.Text; using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.Game; - -using ImGuiNET; - using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -66,11 +62,11 @@ internal class InventoryWidget : IDataWindowWidget private unsafe void DrawInventoryTypeList() { - using var table = ImRaii.Table("InventoryTypeTable", 2, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings, new Vector2(300, -1)); + using var table = ImRaii.Table("InventoryTypeTable"u8, 2, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings, new Vector2(300, -1)); if (!table) return; - ImGui.TableSetupColumn("Type"); - ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Type"u8); + ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(2, 1); ImGui.TableHeadersRow(); @@ -91,12 +87,12 @@ internal class InventoryWidget : IDataWindowWidget { if (contextMenu) { - if (ImGui.MenuItem("Copy Name")) + if (ImGui.MenuItem("Copy Name"u8)) { ImGui.SetClipboardText(inventoryType.ToString()); } - if (ImGui.MenuItem("Copy Address")) + if (ImGui.MenuItem("Copy Address"u8)) { var container = InventoryManager.Instance()->GetInventoryContainer((InventoryType)inventoryType); ImGui.SetClipboardText($"0x{(nint)container:X}"); @@ -105,7 +101,7 @@ internal class InventoryWidget : IDataWindowWidget } ImGui.TableNextColumn(); // Size - ImGui.TextUnformatted(items.Length.ToString()); + ImGui.Text(items.Length.ToString()); } } @@ -114,16 +110,16 @@ internal class InventoryWidget : IDataWindowWidget var items = GameInventoryItem.GetReadOnlySpanOfInventory(inventoryType); if (items.IsEmpty) { - ImGui.TextUnformatted($"{inventoryType} is empty."); + ImGui.Text($"{inventoryType} is empty."); return; } - using var itemTable = ImRaii.Table("InventoryItemTable", 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); + using var itemTable = ImRaii.Table("InventoryItemTable"u8, 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); if (!itemTable) return; - ImGui.TableSetupColumn("Slot", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("ItemId", ImGuiTableColumnFlags.WidthFixed, 70); - ImGui.TableSetupColumn("Quantity", ImGuiTableColumnFlags.WidthFixed, 70); - ImGui.TableSetupColumn("Item"); + ImGui.TableSetupColumn("Slot"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("ItemId"u8, ImGuiTableColumnFlags.WidthFixed, 70); + ImGui.TableSetupColumn("Quantity"u8, ImGuiTableColumnFlags.WidthFixed, 70); + ImGui.TableSetupColumn("Item"u8); ImGui.TableSetupScrollFreeze(0, 1); ImGui.TableHeadersRow(); @@ -135,7 +131,7 @@ internal class InventoryWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Slot - ImGui.TextUnformatted(slotIndex.ToString()); + ImGui.Text(slotIndex.ToString()); ImGui.TableNextColumn(); // ItemId ImGuiHelpers.ClickToCopyText(item.ItemId.ToString()); @@ -151,15 +147,15 @@ internal class InventoryWidget : IDataWindowWidget if (this.textureManager.Shared.TryGetFromGameIcon(new GameIconLookup(iconId, item.IsHq), out var tex) && tex.TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.ImGuiHandle, new Vector2(ImGui.GetTextLineHeight())); + ImGui.Image(texture.Handle, new Vector2(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); ImGui.BeginTooltip(); - ImGui.TextUnformatted("Click to copy IconId"); - ImGui.TextUnformatted($"ID: {iconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.Text("Click to copy IconId"u8); + ImGui.Text($"ID: {iconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); ImGui.EndTooltip(); } @@ -177,7 +173,7 @@ internal class InventoryWidget : IDataWindowWidget { if (contextMenu) { - if (ImGui.MenuItem("Copy Name")) + if (ImGui.MenuItem("Copy Name"u8)) { ImGui.SetClipboardText(itemName); } @@ -189,15 +185,15 @@ internal class InventoryWidget : IDataWindowWidget using var itemInfoTable = ImRaii.Table($"{inventoryType}_{slotIndex}_Table", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!itemInfoTable) continue; - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthFixed, 150); - ImGui.TableSetupColumn("Value"); + ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthFixed, 150); + ImGui.TableSetupColumn("Value"u8); // ImGui.TableHeadersRow(); static void AddKeyValueRow(string fieldName, string value) { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted(fieldName); + ImGui.Text(fieldName); ImGui.TableNextColumn(); ImGuiHelpers.ClickToCopyText(value); } @@ -265,14 +261,14 @@ internal class InventoryWidget : IDataWindowWidget { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted("Stains"); + ImGui.Text("Stains"u8); ImGui.TableNextColumn(); using var stainTable = ImRaii.Table($"{inventoryType}_{slotIndex}_StainTable", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!stainTable) continue; - ImGui.TableSetupColumn("Stain Id", ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Name"); + ImGui.TableSetupColumn("Stain Id"u8, ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Name"u8); ImGui.TableHeadersRow(); for (var i = 0; i < itemRow.DyeCount; i++) @@ -286,14 +282,14 @@ internal class InventoryWidget : IDataWindowWidget { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted("Materia"); + ImGui.Text("Materia"u8); ImGui.TableNextColumn(); using var materiaTable = ImRaii.Table($"{inventoryType}_{slotIndex}_MateriaTable", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!materiaTable) continue; - ImGui.TableSetupColumn("Materia Id", ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("MateriaGrade Id"); + ImGui.TableSetupColumn("Materia Id"u8, ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("MateriaGrade Id"u8); ImGui.TableHeadersRow(); for (var i = 0; i < Math.Min(itemRow.MateriaSlotCount, item.Materia.Length); i++) diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs index ce56052b1..fa615ed47 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs @@ -1,8 +1,7 @@ -using Dalamud.Game.ClientState.Keys; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState.Keys; using Dalamud.Interface.Colors; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -12,9 +11,9 @@ internal class KeyStateWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "keystate" }; - + /// - public string DisplayName { get; init; } = "KeyState"; + public string DisplayName { get; init; } = "KeyState"; /// public bool Ready { get; set; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs index b209e2d9e..56de19de7 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs @@ -1,11 +1,13 @@ using System.Collections.Concurrent; using System.Globalization; +using Dalamud.Bindings.ImGui; using Dalamud.Game.MarketBoard; using Dalamud.Game.Network.Structures; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; + +using ImGuiTable = Dalamud.Interface.Utility.ImGuiTable; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -67,7 +69,7 @@ internal class MarketBoardWidget : IDataWindowWidget public void Draw() { var marketBoard = Service.Get(); - if (ImGui.Checkbox("Track MarketBoard Events", ref this.trackMarketBoard)) + if (ImGui.Checkbox("Track MarketBoard Events"u8, ref this.trackMarketBoard)) { if (this.trackMarketBoard) { @@ -88,21 +90,21 @@ internal class MarketBoardWidget : IDataWindowWidget } ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X / 2); - if (ImGui.DragInt("Stored Number of Events", ref this.trackedEvents, 0.1f, 1, 512)) + if (ImGui.DragInt("Stored Number of Events"u8, ref this.trackedEvents, 0.1f, 1, 512)) { this.trackedEvents = Math.Clamp(this.trackedEvents, 1, 512); } - if (ImGui.Button("Clear Stored Events")) + if (ImGui.Button("Clear Stored Events"u8)) { this.marketBoardHistoryQueue.Clear(); } - using (var tabBar = ImRaii.TabBar("marketTabs")) + using (var tabBar = ImRaii.TabBar("marketTabs"u8)) { if (tabBar) { - using (var tabItem = ImRaii.TabItem("History")) + using (var tabItem = ImRaii.TabItem("History"u8)) { if (tabItem) { @@ -110,7 +112,7 @@ internal class MarketBoardWidget : IDataWindowWidget } } - using (var tabItem = ImRaii.TabItem("Offerings")) + using (var tabItem = ImRaii.TabItem("Offerings"u8)) { if (tabItem) { @@ -118,7 +120,7 @@ internal class MarketBoardWidget : IDataWindowWidget } } - using (var tabItem = ImRaii.TabItem("Purchases")) + using (var tabItem = ImRaii.TabItem("Purchases"u8)) { if (tabItem) { @@ -126,7 +128,7 @@ internal class MarketBoardWidget : IDataWindowWidget } } - using (var tabItem = ImRaii.TabItem("Purchase Requests")) + using (var tabItem = ImRaii.TabItem("Purchase Requests"u8)) { if (tabItem) { @@ -134,7 +136,7 @@ internal class MarketBoardWidget : IDataWindowWidget } } - using (var tabItem = ImRaii.TabItem("Taxes")) + using (var tabItem = ImRaii.TabItem("Taxes"u8)) { if (tabItem) { @@ -204,105 +206,105 @@ internal class MarketBoardWidget : IDataWindowWidget private void DrawMarketBoardHistory((IMarketBoardHistory History, IMarketBoardHistoryListing Listing) data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.History.ItemId.ToString()); + ImGui.Text(data.History.ItemId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.Quantity.ToString()); + ImGui.Text(data.Listing.Quantity.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.IsHq.ToString()); + ImGui.Text(data.Listing.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.SalePrice.ToString()); + ImGui.Text(data.Listing.SalePrice.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.BuyerName); + ImGui.Text(data.Listing.BuyerName); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.PurchaseTime.ToString(CultureInfo.InvariantCulture)); + ImGui.Text(data.Listing.PurchaseTime.ToString(CultureInfo.InvariantCulture)); } private void DrawMarketBoardCurrentOfferings((IMarketBoardCurrentOfferings MarketBoardCurrentOfferings, IMarketBoardItemListing Listing) data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.ItemId.ToString()); + ImGui.Text(data.Listing.ItemId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.ItemQuantity.ToString()); + ImGui.Text(data.Listing.ItemQuantity.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.IsHq.ToString()); + ImGui.Text(data.Listing.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.PricePerUnit.ToString()); + ImGui.Text(data.Listing.PricePerUnit.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Listing.RetainerName); + ImGui.Text(data.Listing.RetainerName); } private void DrawMarketBoardPurchases(IMarketBoardPurchase data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.CatalogId.ToString()); + ImGui.Text(data.CatalogId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.ItemQuantity.ToString()); + ImGui.Text(data.ItemQuantity.ToString()); } private void DrawMarketBoardPurchaseRequests(IMarketBoardPurchaseHandler data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.CatalogId.ToString()); + ImGui.Text(data.CatalogId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.IsHq.ToString()); + ImGui.Text(data.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.ItemQuantity.ToString()); + ImGui.Text(data.ItemQuantity.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.PricePerUnit.ToString()); + ImGui.Text(data.PricePerUnit.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.TotalTax.ToString()); + ImGui.Text(data.TotalTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.RetainerCityId.ToString()); + ImGui.Text(data.RetainerCityId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.ListingId.ToString()); + ImGui.Text(data.ListingId.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.RetainerId.ToString()); + ImGui.Text(data.RetainerId.ToString()); } private void DrawMarketTaxRates(IMarketTaxRates data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.UldahTax.ToString()); + ImGui.Text(data.UldahTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.LimsaLominsaTax.ToString()); + ImGui.Text(data.LimsaLominsaTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.GridaniaTax.ToString()); + ImGui.Text(data.GridaniaTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.IshgardTax.ToString()); + ImGui.Text(data.IshgardTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.KuganeTax.ToString()); + ImGui.Text(data.KuganeTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.CrystariumTax.ToString()); + ImGui.Text(data.CrystariumTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.SharlayanTax.ToString()); + ImGui.Text(data.SharlayanTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.TuliyollalTax.ToString()); + ImGui.Text(data.TuliyollalTax.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.ValidUntil.ToString(CultureInfo.InvariantCulture)); + ImGui.Text(data.ValidUntil.ToString(CultureInfo.InvariantCulture)); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs index 69a440713..4a32a16df 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs @@ -3,12 +3,13 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Network; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Memory; -using ImGuiNET; +using ImGuiTable = Dalamud.Interface.Utility.ImGuiTable; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -42,9 +43,9 @@ internal class NetworkMonitorWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "network", "netmon", "networkmonitor" }; - + /// - public string DisplayName { get; init; } = "Network Monitor"; + public string DisplayName { get; init; } = "Network Monitor"; /// public bool Ready { get; set; } @@ -59,12 +60,12 @@ internal class NetworkMonitorWidget : IDataWindowWidget this.packets.Clear(); this.Ready = true; } - + /// public void Draw() { var network = Service.Get(); - if (ImGui.Checkbox("Track Network Packets", ref this.trackNetwork)) + if (ImGui.Checkbox("Track Network Packets"u8, ref this.trackNetwork)) { if (this.trackNetwork) { @@ -77,12 +78,12 @@ internal class NetworkMonitorWidget : IDataWindowWidget } ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X / 2); - if (ImGui.DragInt("Stored Number of Packets", ref this.trackedPackets, 0.1f, 1, 512)) + if (ImGui.DragInt("Stored Number of Packets"u8, ref this.trackedPackets, 0.1f, 1, 512)) { this.trackedPackets = Math.Clamp(this.trackedPackets, 1, 512); } - if (ImGui.Button("Clear Stored Packets")) + if (ImGui.Button("Clear Stored Packets"u8)) { this.packets.Clear(); } @@ -96,24 +97,24 @@ internal class NetworkMonitorWidget : IDataWindowWidget private void DrawNetworkPacket(NetworkPacketData data) { ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.Direction.ToString()); + ImGui.Text(data.Direction.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.OpCode.ToString()); + ImGui.Text(data.OpCode.ToString()); ImGui.TableNextColumn(); - ImGui.TextUnformatted($"0x{data.OpCode:X4}"); + ImGui.Text($"0x{data.OpCode:X4}"); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.TargetActorId > 0 ? $"0x{data.TargetActorId:X}" : string.Empty); + ImGui.Text(data.TargetActorId > 0 ? $"0x{data.TargetActorId:X}" : string.Empty); ImGui.TableNextColumn(); - ImGui.TextUnformatted(data.SourceActorId > 0 ? $"0x{data.SourceActorId:X}" : string.Empty); + ImGui.Text(data.SourceActorId > 0 ? $"0x{data.SourceActorId:X}" : string.Empty); ImGui.TableNextColumn(); if (data.Data.Count > 0) { - ImGui.TextUnformatted(string.Join(" ", data.Data.Select(b => b.ToString("X2")))); + ImGui.Text(string.Join(" ", data.Data.Select(b => b.ToString("X2")))); } else { @@ -127,7 +128,7 @@ internal class NetworkMonitorWidget : IDataWindowWidget using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * ImGuiHelpers.GlobalScale, invalidRegEx); using var color = ImRaii.PushColor(ImGuiCol.Border, 0xFF0000FF, invalidRegEx); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (!ImGui.InputTextWithHint("##Filter", "Regex Filter OpCodes...", ref this.filterString, 1024)) + if (!ImGui.InputTextWithHint("##Filter"u8, "Regex Filter OpCodes..."u8, ref this.filterString, 1024)) { return; } @@ -155,7 +156,7 @@ internal class NetworkMonitorWidget : IDataWindowWidget using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * ImGuiHelpers.GlobalScale, invalidRegEx); using var color = ImRaii.PushColor(ImGuiCol.Border, 0xFF0000FF, invalidRegEx); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (!ImGui.InputTextWithHint("##NegativeFilter", "Regex Filter Against OpCodes...", ref this.negativeFilterString, 1024)) + if (!ImGui.InputTextWithHint("##NegativeFilter"u8, "Regex Filter Against OpCodes..."u8, ref this.negativeFilterString, 1024)) { return; } @@ -203,7 +204,7 @@ internal class NetworkMonitorWidget : IDataWindowWidget /// The filter should find opCodes by number (decimal and hex) and name, if existing. private string OpCodeToString(ushort opCode) => $"{opCode}\0{opCode:X}"; - + #pragma warning disable SA1313 private readonly record struct NetworkPacketData(ushort OpCode, NetworkMessageDirection Direction, uint SourceActorId, uint TargetActorId) #pragma warning restore SA1313 diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs index 3cb5d3242..cbf5c3355 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs @@ -1,15 +1,13 @@ using System.Linq; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; using Dalamud.Game.ClientState; using Dalamud.Game.Text.Noun; using Dalamud.Game.Text.Noun.Enums; using Dalamud.Interface.Utility.Raii; - -using ImGuiNET; - using Lumina.Data; using Lumina.Excel; using Lumina.Excel.Sheets; @@ -91,7 +89,7 @@ internal class NounProcessorWidget : IDataWindowWidget var language = this.languages[this.selectedLanguageIndex]; ImGui.SetNextItemWidth(300); - if (ImGui.Combo("###SelectedSheetName", ref this.selectedSheetNameIndex, NounSheets.Select(t => t.Name).ToArray(), NounSheets.Length)) + if (ImGui.Combo("###SelectedSheetName", ref this.selectedSheetNameIndex, NounSheets.Select(t => t.Name).ToArray())) { this.rowId = 1; } @@ -99,7 +97,7 @@ internal class NounProcessorWidget : IDataWindowWidget ImGui.SameLine(); ImGui.SetNextItemWidth(120); - if (ImGui.Combo("###SelectedLanguage", ref this.selectedLanguageIndex, this.languageNames, this.languageNames.Length)) + if (ImGui.Combo("###SelectedLanguage", ref this.selectedLanguageIndex, this.languageNames)) { language = this.languages[this.selectedLanguageIndex]; this.rowId = 1; @@ -109,7 +107,7 @@ internal class NounProcessorWidget : IDataWindowWidget var sheet = dataManager.Excel.GetSheet(Language.English, sheetType.Name); var minRowId = (int)sheet.FirstOrDefault().RowId; var maxRowId = (int)sheet.LastOrDefault().RowId; - if (ImGui.InputInt("RowId###RowId", ref this.rowId, 1, 10, ImGuiInputTextFlags.AutoSelectAll)) + if (ImGui.InputInt("RowId###RowId", ref this.rowId, 1, 10, flags: ImGuiInputTextFlags.AutoSelectAll)) { if (this.rowId < minRowId) this.rowId = minRowId; @@ -119,10 +117,10 @@ internal class NounProcessorWidget : IDataWindowWidget } ImGui.SameLine(); - ImGui.TextUnformatted($"(Range: {minRowId} - {maxRowId})"); + ImGui.Text($"(Range: {minRowId} - {maxRowId})"); ImGui.SetNextItemWidth(120); - if (ImGui.InputInt("Amount###Amount", ref this.amount, 1, 10, ImGuiInputTextFlags.AutoSelectAll)) + if (ImGui.InputInt("Amount###Amount", ref this.amount, 1, 10, flags: ImGuiInputTextFlags.AutoSelectAll)) { if (this.amount <= 0) this.amount = 1; @@ -139,7 +137,7 @@ internal class NounProcessorWidget : IDataWindowWidget var numCases = language == ClientLanguage.German ? 4 : 1; #if DEBUG - if (ImGui.Button("Copy as self-test entry")) + if (ImGui.Button("Copy as self-test entry"u8)) { var sb = new StringBuilder(); @@ -166,10 +164,10 @@ internal class NounProcessorWidget : IDataWindowWidget } #endif - using var table = ImRaii.Table("TextDecoderTable", 1 + numCases, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); + using var table = ImRaii.Table("TextDecoderTable"u8, 1 + numCases, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("ArticleType", ImGuiTableColumnFlags.WidthFixed, 150); + ImGui.TableSetupColumn("ArticleType"u8, ImGuiTableColumnFlags.WidthFixed, 150); for (var i = 0; i < numCases; i++) ImGui.TableSetupColumn(language == ClientLanguage.German ? GermanCases[i] : "Text"); ImGui.TableSetupScrollFreeze(6, 1); @@ -196,11 +194,11 @@ internal class NounProcessorWidget : IDataWindowWidget ArticleType = (int)articleType, GrammaticalCase = currentCase, }; - ImGui.TextUnformatted(nounProcessor.ProcessNoun(nounParams).ExtractText()); + ImGui.Text(nounProcessor.ProcessNoun(nounParams).ExtractText()); } catch (Exception ex) { - ImGui.TextUnformatted(ex.ToString()); + ImGui.Text(ex.ToString()); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs index 761dc49a8..290c7d9a2 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs @@ -1,10 +1,10 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.Gui; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -19,24 +19,24 @@ internal class ObjectTableWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "ot", "objecttable" }; - + /// - public string DisplayName { get; init; } = "Object Table"; + public string DisplayName { get; init; } = "Object Table"; /// public bool Ready { get; set; } - + /// public void Load() { this.Ready = true; } - + /// public void Draw() { - ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); - + ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); + var chatGui = Service.Get(); var clientState = Service.Get(); var gameGui = Service.Get(); @@ -46,11 +46,11 @@ internal class ObjectTableWidget : IDataWindowWidget if (clientState.LocalPlayer == null) { - ImGui.TextUnformatted("LocalPlayer null."); + ImGui.Text("LocalPlayer null."u8); } else if (clientState.IsPvPExcludingDen) { - ImGui.TextUnformatted("Cannot access object table while in PvP."); + ImGui.Text("Cannot access object table while in PvP."u8); } else { @@ -62,10 +62,10 @@ internal class ObjectTableWidget : IDataWindowWidget stateString += $"LastLinkedItem: {chatGui.LastLinkedItemId}\n"; stateString += $"TerritoryType: {clientState.TerritoryType}\n\n"; - ImGui.TextUnformatted(stateString); + ImGui.Text(stateString); - ImGui.Checkbox("Draw characters on screen", ref this.drawCharacters); - ImGui.SliderFloat("Draw Distance", ref this.maxCharaDrawDistance, 2f, 40f); + ImGui.Checkbox("Draw characters on screen"u8, ref this.drawCharacters); + ImGui.SliderFloat("Draw Distance"u8, ref this.maxCharaDrawDistance, 2f, 40f); for (var i = 0; i < objectTable.Length; i++) { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs index 6e4cbcb16..e43b231be 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs @@ -1,6 +1,6 @@ -using Dalamud.Game.ClientState.Party; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState.Party; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -13,9 +13,9 @@ internal class PartyListWidget : IDataWindowWidget /// public string[]? CommandShortcuts { get; init; } = { "partylist", "party" }; - + /// - public string DisplayName { get; init; } = "Party List"; + public string DisplayName { get; init; } = "Party List"; /// public bool Ready { get; set; } @@ -31,7 +31,7 @@ internal class PartyListWidget : IDataWindowWidget { var partyList = Service.Get(); - ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); + ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); ImGui.Text($"GroupManager: {partyList.GroupManagerAddress.ToInt64():X}"); ImGui.Text($"GroupList: {partyList.GroupListAddress.ToInt64():X}"); @@ -54,7 +54,7 @@ internal class PartyListWidget : IDataWindowWidget var actor = member.GameObject; if (actor == null) { - ImGui.Text("Actor was null"); + ImGui.Text("Actor was null"u8); } else { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs index d67dfc103..6c581604e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs @@ -1,10 +1,10 @@ -using Dalamud.Game.ClientState; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Internal; using Dalamud.Utility; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -17,18 +17,18 @@ internal class PluginIpcWidget : IDataWindowWidget // IPC private ICallGateProvider? ipcPub; private ICallGateSubscriber? ipcSub; - + // IPC private ICallGateProvider? ipcPubGo; private ICallGateSubscriber? ipcSubGo; - + private string callGateResponse = string.Empty; - + /// public string[]? CommandShortcuts { get; init; } = { "ipc" }; - + /// - public string DisplayName { get; init; } = "Plugin IPC"; + public string DisplayName { get; init; } = "Plugin IPC"; /// public bool Ready { get; set; } @@ -94,31 +94,31 @@ internal class PluginIpcWidget : IDataWindowWidget this.ipcSubGo.Subscribe(go => { Log.Information("GO: {Name}", go.Name); }); } - if (ImGui.Button("PING")) + if (ImGui.Button("PING"u8)) { this.ipcPub.SendMessage("PING"); } - if (ImGui.Button("Action")) + if (ImGui.Button("Action"u8)) { this.ipcSub.InvokeAction("button1"); } - if (ImGui.Button("Func")) + if (ImGui.Button("Func"u8)) { this.callGateResponse = this.ipcSub.InvokeFunc("button2"); } - - if (ImGui.Button("Action GO")) + + if (ImGui.Button("Action GO"u8)) { this.ipcSubGo.InvokeAction(Service.Get().LocalPlayer); } - - if (ImGui.Button("Func GO")) + + if (ImGui.Button("Func GO"u8)) { this.callGateResponse = this.ipcSubGo.InvokeFunc(Service.Get().LocalPlayer); } - + if (!this.callGateResponse.IsNullOrEmpty()) ImGui.Text($"Response: {this.callGateResponse}"); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs index 35a2a616e..17b7959f6 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs @@ -1,7 +1,7 @@ using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,9 +12,9 @@ internal class SeFontTestWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "sefont", "sefonttest" }; - + /// - public string DisplayName { get; init; } = "SeFont Test"; + public string DisplayName { get; init; } = "SeFont Test"; /// public bool Ready { get; set; } @@ -36,6 +36,6 @@ internal class SeFontTestWidget : IDataWindowWidget for (var i = min; i <= max; i++) specialChars += $"0x{(int)i:X} - {(SeIconChar)i} - {i}\n"; - ImGui.TextUnformatted(specialChars); + ImGui.Text(specialChars); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs index bff023ff4..d2d0cb3b2 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Data; using Dalamud.Game; @@ -14,14 +15,10 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Memory; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Client.UI.Misc; using FFXIVClientStructs.FFXIV.Component.Text; - -using ImGuiNET; - using Lumina.Data; using Lumina.Data.Files.Excel; using Lumina.Data.Structs.Excel; @@ -92,6 +89,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget { MacroCode.FrNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, { MacroCode.ChNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, { MacroCode.LowerHead, ["String"] }, + { MacroCode.SheetSub, ["SheetName", "RowId", "SubrowId", "ColumnIndex", "SecondarySheetName", "SecondarySheetColumnIndex"] }, { MacroCode.ColorType, ["ColorType"] }, { MacroCode.EdgeColorType, ["ColorType"] }, { MacroCode.Ruby, ["StandardText", "RubyText"] }, @@ -106,13 +104,16 @@ internal class SeStringCreatorWidget : IDataWindowWidget { LinkMacroPayloadType.Character, ["Flags", "WorldId"] }, { LinkMacroPayloadType.Item, ["ItemId", "Rarity"] }, { LinkMacroPayloadType.MapPosition, ["TerritoryType/MapId", "RawX", "RawY"] }, - { LinkMacroPayloadType.Quest, ["QuestId"] }, - { LinkMacroPayloadType.Achievement, ["AchievementId"] }, - { LinkMacroPayloadType.HowTo, ["HowToId"] }, + { LinkMacroPayloadType.Quest, ["RowId"] }, + { LinkMacroPayloadType.Achievement, ["RowId"] }, + { LinkMacroPayloadType.HowTo, ["RowId"] }, // PartyFinderNotification { LinkMacroPayloadType.Status, ["StatusId"] }, { LinkMacroPayloadType.PartyFinder, ["ListingId", string.Empty, "WorldId"] }, - { LinkMacroPayloadType.AkatsukiNote, ["AkatsukiNoteId"] }, + { LinkMacroPayloadType.AkatsukiNote, ["RowId"] }, + { LinkMacroPayloadType.Description, ["RowId"] }, + { LinkMacroPayloadType.WKSPioneeringTrail, ["RowId", "SubrowId"] }, + { LinkMacroPayloadType.MKDLore, ["RowId"] }, { DalamudLinkType, ["CommandId", "Extra1", "Extra2", "ExtraString"] }, }; @@ -194,7 +195,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget this.lastContentWidth = contentWidth; } - using var tabBar = ImRaii.TabBar("SeStringCreatorWidgetTabBar"); + using var tabBar = ImRaii.TabBar("SeStringCreatorWidgetTabBar"u8); if (!tabBar) return; this.DrawCreatorTab(contentWidth); @@ -203,7 +204,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget private void DrawCreatorTab(float contentWidth) { - using var tab = ImRaii.TabItem("Creator"); + using var tab = ImRaii.TabItem("Creator"u8); if (!tab) return; this.DrawControls(); @@ -219,7 +220,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.SameLine(0, 0); - ImGui.Button("###InputPanelResizer", new Vector2(4, -1)); + ImGui.Button("###InputPanelResizer"u8, new Vector2(4, -1)); if (ImGui.IsItemActive()) { this.inputsWidth += ImGui.GetIO().MouseDelta.X; @@ -227,7 +228,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (ImGui.IsItemHovered()) { - ImGui.SetMouseCursor(ImGuiMouseCursor.ResizeEW); + ImGui.SetMouseCursor(ImGuiMouseCursor.ResizeEw); if (ImGui.IsMouseDoubleClicked(ImGuiMouseButton.Left)) { @@ -237,7 +238,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.SameLine(); - using var child = ImRaii.Child("Preview", new Vector2(ImGui.GetContentRegionAvail().X, -1)); + using var child = ImRaii.Child("Preview"u8, new Vector2(ImGui.GetContentRegionAvail().X, -1)); if (!child) return; if (this.localParameters!.Length != 0) @@ -254,17 +255,17 @@ internal class SeStringCreatorWidget : IDataWindowWidget private unsafe void DrawGlobalParametersTab() { - using var tab = ImRaii.TabItem("Global Parameters"); + using var tab = ImRaii.TabItem("Global Parameters"u8); if (!tab) return; - using var table = ImRaii.Table("GlobalParametersTable", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); + using var table = ImRaii.Table("GlobalParametersTable"u8, 5, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("Id", ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("ValuePtr", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Value", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Description", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Id"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("ValuePtr"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Value"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Description"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(5, 1); ImGui.TableHeadersRow(); @@ -275,10 +276,10 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Id - ImGui.TextUnformatted(i.ToString()); + ImGui.Text(i.ToString()); ImGui.TableNextColumn(); // Type - ImGui.TextUnformatted(item.Type.ToString()); + ImGui.Text(item.Type.ToString()); ImGui.TableNextColumn(); // ValuePtr WidgetUtil.DrawCopyableText($"0x{(nint)item.ValuePtr:X}"); @@ -296,7 +297,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (item.ReferencedUtf8StringValue != null) WidgetUtil.DrawCopyableText(new ReadOnlySeStringSpan(item.ReferencedUtf8StringValue->Utf8String).ToString()); else - ImGui.TextUnformatted("null"); + ImGui.Text("null"u8); break; @@ -304,12 +305,12 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (item.StringValue.Value != null) WidgetUtil.DrawCopyableText(item.StringValue.ToString()); else - ImGui.TextUnformatted("null"); + ImGui.Text("null"u8); break; } ImGui.TableNextColumn(); - ImGui.TextUnformatted(i switch + ImGui.Text(i switch { 0 => "Player Name", 1 => "Temp Player 1 Name", @@ -402,23 +403,23 @@ internal class SeStringCreatorWidget : IDataWindowWidget private unsafe void DrawControls() { - if (ImGui.Button("Add entry")) + if (ImGui.Button("Add entry"u8)) { this.entries.Add(new(TextEntryType.String, string.Empty)); } ImGui.SameLine(); - if (ImGui.Button("Add from Sheet")) + if (ImGui.Button("Add from Sheet"u8)) { - ImGui.OpenPopup("AddFromSheetPopup"); + ImGui.OpenPopup("AddFromSheetPopup"u8); } this.DrawAddFromSheetPopup(); ImGui.SameLine(); - if (ImGui.Button("Print")) + if (ImGui.Button("Print"u8)) { var output = Utf8String.CreateEmpty(); var temp = Utf8String.CreateEmpty(); @@ -459,7 +460,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Print Evaluated")) + if (ImGui.Button("Print Evaluated"u8)) { var sb = new LSeStringBuilder(); @@ -490,7 +491,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget { ImGui.SameLine(); - if (ImGui.Button("Copy MacroString")) + if (ImGui.Button("Copy MacroString"u8)) { var sb = new LSeStringBuilder(); @@ -514,7 +515,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Clear entries")) + if (ImGui.Button("Clear entries"u8)) { this.entries.Clear(); this.UpdateInputString(); @@ -525,12 +526,12 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (!raptureTextModule->MacroEncoder.EncoderError.IsEmpty) { ImGui.SameLine(); - ImGui.TextUnformatted(raptureTextModule->MacroEncoder.EncoderError.ToString()); // TODO: EncoderError doesn't clear + ImGui.Text(raptureTextModule->MacroEncoder.EncoderError.ToString()); // TODO: EncoderError doesn't clear } ImGui.SameLine(); ImGui.SetNextItemWidth(90 * ImGuiHelpers.GlobalScale); - using (var dropdown = ImRaii.Combo("##Language", this.language.ToString() ?? "Language...")) + using (var dropdown = ImRaii.Combo("##Language"u8, this.language.ToString() ?? "Language...")) { if (dropdown) { @@ -549,7 +550,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget private void DrawAddFromSheetPopup() { - using var popup = ImRaii.Popup("AddFromSheetPopup"); + using var popup = ImRaii.Popup("AddFromSheetPopup"u8); if (!popup) return; var dataManager = Service.Get(); @@ -571,7 +572,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget } }).OrderBy(sheetName => sheetName, StringComparer.InvariantCulture).ToArray(); - var sheetChanged = ImGui.Combo("Sheet Name", ref this.importSelectedSheetName, this.validImportSheetNames, this.validImportSheetNames.Length); + var sheetChanged = ImGui.Combo("Sheet Name", ref this.importSelectedSheetName, this.validImportSheetNames); try { @@ -579,10 +580,10 @@ internal class SeStringCreatorWidget : IDataWindowWidget var minRowId = (int)sheet.FirstOrDefault().RowId; var maxRowId = (int)sheet.LastOrDefault().RowId; - var rowIdChanged = ImGui.InputInt("RowId", ref this.importRowId, 1, 10); + var rowIdChanged = ImGui.InputInt("RowId"u8, ref this.importRowId, 1, 10); ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - ImGui.TextUnformatted($"(Range: {minRowId} - {maxRowId})"); + ImGui.Text($"(Range: {minRowId} - {maxRowId})"); if (sheetChanged || rowIdChanged) { @@ -595,17 +596,17 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (!sheet.TryGetRow((uint)this.importRowId, out var row)) { - ImGui.TextColored(new Vector4(1, 0, 0, 1), "Row not found"); + ImGui.TextColored(new Vector4(1, 0, 0, 1), "Row not found"u8); return; } - ImGui.TextUnformatted("Select string to add:"); + ImGui.Text("Select string to add:"u8); - using var table = ImRaii.Table("StringSelectionTable", 2, ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); + using var table = ImRaii.Table("StringSelectionTable"u8, 2, ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("Column", ImGuiTableColumnFlags.WidthFixed, 50); - ImGui.TableSetupColumn("Value", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Column"u8, ImGuiTableColumnFlags.WidthFixed, 50); + ImGui.TableSetupColumn("Value"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(0, 1); ImGui.TableHeadersRow(); @@ -621,7 +622,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted(i.ToString()); + ImGui.Text(i.ToString()); ImGui.TableNextColumn(); if (ImGui.Selectable($"{value.ToString().Truncate(100)}###Column{i}")) @@ -647,22 +648,22 @@ internal class SeStringCreatorWidget : IDataWindowWidget } catch (Exception e) { - ImGui.TextUnformatted(e.Message); + ImGui.Text(e.Message); return; } } private unsafe void DrawInputs() { - using var child = ImRaii.Child("Inputs", new Vector2(this.inputsWidth, -1)); + using var child = ImRaii.Child("Inputs"u8, new Vector2(this.inputsWidth, -1)); if (!child) return; - using var table = ImRaii.Table("StringMakerTable", 3, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); + using var table = ImRaii.Table("StringMakerTable"u8, 3, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Text", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Actions"u8, ImGuiTableColumnFlags.WidthFixed, 80); ImGui.TableSetupScrollFreeze(3, 1); ImGui.TableHeadersRow(); @@ -686,7 +687,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.TableNextColumn(); // Type var type = (int)entry.Type; ImGui.SetNextItemWidth(-1); - if (ImGui.Combo($"##Type{i}", ref type, ["String", "Macro", "Fixed"], 3)) + if (ImGui.Combo($"##Type{i}", ref type, ["String", "Macro", "Fixed"])) { entry.Type = (TextEntryType)type; updateString |= true; @@ -806,7 +807,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget private void DrawPreview(ReadOnlySeString str) { using var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00); - using var node = ImRaii.TreeNode("Preview", ImGuiTreeNodeFlags.DefaultOpen); + using var node = ImRaii.TreeNode("Preview"u8, ImGuiTreeNodeFlags.DefaultOpen); nodeColor.Pop(); if (!node) return; @@ -818,7 +819,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget private void DrawParameters() { using var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00); - using var node = ImRaii.TreeNode("Parameters", ImGuiTreeNodeFlags.DefaultOpen); + using var node = ImRaii.TreeNode("Parameters"u8, ImGuiTreeNodeFlags.DefaultOpen); nodeColor.Pop(); if (!node) return; @@ -846,7 +847,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget private void DrawPayloads(ReadOnlySeString evaluated) { using (var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00)) - using (var node = ImRaii.TreeNode("Payloads", ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) + using (var node = ImRaii.TreeNode("Payloads"u8, ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) { nodeColor.Pop(); if (node) this.DrawSeString("payloads", this.input.AsSpan(), treeNodeFlags: ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth); @@ -856,7 +857,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget return; using (var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00)) - using (var node = ImRaii.TreeNode("Payloads (Evaluated)", ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) + using (var node = ImRaii.TreeNode("Payloads (Evaluated)"u8, ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) { nodeColor.Pop(); if (node) this.DrawSeString("payloads-evaluated", evaluated.AsSpan(), treeNodeFlags: ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth); @@ -902,12 +903,12 @@ internal class SeStringCreatorWidget : IDataWindowWidget using var table = ImRaii.Table($"##Payload{payloadIdx}Table", 2); if (!table) return; - ImGui.TableSetupColumn("Label", ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Tree", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Label"u8, ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Tree"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.TextUnformatted(payload.Type == ReadOnlySePayloadType.Text ? "Text" : "ToString()"); + ImGui.Text(payload.Type == ReadOnlySePayloadType.Text ? "Text" : "ToString()"); ImGui.TableNextColumn(); var text = payload.ToString(); WidgetUtil.DrawCopyableText($"\"{text}\"", text); @@ -947,13 +948,13 @@ internal class SeStringCreatorWidget : IDataWindowWidget ImGui.TableNextColumn(); var expressionName = this.GetExpressionName(macroCode, subType, exprIdx, expr); - ImGui.TextUnformatted($"[{exprIdx}] " + (string.IsNullOrEmpty(expressionName) ? $"Expr {exprIdx}" : expressionName)); + ImGui.Text($"[{exprIdx}] " + (string.IsNullOrEmpty(expressionName) ? $"Expr {exprIdx}" : expressionName)); ImGui.TableNextColumn(); if (expr.Body.IsEmpty) { - ImGui.TextUnformatted("(?)"); + ImGui.Text("(?)"u8); return; } @@ -997,7 +998,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (!string.IsNullOrEmpty(name)) { ImGui.SameLine(); - ImGui.TextUnformatted(name); + ImGui.Text(name); } } @@ -1018,19 +1019,19 @@ internal class SeStringCreatorWidget : IDataWindowWidget _ => typeof(EnglishArticleType), }; ImGui.SameLine(); - ImGui.TextUnformatted(Enum.GetName(articleTypeEnumType, u32)); + ImGui.Text(Enum.GetName(articleTypeEnumType, u32)); } if (macroCode is MacroCode.DeNoun && exprIdx == 4 && u32 is >= 0 and <= 4) { ImGui.SameLine(); - ImGui.TextUnformatted(NounProcessorWidget.GermanCases[u32]); + ImGui.Text(NounProcessorWidget.GermanCases[u32]); } if (macroCode is MacroCode.Fixed && subType != null && fixedType != null && fixedType is 100 or 200 && subType == 5 && exprIdx == 2) { ImGui.SameLine(); - if (ImGui.SmallButton("Play")) + if (ImGui.SmallButton("Play"u8)) { UIGlobals.PlayChatSoundEffect(u32 + 1); } @@ -1044,34 +1045,34 @@ internal class SeStringCreatorWidget : IDataWindowWidget { case LinkMacroPayloadType.Item when dataManager.GetExcelSheet(this.language).TryGetRow(u32, out var itemRow): ImGui.SameLine(); - ImGui.TextUnformatted(itemRow.Name.ExtractText()); + ImGui.Text(itemRow.Name.ExtractText()); break; case LinkMacroPayloadType.Quest when dataManager.GetExcelSheet(this.language).TryGetRow(u32, out var questRow): ImGui.SameLine(); - ImGui.TextUnformatted(questRow.Name.ExtractText()); + ImGui.Text(questRow.Name.ExtractText()); break; case LinkMacroPayloadType.Achievement when dataManager.GetExcelSheet(this.language).TryGetRow(u32, out var achievementRow): ImGui.SameLine(); - ImGui.TextUnformatted(achievementRow.Name.ExtractText()); + ImGui.Text(achievementRow.Name.ExtractText()); break; case LinkMacroPayloadType.HowTo when dataManager.GetExcelSheet(this.language).TryGetRow(u32, out var howToRow): ImGui.SameLine(); - ImGui.TextUnformatted(howToRow.Name.ExtractText()); + ImGui.Text(howToRow.Name.ExtractText()); break; case LinkMacroPayloadType.Status when dataManager.GetExcelSheet(this.language).TryGetRow(u32, out var statusRow): ImGui.SameLine(); - ImGui.TextUnformatted(statusRow.Name.ExtractText()); + ImGui.Text(statusRow.Name.ExtractText()); break; case LinkMacroPayloadType.AkatsukiNote when - dataManager.GetSubrowExcelSheet(this.language).TryGetRow(u32, out var akatsukiNoteRow) && - dataManager.GetExcelSheet(this.language).TryGetRow((uint)akatsukiNoteRow[0].Unknown2, out var akatsukiNoteStringRow): + dataManager.GetSubrowExcelSheet(this.language).TryGetSubrow(u32, 0, out var akatsukiNoteRow) && + akatsukiNoteRow.ListName.ValueNullable is { } akatsukiNoteStringRow: ImGui.SameLine(); - ImGui.TextUnformatted(akatsukiNoteStringRow.Unknown0.ExtractText()); + ImGui.Text(akatsukiNoteStringRow.Text.ExtractText()); break; } } @@ -1089,11 +1090,11 @@ internal class SeStringCreatorWidget : IDataWindowWidget { if (((ExpressionType)exprType).GetNativeName() is { } nativeName) { - ImGui.TextUnformatted(nativeName); + ImGui.Text(nativeName); return; } - ImGui.TextUnformatted($"?x{exprType:X02}"); + ImGui.Text($"?x{exprType:X02}"); return; } @@ -1101,7 +1102,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget { if (((ExpressionType)exprType).GetNativeName() is { } nativeName) { - ImGui.TextUnformatted($"{nativeName}({e1.ToString()})"); + ImGui.Text($"{nativeName}({e1.ToString()})"); return; } @@ -1112,7 +1113,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget { if (((ExpressionType)exprType).GetNativeName() is { } nativeName) { - ImGui.TextUnformatted($"{e1.ToString()} {nativeName} {e2.ToString()}"); + ImGui.Text($"{e1.ToString()} {nativeName} {e2.ToString()}"); return; } @@ -1125,7 +1126,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget for (var i = 1; i < expr.Body.Length; i++) sb.Append($" {expr.Body[i]:X02}"); sb.Append(')'); - ImGui.TextUnformatted(sb.ToString()); + ImGui.Text(sb.ToString()); } private string GetExpressionName(MacroCode macroCode, uint? subType, int idx, ReadOnlySeExpressionSpan expr) @@ -1261,7 +1262,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget if (ImGui.IsItemHovered()) { ImGui.BeginTooltip(); - ImGui.TextUnformatted(tooltip); + ImGui.Text(tooltip); ImGui.EndTooltip(); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs index 323c9ce62..b39cf258c 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs @@ -1,6 +1,7 @@ using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.Gui; using Dalamud.Game.Text.SeStringHandling.Payloads; @@ -10,11 +11,7 @@ using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; using Dalamud.Storage.Assets; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; - using Lumina.Excel.Sheets; using Lumina.Text; using Lumina.Text.Payloads; @@ -69,7 +66,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGui.SameLine(); var t = this.style.ForceEdgeColor; - if (ImGui.Checkbox("Forced", ref t)) + if (ImGui.Checkbox("Forced"u8, ref t)) this.style.ForceEdgeColor = t; t2 = ImGui.ColorConvertU32ToFloat4(this.style.ShadowColor ?? 0xFF000000u); @@ -85,67 +82,67 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget this.style.LinkActiveBackColor = ImGui.ColorConvertFloat4ToU32(t2); var t3 = this.style.LineHeight ?? 1f; - if (ImGui.DragFloat("Line Height", ref t3, 0.01f, 0.4f, 3f, "%.02f")) + if (ImGui.DragFloat("Line Height"u8, ref t3, 0.01f, 0.4f, 3f, "%.02f")) this.style.LineHeight = t3; t3 = this.style.Opacity ?? ImGui.GetStyle().Alpha; - if (ImGui.DragFloat("Opacity", ref t3, 0.005f, 0f, 1f, "%.02f")) + if (ImGui.DragFloat("Opacity"u8, ref t3, 0.005f, 0f, 1f, "%.02f")) this.style.Opacity = t3; t3 = this.style.EdgeStrength ?? 0.25f; - if (ImGui.DragFloat("Edge Strength", ref t3, 0.005f, 0f, 1f, "%.02f")) + if (ImGui.DragFloat("Edge Strength"u8, ref t3, 0.005f, 0f, 1f, "%.02f")) this.style.EdgeStrength = t3; t = this.style.Edge; - if (ImGui.Checkbox("Edge", ref t)) + if (ImGui.Checkbox("Edge"u8, ref t)) this.style.Edge = t; ImGui.SameLine(); t = this.style.Bold; - if (ImGui.Checkbox("Bold", ref t)) + if (ImGui.Checkbox("Bold"u8, ref t)) this.style.Bold = t; ImGui.SameLine(); t = this.style.Italic; - if (ImGui.Checkbox("Italic", ref t)) + if (ImGui.Checkbox("Italic"u8, ref t)) this.style.Italic = t; ImGui.SameLine(); t = this.style.Shadow; - if (ImGui.Checkbox("Shadow", ref t)) + if (ImGui.Checkbox("Shadow"u8, ref t)) this.style.Shadow = t; ImGui.SameLine(); var t4 = this.style.ThemeIndex ?? AtkStage.Instance()->AtkUIColorHolder->ActiveColorThemeType; - ImGui.PushItemWidth(ImGui.CalcTextSize("WWWWWWWWWWWWWW").X); - if (ImGui.Combo("##theme", ref t4, ThemeNames, ThemeNames.Length)) + ImGui.PushItemWidth(ImGui.CalcTextSize("WWWWWWWWWWWWWW"u8).X); + if (ImGui.Combo("##theme", ref t4, ThemeNames)) this.style.ThemeIndex = t4; ImGui.SameLine(); t = this.style.LinkUnderlineThickness > 0f; - if (ImGui.Checkbox("Link Underline", ref t)) + if (ImGui.Checkbox("Link Underline"u8, ref t)) this.style.LinkUnderlineThickness = t ? 1f : 0f; ImGui.SameLine(); t = this.style.WrapWidth is null; - if (ImGui.Checkbox("Word Wrap", ref t)) + if (ImGui.Checkbox("Word Wrap"u8, ref t)) this.style.WrapWidth = t ? null : float.PositiveInfinity; t = this.interactable; - if (ImGui.Checkbox("Interactable", ref t)) + if (ImGui.Checkbox("Interactable"u8, ref t)) this.interactable = t; ImGui.SameLine(); t = this.useEntity; - if (ImGui.Checkbox("Use Entity Replacements", ref t)) + if (ImGui.Checkbox("Use Entity Replacements"u8, ref t)) this.useEntity = t; ImGui.SameLine(); t = this.alignToFramePadding; - if (ImGui.Checkbox("Align to Frame Padding", ref t)) + if (ImGui.Checkbox("Align to Frame Padding"u8, ref t)) this.alignToFramePadding = t; - if (ImGui.CollapsingHeader("LogKind Preview")) + if (ImGui.CollapsingHeader("LogKind Preview"u8)) { if (this.logkind is null) { @@ -177,23 +174,23 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGuiHelpers.SeStringWrapped(this.logkind.Value.Data.Span, this.style); } - if (ImGui.CollapsingHeader("Addon Table")) + if (ImGui.CollapsingHeader("Addon Table"u8)) { - if (ImGui.BeginTable("Addon Sheet", 3)) + if (ImGui.BeginTable("Addon Sheet"u8, 3)) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Row ID", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("0000000").X); - ImGui.TableSetupColumn("Text", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Row ID"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("0000000"u8).X); + ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupColumn( - "Misc", + "Misc"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("AAAAAAAAAAAAAAAAA").X); + ImGui.CalcTextSize("AAAAAAAAAAAAAAAAA"u8).X); ImGui.TableHeadersRow(); var addon = Service.GetNullable()?.GetExcelSheet() ?? throw new InvalidOperationException("Addon sheet not loaded."); - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(addon.Count); while (clipper.Step()) { @@ -206,14 +203,14 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted($"{row.RowId}"); + ImGui.Text($"{row.RowId}"); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); ImGuiHelpers.SeStringWrapped(row.Text, this.style); ImGui.TableNextColumn(); - if (ImGui.Button("Print to Chat")) + if (ImGui.Button("Print to Chat"u8)) Service.Get().Print(row.Text.ToDalamudString()); ImGui.PopID(); @@ -225,18 +222,18 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget } } - if (ImGui.Button("Reset Text") || this.testStringBuffer.IsDisposed) + if (ImGui.Button("Reset Text"u8) || this.testStringBuffer.IsDisposed) { this.testStringBuffer.Dispose(); this.testStringBuffer = ImVectorWrapper.CreateFromSpan( - "\n\nLorem ipsum dolor sit amet, conse<->ctetur adipi<->scing elit. Maece<->nas digni<->ssim sem at inter<->dum ferme<->ntum. Praes<->ent ferme<->ntum conva<->llis velit sit amet hendr<->erit. Sed eu nibh magna. Integ<->er nec lacus in velit porta euism<->od sed et lacus. Sed non mauri<->s venen<->atis, matti<->s metus in, aliqu<->et dolor. Aliqu<->am erat volut<->pat. Nulla venen<->atis velit ac susci<->pit euism<->od. suspe<->ndisse maxim<->us viver<->ra dui id dapib<->us. Nam torto<->r dolor, eleme<->ntum quis orci id, pulvi<->nar fring<->illa quam. Pelle<->ntesque laore<->et viver<->ra torto<->r eget matti<->s. Vesti<->bulum eget porta ante, a molli<->s nulla. Curab<->itur a ligul<->a leo. Aliqu<->am volut<->pat sagit<->tis dapib<->us.\n\nFusce iacul<->is aliqu<->am mi, eget portt<->itor arcu solli<->citudin conse<->ctetur. suspe<->ndisse aliqu<->am commo<->do tinci<->dunt. Duis sed posue<->re tellu<->s. Sed phare<->tra ex vel torto<->r pelle<->ntesque, inter<->dum porta sapie<->n digni<->ssim. Queue Dun Scait<->h. Cras aliqu<->et at nulla quis moles<->tie. Vesti<->bulum eu ligul<->a sapie<->n. Curab<->itur digni<->ssim feugi<->at volut<->pat.\n\nVesti<->bulum condi<->mentum laore<->et rhonc<->us. Vivam<->us et accum<->san purus. Curab<->itur inter<->dum vel ligul<->a ac euism<->od. Donec sed nisl digni<->ssim est tinci<->dunt iacul<->is. Praes<->ent hendr<->erit pelle<->ntesque nisl, quis lacin<->ia arcu dictu<->m sit amet. Aliqu<->am variu<->s lectu<->s vel mauri<->s imper<->diet posue<->re. Ut gravi<->da non sapie<->n sed hendr<->erit.\n\nProin quis dapib<->us odio. Cras sagit<->tis non sem sed porta. Donec iacul<->is est ligul<->a, digni<->ssim aliqu<->et augue matti<->s vitae. Duis ullam<->corper tempu<->s odio, non vesti<->bulum est biben<->dum quis. In purus elit, vehic<->ula tinci<->dunt dictu<->m in, aucto<->r nec enim. Curab<->itur a nisi in leo matti<->s pelle<->ntesque id nec sem. Nunc vel ultri<->ces nisl. Nam congu<->e vulpu<->tate males<->uada. Aenea<->n vesti<->bulum mauri<->s leo, sit amet iacul<->is est imper<->diet ut. Phase<->llus nec lobor<->tis lacus, sit amet scele<->risque purus. Nam id lacin<->ia velit, euism<->od feugi<->at dui. Nulla sodal<->es odio ligul<->a, et hendr<->erit torto<->r maxim<->us eu. Donec et sem eu magna volut<->pat accum<->san non ut lectu<->s.\n\nVivam<->us susci<->pit ferme<->ntum gravi<->da. Cras nec conse<->ctetur magna. Vivam<->us ante massa, accum<->san sit amet felis et, tempu<->s iacul<->is ipsum. Pelle<->ntesque vitae nisi accum<->san, venen<->atis lectu<->s aucto<->r, aliqu<->et liber<->o. Nam nec imper<->diet justo. Vivam<->us ut vehic<->ula turpi<->s. Nunc lobor<->tis pelle<->ntesque urna, sit amet solli<->citudin nibh fauci<->bus in. Curab<->itur eu lobor<->tis lacus. Donec eu hendr<->erit diam, vitae cursu<->s odio. Cras eget scele<->risque mi.\n\n· Testing aaaaalink aaaaabbbb.\n· Open example.com\n· Open example.org\n\n\n\ncolortype502,edgecolortype503\n\nOpacity values are ignored:\nopacity FF\nopacity 80\nopacity 00\nTest 1\nTest 2\nWithout edgeShadowWith edge"u8, + "\n\nLorem ipsum dolor sit amet, conse<->ctetur adipi<->scing elit. Maece<->nas digni<->ssim sem at inter<->dum ferme<->ntum. Praes<->ent ferme<->ntum conva<->llis velit sit amet hendr<->erit. Sed eu nibh magna. Integ<->er nec lacus in velit porta euism<->od sed et lacus. Sed non mauri<->s venen<->atis, matti<->s metus in, aliqu<->et dolor. Aliqu<->am erat volut<->pat. Nulla venen<->atis velit ac susci<->pit euism<->od. suspe<->ndisse maxim<->us viver<->ra dui id dapib<->us. Nam torto<->r dolor, eleme<->ntum quis orci id, pulvi<->nar fring<->illa quam. Pelle<->ntesque laore<->et viver<->ra torto<->r eget matti<->s. Vesti<->bulum eget porta ante, a molli<->s nulla. Curab<->itur a ligul<->a leo. Aliqu<->am volut<->pat sagit<->tis dapib<->us.\n\nFusce iacul<->is aliqu<->am mi, eget portt<->itor arcu solli<->citudin conse<->ctetur. suspe<->ndisse aliqu<->am commo<->do tinci<->dunt. Duis sed posue<->re tellu<->s. Sed phare<->tra ex vel torto<->r pelle<->ntesque, inter<->dum porta sapie<->n digni<->ssim. Queue Dun Scait<->h. Cras aliqu<->et at nulla quis moles<->tie. Vesti<->bulum eu ligul<->a sapie<->n. Curab<->itur digni<->ssim feugi<->at volut<->pat.\n\nVesti<->bulum condi<->mentum laore<->et rhonc<->us. Vivam<->us et accum<->san purus. Curab<->itur inter<->dum vel ligul<->a ac euism<->od. Donec sed nisl digni<->ssim est tinci<->dunt iacul<->is. Praes<->ent hendr<->erit pelle<->ntesque nisl, quis lacin<->ia arcu dictu<->m sit amet. Aliqu<->am variu<->s lectu<->s vel mauri<->s imper<->diet posue<->re. Ut gravi<->da non sapie<->n sed hendr<->erit.\n\nProin quis dapib<->us odio. Cras sagit<->tis non sem sed porta. Donec iacul<->is est ligul<->a, digni<->ssim aliqu<->et augue matti<->s vitae. Duis ullam<->corper tempu<->s odio, non vesti<->bulum est biben<->dum quis. In purus elit, vehic<->ula tinci<->dunt dictu<->m in, aucto<->r nec enim. Curab<->itur a nisi in leo matti<->s pelle<->ntesque id nec sem. Nunc vel ultri<->ces nisl. Nam congu<->e vulpu<->tate males<->uada. Aenea<->n vesti<->bulum mauri<->s leo, sit amet iacul<->is est imper<->diet ut. Phase<->llus nec lobor<->tis lacus, sit amet scele<->risque purus. Nam id lacin<->ia velit, euism<->od feugi<->at dui. Nulla sodal<->es odio ligul<->a, et hendr<->erit torto<->r maxim<->us eu. Donec et sem eu magna volut<->pat accum<->san non ut lectu<->s.\n\nVivam<->us susci<->pit ferme<->ntum gravi<->da. Cras nec conse<->ctetur magna. Vivam<->us ante massa, accum<->san sit amet felis et, tempu<->s iacul<->is ipsum. Pelle<->ntesque vitae nisi accum<->san, venen<->atis lectu<->s aucto<->r, aliqu<->et liber<->o. Nam nec imper<->diet justo. Vivam<->us ut vehic<->ula turpi<->s. Nunc lobor<->tis pelle<->ntesque urna, sit amet solli<->citudin nibh fauci<->bus in. Curab<->itur eu lobor<->tis lacus. Donec eu hendr<->erit diam, vitae cursu<->s odio. Cras eget scele<->risque mi.\n\n· Testing aaaaalink aaaaabbbb.\n· Open example.com\n· Open example.org\n\n\n\ncolortype502,edgecolortype503\n\nOpacity values are ignored:\nopacity FF\nopacity 80\nopacity 00\nTest 1\nTest 2\nWithout edgeShadowWith edge"u8, minCapacity: 65536); this.testString = string.Empty; } ImGui.SameLine(); - if (ImGui.Button("Print to Chat Log")) + if (ImGui.Button("Print to Chat Log"u8)) { Service.Get().Print( Game.Text.SeStringHandling.SeString.Parse( @@ -266,14 +263,10 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget fixed (byte* labelPtr = "Test Input"u8) { - if (ImGuiNative.igInputTextMultiline( + if (ImGui.InputTextMultiline( labelPtr, - this.testStringBuffer.Data, - (uint)this.testStringBuffer.Capacity, - new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3), - 0, - null, - null) != 0) + this.testStringBuffer.StorageSpan, + new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3))) { var len = this.testStringBuffer.StorageSpan.IndexOf((byte)0); if (len + 4 >= this.testStringBuffer.Capacity) @@ -281,7 +274,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget if (len < this.testStringBuffer.Capacity) { this.testStringBuffer.LengthUnsafe = len; - this.testStringBuffer.StorageSpan[len] = default; + this.testStringBuffer.StorageSpan[len] = 0; } this.testString = string.Empty; @@ -306,7 +299,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGui.Separator(); if (this.alignToFramePadding) ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted($"Hovered[{offset}]: {new ReadOnlySeStringSpan(envelope).ToString()}; {payload}"); + ImGui.Text($"Hovered[{offset}]: {new ReadOnlySeStringSpan(envelope).ToString()}; {payload}"); if (clicked && payload is DalamudLinkPayload { Plugin: "test" } dlp) Util.OpenLink(dlp.ExtraString); } @@ -393,7 +386,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget .GetFromGame(Encoding.UTF8.GetString(state.Span[(byteOffset + 4)..(byteOffset + off)])) .GetWrapOrEmpty(); state.Draw( - tex.ImGuiHandle, + tex.Handle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), tex.Size * (state.FontSize / tex.Size.Y), Vector2.Zero, @@ -411,7 +404,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget .GetFromGameIcon(parsed) .GetWrapOrEmpty(); state.Draw( - tex.ImGuiHandle, + tex.Handle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), tex.Size * (state.FontSize / tex.Size.Y), Vector2.Zero, @@ -420,7 +413,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget static void DrawAsset(scoped in SeStringDrawState state, Vector2 offset, DalamudAsset asset) => state.Draw( - Service.Get().GetDalamudTextureWrap(asset).ImGuiHandle, + Service.Get().GetDalamudTextureWrap(asset).Handle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), new(state.FontSize, state.FontSize), Vector2.Zero, diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs index fe89a2d1e..78ea6d233 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs @@ -3,13 +3,12 @@ using System.Linq; using System.Numerics; using System.Reflection; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.IoC.Internal; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -44,31 +43,31 @@ internal class ServicesWidget : IDataWindowWidget { var container = Service.Get(); - if (ImGui.CollapsingHeader("Dependencies")) + if (ImGui.CollapsingHeader("Dependencies"u8)) { - if (ImGui.Button("Clear selection")) + if (ImGui.Button("Clear selection"u8)) this.selectedNodes.Clear(); ImGui.SameLine(); switch (this.includeUnloadDependencies) { - case true when ImGui.Button("Show load-time dependencies"): + case true when ImGui.Button("Show load-time dependencies"u8): this.includeUnloadDependencies = false; this.dependencyNodes = null; break; - case false when ImGui.Button("Show unload-time dependencies"): + case false when ImGui.Button("Show unload-time dependencies"u8): this.includeUnloadDependencies = true; this.dependencyNodes = null; break; } this.dependencyNodes ??= ServiceDependencyNode.CreateTreeByLevel(this.includeUnloadDependencies); - var cellPad = ImGui.CalcTextSize("WW"); - var margin = ImGui.CalcTextSize("W\nW\nW"); + var cellPad = ImGui.CalcTextSize("WW"u8); + var margin = ImGui.CalcTextSize("W\nW\nW"u8); var rowHeight = cellPad.Y * 3; var width = ImGui.GetContentRegionAvail().X; if (ImGui.BeginChild( - "dependency-graph", + "dependency-graph"u8, new(width, (this.dependencyNodes.Count * (rowHeight + margin.Y)) + cellPad.Y), false, ImGuiWindowFlags.HorizontalScrollbar)) @@ -197,10 +196,10 @@ internal class ServicesWidget : IDataWindowWidget ImGui.SetCursorPos((new Vector2(rc.X, rc.Y) - pos) + ((cellSize - textSize) / 2)); ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero); - ImGui.TextUnformatted(node.DisplayedName); + ImGui.Text(node.DisplayedName); ImGui.SameLine(); ImGui.PushStyleColor(ImGuiCol.Text, node.TypeSuffixColor); - ImGui.TextUnformatted(node.TypeSuffix); + ImGui.Text(node.TypeSuffix); ImGui.PopStyleVar(); ImGui.PopStyleColor(); } @@ -238,7 +237,7 @@ internal class ServicesWidget : IDataWindowWidget } } - if (ImGui.CollapsingHeader("Singleton Services")) + if (ImGui.CollapsingHeader("Singleton Services"u8)) { foreach (var instance in container.Instances) { @@ -249,20 +248,20 @@ internal class ServicesWidget : IDataWindowWidget if (isPublic) { using var color = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - ImGui.Text("\t => PUBLIC!!!"); + ImGui.Text("\t => PUBLIC!!!"u8); } switch (instance.Value.Visibility) { case ObjectInstanceVisibility.Internal: - ImGui.Text("\t => Internally resolved"); + ImGui.Text("\t => Internally resolved"u8); break; case ObjectInstanceVisibility.ExposedToPlugins: var hasInterface = container.InterfaceToTypeMap.Values.Any(x => x == instance.Key); using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed, !hasInterface)) { - ImGui.Text("\t => Exposed to plugins!"); + ImGui.Text("\t => Exposed to plugins!"u8); ImGui.Text( hasInterface ? $"\t => Provided via interface: {container.InterfaceToTypeMap.First(x => x.Value == instance.Key).Key.FullName}" diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs index 4dee316c5..7fb2cc2bf 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; using Newtonsoft.Json; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -10,9 +10,9 @@ internal class StartInfoWidget : IDataWindowWidget { /// public string[]? CommandShortcuts { get; init; } = { "startinfo" }; - + /// - public string DisplayName { get; init; } = "Start Info"; + public string DisplayName { get; init; } = "Start Info"; /// public bool Ready { get; set; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs index 68e00799d..081f3ec96 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs @@ -1,8 +1,8 @@ -using Dalamud.Game.ClientState; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Interface.Utility; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,12 +12,12 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class TargetWidget : IDataWindowWidget { private bool resolveGameData; - + /// public string[]? CommandShortcuts { get; init; } = { "target" }; - + /// - public string DisplayName { get; init; } = "Target"; + public string DisplayName { get; init; } = "Target"; /// public bool Ready { get; set; } @@ -31,8 +31,8 @@ internal class TargetWidget : IDataWindowWidget /// public void Draw() { - ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); - + ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); + var clientState = Service.Get(); var targetMgr = Service.Get(); @@ -40,7 +40,7 @@ internal class TargetWidget : IDataWindowWidget { Util.PrintGameObject(targetMgr.Target, "CurrentTarget", this.resolveGameData); - ImGui.Text("Target"); + ImGui.Text("Target"u8); Util.ShowGameObjectStruct(targetMgr.Target); var tot = targetMgr.Target.TargetObject; @@ -49,7 +49,7 @@ internal class TargetWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); ImGui.Separator(); - ImGui.Text("ToT"); + ImGui.Text("ToT"u8); Util.ShowGameObjectStruct(tot); } @@ -67,32 +67,32 @@ internal class TargetWidget : IDataWindowWidget if (targetMgr.SoftTarget != null) Util.PrintGameObject(targetMgr.SoftTarget, "SoftTarget", this.resolveGameData); - + if (targetMgr.GPoseTarget != null) Util.PrintGameObject(targetMgr.GPoseTarget, "GPoseTarget", this.resolveGameData); - + if (targetMgr.MouseOverNameplateTarget != null) Util.PrintGameObject(targetMgr.MouseOverNameplateTarget, "MouseOverNameplateTarget", this.resolveGameData); - if (ImGui.Button("Clear CT")) + if (ImGui.Button("Clear CT"u8)) targetMgr.Target = null; - if (ImGui.Button("Clear FT")) + if (ImGui.Button("Clear FT"u8)) targetMgr.FocusTarget = null; var localPlayer = clientState.LocalPlayer; if (localPlayer != null) { - if (ImGui.Button("Set CT")) + if (ImGui.Button("Set CT"u8)) targetMgr.Target = localPlayer; - if (ImGui.Button("Set FT")) + if (ImGui.Button("Set FT"u8)) targetMgr.FocusTarget = localPlayer; } else { - ImGui.Text("LocalPlayer is null."); + ImGui.Text("LocalPlayer is null."u8); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs index f4086fe5a..cd72d751e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs @@ -1,4 +1,4 @@ -// ReSharper disable MethodSupportsCancellation // Using alternative method of cancelling tasks by throwing exceptions. +// ReSharper disable MethodSupportsCancellation // Using alternative method of cancelling tasks by throwing exceptions. using System.IO; using System.Linq; @@ -8,6 +8,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -16,8 +17,6 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Logging.Internal; using Dalamud.Utility; - -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -28,18 +27,18 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class TaskSchedulerWidget : IDataWindowWidget { private readonly FileDialogManager fileDialogManager = new(); - private readonly byte[] urlBytes = new byte[2048]; - private readonly byte[] localPathBytes = new byte[2048]; + private string url = "https://geo.mirror.pkgbuild.com/iso/2024.01.01/archlinux-2024.01.01-x86_64.iso"; + private string localPath = string.Empty; private Task? downloadTask = null; private (long Downloaded, long Total, float Percentage) downloadState; private CancellationTokenSource taskSchedulerCancelSource = new(); - + /// public string[]? CommandShortcuts { get; init; } = { "tasksched", "taskscheduler" }; - + /// - public string DisplayName { get; init; } = "Task Scheduler"; + public string DisplayName { get; init; } = "Task Scheduler"; /// public bool Ready { get; set; } @@ -48,9 +47,6 @@ internal class TaskSchedulerWidget : IDataWindowWidget public void Load() { this.Ready = true; - Encoding.UTF8.GetBytes( - "https://geo.mirror.pkgbuild.com/iso/2024.01.01/archlinux-2024.01.01-x86_64.iso", - this.urlBytes); } /// @@ -58,7 +54,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget { var framework = Service.Get(); - if (ImGui.Button("Clear list")) + if (ImGui.Button("Clear list"u8)) { TaskTracker.Clear(); } @@ -67,23 +63,23 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); ImGui.SameLine(); - if (ImGui.Button("Cancel using CancellationTokenSource")) + if (ImGui.Button("Cancel using CancellationTokenSource"u8)) { this.taskSchedulerCancelSource.Cancel(); this.taskSchedulerCancelSource = new(); } - ImGui.Text("Run in any thread: "); + ImGui.Text("Run in any thread: "u8); ImGui.SameLine(); - if (ImGui.Button("Short Task.Run")) + if (ImGui.Button("Short Task.Run"u8)) { Task.Run(() => { Thread.Sleep(500); }); } ImGui.SameLine(); - if (ImGui.Button("Task in task(Delay)")) + if (ImGui.Button("Task in task(Delay)"u8)) { var token = this.taskSchedulerCancelSource.Token; Task.Run(async () => await this.TestTaskInTaskDelay(token), token); @@ -91,14 +87,14 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Task in task(Sleep)")) + if (ImGui.Button("Task in task(Sleep)"u8)) { Task.Run(async () => await this.TestTaskInTaskSleep()); } ImGui.SameLine(); - if (ImGui.Button("Faulting task")) + if (ImGui.Button("Faulting task"u8)) { Task.Run(() => { @@ -108,43 +104,43 @@ internal class TaskSchedulerWidget : IDataWindowWidget }); } - ImGui.Text("Run in Framework.Update: "); + ImGui.Text("Run in Framework.Update: "u8); ImGui.SameLine(); - if (ImGui.Button("ASAP")) + if (ImGui.Button("ASAP"u8)) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - ASAP"), cancellationToken: this.taskSchedulerCancelSource.Token); } ImGui.SameLine(); - if (ImGui.Button("In 1s")) + if (ImGui.Button("In 1s"u8)) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 1s"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1)); } ImGui.SameLine(); - if (ImGui.Button("In 60f")) + if (ImGui.Button("In 60f"u8)) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 60f"), cancellationToken: this.taskSchedulerCancelSource.Token, delayTicks: 60); } ImGui.SameLine(); - if (ImGui.Button("In 1s+120f")) + if (ImGui.Button("In 1s+120f"u8)) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 1s+120f"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1), delayTicks: 120); } ImGui.SameLine(); - if (ImGui.Button("In 2s+60f")) + if (ImGui.Button("In 2s+60f"u8)) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 2s+60f"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(2), delayTicks: 60); } - if (ImGui.Button("Every 60f")) + if (ImGui.Button("Every 60f"u8)) { _ = framework.RunOnTick( async () => @@ -162,7 +158,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 1s")) + if (ImGui.Button("Every 1s"u8)) { _ = framework.RunOnTick( async () => @@ -180,7 +176,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 60f (Await)")) + if (ImGui.Button("Every 60f (Await)"u8)) { _ = framework.Run( async () => @@ -198,7 +194,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 1s (Await)")) + if (ImGui.Button("Every 1s (Await)"u8)) { _ = framework.Run( async () => @@ -216,7 +212,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("As long as it's in Framework Thread")) + if (ImGui.Button("As long as it's in Framework Thread"u8)) { Task.Run(async () => await framework.RunOnFrameworkThread(() => { Log.Information("Task dispatched from non-framework.update thread"); })); framework.RunOnFrameworkThread(() => { Log.Information("Task dispatched from framework.update thread"); }).Wait(); @@ -224,14 +220,14 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Error in 1s")) + if (ImGui.Button("Error in 1s"u8)) { _ = framework.RunOnTick(() => throw new Exception("Test Exception"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1)); } ImGui.SameLine(); - if (ImGui.Button("Freeze 1s")) + if (ImGui.Button("Freeze 1s"u8)) { _ = framework.RunOnFrameworkThread(() => Helper().Wait()); static async Task Helper() => await Task.Delay(1000); @@ -239,21 +235,21 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Freeze Completely")) + if (ImGui.Button("Freeze Completely"u8)) { _ = framework.Run(() => Helper().Wait()); static async Task Helper() => await Task.Delay(1000); } - if (ImGui.CollapsingHeader("Download")) + if (ImGui.CollapsingHeader("Download"u8)) { - ImGui.InputText("URL", this.urlBytes, (uint)this.urlBytes.Length); - ImGui.InputText("Local Path", this.localPathBytes, (uint)this.localPathBytes.Length); + ImGui.InputText("URL"u8, ref this.url); + ImGui.InputText("Local Path"u8, ref this.localPath); ImGui.SameLine(); - + if (ImGuiComponents.IconButton("##localpathpicker", FontAwesomeIcon.File)) { - var defaultFileName = Encoding.UTF8.GetString(this.urlBytes).Split('\0', 2)[0].Split('/').Last(); + var defaultFileName = this.url.Split('\0', 2)[0].Split('/').Last(); this.fileDialogManager.SaveFileDialog( "Choose a local path", "*", @@ -263,26 +259,23 @@ internal class TaskSchedulerWidget : IDataWindowWidget { if (accept) { - this.localPathBytes.AsSpan().Clear(); - Encoding.UTF8.GetBytes(newPath, this.localPathBytes.AsSpan()); + this.localPath = newPath; } }); } - ImGui.TextUnformatted($"{this.downloadState.Downloaded:##,###}/{this.downloadState.Total:##,###} ({this.downloadState.Percentage:0.00}%)"); + ImGui.Text($"{this.downloadState.Downloaded:##,###}/{this.downloadState.Total:##,###} ({this.downloadState.Percentage:0.00}%)"); using var disabled = - ImRaii.Disabled(this.downloadTask?.IsCompleted is false || this.localPathBytes[0] == 0); + ImRaii.Disabled(this.downloadTask?.IsCompleted is false || this.localPath[0] == 0); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Download"); + ImGui.Text("Download"u8); ImGui.SameLine(); - var downloadUsingGlobalScheduler = ImGui.Button("using default scheduler"); + var downloadUsingGlobalScheduler = ImGui.Button("using default scheduler"u8); ImGui.SameLine(); - var downloadUsingFramework = ImGui.Button("using Framework.Update"); + var downloadUsingFramework = ImGui.Button("using Framework.Update"u8); if (downloadUsingGlobalScheduler || downloadUsingFramework) { - var url = Encoding.UTF8.GetString(this.urlBytes).Split('\0', 2)[0]; - var localPath = Encoding.UTF8.GetString(this.localPathBytes).Split('\0', 2)[0]; var ct = this.taskSchedulerCancelSource.Token; this.downloadState = default; var factory = downloadUsingGlobalScheduler @@ -294,9 +287,9 @@ internal class TaskSchedulerWidget : IDataWindowWidget { try { - await using var to = File.Create(localPath); + await using var to = File.Create(this.localPath); using var client = new HttpClient(); - using var conn = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, ct); + using var conn = await client.GetAsync(this.url, HttpCompletionOption.ResponseHeadersRead, ct); this.downloadState.Total = conn.Content.Headers.ContentLength ?? -1L; await using var from = conn.Content.ReadAsStream(ct); var buffer = new byte[8192]; @@ -320,10 +313,10 @@ internal class TaskSchedulerWidget : IDataWindowWidget } catch (Exception e) { - Log.Error(e, "Failed to download {from} to {to}.", url, localPath); + Log.Error(e, "Failed to download {from} to {to}.", this.url, this.localPath); try { - File.Delete(localPath); + File.Delete(this.localPath); } catch { @@ -335,35 +328,35 @@ internal class TaskSchedulerWidget : IDataWindowWidget } } - if (ImGui.Button("Drown in tasks")) + if (ImGui.Button("Drown in tasks"u8)) { var token = this.taskSchedulerCancelSource.Token; Task.Run( - () => + () => { for (var i = 0; i < 100; i++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var j = 0; j < 100; j++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var k = 0; k < 100; k++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var l = 0; l < 100; l++) { token.ThrowIfCancellationRequested(); Task.Run( - async () => + async () => { for (var m = 0; m < 100; m++) { @@ -380,7 +373,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget } }); } - + ImGui.SameLine(); ImGuiHelpers.ScaledDummy(20); @@ -421,7 +414,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget { task.IsBeingViewed = true; - if (ImGui.Button("CANCEL (May not work)")) + if (ImGui.Button("CANCEL (May not work)"u8)) { try { @@ -437,13 +430,13 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); - ImGui.TextUnformatted(task.StackTrace?.ToString()); + ImGui.Text(task.StackTrace?.ToString()); if (task.Exception != null) { ImGuiHelpers.ScaledDummy(15); - ImGui.TextColored(ImGuiColors.DalamudRed, "EXCEPTION:"); - ImGui.TextUnformatted(task.Exception.ToString()); + ImGui.TextColored(ImGuiColors.DalamudRed, "EXCEPTION:"u8); + ImGui.Text(task.Exception.ToString()); } } else @@ -456,7 +449,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget this.fileDialogManager.Draw(); } - + private async Task TestTaskInTaskDelay(CancellationToken token) { await Task.Delay(5000, token); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs index ac48668fb..52fa0e822 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; @@ -6,6 +6,7 @@ using System.Reflection; using System.Runtime.Loader; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Components; using Dalamud.Interface.Textures; @@ -16,9 +17,6 @@ using Dalamud.Interface.Utility.Internal; using Dalamud.Plugin.Services; using Dalamud.Storage.Assets; using Dalamud.Utility; - -using ImGuiNET; - using TerraFX.Interop.DirectX; using TextureManager = Dalamud.Interface.Textures.Internal.TextureManager; @@ -73,7 +71,7 @@ internal class TexWidget : IDataWindowWidget private enum DrawBlameTableColumnUserId { - NativeAddress, + NativeAddress = 1, Actions, Name, Width, @@ -129,11 +127,11 @@ internal class TexWidget : IDataWindowWidget this.textureManager = Service.Get(); var conf = Service.Get(); - if (ImGui.Button("GC")) + if (ImGui.Button("GC"u8)) GC.Collect(); var useTexturePluginTracking = conf.UseTexturePluginTracking; - if (ImGui.Checkbox("Enable Texture Tracking", ref useTexturePluginTracking)) + if (ImGui.Checkbox("Enable Texture Tracking"u8, ref useTexturePluginTracking)) { conf.UseTexturePluginTracking = useTexturePluginTracking; conf.QueueSave(); @@ -142,7 +140,7 @@ internal class TexWidget : IDataWindowWidget var allBlames = this.textureManager.BlameTracker; lock (allBlames) { - ImGui.PushID("blames"); + ImGui.PushID("blames"u8); var sizeSum = allBlames.Sum(static x => Math.Max(0, x.RawSpecs.EstimatedBytes)); if (ImGui.CollapsingHeader( $"All Loaded Textures: {allBlames.Count:n0} ({Util.FormatBytes(sizeSum)})###header")) @@ -150,19 +148,19 @@ internal class TexWidget : IDataWindowWidget ImGui.PopID(); } - ImGui.PushID("loadedGameTextures"); + ImGui.PushID("loadedGameTextures"u8); if (ImGui.CollapsingHeader( $"Loaded Game Textures: {this.textureManager.Shared.ForDebugGamePathTextures.Count:n0}###header")) this.DrawLoadedTextures(this.textureManager.Shared.ForDebugGamePathTextures); ImGui.PopID(); - ImGui.PushID("loadedFileTextures"); + ImGui.PushID("loadedFileTextures"u8); if (ImGui.CollapsingHeader( $"Loaded File Textures: {this.textureManager.Shared.ForDebugFileSystemTextures.Count:n0}###header")) this.DrawLoadedTextures(this.textureManager.Shared.ForDebugFileSystemTextures); ImGui.PopID(); - ImGui.PushID("loadedManifestResourceTextures"); + ImGui.PushID("loadedManifestResourceTextures"u8); if (ImGui.CollapsingHeader( $"Loaded Manifest Resource Textures: {this.textureManager.Shared.ForDebugManifestResourceTextures.Count:n0}###header")) this.DrawLoadedTextures(this.textureManager.Shared.ForDebugManifestResourceTextures); @@ -170,7 +168,7 @@ internal class TexWidget : IDataWindowWidget lock (this.textureManager.Shared.ForDebugInvalidatedTextures) { - ImGui.PushID("invalidatedTextures"); + ImGui.PushID("invalidatedTextures"u8); if (ImGui.CollapsingHeader( $"Invalidated: {this.textureManager.Shared.ForDebugInvalidatedTextures.Count:n0}###header")) { @@ -186,7 +184,7 @@ internal class TexWidget : IDataWindowWidget { ImGuiComponents.DisabledButton("Paste from Clipboard"); } - else if (ImGui.Button("Paste from Clipboard")) + else if (ImGui.Button("Paste from Clipboard"u8)) { this.addedTextures.Add(new(Api10: this.textureManager.CreateFromClipboardAsync())); } @@ -226,14 +224,14 @@ internal class TexWidget : IDataWindowWidget ImGui.PopID(); } - if (ImGui.CollapsingHeader("UV")) + if (ImGui.CollapsingHeader("UV"u8)) { ImGui.PushID(nameof(this.DrawUvInput)); this.DrawUvInput(); ImGui.PopID(); } - if (ImGui.CollapsingHeader($"CropCopy##{this.DrawExistingTextureModificationArgs}")) + if (ImGui.CollapsingHeader($"CropCopy##{nameof(this.DrawExistingTextureModificationArgs)}")) { ImGui.PushID(nameof(this.DrawExistingTextureModificationArgs)); this.DrawExistingTextureModificationArgs(); @@ -248,7 +246,7 @@ internal class TexWidget : IDataWindowWidget ImGui.PushID(t.Id); if (ImGui.CollapsingHeader($"Tex #{t.Id} {t}###header", ImGuiTreeNodeFlags.DefaultOpen)) { - if (ImGui.Button("X")) + if (ImGui.Button("X"u8)) { runLater = () => { @@ -258,7 +256,7 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Save")) + if (ImGui.Button("Save"u8)) { _ = Service.Get().ShowTextureSaveMenuAsync( this.DisplayName, @@ -267,11 +265,11 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Copy Reference")) + if (ImGui.Button("Copy Reference"u8)) runLater = () => this.addedTextures.Add(t.CreateFromSharedLowLevelResource(this.textureManager)); ImGui.SameLine(); - if (ImGui.Button("CropCopy")) + if (ImGui.Button("CropCopy"u8)) { runLater = () => { @@ -297,7 +295,7 @@ internal class TexWidget : IDataWindowWidget { if (t.GetTexture(this.textureManager) is { } source) { - var psrv = (ID3D11ShaderResourceView*)source.ImGuiHandle; + var psrv = (ID3D11ShaderResourceView*)source.Handle.Handle; var rcsrv = psrv->AddRef() - 1; psrv->Release(); @@ -307,13 +305,13 @@ internal class TexWidget : IDataWindowWidget pres->Release(); pres->Release(); - ImGui.TextUnformatted($"RC: Resource({rcres})/View({rcsrv})"); - ImGui.TextUnformatted(source.ToString()); + ImGui.Text($"RC: Resource({rcres})/View({rcsrv})"); + ImGui.Text(source.ToString()); } else { - ImGui.TextUnformatted("RC: -"); - ImGui.TextUnformatted(" "); + ImGui.Text("RC: -"u8); + ImGui.Text(" "u8); } } @@ -325,16 +323,16 @@ internal class TexWidget : IDataWindowWidget if (this.inputTexScale != Vector2.Zero) scale *= this.inputTexScale; - ImGui.Image(tex.ImGuiHandle, scale, this.inputTexUv0, this.inputTexUv1, this.inputTintCol); + ImGui.Image(tex.Handle, scale, this.inputTexUv0, this.inputTexUv1, this.inputTintCol); } else { - ImGui.TextUnformatted(t.DescribeError() ?? "Loading"); + ImGui.Text(t.DescribeError() ?? "Loading"); } } catch (Exception e) { - ImGui.TextUnformatted(e.ToString()); + ImGui.Text(e.ToString()); } } @@ -348,10 +346,10 @@ internal class TexWidget : IDataWindowWidget { var im = Service.Get(); - var shouldSortAgain = ImGui.Button("Sort again"); + var shouldSortAgain = ImGui.Button("Sort again"u8); ImGui.SameLine(); - if (ImGui.Button("Reset Columns")) + if (ImGui.Button("Reset Columns"u8)) this.allLoadedTexturesTableName = "##table" + Environment.TickCount64; if (!ImGui.BeginTable( @@ -369,57 +367,57 @@ internal class TexWidget : IDataWindowWidget ImGui.TableSetupScrollFreeze(0, 1); ImGui.TableSetupColumn( - "Address", + "Address"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("0x7F0000000000").X, + ImGui.CalcTextSize("0x7F0000000000"u8).X, (uint)DrawBlameTableColumnUserId.NativeAddress); ImGui.TableSetupColumn( - "Actions", + "Actions"u8, ImGuiTableColumnFlags.WidthFixed | ImGuiTableColumnFlags.NoSort, iconWidths + (ImGui.GetStyle().FramePadding.X * 2 * numIcons) + (ImGui.GetStyle().ItemSpacing.X * 1 * numIcons), (uint)DrawBlameTableColumnUserId.Actions); ImGui.TableSetupColumn( - "Name", + "Name"u8, ImGuiTableColumnFlags.WidthStretch, 0f, (uint)DrawBlameTableColumnUserId.Name); ImGui.TableSetupColumn( - "Width", + "Width"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("000000").X, + ImGui.CalcTextSize("000000"u8).X, (uint)DrawBlameTableColumnUserId.Width); ImGui.TableSetupColumn( - "Height", + "Height"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("000000").X, + ImGui.CalcTextSize("000000"u8).X, (uint)DrawBlameTableColumnUserId.Height); ImGui.TableSetupColumn( - "Format", + "Format"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("R32G32B32A32_TYPELESS").X, + ImGui.CalcTextSize("R32G32B32A32_TYPELESS"u8).X, (uint)DrawBlameTableColumnUserId.Format); ImGui.TableSetupColumn( - "Size", + "Size"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("123.45 MB").X, + ImGui.CalcTextSize("123.45 MB"u8).X, (uint)DrawBlameTableColumnUserId.Size); ImGui.TableSetupColumn( - "Plugins", + "Plugins"u8, ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("Aaaaaaaaaa Aaaaaaaaaa Aaaaaaaaaa").X, + ImGui.CalcTextSize("Aaaaaaaaaa Aaaaaaaaaa Aaaaaaaaaa"u8).X, (uint)DrawBlameTableColumnUserId.Plugins); ImGui.TableHeadersRow(); var sortSpecs = ImGui.TableGetSortSpecs(); - if (sortSpecs.NativePtr is not null && (sortSpecs.SpecsDirty || shouldSortAgain)) + if (sortSpecs.Handle is not null && (sortSpecs.SpecsDirty || shouldSortAgain)) { allBlames.Sort( static (a, b) => { var sortSpecs = ImGui.TableGetSortSpecs(); - var specs = new Span(sortSpecs.NativePtr->Specs, sortSpecs.SpecsCount); + var specs = new Span(sortSpecs.Handle->Specs, sortSpecs.SpecsCount); Span sorted = stackalloc bool[(int)DrawBlameTableColumnUserId.ColumnCount]; foreach (ref var spec in specs) { @@ -451,7 +449,7 @@ internal class TexWidget : IDataWindowWidget sortSpecs.SpecsDirty = false; } - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(allBlames.Count); while (clipper.Step()) @@ -471,14 +469,14 @@ internal class TexWidget : IDataWindowWidget { _ = Service.Get().ShowTextureSaveMenuAsync( this.DisplayName, - $"{wrap.ImGuiHandle:X16}", + $"{wrap.Handle.Handle:X16}", Task.FromResult(wrap.CreateWrapSharingLowLevelResource())); } if (ImGui.IsItemHovered()) { ImGui.BeginTooltip(); - ImGui.Image(wrap.ImGuiHandle, wrap.Size); + ImGui.Image(wrap.Handle, wrap.Size); ImGui.EndTooltip(); } @@ -515,7 +513,7 @@ internal class TexWidget : IDataWindowWidget private unsafe void DrawLoadedTextures(ICollection textures) { var im = Service.Get(); - if (!ImGui.BeginTable("##table", 6)) + if (!ImGui.BeginTable("##table"u8, 6)) return; const int numIcons = 4; @@ -528,19 +526,19 @@ internal class TexWidget : IDataWindowWidget } ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("ID", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000").X); - ImGui.TableSetupColumn("Source", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("RefCount", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("RefCount__").X); - ImGui.TableSetupColumn("SelfRef", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("00.000___").X); + ImGui.TableSetupColumn("ID"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000"u8).X); + ImGui.TableSetupColumn("Source"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("RefCount"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("RefCount__"u8).X); + ImGui.TableSetupColumn("SelfRef"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("00.000___"u8).X); ImGui.TableSetupColumn( - "Actions", + "Actions"u8, ImGuiTableColumnFlags.WidthFixed, iconWidths + (ImGui.GetStyle().FramePadding.X * 2 * numIcons) + (ImGui.GetStyle().ItemSpacing.X * 1 * numIcons)); ImGui.TableHeadersRow(); - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(textures.Count); using (var enu = textures.GetEnumerator()) @@ -568,7 +566,7 @@ internal class TexWidget : IDataWindowWidget // Should not happen ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("?"); + ImGui.Text("?"u8); continue; } @@ -601,7 +599,7 @@ internal class TexWidget : IDataWindowWidget if (ImGui.IsItemHovered() && texture.GetWrapOrDefault(null) is { } immediate) { ImGui.BeginTooltip(); - ImGui.Image(immediate.ImGuiHandle, immediate.Size); + ImGui.Image(immediate.Handle, immediate.Size); ImGui.EndTooltip(); } @@ -617,7 +615,7 @@ internal class TexWidget : IDataWindowWidget if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) texture.ReleaseSelfReference(true); if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - ImGui.SetTooltip("Release self-reference immediately."); + ImGui.SetTooltip("Release self-reference immediately."u8); if (remain <= 0) ImGui.EndDisabled(); @@ -637,12 +635,12 @@ internal class TexWidget : IDataWindowWidget private void DrawGetFromGameIcon() { - ImGui.InputText("Icon ID", ref this.iconId, 32); - ImGui.Checkbox("HQ Item", ref this.hq); - ImGui.Checkbox("Hi-Res", ref this.hiRes); + ImGui.InputText("Icon ID"u8, ref this.iconId, 32); + ImGui.Checkbox("HQ Item"u8, ref this.hq); + ImGui.Checkbox("Hi-Res"u8, ref this.hiRes); ImGui.SameLine(); - if (ImGui.Button("Load Icon (Async)")) + if (ImGui.Button("Load Icon (Async)"u8)) { this.addedTextures.Add( new( @@ -653,7 +651,7 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Load Icon (Immediate)")) + if (ImGui.Button("Load Icon (Immediate)"u8)) this.addedTextures.Add(new(Api10ImmGameIcon: new(uint.Parse(this.iconId), this.hq, this.hiRes))); ImGuiHelpers.ScaledDummy(10); @@ -661,14 +659,14 @@ internal class TexWidget : IDataWindowWidget private void DrawGetFromGame() { - ImGui.InputText("Tex Path", ref this.inputTexPath, 255); + ImGui.InputText("Tex Path"u8, ref this.inputTexPath, 255); ImGui.SameLine(); - if (ImGui.Button("Load Tex (Async)")) + if (ImGui.Button("Load Tex (Async)"u8)) this.addedTextures.Add(new(Api10: this.textureManager.Shared.GetFromGame(this.inputTexPath).RentAsync())); ImGui.SameLine(); - if (ImGui.Button("Load Tex (Immediate)")) + if (ImGui.Button("Load Tex (Immediate)"u8)) this.addedTextures.Add(new(Api10ImmGamePath: this.inputTexPath)); ImGuiHelpers.ScaledDummy(10); @@ -676,14 +674,14 @@ internal class TexWidget : IDataWindowWidget private void DrawGetFromFile() { - ImGui.InputText("File Path", ref this.inputFilePath, 255); + ImGui.InputText("File Path"u8, ref this.inputFilePath, 255); ImGui.SameLine(); - if (ImGui.Button("Load File (Async)")) + if (ImGui.Button("Load File (Async)"u8)) this.addedTextures.Add(new(Api10: this.textureManager.Shared.GetFromFile(this.inputFilePath).RentAsync())); ImGui.SameLine(); - if (ImGui.Button("Load File (Immediate)")) + if (ImGui.Button("Load File (Immediate)"u8)) this.addedTextures.Add(new(Api10ImmFile: this.inputFilePath)); ImGuiHelpers.ScaledDummy(10); @@ -711,8 +709,7 @@ internal class TexWidget : IDataWindowWidget if (ImGui.Combo( "Assembly", ref this.inputManifestResourceAssemblyIndex, - this.inputManifestResourceAssemblyCandidateNames, - this.inputManifestResourceAssemblyCandidateNames.Length)) + this.inputManifestResourceAssemblyCandidateNames)) { this.inputManifestResourceNameIndex = 0; this.inputManifestResourceNameCandidates = null; @@ -729,8 +726,7 @@ internal class TexWidget : IDataWindowWidget ImGui.Combo( "Name", ref this.inputManifestResourceNameIndex, - this.inputManifestResourceNameCandidates, - this.inputManifestResourceNameCandidates.Length); + this.inputManifestResourceNameCandidates); var name = this.inputManifestResourceNameIndex >= 0 @@ -738,7 +734,7 @@ internal class TexWidget : IDataWindowWidget ? this.inputManifestResourceNameCandidates[this.inputManifestResourceNameIndex] : null; - if (ImGui.Button("Refresh Assemblies")) + if (ImGui.Button("Refresh Assemblies"u8)) { this.inputManifestResourceAssemblyIndex = 0; this.inputManifestResourceAssemblyCandidates = null; @@ -750,14 +746,14 @@ internal class TexWidget : IDataWindowWidget if (assembly is not null && name is not null) { ImGui.SameLine(); - if (ImGui.Button("Load File (Async)")) + if (ImGui.Button("Load File (Async)"u8)) { this.addedTextures.Add( new(Api10: this.textureManager.Shared.GetFromManifestResource(assembly, name).RentAsync())); } ImGui.SameLine(); - if (ImGui.Button("Load File (Immediate)")) + if (ImGui.Button("Load File (Immediate)"u8)) this.addedTextures.Add(new(Api10ImmManifestResource: (assembly, name))); } @@ -804,7 +800,7 @@ internal class TexWidget : IDataWindowWidget if (ImGui.InputFloat2(nameof(this.viewportTextureArgs.Uv1), ref vec2)) this.viewportTextureArgs.Uv1 = vec2; - if (ImGui.Button("Create") && this.viewportIndexInt >= 0 && this.viewportIndexInt < viewports.Size) + if (ImGui.Button("Create"u8) && this.viewportIndexInt >= 0 && this.viewportIndexInt < viewports.Size) { this.addedTextures.Add( new() @@ -846,15 +842,14 @@ internal class TexWidget : IDataWindowWidget ImGui.Combo( nameof(this.textureModificationArgs.DxgiFormat), ref this.renderTargetChoiceInt, - this.supportedRenderTargetFormatNames, - this.supportedRenderTargetFormatNames.Length); + this.supportedRenderTargetFormatNames); Span wh = stackalloc int[2]; wh[0] = this.textureModificationArgs.NewWidth; wh[1] = this.textureModificationArgs.NewHeight; - if (ImGui.InputInt2( + if (ImGui.InputInt( $"{nameof(this.textureModificationArgs.NewWidth)}/{nameof(this.textureModificationArgs.NewHeight)}", - ref wh[0])) + wh)) { this.textureModificationArgs.NewWidth = wh[0]; this.textureModificationArgs.NewHeight = wh[1]; diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs index e101fbd0b..5e5a077c3 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs @@ -1,10 +1,9 @@ -using System.Numerics; +using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.Toast; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// @@ -19,12 +18,12 @@ internal class ToastWidget : IDataWindowWidget private bool questToastSound; private int questToastIconId; private bool questToastCheckmark; - + /// public string[]? CommandShortcuts { get; init; } = { "toast" }; - + /// - public string DisplayName { get; init; } = "Toast"; + public string DisplayName { get; init; } = "Toast"; /// public bool Ready { get; set; } @@ -40,18 +39,18 @@ internal class ToastWidget : IDataWindowWidget { var toastGui = Service.Get(); - ImGui.InputText("Toast text", ref this.inputTextToast, 200); + ImGui.InputText("Toast text"u8, ref this.inputTextToast, 200); - ImGui.Combo("Toast Position", ref this.toastPosition, new[] { "Bottom", "Top", }, 2); - ImGui.Combo("Toast Speed", ref this.toastSpeed, new[] { "Slow", "Fast", }, 2); - ImGui.Combo("Quest Toast Position", ref this.questToastPosition, new[] { "Centre", "Right", "Left" }, 3); - ImGui.Checkbox("Quest Checkmark", ref this.questToastCheckmark); - ImGui.Checkbox("Quest Play Sound", ref this.questToastSound); - ImGui.InputInt("Quest Icon ID", ref this.questToastIconId); + ImGui.Combo("Toast Position", ref this.toastPosition, ["Bottom", "Top",], 2); + ImGui.Combo("Toast Speed", ref this.toastSpeed, ["Slow", "Fast",], 2); + ImGui.Combo("Quest Toast Position", ref this.questToastPosition, ["Centre", "Right", "Left"], 3); + ImGui.Checkbox("Quest Checkmark"u8, ref this.questToastCheckmark); + ImGui.Checkbox("Quest Play Sound"u8, ref this.questToastSound); + ImGui.InputInt("Quest Icon ID"u8, ref this.questToastIconId); ImGuiHelpers.ScaledDummy(new Vector2(10, 10)); - if (ImGui.Button("Show toast")) + if (ImGui.Button("Show toast"u8)) { toastGui.ShowNormal(this.inputTextToast, new ToastOptions { @@ -60,7 +59,7 @@ internal class ToastWidget : IDataWindowWidget }); } - if (ImGui.Button("Show Quest toast")) + if (ImGui.Button("Show Quest toast"u8)) { toastGui.ShowQuest(this.inputTextToast, new QuestToastOptions { @@ -71,7 +70,7 @@ internal class ToastWidget : IDataWindowWidget }); } - if (ImGui.Button("Show Error toast")) + if (ImGui.Button("Show Error toast"u8)) { toastGui.ShowError(this.inputTextToast); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs index 45f1ad715..e52a291ef 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs @@ -2,13 +2,11 @@ using System.Buffers.Binary; using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; - -using ImGuiNET; - using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -46,27 +44,27 @@ internal class UiColorWidget : IDataWindowWidget "BB.
" + "· Click on a color to copy the color code.
" + "· Hover on a color to preview the text with edge, when the next color has been used together."); - if (!ImGui.BeginTable("UIColor", 5)) + if (!ImGui.BeginTable("UIColor"u8, 5)) return; ImGui.TableSetupScrollFreeze(0, 1); - var rowidw = ImGui.CalcTextSize("9999999").X; - var colorw = ImGui.CalcTextSize("#999999").X; - colorw = Math.Max(colorw, ImGui.CalcTextSize("#AAAAAA").X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#BBBBBB").X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#CCCCCC").X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#DDDDDD").X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#EEEEEE").X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#FFFFFF").X); + var rowidw = ImGui.CalcTextSize("9999999"u8).X; + var colorw = ImGui.CalcTextSize("#999999"u8).X; + colorw = Math.Max(colorw, ImGui.CalcTextSize("#AAAAAA"u8).X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#BBBBBB"u8).X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#CCCCCC"u8).X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#DDDDDD"u8).X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#EEEEEE"u8).X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#FFFFFF"u8).X); colorw += ImGui.GetFrameHeight() + ImGui.GetStyle().FramePadding.X; - ImGui.TableSetupColumn("Row ID", ImGuiTableColumnFlags.WidthFixed, rowidw); - ImGui.TableSetupColumn("Dark", ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Light", ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Classic FF", ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Clear Blue", ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Row ID"u8, ImGuiTableColumnFlags.WidthFixed, rowidw); + ImGui.TableSetupColumn("Dark"u8, ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Light"u8, ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Classic FF"u8, ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Clear Blue"u8, ImGuiTableColumnFlags.WidthFixed, colorw); ImGui.TableHeadersRow(); - var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(colors.Count, ImGui.GetFrameHeightWithSpacing()); while (clipper.Step()) { @@ -89,7 +87,7 @@ internal class UiColorWidget : IDataWindowWidget ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted($"{id}"); + ImGui.Text($"{id}"); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); @@ -188,7 +186,7 @@ internal class UiColorWidget : IDataWindowWidget ImGui.GetColorU32(ImGuiCol.Text), rgbtext); - if (ImGui.InvisibleButton("##copy", size)) + if (ImGui.InvisibleButton("##copy"u8, size)) { ImGui.SetClipboardText(rgbtext); Service.Get().AddNotification( diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs index ec39e38f1..8d31168e2 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs @@ -5,6 +5,7 @@ using System.Numerics; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; using Dalamud.Interface.Colors; @@ -12,9 +13,6 @@ using Dalamud.Interface.Components; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; using Dalamud.Memory; - -using ImGuiNET; - using Lumina.Data.Files; using Lumina.Data.Parsing.Uld; @@ -92,18 +90,18 @@ internal class UldWidget : IDataWindowWidget uldNames = t.Result; break; case { Exception: { } loadException }: - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudRed, loadException.ToString()); + ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, loadException.ToString()); return; case { IsCanceled: true }: ClearTask(ref this.uldNamesTask); goto default; default: - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); return; } var selectedUldPrev = this.selectedUld; - ImGui.Combo("##selectUld", ref this.selectedUld, uldNames, uldNames.Length); + ImGui.Combo("##selectUld", ref this.selectedUld, uldNames); ImGui.SameLine(); if (ImGuiComponents.IconButton("selectUldLeft", FontAwesomeIcon.AngleLeft)) this.selectedUld = ((this.selectedUld + uldNames.Length) - 1) % uldNames.Length; @@ -111,7 +109,7 @@ internal class UldWidget : IDataWindowWidget if (ImGuiComponents.IconButton("selectUldRight", FontAwesomeIcon.AngleRight)) this.selectedUld = (this.selectedUld + 1) % uldNames.Length; ImGui.SameLine(); - ImGui.TextUnformatted("Select ULD File"); + ImGui.Text("Select ULD File"u8); if (selectedUldPrev != this.selectedUld) { // reset selected parts when changing ULD @@ -119,7 +117,7 @@ internal class UldWidget : IDataWindowWidget ClearTask(ref this.selectedUldFileTask); } - ImGui.Combo("##selectTheme", ref this.selectedTheme, ThemeDisplayNames, ThemeDisplayNames.Length); + ImGui.Combo("##selectTheme", ref this.selectedTheme, ThemeDisplayNames); ImGui.SameLine(); if (ImGuiComponents.IconButton("selectThemeLeft", FontAwesomeIcon.AngleLeft)) this.selectedTheme = ((this.selectedTheme + ThemeDisplayNames.Length) - 1) % ThemeDisplayNames.Length; @@ -127,7 +125,7 @@ internal class UldWidget : IDataWindowWidget if (ImGuiComponents.IconButton("selectThemeRight", FontAwesomeIcon.AngleRight)) this.selectedTheme = (this.selectedTheme + 1) % ThemeDisplayNames.Length; ImGui.SameLine(); - ImGui.TextUnformatted("Select Theme"); + ImGui.Text("Select Theme"u8); var dataManager = Service.Get(); var textureManager = Service.Get(); @@ -140,7 +138,7 @@ internal class UldWidget : IDataWindowWidget uld = this.selectedUldFileTask.Result; break; case { Exception: { } loadException }: - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudRed, $"Failed to load ULD file.\n{loadException}"); return; @@ -148,23 +146,23 @@ internal class UldWidget : IDataWindowWidget this.selectedUldFileTask = null; goto default; default: - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); return; } - if (ImGui.CollapsingHeader("Texture Entries")) + if (ImGui.CollapsingHeader("Texture Entries"u8)) { if (ForceNullable(uld.AssetData) is null) { - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.AssetData)} is not populated."); } - else if (ImGui.BeginTable("##uldTextureEntries", 3, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) + else if (ImGui.BeginTable("##uldTextureEntries"u8, 3, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) { - ImGui.TableSetupColumn("Id", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000").X); - ImGui.TableSetupColumn("Path", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("Preview___").X); + ImGui.TableSetupColumn("Id"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000"u8).X); + ImGui.TableSetupColumn("Path"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Actions"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("Preview___"u8).X); ImGui.TableHeadersRow(); foreach (var textureEntry in uld.AssetData) @@ -174,40 +172,40 @@ internal class UldWidget : IDataWindowWidget } } - if (ImGui.CollapsingHeader("Timeline##TimelineCollapsingHeader")) + if (ImGui.CollapsingHeader("Timeline##TimelineCollapsingHeader"u8)) { if (ForceNullable(uld.Timelines) is null) { - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.Timelines)} is not populated."); } else if (uld.Timelines.Length == 0) { - ImGui.TextUnformatted("No entry exists."); + ImGui.Text("No entry exists."u8); } else { - ImGui.SliderInt("Timeline##TimelineSlider", ref this.selectedTimeline, 0, uld.Timelines.Length - 1); + ImGui.SliderInt("Timeline##TimelineSlider"u8, ref this.selectedTimeline, 0, uld.Timelines.Length - 1); this.DrawTimelines(uld.Timelines[this.selectedTimeline]); } } - if (ImGui.CollapsingHeader("Parts##PartsCollapsingHeader")) + if (ImGui.CollapsingHeader("Parts##PartsCollapsingHeader"u8)) { if (ForceNullable(uld.Parts) is null) { - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.Parts)} is not populated."); } else if (uld.Parts.Length == 0) { - ImGui.TextUnformatted("No entry exists."); + ImGui.Text("No entry exists."u8); } else { - ImGui.SliderInt("Parts##PartsSlider", ref this.selectedParts, 0, uld.Parts.Length - 1); + ImGui.SliderInt("Parts##PartsSlider"u8, ref this.selectedParts, 0, uld.Parts.Length - 1); this.DrawParts(uld.Parts[this.selectedParts], uld.AssetData, textureManager); } } @@ -271,7 +269,7 @@ internal class UldWidget : IDataWindowWidget { var path = GetStringNullTerminated(textureEntry.Path); ImGui.TableNextColumn(); - ImGui.TextUnformatted(textureEntry.Id.ToString()); + ImGui.Text(textureEntry.Id.ToString()); ImGui.TableNextColumn(); this.TextColumnCopiable(path, false, false); @@ -280,27 +278,27 @@ internal class UldWidget : IDataWindowWidget if (string.IsNullOrWhiteSpace(path)) return; - ImGui.TextUnformatted("Preview"); + ImGui.Text("Preview"u8); if (ImGui.IsItemHovered()) { ImGui.BeginTooltip(); var texturePath = GetStringNullTerminated(textureEntry.Path); - ImGui.TextUnformatted($"Base path at {texturePath}:"); + ImGui.Text($"Base path at {texturePath}:"); if (textureManager.Shared.GetFromGame(texturePath).TryGetWrap(out var wrap, out var e)) - ImGui.Image(wrap.ImGuiHandle, wrap.Size); + ImGui.Image(wrap.Handle, wrap.Size); else if (e is not null) - ImGui.TextUnformatted(e.ToString()); + ImGui.Text(e.ToString()); if (this.selectedTheme != 0) { var texturePathThemed = this.ToThemedPath(texturePath); - ImGui.TextUnformatted($"Themed path at {texturePathThemed}:"); + ImGui.Text($"Themed path at {texturePathThemed}:"); if (textureManager.Shared.GetFromGame(texturePathThemed).TryGetWrap(out wrap, out e)) - ImGui.Image(wrap.ImGuiHandle, wrap.Size); + ImGui.Image(wrap.Handle, wrap.Size); else if (e is not null) - ImGui.TextUnformatted(e.ToString()); + ImGui.Text(e.ToString()); } ImGui.EndTooltip(); @@ -309,13 +307,13 @@ internal class UldWidget : IDataWindowWidget private void DrawTimelines(UldRoot.Timeline timeline) { - ImGui.SliderInt("FrameData", ref this.selectedFrameData, 0, timeline.FrameData.Length - 1); + ImGui.SliderInt("FrameData"u8, ref this.selectedFrameData, 0, timeline.FrameData.Length - 1); var frameData = timeline.FrameData[this.selectedFrameData]; - ImGui.TextUnformatted($"FrameInfo: {frameData.StartFrame} -> {frameData.EndFrame}"); + ImGui.Text($"FrameInfo: {frameData.StartFrame} -> {frameData.EndFrame}"); ImGui.Indent(); foreach (var frameDataKeyGroup in frameData.KeyGroups) { - ImGui.TextUnformatted($"{frameDataKeyGroup.Usage:G} {frameDataKeyGroup.Type:G}"); + ImGui.Text($"{frameDataKeyGroup.Usage:G} {frameDataKeyGroup.Type:G}"); foreach (var keyframe in frameDataKeyGroup.Frames) this.DrawTimelineKeyGroupFrame(keyframe); } @@ -328,147 +326,147 @@ internal class UldWidget : IDataWindowWidget switch (frame) { case BaseKeyframeData baseKeyframeData: - ImGui.TextUnformatted( + ImGui.Text( $"Time: {baseKeyframeData.Time} | Interpolation: {baseKeyframeData.Interpolation} | Acceleration: {baseKeyframeData.Acceleration} | Deceleration: {baseKeyframeData.Deceleration}"); break; case Float1Keyframe float1Keyframe: this.DrawTimelineKeyGroupFrame(float1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {float1Keyframe.Value}"); + ImGui.Text($" | Value: {float1Keyframe.Value}"); break; case Float2Keyframe float2Keyframe: this.DrawTimelineKeyGroupFrame(float2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {float2Keyframe.Value[0]} | Value2: {float2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {float2Keyframe.Value[0]} | Value2: {float2Keyframe.Value[1]}"); break; case Float3Keyframe float3Keyframe: this.DrawTimelineKeyGroupFrame(float3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {float3Keyframe.Value[0]} | Value2: {float3Keyframe.Value[1]} | Value3: {float3Keyframe.Value[2]}"); break; case SByte1Keyframe sbyte1Keyframe: this.DrawTimelineKeyGroupFrame(sbyte1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {sbyte1Keyframe.Value}"); + ImGui.Text($" | Value: {sbyte1Keyframe.Value}"); break; case SByte2Keyframe sbyte2Keyframe: this.DrawTimelineKeyGroupFrame(sbyte2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {sbyte2Keyframe.Value[0]} | Value2: {sbyte2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {sbyte2Keyframe.Value[0]} | Value2: {sbyte2Keyframe.Value[1]}"); break; case SByte3Keyframe sbyte3Keyframe: this.DrawTimelineKeyGroupFrame(sbyte3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {sbyte3Keyframe.Value[0]} | Value2: {sbyte3Keyframe.Value[1]} | Value3: {sbyte3Keyframe.Value[2]}"); break; case Byte1Keyframe byte1Keyframe: this.DrawTimelineKeyGroupFrame(byte1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {byte1Keyframe.Value}"); + ImGui.Text($" | Value: {byte1Keyframe.Value}"); break; case Byte2Keyframe byte2Keyframe: this.DrawTimelineKeyGroupFrame(byte2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {byte2Keyframe.Value[0]} | Value2: {byte2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {byte2Keyframe.Value[0]} | Value2: {byte2Keyframe.Value[1]}"); break; case Byte3Keyframe byte3Keyframe: this.DrawTimelineKeyGroupFrame(byte3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {byte3Keyframe.Value[0]} | Value2: {byte3Keyframe.Value[1]} | Value3: {byte3Keyframe.Value[2]}"); break; case Short1Keyframe short1Keyframe: this.DrawTimelineKeyGroupFrame(short1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {short1Keyframe.Value}"); + ImGui.Text($" | Value: {short1Keyframe.Value}"); break; case Short2Keyframe short2Keyframe: this.DrawTimelineKeyGroupFrame(short2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {short2Keyframe.Value[0]} | Value2: {short2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {short2Keyframe.Value[0]} | Value2: {short2Keyframe.Value[1]}"); break; case Short3Keyframe short3Keyframe: this.DrawTimelineKeyGroupFrame(short3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {short3Keyframe.Value[0]} | Value2: {short3Keyframe.Value[1]} | Value3: {short3Keyframe.Value[2]}"); break; case UShort1Keyframe ushort1Keyframe: this.DrawTimelineKeyGroupFrame(ushort1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {ushort1Keyframe.Value}"); + ImGui.Text($" | Value: {ushort1Keyframe.Value}"); break; case UShort2Keyframe ushort2Keyframe: this.DrawTimelineKeyGroupFrame(ushort2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {ushort2Keyframe.Value[0]} | Value2: {ushort2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {ushort2Keyframe.Value[0]} | Value2: {ushort2Keyframe.Value[1]}"); break; case UShort3Keyframe ushort3Keyframe: this.DrawTimelineKeyGroupFrame(ushort3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {ushort3Keyframe.Value[0]} | Value2: {ushort3Keyframe.Value[1]} | Value3: {ushort3Keyframe.Value[2]}"); break; case Int1Keyframe int1Keyframe: this.DrawTimelineKeyGroupFrame(int1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {int1Keyframe.Value}"); + ImGui.Text($" | Value: {int1Keyframe.Value}"); break; case Int2Keyframe int2Keyframe: this.DrawTimelineKeyGroupFrame(int2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {int2Keyframe.Value[0]} | Value2: {int2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {int2Keyframe.Value[0]} | Value2: {int2Keyframe.Value[1]}"); break; case Int3Keyframe int3Keyframe: this.DrawTimelineKeyGroupFrame(int3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {int3Keyframe.Value[0]} | Value2: {int3Keyframe.Value[1]} | Value3: {int3Keyframe.Value[2]}"); break; case UInt1Keyframe uint1Keyframe: this.DrawTimelineKeyGroupFrame(uint1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {uint1Keyframe.Value}"); + ImGui.Text($" | Value: {uint1Keyframe.Value}"); break; case UInt2Keyframe uint2Keyframe: this.DrawTimelineKeyGroupFrame(uint2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {uint2Keyframe.Value[0]} | Value2: {uint2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {uint2Keyframe.Value[0]} | Value2: {uint2Keyframe.Value[1]}"); break; case UInt3Keyframe uint3Keyframe: this.DrawTimelineKeyGroupFrame(uint3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {uint3Keyframe.Value[0]} | Value2: {uint3Keyframe.Value[1]} | Value3: {uint3Keyframe.Value[2]}"); break; case Bool1Keyframe bool1Keyframe: this.DrawTimelineKeyGroupFrame(bool1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value: {bool1Keyframe.Value}"); + ImGui.Text($" | Value: {bool1Keyframe.Value}"); break; case Bool2Keyframe bool2Keyframe: this.DrawTimelineKeyGroupFrame(bool2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted($" | Value1: {bool2Keyframe.Value[0]} | Value2: {bool2Keyframe.Value[1]}"); + ImGui.Text($" | Value1: {bool2Keyframe.Value[0]} | Value2: {bool2Keyframe.Value[1]}"); break; case Bool3Keyframe bool3Keyframe: this.DrawTimelineKeyGroupFrame(bool3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Value1: {bool3Keyframe.Value[0]} | Value2: {bool3Keyframe.Value[1]} | Value3: {bool3Keyframe.Value[2]}"); break; case ColorKeyframe colorKeyframe: this.DrawTimelineKeyGroupFrame(colorKeyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | Add: {colorKeyframe.AddRed} {colorKeyframe.AddGreen} {colorKeyframe.AddBlue} | Multiply: {colorKeyframe.MultiplyRed} {colorKeyframe.MultiplyGreen} {colorKeyframe.MultiplyBlue}"); break; case LabelKeyframe labelKeyframe: this.DrawTimelineKeyGroupFrame(labelKeyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.TextUnformatted( + ImGui.Text( $" | LabelCommand: {labelKeyframe.LabelCommand} | JumpId: {labelKeyframe.JumpId} | LabelId: {labelKeyframe.LabelId}"); break; } @@ -481,7 +479,7 @@ internal class UldWidget : IDataWindowWidget { for (var index = 0; index < partsData.Parts.Length; index++) { - ImGui.TextUnformatted($"Index: {index}"); + ImGui.Text($"Index: {index}"); var partsDataPart = partsData.Parts[index]; ImGui.SameLine(); @@ -496,14 +494,14 @@ internal class UldWidget : IDataWindowWidget if (path is null) { - ImGui.TextUnformatted($"Could not find texture for id {partsDataPart.TextureId}"); + ImGui.Text($"Could not find texture for id {partsDataPart.TextureId}"); continue; } var texturePath = GetStringNullTerminated(path); if (string.IsNullOrWhiteSpace(texturePath)) { - ImGui.TextUnformatted("Texture path is empty."); + ImGui.Text("Texture path is empty."u8); continue; } @@ -520,7 +518,7 @@ internal class UldWidget : IDataWindowWidget // neither the supposedly original path nor themed path had a file we could load. if (e is not null && e2 is not null) { - ImGui.TextUnformatted($"{texturePathThemed}: {e}\n{texturePath}: {e2}"); + ImGui.Text($"{texturePathThemed}: {e}\n{texturePath}: {e2}"); continue; } } @@ -535,7 +533,7 @@ internal class UldWidget : IDataWindowWidget { var uv0 = new Vector2(partsDataPart.U, partsDataPart.V); var uv1 = uv0 + partSize; - ImGui.Image(wrap.ImGuiHandle, partSize * ImGuiHelpers.GlobalScale, uv0 / wrap.Size, uv1 / wrap.Size); + ImGui.Image(wrap.Handle, partSize * ImGuiHelpers.GlobalScale, uv0 / wrap.Size, uv1 / wrap.Size); } if (ImGui.IsItemClicked()) @@ -544,8 +542,8 @@ internal class UldWidget : IDataWindowWidget if (ImGui.IsItemHovered()) { ImGui.BeginTooltip(); - ImGui.TextUnformatted("Click to copy:"); - ImGui.TextUnformatted(texturePath); + ImGui.Text("Click to copy:"u8); + ImGui.Text(texturePath); ImGui.EndTooltip(); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs index 019d743bc..f1f2476c9 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs @@ -1,9 +1,9 @@ using System.Diagnostics; using System.IO; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Storage; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -37,12 +37,12 @@ internal class VfsWidget : IDataWindowWidget var service = Service.Get(); var dalamud = Service.Get(); - ImGui.InputInt("Num bytes", ref this.numBytes); - ImGui.InputInt("Reps", ref this.reps); + ImGui.InputInt("Num bytes"u8, ref this.numBytes); + ImGui.InputInt("Reps"u8, ref this.reps); var path = Path.Combine(dalamud.StartInfo.WorkingDirectory!, "test.bin"); - if (ImGui.Button("Write")) + if (ImGui.Button("Write"u8)) { Log.Information("=== WRITING ==="); var data = new byte[this.numBytes]; @@ -61,7 +61,7 @@ internal class VfsWidget : IDataWindowWidget Log.Information("Took {Ms}ms in total", acc); } - if (ImGui.Button("Read")) + if (ImGui.Button("Read"u8)) { Log.Information("=== READING ==="); var stopwatch = new Stopwatch(); @@ -79,7 +79,7 @@ internal class VfsWidget : IDataWindowWidget Log.Information("Took {Ms}ms in total", acc); } - if (ImGui.Button("Test Config")) + if (ImGui.Button("Test Config"u8)) { var config = Service.Get(); diff --git a/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs b/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs index ff5af1556..91f7f02d9 100644 --- a/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs +++ b/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs @@ -1,9 +1,9 @@ using System.Numerics; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; diff --git a/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs b/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs index 1f633934f..fdb4faa13 100644 --- a/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs +++ b/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs @@ -1,8 +1,7 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Windowing; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows; /// @@ -22,35 +21,35 @@ public class HitchSettingsWindow : Window this.ShowCloseButton = true; this.RespectCloseHotkey = true; } - + /// public override void Draw() { var config = Service.Get(); var uiBuilderHitch = (float)config.UiBuilderHitch; - if (ImGui.SliderFloat("UiBuilderHitch", ref uiBuilderHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("UiBuilderHitch"u8, ref uiBuilderHitch, MinHitch, MaxHitch)) { config.UiBuilderHitch = uiBuilderHitch; config.QueueSave(); } var frameworkUpdateHitch = (float)config.FrameworkUpdateHitch; - if (ImGui.SliderFloat("FrameworkUpdateHitch", ref frameworkUpdateHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("FrameworkUpdateHitch"u8, ref frameworkUpdateHitch, MinHitch, MaxHitch)) { config.FrameworkUpdateHitch = frameworkUpdateHitch; config.QueueSave(); } - + var gameNetworkUpHitch = (float)config.GameNetworkUpHitch; - if (ImGui.SliderFloat("GameNetworkUpHitch", ref gameNetworkUpHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("GameNetworkUpHitch"u8, ref gameNetworkUpHitch, MinHitch, MaxHitch)) { config.GameNetworkUpHitch = gameNetworkUpHitch; config.QueueSave(); } - + var gameNetworkDownHitch = (float)config.GameNetworkDownHitch; - if (ImGui.SliderFloat("GameNetworkDownHitch", ref gameNetworkDownHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("GameNetworkDownHitch"u8, ref gameNetworkDownHitch, MinHitch, MaxHitch)) { config.GameNetworkDownHitch = gameNetworkDownHitch; config.QueueSave(); diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index db0109ee0..3536c9fe7 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -10,7 +10,7 @@ using System.Threading; using System.Threading.Tasks; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game.Command; @@ -34,8 +34,6 @@ using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Support; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.PluginInstaller; /// @@ -568,7 +566,7 @@ internal class PluginInstallerWindow : Window, IDisposable var windowSize = ImGui.GetWindowSize(); var titleHeight = ImGui.GetFontSize() + (ImGui.GetStyle().FramePadding.Y * 2); - using var loadingChild = ImRaii.Child("###installerLoadingFrame", new Vector2(-1, -1), false); + using var loadingChild = ImRaii.Child("###installerLoadingFrame"u8, new Vector2(-1, -1), false); if (loadingChild) { ImGui.GetWindowDrawList().PushClipRectFullScreen(); @@ -715,7 +713,7 @@ internal class PluginInstallerWindow : Window, IDisposable var prevSearchText = this.searchText; ImGui.SetNextItemWidth(searchInputWidth); searchTextChanged |= ImGui.InputTextWithHint( - "###XlPluginInstaller_Search", + "###XlPluginInstaller_Search"u8, Locs.Header_SearchPlaceholder, ref this.searchText, 100, @@ -1094,11 +1092,11 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.BeginPopupModal(modalTitle, ref this.feedbackModalDrawing, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoScrollbar)) { - ImGui.TextUnformatted(Locs.FeedbackModal_Text(this.feedbackPlugin.Name)); + ImGui.Text(Locs.FeedbackModal_Text(this.feedbackPlugin.Name)); if (this.feedbackPlugin?.FeedbackMessage != null) { - ImGuiHelpers.SafeTextWrapped(this.feedbackPlugin.FeedbackMessage); + ImGui.TextWrapped(this.feedbackPlugin.FeedbackMessage); } if (this.pluginListUpdatable.Any( @@ -1109,7 +1107,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Spacing(); - ImGui.InputTextMultiline("###FeedbackContent", ref this.feedbackModalBody, 1000, new Vector2(400, 200)); + ImGui.InputTextMultiline("###FeedbackContent"u8, ref this.feedbackModalBody, 1000, new Vector2(400, 200)); ImGui.Spacing(); @@ -1271,7 +1269,7 @@ internal class PluginInstallerWindow : Window, IDisposable var sortedChangelogs = changelogs?.Where(x => this.searchText.IsNullOrWhitespace() || new FuzzyMatcher(this.searchText.ToLowerInvariant(), MatchMode.FuzzyParts).Matches(x.Title.ToLowerInvariant()) > 0) .OrderByDescending(x => x.Date).ToList(); - if (sortedChangelogs == null || !sortedChangelogs.Any()) + if (sortedChangelogs == null || sortedChangelogs.Count == 0) { ImGui.TextColored( ImGuiColors.DalamudGrey2, @@ -1515,14 +1513,14 @@ internal class PluginInstallerWindow : Window, IDisposable var useContentWidth = ImGui.GetContentRegionAvail().X; - using var installerMainChild = ImRaii.Child("InstallerCategories", new Vector2(useContentWidth, useContentHeight * ImGuiHelpers.GlobalScale)); + using var installerMainChild = ImRaii.Child("InstallerCategories"u8, new Vector2(useContentWidth, useContentHeight * ImGuiHelpers.GlobalScale)); if (installerMainChild) { using var style = ImRaii.PushStyle(ImGuiStyleVar.CellPadding, ImGuiHelpers.ScaledVector2(5, 0)); try { - using (var categoriesChild = ImRaii.Child("InstallerCategoriesSelector", new Vector2(useMenuWidth * ImGuiHelpers.GlobalScale, -1), false)) + using (var categoriesChild = ImRaii.Child("InstallerCategoriesSelector"u8, new Vector2(useMenuWidth * ImGuiHelpers.GlobalScale, -1), false)) { if (categoriesChild) { @@ -1533,7 +1531,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); using var scrollingChild = - ImRaii.Child("ScrollingPlugins", new Vector2(-1, -1), false, ImGuiWindowFlags.NoBackground); + ImRaii.Child("ScrollingPlugins"u8, new Vector2(-1, -1), false, ImGuiWindowFlags.NoBackground); if (scrollingChild) { try @@ -1708,7 +1706,7 @@ internal class PluginInstallerWindow : Window, IDisposable break; default: - ImGui.TextUnformatted("You found a mysterious category. Please keep it to yourself."); + ImGui.Text("You found a mysterious category. Please keep it to yourself."u8); break; } @@ -1733,7 +1731,7 @@ internal class PluginInstallerWindow : Window, IDisposable break; default: - ImGui.TextUnformatted("You found a secret category. Please feel a sense of pride and accomplishment."); + ImGui.Text("You found a secret category. Please feel a sense of pride and accomplishment."u8); break; } @@ -1754,7 +1752,7 @@ internal class PluginInstallerWindow : Window, IDisposable break; default: - ImGui.TextUnformatted("You found a quiet category. Please don't wake it up."); + ImGui.Text("You found a quiet category. Please don't wake it up."u8); break; } @@ -1794,19 +1792,19 @@ internal class PluginInstallerWindow : Window, IDisposable var iconSize = ImGuiHelpers.ScaledVector2(64, 64); var cursorBeforeImage = ImGui.GetCursorPos(); - ImGui.Image(iconTex.ImGuiHandle, iconSize); + ImGui.Image(iconTex.Handle, iconSize); ImGui.SameLine(); if (this.testerError) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.TroubleIcon.Handle, iconSize); ImGui.SameLine(); } else if (this.testerUpdateAvailable) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.imageCache.UpdateIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.UpdateIcon.Handle, iconSize); ImGui.SameLine(); } @@ -1815,7 +1813,7 @@ internal class PluginInstallerWindow : Window, IDisposable var cursor = ImGui.GetCursorPos(); // Name - ImGui.Text("My Cool Plugin"); + ImGui.Text("My Cool Plugin"u8); // Download count var downloadCountText = Locs.PluginBody_AuthorWithDownloadCount("Plugin Enjoyer", 69420); @@ -1827,7 +1825,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SetCursorPos(cursor); // Description - ImGui.TextWrapped("This plugin does very many great things."); + ImGui.TextWrapped("This plugin does very many great things."u8); startCursor.Y += sectionSize; ImGui.SetCursorPos(startCursor); @@ -1837,7 +1835,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Indent(); // Description - ImGui.TextWrapped("This is a description.\nIt has multiple lines.\nTruly descriptive."); + ImGui.TextWrapped("This is a description.\nIt has multiple lines.\nTruly descriptive."u8); ImGuiHelpers.ScaledDummy(5); @@ -1871,7 +1869,7 @@ internal class PluginInstallerWindow : Window, IDisposable var width = ImGui.GetWindowWidth(); if (ImGui.BeginChild( - "pluginTestingImageScrolling", + "pluginTestingImageScrolling"u8, new Vector2(width - (70 * ImGuiHelpers.GlobalScale), (PluginImageCache.PluginImageHeight / thumbFactor) + scrollBarSize), false, ImGuiWindowFlags.HorizontalScrollbar | @@ -1889,13 +1887,13 @@ internal class PluginInstallerWindow : Window, IDisposable if (!imageTask.IsCompleted) { - ImGui.TextUnformatted("Loading..."); + ImGui.Text("Loading..."u8); continue; } if (imageTask.Exception is not null) { - ImGui.TextUnformatted(imageTask.Exception.ToString()); + ImGui.Text(imageTask.Exception.ToString()); continue; } @@ -1907,7 +1905,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.BeginPopup(popupId)) { - if (ImGui.ImageButton(image.ImGuiHandle, new Vector2(image.Width, image.Height))) + if (ImGui.ImageButton(image.Handle, new Vector2(image.Width, image.Height))) ImGui.CloseCurrentPopup(); ImGui.EndPopup(); @@ -1931,7 +1929,7 @@ internal class PluginInstallerWindow : Window, IDisposable } var size = ImGuiHelpers.ScaledVector2(xAct / thumbFactor, yAct / thumbFactor); - if (ImGui.ImageButton(image.ImGuiHandle, size)) + if (ImGui.ImageButton(image.Handle, size)) ImGui.OpenPopup(popupId); ImGui.PopStyleVar(); @@ -1963,7 +1961,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (!imageTask.IsCompleted) { - ImGui.Text("Loading..."); + ImGui.Text("Loading..."u8); return; } @@ -1971,45 +1969,45 @@ internal class PluginInstallerWindow : Window, IDisposable if (imageTask.Exception is { } exc) { - ImGui.TextUnformatted(exc.ToString()); + ImGui.Text(exc.ToString()); } else { var image = imageTask.Result; if (image.Width > maxWidth || image.Height > maxHeight) { - ImGui.TextUnformatted( + ImGui.Text( $"Image is larger than the maximum allowed resolution ({image.Width}x{image.Height} > {maxWidth}x{maxHeight})"); } if (requireSquare && image.Width != image.Height) - ImGui.TextUnformatted($"Image must be square! Current size: {image.Width}x{image.Height}"); + ImGui.Text($"Image must be square! Current size: {image.Width}x{image.Height}"); } ImGui.PopStyleColor(); } - ImGui.InputText("Icon Path", ref this.testerIconPath, 1000); + ImGui.InputText("Icon Path"u8, ref this.testerIconPath, 1000); if (this.testerIcon != null) CheckImageSize(this.testerIcon, PluginImageCache.PluginIconWidth, PluginImageCache.PluginIconHeight, true); - ImGui.InputText("Image 1 Path", ref this.testerImagePaths[0], 1000); + ImGui.InputText("Image 1 Path"u8, ref this.testerImagePaths[0], 1000); if (this.testerImages?.Length > 0) CheckImageSize(this.testerImages[0], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 2 Path", ref this.testerImagePaths[1], 1000); + ImGui.InputText("Image 2 Path"u8, ref this.testerImagePaths[1], 1000); if (this.testerImages?.Length > 1) CheckImageSize(this.testerImages[1], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 3 Path", ref this.testerImagePaths[2], 1000); + ImGui.InputText("Image 3 Path"u8, ref this.testerImagePaths[2], 1000); if (this.testerImages?.Length > 2) CheckImageSize(this.testerImages[2], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 4 Path", ref this.testerImagePaths[3], 1000); + ImGui.InputText("Image 4 Path"u8, ref this.testerImagePaths[3], 1000); if (this.testerImages?.Length > 3) CheckImageSize(this.testerImages[3], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 5 Path", ref this.testerImagePaths[4], 1000); + ImGui.InputText("Image 5 Path"u8, ref this.testerImagePaths[4], 1000); if (this.testerImages?.Length > 4) CheckImageSize(this.testerImages[4], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); var tm = Service.Get(); - if (ImGui.Button("Load")) + if (ImGui.Button("Load"u8)) { try { @@ -2041,8 +2039,8 @@ internal class PluginInstallerWindow : Window, IDisposable } } - ImGui.Checkbox("Failed", ref this.testerError); - ImGui.Checkbox("Has Update", ref this.testerUpdateAvailable); + ImGui.Checkbox("Failed"u8, ref this.testerError); + ImGui.Checkbox("Has Update"u8, ref this.testerUpdateAvailable); } private bool DrawPluginListLoading() @@ -2182,7 +2180,7 @@ internal class PluginInstallerWindow : Window, IDisposable } ImGui.PushStyleVar(ImGuiStyleVar.Alpha, iconAlpha); - ImGui.Image(iconTex.ImGuiHandle, iconSize); + ImGui.Image(iconTex.Handle, iconSize); ImGui.PopStyleVar(); ImGui.SameLine(); @@ -2193,13 +2191,13 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.Alpha, overlayAlpha); if (flags.HasFlag(PluginHeaderFlags.UpdateAvailable)) - ImGui.Image(this.imageCache.UpdateIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.UpdateIcon.Handle, iconSize); else if ((flags.HasFlag(PluginHeaderFlags.HasTrouble) && !pluginDisabled) || flags.HasFlag(PluginHeaderFlags.IsOrphan) || flags.HasFlag(PluginHeaderFlags.IsIncompatible)) - ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.TroubleIcon.Handle, iconSize); else if (flags.HasFlag(PluginHeaderFlags.IsInstallableOutdated)) - ImGui.Image(this.imageCache.OutdatedInstallableIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.OutdatedInstallableIcon.Handle, iconSize); else if (pluginDisabled) - ImGui.Image(this.imageCache.DisabledIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.DisabledIcon.Handle, iconSize); /* NOTE: Replaced by the checkmarks for now, let's see if that is fine else if (isLoaded && isThirdParty) ImGui.Image(this.imageCache.ThirdInstalledIcon.ImGuiHandle, iconSize); @@ -2207,7 +2205,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Image(this.imageCache.ThirdIcon.ImGuiHandle, iconSize); */ else if (isLoaded) - ImGui.Image(this.imageCache.InstalledIcon.ImGuiHandle, iconSize); + ImGui.Image(this.imageCache.InstalledIcon.Handle, iconSize); else ImGui.Dummy(iconSize); ImGui.PopStyleVar(); @@ -2220,12 +2218,12 @@ internal class PluginInstallerWindow : Window, IDisposable var cursor = ImGui.GetCursorPos(); // Name - ImGui.TextUnformatted(label); + ImGui.Text(label); // Verified Checkmark or dev plugin wrench { ImGui.SameLine(); - ImGui.Text(" "); + ImGui.Text(" "u8); ImGui.SameLine(); var verifiedOutlineColor = KnownColor.White.Vector() with { W = 0.75f }; @@ -2302,7 +2300,7 @@ internal class PluginInstallerWindow : Window, IDisposable else bodyText += Locs.PluginBody_Outdated_WaitForUpdate; - ImGuiHelpers.SafeTextWrapped(bodyText); + ImGui.TextWrapped(bodyText); ImGui.PopStyleColor(); } @@ -2350,14 +2348,14 @@ internal class PluginInstallerWindow : Window, IDisposable { if (!string.IsNullOrWhiteSpace(manifest.Punchline)) { - ImGuiHelpers.SafeTextWrapped(manifest.Punchline); + ImGui.TextWrapped(manifest.Punchline); } else if (!string.IsNullOrWhiteSpace(manifest.Description)) { const int punchlineLen = 200; var firstLine = manifest.Description.Split(new[] { '\r', '\n' })[0]; - ImGuiHelpers.SafeTextWrapped(firstLine.Length < punchlineLen + ImGui.TextWrapped(firstLine.Length < punchlineLen ? firstLine : firstLine[..punchlineLen]); } @@ -2395,7 +2393,7 @@ internal class PluginInstallerWindow : Window, IDisposable icon = this.imageCache.CorePluginIcon; } - ImGui.Image(icon.ImGuiHandle, iconSize); + ImGui.Image(icon.Handle, iconSize); } else { @@ -2408,7 +2406,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); var cursor = ImGui.GetCursorPos(); - ImGui.TextUnformatted(log.Title); + ImGui.Text(log.Title); ImGui.SameLine(); ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{log.Version}"); @@ -2431,7 +2429,7 @@ internal class PluginInstallerWindow : Window, IDisposable cursor.Y += ImGui.GetTextLineHeightWithSpacing(); ImGui.SetCursorPos(cursor); - ImGuiHelpers.SafeTextWrapped(log.Text); + ImGui.TextWrapped(log.Text); var endCursor = ImGui.GetCursorPos(); @@ -2528,7 +2526,7 @@ internal class PluginInstallerWindow : Window, IDisposable // Description if (!string.IsNullOrWhiteSpace(manifest.Description)) { - ImGuiHelpers.SafeTextWrapped(manifest.Description); + ImGui.TextWrapped(manifest.Description); } ImGuiHelpers.ScaledDummy(5); @@ -2590,7 +2588,7 @@ internal class PluginInstallerWindow : Window, IDisposable var hasTestingVersionAvailable = configuration.DoPluginTest && PluginManager.HasTestingVersion(manifest); - if (ImGui.BeginPopupContextItem("ItemContextMenu")) + if (ImGui.BeginPopupContextItem("ItemContextMenu"u8)) { if (hasTestingVersionAvailable) { @@ -2831,7 +2829,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Indent(); // Name - ImGui.TextUnformatted(manifest.Name); + ImGui.Text(manifest.Name); // Download count var downloadText = plugin.IsDev @@ -2870,7 +2868,7 @@ internal class PluginInstallerWindow : Window, IDisposable // Description if (!string.IsNullOrWhiteSpace(manifest.Description)) { - ImGuiHelpers.SafeTextWrapped(manifest.Description); + ImGui.TextWrapped(manifest.Description); } // Working Plugin ID @@ -2897,7 +2895,7 @@ internal class PluginInstallerWindow : Window, IDisposable .OrderBy(cInfo => cInfo.Value.DisplayOrder) .ThenBy(cInfo => cInfo.Key)) { - ImGuiHelpers.SafeTextWrapped($"{command.Key} → {command.Value.HelpMessage}"); + ImGui.TextWrapped($"{command.Key} → {command.Value.HelpMessage}"); } ImGuiHelpers.ScaledDummy(3); @@ -2982,11 +2980,11 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, new Vector2(7, 5)); - if (ImGui.BeginChild("##changelog", new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize)) + if (ImGui.BeginChild("##changelog"u8, new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize)) { - ImGui.Text("Changelog:"); + ImGui.Text("Changelog:"u8); ImGuiHelpers.ScaledDummy(2); - ImGuiHelpers.SafeTextWrapped(changelog!); + ImGui.TextWrapped(changelog!); } ImGui.EndChild(); @@ -2995,12 +2993,12 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PopStyleColor(2); } - private void DrawInstalledPluginContextMenu(LocalPlugin plugin, PluginTestingOptIn? optIn) + private unsafe void DrawInstalledPluginContextMenu(LocalPlugin plugin, PluginTestingOptIn? optIn) { var pluginManager = Service.Get(); var configuration = Service.Get(); - if (ImGui.BeginPopupContextItem("InstalledItemContextMenu")) + if (ImGui.BeginPopupContextItem("InstalledItemContextMenu"u8)) { if (configuration.DoPluginTest) { @@ -3008,7 +3006,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (repoManifest?.IsTestingExclusive == true) ImGui.BeginDisabled(); - if (ImGui.MenuItem(Locs.PluginContext_TestingOptIn, string.Empty, optIn != null)) + if (ImGui.MenuItem(Locs.PluginContext_TestingOptIn, optIn != null)) { if (optIn != null) { @@ -3123,7 +3121,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); - ImGui.TextUnformatted(profile.Name); + ImGui.Text(profile.Name); didAny = true; } @@ -3426,7 +3424,7 @@ internal class PluginInstallerWindow : Window, IDisposable { if (!devPlugin.IsLoaded) { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, "You have to load this plugin to see validation issues."); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, "You have to load this plugin to see validation issues."u8); } else { @@ -3437,7 +3435,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Text(FontAwesomeIcon.Check.ToIconString()); ImGui.PopFont(); ImGui.SameLine(); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.HealerGreen, "No validation issues found in this plugin!"); + ImGui.TextColoredWrapped(ImGuiColors.HealerGreen, "No validation issues found in this plugin!"u8); } else { @@ -3470,7 +3468,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Dismiss this issue"); + ImGui.SetTooltip("Dismiss this issue"u8); } } @@ -3508,7 +3506,7 @@ internal class PluginInstallerWindow : Window, IDisposable using (ImRaii.PushColor(ImGuiCol.Text, thisProblemIsDismissed ? ImGuiColors.DalamudGrey : ImGuiColors.DalamudWhite)) { - ImGuiHelpers.SafeTextWrapped(problem.GetLocalizedDescription()); + ImGui.TextWrapped(problem.GetLocalizedDescription()); } } } @@ -3730,7 +3728,7 @@ internal class PluginInstallerWindow : Window, IDisposable var popupId = $"plugin{index}image{i}"; if (ImGui.BeginPopup(popupId)) { - if (ImGui.ImageButton(image.ImGuiHandle, new Vector2(image.Width, image.Height))) + if (ImGui.ImageButton(image.Handle, new Vector2(image.Width, image.Height))) ImGui.CloseCurrentPopup(); ImGui.EndPopup(); @@ -3754,7 +3752,7 @@ internal class PluginInstallerWindow : Window, IDisposable } var size = ImGuiHelpers.ScaledVector2(xAct / thumbFactor, yAct / thumbFactor); - if (ImGui.ImageButton(image.ImGuiHandle, size)) + if (ImGui.ImageButton(image.Handle, size)) ImGui.OpenPopup(popupId); ImGui.PopStyleVar(); @@ -3978,7 +3976,7 @@ internal class PluginInstallerWindow : Window, IDisposable { var positionOffset = ImGuiHelpers.ScaledVector2(0.0f, 1.0f); var cursorStart = ImGui.GetCursorPos() + positionOffset; - ImGui.PushFont(UiBuilder.IconFont); + ImGui.PushFont(InterfaceManager.IconFont); ImGui.PushStyleColor(ImGuiCol.Text, outline); foreach (var x in Enumerable.Range(-1, 3)) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs index 114124738..fb2719868 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs @@ -1,8 +1,9 @@ -using System.Linq; +using System.Linq; using System.Numerics; using System.Threading.Tasks; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -14,7 +15,6 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Profiles; using Dalamud.Utility; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.PluginInstaller; @@ -108,37 +108,37 @@ internal class ProfileManagerWidget { if (popup) { - using var scrolling = ImRaii.Child("###scrolling", new Vector2(-1, -1)); + using var scrolling = ImRaii.Child("###scrolling"u8, new Vector2(-1, -1)); if (scrolling) { - ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphOne); + ImGui.TextWrapped(Locs.TutorialParagraphOne); ImGuiHelpers.ScaledDummy(5); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphTwo); + ImGui.TextWrapped(Locs.TutorialParagraphTwo); ImGuiHelpers.ScaledDummy(5); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphThree); + ImGui.TextWrapped(Locs.TutorialParagraphThree); ImGuiHelpers.ScaledDummy(5); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphFour); + ImGui.TextWrapped(Locs.TutorialParagraphFour); ImGuiHelpers.ScaledDummy(5); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommands); + ImGui.TextWrapped(Locs.TutorialCommands); ImGui.Bullet(); ImGui.SameLine(); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnable); + ImGui.TextWrapped(Locs.TutorialCommandsEnable); ImGui.Bullet(); ImGui.SameLine(); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsDisable); + ImGui.TextWrapped(Locs.TutorialCommandsDisable); ImGui.Bullet(); ImGui.SameLine(); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsToggle); + ImGui.TextWrapped(Locs.TutorialCommandsToggle); - ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnd); + ImGui.TextWrapped(Locs.TutorialCommandsEnd); ImGuiHelpers.ScaledDummy(5); var buttonWidth = 120f; ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2); - if (ImGui.Button("OK", new Vector2(buttonWidth, 40))) + if (ImGui.Button("OK"u8, new Vector2(buttonWidth, 40))) { ImGui.CloseCurrentPopup(); } @@ -202,7 +202,7 @@ internal class ProfileManagerWidget var windowSize = ImGui.GetWindowSize(); - using var profileChooserChild = ImRaii.Child("###profileChooserScrolling"); + using var profileChooserChild = ImRaii.Child("###profileChooserScrolling"u8); if (profileChooserChild) { Guid? toCloneGuid = null; @@ -378,7 +378,7 @@ internal class ProfileManagerWidget ImGui.SameLine(); ImGui.SetNextItemWidth(windowSize.X / 3); - if (ImGui.InputText("###profileNameInput", ref this.profileNameEdit, 255)) + if (ImGui.InputText("###profileNameInput"u8, ref this.profileNameEdit, 255)) { profile.Name = this.profileNameEdit; } @@ -400,8 +400,8 @@ internal class ProfileManagerWidget ImGuiHelpers.ScaledDummy(5); - ImGui.TextUnformatted(Locs.StartupBehavior); - if (ImGui.BeginCombo("##startupBehaviorPicker", Locs.PolicyToLocalisedName(profile.StartupPolicy))) + ImGui.Text(Locs.StartupBehavior); + if (ImGui.BeginCombo("##startupBehaviorPicker"u8, Locs.PolicyToLocalisedName(profile.StartupPolicy))) { foreach (var policy in Enum.GetValues(typeof(ProfileModelV1.ProfileStartupPolicy)).Cast()) { @@ -420,7 +420,7 @@ internal class ProfileManagerWidget ImGui.Separator(); var wantPluginAddPopup = false; - using var pluginListChild = ImRaii.Child("###profileEditorPluginList"); + using var pluginListChild = ImRaii.Child("###profileEditorPluginList"u8); if (pluginListChild) { var pluginLineHeight = 32 * ImGuiHelpers.GlobalScale; @@ -439,13 +439,13 @@ internal class ProfileManagerWidget pic.TryGetIcon(pmPlugin, pmPlugin.Manifest, pmPlugin.IsThirdParty, out var icon, out _); icon ??= pic.DefaultIcon; - ImGui.Image(icon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(icon.Handle, new Vector2(pluginLineHeight)); if (pmPlugin.IsDev) { ImGui.SetCursorPos(cursorBeforeIcon); ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.7f); - ImGui.Image(pic.DevPluginIcon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DevPluginIcon.Handle, new Vector2(pluginLineHeight)); ImGui.PopStyleVar(); } @@ -456,13 +456,13 @@ internal class ProfileManagerWidget var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.TextUnformatted(text); + ImGui.Text(text); ImGui.SetCursorPos(before); } else { - ImGui.Image(pic.DefaultIcon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DefaultIcon.Handle, new Vector2(pluginLineHeight)); ImGui.SameLine(); var text = Locs.NotInstalled(profileEntry.InternalName); @@ -470,7 +470,7 @@ internal class ProfileManagerWidget var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.TextUnformatted(text); + ImGui.Text(text); var firstAvailableInstalled = pm.InstalledPlugins.FirstOrDefault(x => x.InternalName == profileEntry.InternalName); var installable = @@ -572,7 +572,7 @@ internal class ProfileManagerWidget ImGuiHelpers.ScaledDummy(5); ImGui.SameLine(); - ImGui.TextUnformatted(addPluginsText); + ImGui.Text(addPluginsText); ImGuiHelpers.ScaledDummy(10); } diff --git a/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs b/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs index 397262ed0..b8e10020e 100644 --- a/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Numerics; using System.Reflection; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Hooking.Internal; using Dalamud.Interface.Components; @@ -13,7 +14,6 @@ using Dalamud.Interface.Windowing; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows; @@ -45,17 +45,17 @@ internal class PluginStatWindow : Window { var pluginManager = Service.Get(); - using var tabBar = ImRaii.TabBar("Stat Tabs"); + using var tabBar = ImRaii.TabBar("Stat Tabs"u8); if (!tabBar) return; - using (var tabItem = ImRaii.TabItem("Draw times")) + using (var tabItem = ImRaii.TabItem("Draw times"u8)) { if (tabItem) { var doStats = UiBuilder.DoStats; - if (ImGui.Checkbox("Enable Draw Time Tracking", ref doStats)) + if (ImGui.Checkbox("Enable Draw Time Tracking"u8, ref doStats)) { UiBuilder.DoStats = doStats; } @@ -63,7 +63,7 @@ internal class PluginStatWindow : Window if (doStats) { ImGui.SameLine(); - if (ImGui.Button("Reset")) + if (ImGui.Button("Reset"u8)) { foreach (var plugin in pluginManager.InstalledPlugins) { @@ -87,13 +87,13 @@ internal class PluginStatWindow : Window ImGuiComponents.TextWithLabel("Collective Average", $"{(loadedPlugins.Any() ? totalAverage / loadedPlugins.Count() / 10000f : 0):F4}ms", "Average of all average draw times"); ImGui.InputTextWithHint( - "###PluginStatWindow_DrawSearch", - "Search", + "###PluginStatWindow_DrawSearch"u8, + "Search"u8, ref this.drawSearchText, 500); using var table = ImRaii.Table( - "##PluginStatsDrawTimes", + "##PluginStatsDrawTimes"u8, 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.SizingStretchProp @@ -106,10 +106,10 @@ internal class PluginStatWindow : Window if (table) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Plugin"); - ImGui.TableSetupColumn("Last", ImGuiTableColumnFlags.NoSort); // Changes too fast to sort - ImGui.TableSetupColumn("Longest"); - ImGui.TableSetupColumn("Average"); + ImGui.TableSetupColumn("Plugin"u8); + ImGui.TableSetupColumn("Last"u8, ImGuiTableColumnFlags.NoSort); // Changes too fast to sort + ImGui.TableSetupColumn("Longest"u8); + ImGui.TableSetupColumn("Average"u8); ImGui.TableHeadersRow(); var sortSpecs = ImGui.TableGetSortSpecs(); @@ -159,13 +159,13 @@ internal class PluginStatWindow : Window } } - using (var tabItem = ImRaii.TabItem("Framework times")) + using (var tabItem = ImRaii.TabItem("Framework times"u8)) { if (tabItem) { var doStats = Framework.StatsEnabled; - if (ImGui.Checkbox("Enable Framework Update Tracking", ref doStats)) + if (ImGui.Checkbox("Enable Framework Update Tracking"u8, ref doStats)) { Framework.StatsEnabled = doStats; } @@ -173,7 +173,7 @@ internal class PluginStatWindow : Window if (doStats) { ImGui.SameLine(); - if (ImGui.Button("Reset")) + if (ImGui.Button("Reset"u8)) { Framework.StatsHistory.Clear(); } @@ -189,13 +189,13 @@ internal class PluginStatWindow : Window ImGuiComponents.TextWithLabel("Collective Average", $"{(statsHistory.Any() ? totalAverage / statsHistory.Length : 0):F4}ms", "Average of all average update times"); ImGui.InputTextWithHint( - "###PluginStatWindow_FrameworkSearch", - "Search", + "###PluginStatWindow_FrameworkSearch"u8, + "Search"u8, ref this.frameworkSearchText, 500); using var table = ImRaii.Table( - "##PluginStatsFrameworkTimes", + "##PluginStatsFrameworkTimes"u8, 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.SizingStretchProp @@ -207,10 +207,10 @@ internal class PluginStatWindow : Window if (table) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Method", ImGuiTableColumnFlags.None, 250); - ImGui.TableSetupColumn("Last", ImGuiTableColumnFlags.NoSort, 50); // Changes too fast to sort - ImGui.TableSetupColumn("Longest", ImGuiTableColumnFlags.None, 50); - ImGui.TableSetupColumn("Average", ImGuiTableColumnFlags.None, 50); + ImGui.TableSetupColumn("Method"u8, ImGuiTableColumnFlags.None, 250); + ImGui.TableSetupColumn("Last"u8, ImGuiTableColumnFlags.NoSort, 50); // Changes too fast to sort + ImGui.TableSetupColumn("Longest"u8, ImGuiTableColumnFlags.None, 50); + ImGui.TableSetupColumn("Average"u8, ImGuiTableColumnFlags.None, 50); ImGui.TableHeadersRow(); var sortSpecs = ImGui.TableGetSortSpecs(); @@ -261,20 +261,20 @@ internal class PluginStatWindow : Window } } - using (var tabItem = ImRaii.TabItem("Hooks")) + using (var tabItem = ImRaii.TabItem("Hooks"u8)) { if (tabItem) { - ImGui.Checkbox("Show Dalamud Hooks", ref this.showDalamudHooks); + ImGui.Checkbox("Show Dalamud Hooks"u8, ref this.showDalamudHooks); ImGui.InputTextWithHint( - "###PluginStatWindow_HookSearch", - "Search", + "###PluginStatWindow_HookSearch"u8, + "Search"u8, ref this.hookSearchText, 500); using var table = ImRaii.Table( - "##PluginStatsHooks", + "##PluginStatsHooks"u8, 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.SizingStretchProp @@ -285,10 +285,10 @@ internal class PluginStatWindow : Window if (table) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Detour Method", ImGuiTableColumnFlags.None, 250); - ImGui.TableSetupColumn("Address", ImGuiTableColumnFlags.None, 100); - ImGui.TableSetupColumn("Status", ImGuiTableColumnFlags.None, 40); - ImGui.TableSetupColumn("Backend", ImGuiTableColumnFlags.None, 40); + ImGui.TableSetupColumn("Detour Method"u8, ImGuiTableColumnFlags.None, 250); + ImGui.TableSetupColumn("Address"u8, ImGuiTableColumnFlags.None, 100); + ImGui.TableSetupColumn("Status"u8, ImGuiTableColumnFlags.None, 40); + ImGui.TableSetupColumn("Backend"u8, ImGuiTableColumnFlags.None, 40); ImGui.TableHeadersRow(); foreach (var (guid, trackedHook) in HookManager.TrackedHooks) @@ -335,7 +335,7 @@ internal class PluginStatWindow : Window if (trackedHook.Hook.IsDisposed) { - ImGui.Text("Disposed"); + ImGui.Text("Disposed"u8); } else { diff --git a/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs b/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs index 28dcdb117..abe8d1584 100644 --- a/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs @@ -3,12 +3,12 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility.Numerics; using Dalamud.Utility.Timing; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -43,11 +43,11 @@ public class ProfilerWindow : Window var actualMin = Timings.AllTimings.Keys.Min(x => x.StartTime); var actualMax = Timings.AllTimings.Keys.Max(x => x.EndTime); - ImGui.Text("Timings"); + ImGui.Text("Timings"u8); var childHeight = Math.Max(300, 20 * (2.5f + this.occupied.Count)); - if (ImGui.BeginChild("Timings", new Vector2(0, childHeight), true)) + if (ImGui.BeginChild("Timings"u8, new Vector2(0, childHeight), true)) { var pos = ImGui.GetCursorScreenPos(); @@ -178,12 +178,12 @@ public class ProfilerWindow : Window if (rectInfo.Hover) { ImGui.BeginTooltip(); - ImGui.TextUnformatted(rectInfo.Timing.Name); - ImGui.TextUnformatted(rectInfo.Timing.MemberName); - ImGui.TextUnformatted($"{rectInfo.Timing.FileName}:{rectInfo.Timing.LineNumber}"); - ImGui.TextUnformatted($"Duration: {rectInfo.Timing.Duration}ms"); + ImGui.Text(rectInfo.Timing.Name); + ImGui.Text(rectInfo.Timing.MemberName); + ImGui.Text($"{rectInfo.Timing.FileName}:{rectInfo.Timing.LineNumber}"); + ImGui.Text($"Duration: {rectInfo.Timing.Duration}ms"); if (rectInfo.Timing.Parent != null) - ImGui.TextUnformatted($"Parent: {rectInfo.Timing.Parent.Name}"); + ImGui.Text($"Parent: {rectInfo.Timing.Parent.Name}"); ImGui.EndTooltip(); } } @@ -192,7 +192,7 @@ public class ProfilerWindow : Window var eventsXPos = new List(); const float eventsXPosFudge = 5f; - + foreach (var timingEvent in Timings.Events) { var startX = (timingEvent.StartTime - this.min) / (this.max - this.min) * width; @@ -217,7 +217,7 @@ public class ProfilerWindow : Window { textPos.X = pos.X + (uint)startX - textSize.X - padding; } - + var numClashes = eventsXPos.Count(x => Math.Abs(x - textPos.X) < textSize.X + eventsXPosFudge); if (numClashes > 0) { @@ -228,7 +228,7 @@ public class ProfilerWindow : Window textPos, ImGui.GetColorU32(ImGuiColors.DalamudWhite), timingEvent.Name); - + eventsXPos.Add(textPos.X); } } @@ -236,20 +236,20 @@ public class ProfilerWindow : Window ImGui.EndChild(); var sliderMin = (float)this.min / 1000f; - if (ImGui.SliderFloat("Start", ref sliderMin, (float)actualMin / 1000f, (float)this.max / 1000f, "%.2fs")) + if (ImGui.SliderFloat("Start"u8, ref sliderMin, (float)actualMin / 1000f, (float)this.max / 1000f, "%.2fs")) { this.min = sliderMin * 1000f; } var sliderMax = (float)this.max / 1000f; - if (ImGui.SliderFloat("End", ref sliderMax, (float)this.min / 1000f, (float)actualMax / 1000f, "%.2fs")) + if (ImGui.SliderFloat("End"u8, ref sliderMax, (float)this.min / 1000f, (float)actualMax / 1000f, "%.2fs")) { this.max = sliderMax * 1000f; } var sizeShown = (float)(this.max - this.min) / 1000f; var sizeActual = (float)(actualMax - actualMin) / 1000f; - if (ImGui.SliderFloat("Size", ref sizeShown, sizeActual / 10f, sizeActual, "%.2fs")) + if (ImGui.SliderFloat("Size"u8, ref sizeShown, sizeActual / 10f, sizeActual, "%.2fs")) { this.max = this.min + (sizeShown * 1000f); } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs index e587fcdcf..86036b2ed 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs @@ -3,6 +3,7 @@ using System.Globalization; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -10,9 +11,6 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; - -using ImGuiNET; - using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.SelfTest; @@ -120,7 +118,7 @@ internal class SelfTestWindow : Window ImGui.SameLine(); - ImGui.TextUnformatted($"Step: {this.currentStep} / {this.steps.Count}"); + ImGui.Text($"Step: {this.currentStep} / {this.steps.Count}"); ImGui.Spacing(); @@ -137,11 +135,11 @@ internal class SelfTestWindow : Window if (this.testIndexToResult.Any(x => x.Value.Result == SelfTestStepResult.Fail)) { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudRed, "One or more checks failed!"); + ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, "One or more checks failed!"u8); } else { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.HealerGreen, "All checks passed!"); + ImGui.TextColoredWrapped(ImGuiColors.HealerGreen, "All checks passed!"u8); } return; @@ -152,11 +150,11 @@ internal class SelfTestWindow : Window return; } - using var resultChild = ImRaii.Child("SelfTestResultChild", ImGui.GetContentRegionAvail()); + using var resultChild = ImRaii.Child("SelfTestResultChild"u8, ImGui.GetContentRegionAvail()); if (!resultChild) return; var step = this.steps[this.currentStep]; - ImGui.TextUnformatted($"Current: {step.Name}"); + ImGui.Text($"Current: {step.Name}"); ImGuiHelpers.ScaledDummy(10); @@ -191,14 +189,14 @@ internal class SelfTestWindow : Window tableSize.Y = Math.Min(tableSize.Y, ImGui.GetWindowViewport().Size.Y * 0.5f); - using var table = ImRaii.Table("agingResultTable", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY, tableSize); + using var table = ImRaii.Table("agingResultTable"u8, 5, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY, tableSize); if (!table) return; - ImGui.TableSetupColumn("###index", ImGuiTableColumnFlags.WidthFixed, 12f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Name"); - ImGui.TableSetupColumn("Result", ImGuiTableColumnFlags.WidthFixed, 40f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Duration", ImGuiTableColumnFlags.WidthFixed, 90f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("###index"u8, ImGuiTableColumnFlags.WidthFixed, 12f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Name"u8); + ImGui.TableSetupColumn("Result"u8, ImGuiTableColumnFlags.WidthFixed, 40f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Duration"u8, ImGuiTableColumnFlags.WidthFixed, 90f * ImGuiHelpers.GlobalScale); ImGui.TableSetupColumn(string.Empty, ImGuiTableColumnFlags.WidthFixed, 30f * ImGuiHelpers.GlobalScale); ImGui.TableSetupScrollFreeze(0, 1); @@ -216,7 +214,7 @@ internal class SelfTestWindow : Window ImGui.TableSetColumnIndex(0); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(i.ToString()); + ImGui.Text(i.ToString()); if (this.selfTestRunning && this.scrollToStep == i) { @@ -226,7 +224,7 @@ internal class SelfTestWindow : Window ImGui.TableSetColumnIndex(1); ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(step.Name); + ImGui.Text(step.Name); if (this.testIndexToResult.TryGetValue(i, out var result)) { @@ -236,13 +234,13 @@ internal class SelfTestWindow : Window switch (result.Result) { case SelfTestStepResult.Pass: - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.HealerGreen, "PASS"); + ImGui.TextColored(ImGuiColors.HealerGreen, "PASS"u8); break; case SelfTestStepResult.Fail: - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudRed, "FAIL"); + ImGui.TextColored(ImGuiColors.DalamudRed, "FAIL"u8); break; default: - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, "NR"); + ImGui.TextColored(ImGuiColors.DalamudGrey, "NR"u8); break; } @@ -250,7 +248,7 @@ internal class SelfTestWindow : Window if (result.Duration.HasValue) { ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(this.FormatTimeSpan(result.Duration.Value)); + ImGui.Text(this.FormatTimeSpan(result.Duration.Value)); } } else @@ -259,18 +257,18 @@ internal class SelfTestWindow : Window ImGui.AlignTextToFramePadding(); if (this.selfTestRunning && this.currentStep == i) { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, "WAIT"); + ImGui.TextColored(ImGuiColors.DalamudGrey, "WAIT"u8); } else { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, "NR"); + ImGui.TextColored(ImGuiColors.DalamudGrey, "NR"u8); } ImGui.TableSetColumnIndex(3); ImGui.AlignTextToFramePadding(); if (this.selfTestRunning && this.currentStep == i) { - ImGui.TextUnformatted(this.FormatTimeSpan(DateTimeOffset.Now - this.lastTestStart)); + ImGui.Text(this.FormatTimeSpan(DateTimeOffset.Now - this.lastTestStart)); } } @@ -287,7 +285,7 @@ internal class SelfTestWindow : Window if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Jump to this test"); + ImGui.SetTooltip("Jump to this test"u8); } } } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs index f246cb940..0f0e10f10 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs @@ -1,6 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Objects; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -19,7 +19,7 @@ internal class ActorTableSelfTestStep : ISelfTestStep { var objectTable = Service.Get(); - ImGui.Text("Checking actor table..."); + ImGui.Text("Checking actor table..."u8); if (this.index == objectTable.Length - 1) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs index 458edfaff..9ba3c4f2b 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -67,19 +66,19 @@ internal class AddonLifecycleSelfTestStep : ISelfTestStep switch (this.currentStep) { case TestStep.CharacterRefresh: - ImGui.Text("Open Character Window."); + ImGui.Text("Open Character Window."u8); break; case TestStep.CharacterSetup: - ImGui.Text("Open Character Window."); + ImGui.Text("Open Character Window."u8); break; case TestStep.CharacterRequestedUpdate: - ImGui.Text("Change tabs, or un-equip/equip gear."); + ImGui.Text("Change tabs, or un-equip/equip gear."u8); break; case TestStep.CharacterFinalize: - ImGui.Text("Close Character Window."); + ImGui.Text("Close Character Window."u8); break; case TestStep.CharacterUpdate: diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs index 207f718ff..4d4f3fbb1 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs @@ -1,6 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Aetherytes; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -19,7 +19,7 @@ internal class AetheryteListSelfTestStep : ISelfTestStep { var list = Service.Get(); - ImGui.Text("Checking aetheryte list..."); + ImGui.Text("Checking aetheryte list..."u8); if (this.index == list.Length - 1) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs index 8ab1809ad..c2351cfd2 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs @@ -1,9 +1,8 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs index 40f8f3bce..463616362 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs @@ -1,9 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.Command; -using Dalamud.Game.Gui; -using Dalamud.Game.Text; -using Dalamud.Game.Text.SeStringHandling; - -using ImGuiNET; +using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -31,37 +28,37 @@ internal class CompletionSelfTestStep : ISelfTestStep break; case 1: - ImGui.Text("[Chat Log]"); - ImGui.TextWrapped("Use the category menus to navigate to [Dalamud], then complete a command from the list. Did it work?"); - if (ImGui.Button("Yes")) + ImGui.Text("[Chat Log]"u8); + ImGui.TextWrapped("Use the category menus to navigate to [Dalamud], then complete a command from the list. Did it work?"u8); + if (ImGui.Button("Yes"u8)) this.step++; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) return SelfTestStepResult.Fail; break; case 2: - ImGui.Text("[Chat Log]"); - ImGui.Text("Type /xl into the chat log and tab-complete a dalamud command. Did it work?"); + ImGui.Text("[Chat Log]"u8); + ImGui.Text("Type /xl into the chat log and tab-complete a dalamud command. Did it work?"u8); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) this.step++; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) return SelfTestStepResult.Fail; break; case 3: - ImGui.Text("[Chat Log]"); + ImGui.Text("[Chat Log]"u8); if (!this.registered) { cmdManager.AddHandler("/xlselftestcompletion", new CommandInfo((_, _) => this.commandRun = true)); this.registered = true; } - ImGui.Text("Tab-complete /xlselftestcompletion in the chat log and send the command"); + ImGui.Text("Tab-complete /xlselftestcompletion in the chat log and send the command"u8); if (this.commandRun) this.step++; @@ -69,14 +66,14 @@ internal class CompletionSelfTestStep : ISelfTestStep break; case 4: - ImGui.Text("[Other text inputs]"); - ImGui.Text("Open the party finder recruitment criteria dialog and try to tab-complete /xldev in the text box."); - ImGui.Text("Did the command appear in the text box? (It should not have)"); - if (ImGui.Button("Yes")) + ImGui.Text("[Other text inputs]"u8); + ImGui.Text("Open the party finder recruitment criteria dialog and try to tab-complete /xldev in the text box."u8); + ImGui.Text("Did the command appear in the text box? (It should not have)"u8); + if (ImGui.Button("Yes"u8)) return SelfTestStepResult.Fail; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) this.step++; break; case 5: diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs index 2d49fbdcd..36e544040 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs @@ -1,6 +1,5 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Conditions; - -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -24,7 +23,7 @@ internal class ConditionSelfTestStep : ISelfTestStep return SelfTestStepResult.Fail; } - ImGui.Text("Please jump..."); + ImGui.Text("Please jump..."u8); return condition[ConditionFlag.Jumping] ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs index 3e414647e..83003f21f 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs @@ -2,12 +2,12 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.Gui.ContextMenu; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using ImGuiNET; using Lumina.Excel; using Lumina.Excel.Sheets; using Serilog; @@ -61,19 +61,19 @@ internal class ContextMenuSelfTestStep : ISelfTestStep { ImGui.Text($"Is the data in the submenu correct?"); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) this.currentSubStep++; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) return SelfTestStepResult.Fail; } else { ImGui.Text("Right-click an item and select \"Self Test\"."); - if (ImGui.Button("Skip")) + if (ImGui.Button("Skip"u8)) this.currentSubStep++; } @@ -84,19 +84,19 @@ internal class ContextMenuSelfTestStep : ISelfTestStep { ImGui.Text($"Did you click \"{character.Name}\" ({character.ClassJob.Value.Abbreviation.ExtractText()})?"); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) this.currentSubStep++; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) return SelfTestStepResult.Fail; } else { - ImGui.Text("Right-click a character."); + ImGui.Text("Right-click a character."u8); - if (ImGui.Button("Skip")) + if (ImGui.Button("Skip"u8)) this.currentSubStep++; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs index 4c33347fc..9c40aa345 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs @@ -1,6 +1,5 @@ -using Dalamud.Game.DutyState; - -using ImGuiNET; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.DutyState; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -20,7 +19,7 @@ internal class DutyStateSelfTestStep : ISelfTestStep { var dutyState = Service.Get(); - ImGui.Text("Enter a duty now..."); + ImGui.Text("Enter a duty now..."u8); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs index 04c8eda5e..ff43d7ae3 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -33,7 +32,7 @@ internal class EnterTerritorySelfTestStep : ISelfTestStep { var clientState = Service.Get(); - ImGui.TextUnformatted(this.Name); + ImGui.Text(this.Name); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs index 982633dcb..ba5f769c2 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs @@ -1,6 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Fates; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -19,11 +19,11 @@ internal class FateTableSelfTestStep : ISelfTestStep { var fateTable = Service.Get(); - ImGui.Text("Checking fate table..."); + ImGui.Text("Checking fate table..."u8); if (fateTable.Length == 0) { - ImGui.Text("Go to a zone that has FATEs currently up."); + ImGui.Text("Go to a zone that has FATEs currently up."u8); return SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs index 440ec9f5d..67faec5c9 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs @@ -1,6 +1,5 @@ -using Dalamud.Game.Config; - -using ImGuiNET; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.Config; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -44,7 +43,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Standard"); + ImGui.Text("Switch Movement Type to Standard"u8); } return SelfTestStepResult.Waiting; @@ -58,7 +57,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Legacy"); + ImGui.Text("Switch Movement Type to Legacy"u8); } return SelfTestStepResult.Waiting; @@ -74,7 +73,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Legacy"); + ImGui.Text("Switch Movement Type to Legacy"u8); } return SelfTestStepResult.Waiting; @@ -88,7 +87,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Standard"); + ImGui.Text("Switch Movement Type to Standard"u8); } return SelfTestStepResult.Waiting; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs index 85b5d3784..8c469d210 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -22,7 +21,7 @@ internal class HoverSelfTestStep : ISelfTestStep if (!this.clearedItem) { - ImGui.Text("Hover WHM soul crystal..."); + ImGui.Text("Hover WHM soul crystal..."u8); if (gameGui.HoveredItem == 4547) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs index 0988413b0..261318d6b 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs @@ -1,8 +1,7 @@ -using Dalamud.Game.Gui; +using Dalamud.Bindings.ImGui; +using Dalamud.Game.Gui; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; - -using ImGuiNET; +using Dalamud.Utility; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -53,37 +52,37 @@ internal class ItemPayloadSelfTestStep : ISelfTestStep this.currentSubStep++; break; case SubStep.HoverNormalItem: - ImGui.Text("Hover the item."); + ImGui.Text("Hover the item."u8); if (gameGui.HoveredItem != normalItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintHqItem: - toPrint = SeString.CreateItemLink(hqItemId, ItemPayload.ItemKind.Hq); + toPrint = SeString.CreateItemLink(hqItemId, ItemKind.Hq); this.currentSubStep++; break; case SubStep.HoverHqItem: - ImGui.Text("Hover the item."); + ImGui.Text("Hover the item."u8); if (gameGui.HoveredItem != 1_000_000 + hqItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintCollectable: - toPrint = SeString.CreateItemLink(collectableItemId, ItemPayload.ItemKind.Collectible); + toPrint = SeString.CreateItemLink(collectableItemId, ItemKind.Collectible); this.currentSubStep++; break; case SubStep.HoverCollectable: - ImGui.Text("Hover the item."); + ImGui.Text("Hover the item."u8); if (gameGui.HoveredItem != 500_000 + collectableItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintEventItem: - toPrint = SeString.CreateItemLink(eventItemId, ItemPayload.ItemKind.EventItem); + toPrint = SeString.CreateItemLink(eventItemId, ItemKind.EventItem); this.currentSubStep++; break; case SubStep.HoverEventItem: - ImGui.Text("Hover the item."); + ImGui.Text("Hover the item."u8); if (gameGui.HoveredItem != eventItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; @@ -93,7 +92,7 @@ internal class ItemPayloadSelfTestStep : ISelfTestStep this.currentSubStep++; break; case SubStep.HoverNormalWithText: - ImGui.Text("Hover the item."); + ImGui.Text("Hover the item."u8); if (gameGui.HoveredItem != normalItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs index 667f3adc4..59ffb33ae 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Keys; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -17,7 +16,7 @@ internal class KeyStateSelfTestStep : ISelfTestStep { var keyState = Service.Get(); - ImGui.Text("Hold down D,A,L,M,U"); + ImGui.Text("Hold down D,A,L,M,U"u8); if (keyState[VirtualKey.D] && keyState[VirtualKey.A] diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs index 9540c636a..b5a6337ce 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -20,7 +19,7 @@ internal class LoginEventSelfTestStep : ISelfTestStep { var clientState = Service.Get(); - ImGui.Text("Log in now..."); + ImGui.Text("Log in now..."u8); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs index 13bcfcf35..c8788968e 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -20,7 +19,7 @@ internal class LogoutEventSelfTestStep : ISelfTestStep { var clientState = Service.Get(); - ImGui.Text("Log out now..."); + ImGui.Text("Log out now..."u8); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs index 32ac685a8..a7e9eb681 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs @@ -1,9 +1,10 @@ using System.Globalization; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Game.MarketBoard; using Dalamud.Game.Network.Structures; -using ImGuiNET; +using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -50,24 +51,24 @@ internal class MarketBoardSelfTestStep : ISelfTestStep if (this.historyListing == null) { - ImGui.Text("Goto a Market Board. Open any item that has historical sale listings."); + ImGui.Text("Goto a Market Board. Open any item that has historical sale listings."u8); } else { - ImGui.Text("Does one of the historical sales match this information?"); + ImGui.Text("Does one of the historical sales match this information?"u8); ImGui.Separator(); ImGui.Text($"Quantity: {this.historyListing.Quantity.ToString()}"); ImGui.Text($"Buyer: {this.historyListing.BuyerName}"); ImGui.Text($"Sale Price: {this.historyListing.SalePrice.ToString()}"); - ImGui.Text($"Purchase Time: {this.historyListing.PurchaseTime.ToString(CultureInfo.InvariantCulture)}"); + ImGui.Text($"Purchase Time: {this.historyListing.PurchaseTime.ToLocalTime().ToString(CultureInfo.InvariantCulture)}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip")) + if (ImGui.Button("Looks Correct / Skip"u8)) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } @@ -78,24 +79,24 @@ internal class MarketBoardSelfTestStep : ISelfTestStep if (this.itemListing == null) { - ImGui.Text("Goto a Market Board. Open any item that has sale listings."); + ImGui.Text("Goto a Market Board. Open any item that has sale listings."u8); } else { - ImGui.Text("Does one of the sales match this information?"); + ImGui.Text("Does one of the sales match this information?"u8); ImGui.Separator(); ImGui.Text($"Quantity: {this.itemListing.ItemQuantity.ToString()}"); ImGui.Text($"Price Per Unit: {this.itemListing.PricePerUnit}"); ImGui.Text($"Retainer Name: {this.itemListing.RetainerName}"); ImGui.Text($"Is HQ?: {(this.itemListing.IsHq ? "Yes" : "No")}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip")) + if (ImGui.Button("Looks Correct / Skip"u8)) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } @@ -105,23 +106,23 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.PurchaseRequests: if (this.marketBoardPurchaseRequest == null) { - ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."); + ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."u8); } else { - ImGui.TextWrapped("Does this information match the purchase you made? This is testing the request to the server."); + ImGui.TextWrapped("Does this information match the purchase you made? This is testing the request to the server."u8); ImGui.Separator(); ImGui.Text($"Quantity: {this.marketBoardPurchaseRequest.ItemQuantity.ToString()}"); ImGui.Text($"Item ID: {this.marketBoardPurchaseRequest.CatalogId}"); ImGui.Text($"Price Per Unit: {this.marketBoardPurchaseRequest.PricePerUnit}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip")) + if (ImGui.Button("Looks Correct / Skip"u8)) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } @@ -131,22 +132,22 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.Purchases: if (this.marketBoardPurchase == null) { - ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."); + ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."u8); } else { - ImGui.TextWrapped("Does this information match the purchase you made? This is testing the response from the server."); + ImGui.TextWrapped("Does this information match the purchase you made? This is testing the response from the server."u8); ImGui.Separator(); ImGui.Text($"Quantity: {this.marketBoardPurchase.ItemQuantity.ToString()}"); ImGui.Text($"Item ID: {this.marketBoardPurchase.CatalogId}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip")) + if (ImGui.Button("Looks Correct / Skip"u8)) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } @@ -156,11 +157,11 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.Taxes: if (this.marketTaxRate == null) { - ImGui.TextWrapped("Goto a Retainer Vocate and talk to then. Click the 'View market tax rates' menu item."); + ImGui.TextWrapped("Goto a Retainer Vocate and talk to then. Click the 'View market tax rates' menu item."u8); } else { - ImGui.Text("Does this market tax rate information look correct?"); + ImGui.Text("Does this market tax rate information look correct?"u8); ImGui.Separator(); ImGui.Text($"Uldah: {this.marketTaxRate.UldahTax.ToString()}"); ImGui.Text($"Gridania: {this.marketTaxRate.GridaniaTax.ToString()}"); @@ -171,13 +172,13 @@ internal class MarketBoardSelfTestStep : ISelfTestStep ImGui.Text($"Sharlayan: {this.marketTaxRate.SharlayanTax.ToString()}"); ImGui.Text($"Tuliyollal: {this.marketTaxRate.TuliyollalTax.ToString()}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip")) + if (ImGui.Button("Looks Correct / Skip"u8)) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs index e7ce8e42a..120335c04 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs @@ -1,11 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.NamePlate; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Game.Text.SeStringHandling.Payloads; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -41,14 +40,14 @@ internal class NamePlateSelfTestStep : ISelfTestStep break; case SubStep.Confirm: - ImGui.Text("Click to redraw all visible nameplates"); - if (ImGui.Button("Request redraw")) + ImGui.Text("Click to redraw all visible nameplates"u8); + if (ImGui.Button("Request redraw"u8)) namePlateGui.RequestRedraw(); - ImGui.TextUnformatted("Can you see marker icons above nameplates, and does\n" + + ImGui.Text("Can you see marker icons above nameplates, and does\n" + "the update count increase when using request redraw?"); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) { this.CleanUp(); return SelfTestStepResult.Pass; @@ -56,7 +55,7 @@ internal class NamePlateSelfTestStep : ISelfTestStep ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { this.CleanUp(); return SelfTestStepResult.Fail; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs index 7319eec7b..682fe7222 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs @@ -1,9 +1,8 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Game.Text.Noun; using Dalamud.Game.Text.Noun.Enums; -using ImGuiNET; - using LSheets = Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -212,7 +211,7 @@ internal class NounProcessorSelfTestStep : ISelfTestStep for (var i = 0; i < this.tests.Length; i++) { var e = this.tests[i]; - + var nounParams = new NounParams() { SheetName = e.SheetName, @@ -226,11 +225,11 @@ internal class NounProcessorSelfTestStep : ISelfTestStep if (e.ExpectedResult != output) { - ImGui.TextUnformatted($"Mismatch detected (Test #{i}):"); - ImGui.TextUnformatted($"Got: {output}"); - ImGui.TextUnformatted($"Expected: {e.ExpectedResult}"); + ImGui.Text($"Mismatch detected (Test #{i}):"); + ImGui.Text($"Got: {output}"); + ImGui.Text($"Expected: {e.ExpectedResult}"); - if (ImGui.Button("Continue")) + if (ImGui.Button("Continue"u8)) return SelfTestStepResult.Fail; return SelfTestStepResult.Waiting; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs index 475412e70..d8bdd6d53 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs @@ -1,8 +1,7 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.PartyFinder; using Dalamud.Game.Gui.PartyFinder.Types; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -34,7 +33,7 @@ internal class PartyFinderSelfTestStep : ISelfTestStep return SelfTestStepResult.Pass; } - ImGui.Text("Open Party Finder"); + ImGui.Text("Open Party Finder"u8); return SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs index 423a56172..8e66dd5cf 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs @@ -1,8 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; using Dalamud.Game.Text.Evaluator; - -using ImGuiNET; - using Lumina.Text.ReadOnly; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; @@ -25,26 +23,26 @@ internal class SeStringEvaluatorSelfTestStep : ISelfTestStep switch (this.step) { case 0: - ImGui.TextUnformatted("Is this the current time, and is it ticking?"); + ImGui.Text("Is this the current time, and is it ticking?"u8); // This checks that EvaluateFromAddon fetches the correct Addon row, // that MacroDecoder.GetMacroTime()->SetTime() has been called // and that local and global parameters have been read correctly. - ImGui.TextUnformatted(seStringEvaluator.EvaluateFromAddon(31, [(uint)DateTimeOffset.UtcNow.ToUnixTimeSeconds()]).ExtractText()); + ImGui.Text(seStringEvaluator.EvaluateFromAddon(31, [(uint)DateTimeOffset.UtcNow.ToUnixTimeSeconds()]).ExtractText()); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) this.step++; ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) return SelfTestStepResult.Fail; break; case 1: - ImGui.TextUnformatted("Checking pcname macro using the local player name..."); + ImGui.Text("Checking pcname macro using the local player name..."u8); // This makes sure that NameCache.Instance()->TryGetCharacterInfoByEntityId() has been called, // that it returned the local players name by using its EntityId, @@ -54,9 +52,9 @@ internal class SeStringEvaluatorSelfTestStep : ISelfTestStep var localPlayer = clientState.LocalPlayer; if (localPlayer is null) { - ImGui.TextUnformatted("You need to be logged in for this step."); + ImGui.Text("You need to be logged in for this step."u8); - if (ImGui.Button("Skip")) + if (ImGui.Button("Skip"u8)) return SelfTestStepResult.NotRan; return SelfTestStepResult.Waiting; @@ -67,11 +65,11 @@ internal class SeStringEvaluatorSelfTestStep : ISelfTestStep if (evaluatedPlayerName != localPlayerName) { - ImGui.TextUnformatted("The player name doesn't match:"); - ImGui.TextUnformatted($"Evaluated Player Name (got): {evaluatedPlayerName}"); - ImGui.TextUnformatted($"Local Player Name (expected): {localPlayerName}"); + ImGui.Text("The player name doesn't match:"u8); + ImGui.Text($"Evaluated Player Name (got): {evaluatedPlayerName}"); + ImGui.Text($"Local Player Name (expected): {localPlayerName}"); - if (ImGui.Button("Continue")) + if (ImGui.Button("Continue"u8)) return SelfTestStepResult.Fail; return SelfTestStepResult.Waiting; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs index b43c045f4..cd2e270db 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs @@ -1,13 +1,11 @@ using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Game.Text.Evaluator.Internal; - using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI.Misc; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -104,12 +102,12 @@ internal class SheetRedirectResolverSelfTestStep : ISelfTestStep if (utf8SheetName->ToString() != sheetName2 || rowId1 != rowId2 || colIndex1 != colIndex2 || flags1 != flags2) { - ImGui.TextUnformatted($"Mismatch detected (Test #{i}):"); - ImGui.TextUnformatted($"Input: {redirect.SheetName}#{redirect.RowId}"); - ImGui.TextUnformatted($"Game: {utf8SheetName->ToString()}#{rowId1}-{colIndex1} ({flags1})"); - ImGui.TextUnformatted($"Evaluated: {sheetName2}#{rowId2}-{colIndex2} ({flags2})"); + ImGui.Text($"Mismatch detected (Test #{i}):"); + ImGui.Text($"Input: {redirect.SheetName}#{redirect.RowId}"); + ImGui.Text($"Game: {utf8SheetName->ToString()}#{rowId1}-{colIndex1} ({flags1})"); + ImGui.Text($"Evaluated: {sheetName2}#{rowId2}-{colIndex2} ({flags2})"); - if (ImGui.Button("Continue")) + if (ImGui.Button("Continue"u8)) return SelfTestStepResult.Fail; return SelfTestStepResult.Waiting; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs index b56b08ed5..f3a1e2aab 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs @@ -1,9 +1,8 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -32,7 +31,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 1: - ImGui.Text("Target a player..."); + ImGui.Text("Target a player..."u8); var cTarget = targetManager.Target; if (cTarget is PlayerCharacter) @@ -43,7 +42,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 2: - ImGui.Text("Focus-Target a Battle NPC..."); + ImGui.Text("Focus-Target a Battle NPC..."u8); var fTarget = targetManager.FocusTarget; if (fTarget is BattleNpc) @@ -54,7 +53,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 3: - ImGui.Text("Soft-Target an EventObj..."); + ImGui.Text("Soft-Target an EventObj..."u8); var sTarget = targetManager.SoftTarget; if (sTarget is EventObj) diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs index cd34fa30b..4c66e7380 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.Toast; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; /// @@ -26,15 +25,15 @@ internal class ToastSelfTestStep : ISelfTestStep this.sentToasts = true; } - ImGui.Text("Did you see a normal toast, a quest toast and an error toast?"); + ImGui.Text("Did you see a normal toast, a quest toast and an error toast?"u8); - if (ImGui.Button("Yes")) + if (ImGui.Button("Yes"u8)) { return SelfTestStepResult.Pass; } ImGui.SameLine(); - if (ImGui.Button("No")) + if (ImGui.Button("No"u8)) { return SelfTestStepResult.Fail; } diff --git a/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs b/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs index c678dff10..75cbeb836 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Numerics; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Internal.Windows.Settings.Tabs; @@ -12,8 +12,6 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings; /// @@ -42,7 +40,7 @@ internal class SettingsWindow : Window }; this.SizeCondition = ImGuiCond.FirstUseEver; - + this.tabs = [ new SettingsTabGeneral(), @@ -102,19 +100,30 @@ internal class SettingsWindow : Window var interfaceManager = Service.Get(); var fontAtlasFactory = Service.Get(); + var scaleChanged = !Equals(ImGui.GetIO().FontGlobalScale, configuration.GlobalUiScale); var rebuildFont = !Equals(fontAtlasFactory.DefaultFontSpec, configuration.DefaultFontSpec); - rebuildFont |= !Equals(ImGui.GetIO().FontGlobalScale, configuration.GlobalUiScale); + rebuildFont |= scaleChanged; ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale; + if (scaleChanged) + { + Service.Get().InvokeGlobalScaleChanged(); + } + fontAtlasFactory.DefaultFontSpecOverride = null; if (rebuildFont) + { interfaceManager.RebuildFonts(); + Service.Get().InvokeFontChanged(); + } foreach (var settingsTab in this.tabs) { if (settingsTab.IsOpen) + { settingsTab.OnClose(); + } settingsTab.IsOpen = false; } @@ -131,7 +140,7 @@ internal class SettingsWindow : Window { var windowSize = ImGui.GetWindowSize(); - if (ImGui.BeginTabBar("###settingsTabs")) + if (ImGui.BeginTabBar("###settingsTabs"u8)) { if (string.IsNullOrEmpty(this.searchInput)) { @@ -143,7 +152,7 @@ internal class SettingsWindow : Window flags |= ImGuiTabItemFlags.SetSelected; this.setActiveTab = null; } - + using var tab = ImRaii.TabItem(settingsTab.Title, flags); if (tab) { @@ -181,7 +190,7 @@ internal class SettingsWindow : Window } else { - if (ImGui.BeginTabItem("Search Results")) + if (ImGui.BeginTabItem("Search Results"u8)) { var any = false; @@ -209,7 +218,7 @@ internal class SettingsWindow : Window } if (!any) - ImGui.TextColored(ImGuiColors.DalamudGrey, "No results found..."); + ImGui.TextColored(ImGuiColors.DalamudGrey, "No results found..."u8); ImGui.EndTabItem(); } @@ -220,7 +229,7 @@ internal class SettingsWindow : Window ImGui.SetCursorPos(windowSize - ImGuiHelpers.ScaledVector2(70)); - using (var buttonChild = ImRaii.Child("###settingsFinishButton")) + using (var buttonChild = ImRaii.Child("###settingsFinishButton"u8)) { if (buttonChild) { @@ -250,7 +259,7 @@ internal class SettingsWindow : Window ImGui.SetCursorPos(new Vector2(windowSize.X - 250, ImGui.GetTextLineHeightWithSpacing() + (ImGui.GetStyle().FramePadding.Y * 2))); ImGui.SetNextItemWidth(240); - ImGui.InputTextWithHint("###searchInput", "Search for settings...", ref this.searchInput, 100); + ImGui.InputTextWithHint("###searchInput"u8, "Search for settings..."u8, ref this.searchInput, 100); } private void Save() diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs index 428be05c2..5b7fc7227 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Numerics; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas; @@ -15,7 +16,6 @@ using Dalamud.Plugin.Internal; using Dalamud.Storage.Assets; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.Game.UI; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; @@ -263,7 +263,7 @@ Contribute at: https://github.com/goatcorp/Dalamud { var windowSize = ImGui.GetWindowSize(); - using var child = ImRaii.Child("scrolling", new Vector2(-1, -10 * ImGuiHelpers.GlobalScale), false, ImGuiWindowFlags.NoScrollbar); + using var child = ImRaii.Child("scrolling"u8, new Vector2(-1, -10 * ImGuiHelpers.GlobalScale), false, ImGuiWindowFlags.NoScrollbar); if (!child) return; @@ -281,7 +281,7 @@ Contribute at: https://github.com/goatcorp/Dalamud const float imageSize = 190f; ImGui.SameLine((ImGui.GetWindowWidth() / 2) - (imageSize / 2)); this.logoTexture ??= Service.Get().GetDalamudTextureWrap(DalamudAsset.Logo); - ImGui.Image(this.logoTexture.ImGuiHandle, ImGuiHelpers.ScaledVector2(imageSize)); + ImGui.Image(this.logoTexture.Handle, ImGuiHelpers.ScaledVector2(imageSize)); ImGuiHelpers.ScaledDummy(0, 20f); @@ -293,7 +293,7 @@ Contribute at: https://github.com/goatcorp/Dalamud ImGui.Dummy(new Vector2((windowX / 2) - (lineLenX / 2), 0f)); ImGui.SameLine(); - ImGui.TextUnformatted(creditsLine); + ImGui.Text(creditsLine); } ImGuiHelpers.ScaledDummy(0, 40f); @@ -305,7 +305,7 @@ Contribute at: https://github.com/goatcorp/Dalamud ImGui.Dummy(new Vector2((windowX / 2) - (thankYouLenX / 2), 0f)); ImGui.SameLine(); - ImGui.TextUnformatted(ThankYouText); + ImGui.Text(ThankYouText); } ImGuiHelpers.ScaledDummy(0, windowSize.Y + 50f); diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs index 3815c4425..b25cdb10b 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Numerics; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -14,8 +15,6 @@ using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.AutoUpdate; using Dalamud.Plugin.Internal.Types; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -34,20 +33,20 @@ public class SettingsTabAutoUpdates : SettingsTab public override void Draw() { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", + ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", "Dalamud can update your plugins automatically, making sure that you always " + "have the newest features and bug fixes. You can choose when and how auto-updates are run here.")); ImGuiHelpers.ScaledDummy(2); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", "You can always update your plugins manually by clicking the update button in the plugin list. " + "You can also opt into updates for specific plugins by right-clicking them and selecting \"Always auto-update\".")); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", "Dalamud will only notify you about updates while you are idle.")); ImGuiHelpers.ScaledDummy(8); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateBehavior", + ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateBehavior", "When the game starts...")); var behaviorInt = (int)this.behavior; ImGui.RadioButton(Loc.Localize("DalamudSettingsAutoUpdateNone", "Do not check for updates automatically"), ref behaviorInt, (int)AutoUpdateBehavior.None); @@ -62,7 +61,7 @@ public class SettingsTabAutoUpdates : SettingsTab "DalamudSettingsAutoUpdateAllWarning", "Warning: This will update all plugins, including those not from the main repository.\n" + "These updates are not reviewed by the Dalamud team and may contain malicious code."); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudOrange, warning); + ImGui.TextColoredWrapped(ImGuiColors.DalamudOrange, warning); } ImGuiHelpers.ScaledDummy(8); @@ -70,17 +69,17 @@ public class SettingsTabAutoUpdates : SettingsTab ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdateDisabledPlugins", "Auto-Update plugins that are currently disabled"), ref this.updateDisabledPlugins); ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdateChatMessage", "Show notification about updates available in chat"), ref this.chatNotification); ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdatePeriodically", "Periodically check for new updates while playing"), ref this.checkPeriodically); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdatePeriodicallyHint", + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdatePeriodicallyHint", "Plugins won't update automatically after startup, you will only receive a notification while you are not actively playing.")); ImGuiHelpers.ScaledDummy(5); ImGui.Separator(); ImGuiHelpers.ScaledDummy(5); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOptedIn", + ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOptedIn", "Per-plugin overrides")); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOverrideHint", + ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOverrideHint", "Here, you can choose to receive or not to receive updates for specific plugins. " + "This will override the settings above for the selected plugins.")); @@ -119,14 +118,14 @@ public class SettingsTabAutoUpdates : SettingsTab pic.TryGetIcon(pmPlugin, pmPlugin.Manifest, pmPlugin.IsThirdParty, out var icon, out _); icon ??= pic.DefaultIcon; - ImGui.Image(icon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(icon.Handle, new Vector2(pluginLineHeight)); if (pmPlugin.IsDev) { ImGui.SetCursorPos(cursorBeforeIcon); using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, 0.7f)) { - ImGui.Image(pic.DevPluginIcon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DevPluginIcon.Handle, new Vector2(pluginLineHeight)); } } @@ -137,13 +136,13 @@ public class SettingsTabAutoUpdates : SettingsTab var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.TextUnformatted(text); + ImGui.Text(text); ImGui.SetCursorPos(before); } else { - ImGui.Image(pic.DefaultIcon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DefaultIcon.Handle, new Vector2(pluginLineHeight)); ImGui.SameLine(); var text = Loc.Localize("DalamudSettingsAutoUpdateOptInUnknownPlugin", "Unknown plugin"); @@ -151,7 +150,7 @@ public class SettingsTabAutoUpdates : SettingsTab var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.TextUnformatted(text); + ImGui.Text(text); ImGui.SetCursorPos(before); } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs index d1040b5b2..7cd303587 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs @@ -1,17 +1,16 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Gui.Dtr; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -28,7 +27,7 @@ public class SettingsTabDtr : SettingsTab public override void Draw() { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarHint", "Plugins can put additional information into your server information bar(where world & time can be seen).\nYou can reorder and disable these here.")); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarHint", "Plugins can put additional information into your server information bar(where world & time can be seen).\nYou can reorder and disable these here.")); ImGuiHelpers.ScaledDummy(10); @@ -42,7 +41,7 @@ public class SettingsTabDtr : SettingsTab if (order.Count == 0) { - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDidNone", "You have no plugins that use this feature.")); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDidNone", "You have no plugins that use this feature.")); } var isOrderChange = false; @@ -102,7 +101,7 @@ public class SettingsTabDtr : SettingsTab ImGui.SameLine(); // if (isRequired) { - // ImGui.TextUnformatted($"Search in {name}"); + // ImGui.Text($"Search in {name}"); // } else { var isShown = ignore.All(x => x != title); @@ -135,12 +134,12 @@ public class SettingsTabDtr : SettingsTab ImGuiHelpers.ScaledDummy(10); ImGui.Text(Loc.Localize("DalamudSettingServerInfoBarSpacing", "Server Info Bar spacing")); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarSpacingHint", "Configure the amount of space between entries in the server info bar here.")); - ImGui.SliderInt("Spacing", ref this.dtrSpacing, 0, 40); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarSpacingHint", "Configure the amount of space between entries in the server info bar here.")); + ImGui.SliderInt("Spacing"u8, ref this.dtrSpacing, 0, 40); ImGui.Text(Loc.Localize("DalamudSettingServerInfoBarDirection", "Server Info Bar direction")); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDirectionHint", "If checked, the Server Info Bar elements will expand to the right instead of the left.")); - ImGui.Checkbox("Swap Direction", ref this.dtrSwapDirection); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDirectionHint", "If checked, the Server Info Bar elements will expand to the right instead of the left.")); + ImGui.Checkbox("Swap Direction"u8, ref this.dtrSwapDirection); base.Draw(); } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs index fae7e5e8f..d3b741142 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs @@ -1,7 +1,8 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Internal.ReShadeHandling; @@ -151,7 +152,7 @@ public class SettingsTabExperimental : SettingsTab { base.Draw(); - ImGuiHelpers.SafeTextColoredWrapped( + ImGui.TextColoredWrapped( ImGuiColors.DalamudGrey, "Total memory used by Dalamud & Plugins: " + Util.FormatBytes(GC.GetTotalMemory(false))); ImGuiHelpers.ScaledDummy(15); diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs index 112fa3a3f..b6aa11db4 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs @@ -1,9 +1,10 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Text; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Text; @@ -17,7 +18,6 @@ using Dalamud.Interface.Internal.Windows.Settings.Widgets; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; using Dalamud.Utility; -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; @@ -162,7 +162,7 @@ public class SettingsTabLook : SettingsTab { CustomDraw = static e => { - ImGuiHelpers.SafeTextWrapped(e.Name!); + ImGui.TextWrapped(e.Name!); var v = e.Value * 100f; if (ImGui.SliderFloat($"###{e}", ref v, 0f, 100f, "%.1f%%")) @@ -170,7 +170,7 @@ public class SettingsTabLook : SettingsTab ImGui.SameLine(); ImGui.PushStyleVar(ImGuiStyleVar.Alpha, v / 100); - ImGui.TextUnformatted("\uE020\uE021\uE022\uE023\uE024\uE025\uE026\uE027"); + ImGui.Text("\uE020\uE021\uE022\uE023\uE024\uE025\uE026\uE027"u8); ImGui.PopStyleVar(1); }, } @@ -188,7 +188,7 @@ public class SettingsTabLook : SettingsTab var buttonSize = GlobalUiScalePresets - .Select(x => ImGui.CalcTextSize(x.Item1, 0, x.Item1.IndexOf('#'))) + .Select(x => ImGui.CalcTextSize(x.Item1, true)) .Aggregate(Vector2.Zero, Vector2.Max) + (ImGui.GetStyle().FramePadding * 2); foreach (var (buttonLabel, scale) in GlobalUiScalePresets) @@ -198,6 +198,7 @@ public class SettingsTabLook : SettingsTab { ImGui.GetIO().FontGlobalScale = this.globalUiScale = scale; interfaceManager.RebuildFonts(); + Service.Get().InvokeGlobalScaleChanged(); } } @@ -210,19 +211,21 @@ public class SettingsTabLook : SettingsTab var len = Encoding.UTF8.GetByteCount(buildingFonts); var p = stackalloc byte[len]; Encoding.UTF8.GetBytes(buildingFonts, new(p, len)); - ImGuiNative.igTextUnformatted(p, (p + len + ((Environment.TickCount / 200) % 3)) - 2); + ImGui.Text( + new ReadOnlySpan(p, len)[..((len + ((Environment.TickCount / 200) % 3)) - 2)]); } } var globalUiScaleInPct = 100f * this.globalUiScale; - if (ImGui.DragFloat("##DalamudSettingsGlobalUiScaleDrag", ref globalUiScaleInPct, 1f, 80f, 300f, "%.0f%%", ImGuiSliderFlags.AlwaysClamp)) + if (ImGui.DragFloat("##DalamudSettingsGlobalUiScaleDrag"u8, ref globalUiScaleInPct, 1f, 80f, 300f, "%.0f%%", ImGuiSliderFlags.AlwaysClamp)) { this.globalUiScale = globalUiScaleInPct / 100f; ImGui.GetIO().FontGlobalScale = this.globalUiScale; interfaceManager.RebuildFonts(); + Service.Get().InvokeGlobalScaleChanged(); } - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsGlobalUiScaleHint", "Scale text in all XIVLauncher UI elements - this is useful for 4K displays.")); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsGlobalUiScaleHint", "Scale text in all XIVLauncher UI elements - this is useful for 4K displays.")); if (fontBuildTask.IsFaulted || fontBuildTask.IsCanceled) { @@ -230,10 +233,10 @@ public class SettingsTabLook : SettingsTab ImGuiColors.DalamudRed, Loc.Localize("DalamudSettingsFontBuildFaulted", "Failed to load fonts as requested.")); if (fontBuildTask.Exception is not null - && ImGui.CollapsingHeader("##DalamudSetingsFontBuildFaultReason")) + && ImGui.CollapsingHeader("##DalamudSetingsFontBuildFaultReason"u8)) { foreach (var e in fontBuildTask.Exception.InnerExceptions) - ImGui.TextUnformatted(e.ToString()); + ImGui.Text(e.ToString()); } } @@ -260,6 +263,7 @@ public class SettingsTabLook : SettingsTab faf.DefaultFontSpecOverride = this.defaultFontSpec = r.Result; interfaceManager.RebuildFonts(); + Service.Get().InvokeFontChanged(); })); } @@ -274,6 +278,7 @@ public class SettingsTabLook : SettingsTab this.defaultFontSpec = new SingleFontSpec { FontId = new GameFontAndFamilyId(GameFontFamily.Axis) }; interfaceManager.RebuildFonts(); + Service.Get().InvokeFontChanged(); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs index 6bce2a451..b53411c7c 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs @@ -1,8 +1,8 @@ using System.Diagnostics.CodeAnalysis; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; @@ -36,6 +36,6 @@ public class ButtonSettingsEntry : SettingsEntry this.runs.Invoke(); } - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, this.description); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, this.description); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs index d7f8b1ca1..2e569b565 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs @@ -6,6 +6,7 @@ using System.Numerics; using System.Threading.Tasks; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; @@ -15,8 +16,6 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -59,18 +58,18 @@ public class DevPluginsSettingsEntry : SettingsEntry public override void Draw() { - using var id = ImRaii.PushId("devPluginLocation"); - ImGui.TextUnformatted(this.Name); + using var id = ImRaii.PushId("devPluginLocation"u8); + ImGui.Text(this.Name); if (this.devPluginLocationsChanged) { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen)) { ImGui.SameLine(); - ImGui.TextUnformatted(Loc.Localize("DalamudSettingsChanged", "(Changed)")); + ImGui.Text(Loc.Localize("DalamudSettingsChanged", "(Changed)")); } } - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL.")); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL.")); var locationSelect = Loc.Localize("DalamudDevPluginLocationSelect", "Select Dev Plugin DLL"); if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Folder, locationSelect)) @@ -98,13 +97,13 @@ public class DevPluginsSettingsEntry : SettingsEntry ImGui.Separator(); - ImGui.TextUnformatted("#"); + ImGui.Text("#"u8); ImGui.NextColumn(); - ImGui.TextUnformatted("Path"); + ImGui.Text("Path"u8); ImGui.NextColumn(); - ImGui.TextUnformatted("Enabled"); + ImGui.Text("Enabled"u8); ImGui.NextColumn(); - ImGui.TextUnformatted(string.Empty); + ImGui.Text(string.Empty); ImGui.NextColumn(); ImGui.Separator(); @@ -119,7 +118,7 @@ public class DevPluginsSettingsEntry : SettingsEntry id.Push(devPluginLocationSetting.Path); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(locNumber.ToString()).X / 2)); - ImGui.TextUnformatted(locNumber.ToString()); + ImGui.Text(locNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); @@ -151,7 +150,7 @@ public class DevPluginsSettingsEntry : SettingsEntry ImGui.NextColumn(); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 7 - (12 * ImGuiHelpers.GlobalScale)); - ImGui.Checkbox("##devPluginLocationCheck", ref isEnabled); + ImGui.Checkbox("##devPluginLocationCheck"u8, ref isEnabled); ImGui.NextColumn(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) @@ -176,10 +175,10 @@ public class DevPluginsSettingsEntry : SettingsEntry } ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(locNumber.ToString()).X / 2)); - ImGui.TextUnformatted(locNumber.ToString()); + ImGui.Text(locNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); - ImGui.InputText("##devPluginLocationInput", ref this.devPluginTempLocation, 300); + ImGui.InputText("##devPluginLocationInput"u8, ref this.devPluginTempLocation, 300); ImGui.NextColumn(); // Enabled button ImGui.NextColumn(); @@ -192,7 +191,7 @@ public class DevPluginsSettingsEntry : SettingsEntry if (!string.IsNullOrEmpty(this.devPluginLocationAddError)) { - ImGuiHelpers.SafeTextColoredWrapped(new Vector4(1, 0, 0, 1), this.devPluginLocationAddError); + ImGui.TextColoredWrapped(new Vector4(1, 0, 0, 1), this.devPluginLocationAddError); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs index f40654542..03123ad95 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs @@ -2,14 +2,12 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; - using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -89,7 +87,7 @@ internal sealed class EnumSettingsEntry : SettingsEntry } else { - ImGuiHelpers.SafeTextWrapped(this.Name); + ImGui.TextWrapped(this.Name); var idx = this.valueBacking; var values = Enum.GetValues(); @@ -121,11 +119,11 @@ internal sealed class EnumSettingsEntry : SettingsEntry var desc = this.FriendlyEnumDescriptionGetter(this.valueBacking); if (!string.IsNullOrWhiteSpace(desc)) { - ImGuiHelpers.SafeTextWrapped(desc); + ImGui.TextWrapped(desc); ImGuiHelpers.ScaledDummy(2); } - ImGuiHelpers.SafeTextWrapped(this.Description); + ImGui.TextWrapped(this.Description); } if (this.CheckValidity != null) diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs index 1db3c4756..88982b825 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs index 3edd3ae1d..1937adc57 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs @@ -1,8 +1,8 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; -using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; @@ -30,6 +30,6 @@ public class HintSettingsEntry : SettingsEntry public override void Draw() { - ImGuiHelpers.SafeTextColoredWrapped(this.color, this.text); + ImGui.TextColoredWrapped(this.color, this.text); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs index cb79000d2..4e328720b 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs @@ -3,12 +3,11 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -71,7 +70,7 @@ public sealed class LanguageChooserSettingsEntry : SettingsEntry public override void Draw() { ImGui.Text(this.Name); - ImGui.Combo("##XlLangCombo", ref this.langIndex, this.locLanguages, this.locLanguages.Length); - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsLanguageHint", "Select the language Dalamud will be displayed in.")); + ImGui.Combo("##XlLangCombo", ref this.langIndex, this.locLanguages); + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsLanguageHint", "Select the language Dalamud will be displayed in.")); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs index cffe0a5da..2349d0d7a 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs @@ -2,14 +2,12 @@ using System.Diagnostics.CodeAnalysis; using System.IO; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; - using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; - namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] @@ -81,7 +79,7 @@ internal sealed class SettingsEntry : SettingsEntry } else if (type == typeof(DirectoryInfo)) { - ImGuiHelpers.SafeTextWrapped(this.Name); + ImGui.TextWrapped(this.Name); var value = this.Value as DirectoryInfo; var nativeBuffer = value?.FullName ?? string.Empty; @@ -93,7 +91,7 @@ internal sealed class SettingsEntry : SettingsEntry } else if (type == typeof(string)) { - ImGuiHelpers.SafeTextWrapped(this.Name); + ImGui.TextWrapped(this.Name); var nativeBuffer = this.Value as string ?? string.Empty; @@ -115,7 +113,7 @@ internal sealed class SettingsEntry : SettingsEntry using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) { - ImGuiHelpers.SafeTextWrapped(this.Description); + ImGui.TextWrapped(this.Description); } if (this.CheckValidity != null) diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs index 1d6aab1bd..cfcf6b3ac 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs @@ -5,6 +5,7 @@ using System.Numerics; using System.Threading.Tasks; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; @@ -13,7 +14,6 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; @@ -30,7 +30,7 @@ public class ThirdRepoSettingsEntry : SettingsEntry { this.timeSinceOpened = DateTime.Now; } - + public override void OnClose() { this.thirdRepoList = @@ -59,48 +59,48 @@ public class ThirdRepoSettingsEntry : SettingsEntry public override void Draw() { var config = Service.Get(); - - using var id = ImRaii.PushId("thirdRepo"); - ImGui.TextUnformatted(Loc.Localize("DalamudSettingsCustomRepo", "Custom Plugin Repositories")); + + using var id = ImRaii.PushId("thirdRepo"u8); + ImGui.Text(Loc.Localize("DalamudSettingsCustomRepo", "Custom Plugin Repositories")); if (this.thirdRepoListChanged) { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen)) { ImGui.SameLine(); - ImGui.TextUnformatted(Loc.Localize("DalamudSettingsChanged", "(Changed)")); + ImGui.Text(Loc.Localize("DalamudSettingsChanged", "(Changed)")); } } - - ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingCustomRepoHint", "Add custom plugin repositories.")); - + + ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingCustomRepoHint", "Add custom plugin repositories.")); + ImGuiHelpers.ScaledDummy(2); config.ThirdRepoSpeedbumpDismissed ??= config.ThirdRepoList.Any(x => x.IsEnabled); var disclaimerDismissed = config.ThirdRepoSpeedbumpDismissed.Value; - + ImGui.PushFont(InterfaceManager.IconFont); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudOrange); - ImGuiHelpers.SafeTextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); + ImGui.TextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); ImGui.PopFont(); ImGui.SameLine(); ImGuiHelpers.ScaledDummy(2); ImGui.SameLine(); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarningReadThis", "READ THIS FIRST!")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarningReadThis", "READ THIS FIRST!")); ImGui.SameLine(); ImGuiHelpers.ScaledDummy(2); ImGui.SameLine(); ImGui.PushFont(InterfaceManager.IconFont); - ImGuiHelpers.SafeTextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); + ImGui.TextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); ImGui.PopFont(); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning", "We cannot take any responsibility for custom plugins and repositories.")); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning5", "If someone told you to copy/paste something here, it's very possible that you are being scammed or taken advantage of.")); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning2", "Plugins have full control over your PC, like any other program, and may cause harm or crashes.")); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning4", "They can delete your character, steal your FC or Discord account, and burn down your house.")); - ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning3", "Please make absolutely sure that you only install plugins from developers you trust.")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning", "We cannot take any responsibility for custom plugins and repositories.")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning5", "If someone told you to copy/paste something here, it's very possible that you are being scammed or taken advantage of.")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning2", "Plugins have full control over your PC, like any other program, and may cause harm or crashes.")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning4", "They can delete your character, steal your FC or Discord account, and burn down your house.")); + ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning3", "Please make absolutely sure that you only install plugins from developers you trust.")); ImGui.PopStyleColor(); - + if (!disclaimerDismissed) { const int speedbumpTime = 15; @@ -121,7 +121,7 @@ public class ThirdRepoSettingsEntry : SettingsEntry } } } - + ImGuiHelpers.ScaledDummy(2); using var disabled = ImRaii.Disabled(!disclaimerDismissed); @@ -136,20 +136,20 @@ public class ThirdRepoSettingsEntry : SettingsEntry ImGui.Separator(); - ImGui.TextUnformatted("#"); + ImGui.Text("#"u8); ImGui.NextColumn(); - ImGui.TextUnformatted("URL"); + ImGui.Text("URL"u8); ImGui.NextColumn(); - ImGui.TextUnformatted("Enabled"); + ImGui.Text("Enabled"u8); ImGui.NextColumn(); - ImGui.TextUnformatted(string.Empty); + ImGui.Text(string.Empty); ImGui.NextColumn(); ImGui.Separator(); - ImGui.TextUnformatted("0"); + ImGui.Text("0"u8); ImGui.NextColumn(); - ImGui.TextUnformatted("XIVLauncher"); + ImGui.Text("XIVLauncher"u8); ImGui.NextColumn(); ImGui.NextColumn(); ImGui.NextColumn(); @@ -165,7 +165,7 @@ public class ThirdRepoSettingsEntry : SettingsEntry id.Push(thirdRepoSetting.Url); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(repoNumber.ToString()).X / 2)); - ImGui.TextUnformatted(repoNumber.ToString()); + ImGui.Text(repoNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); @@ -197,7 +197,7 @@ public class ThirdRepoSettingsEntry : SettingsEntry ImGui.NextColumn(); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 7 - (12 * ImGuiHelpers.GlobalScale)); - if (ImGui.Checkbox("##thirdRepoCheck", ref isEnabled)) + if (ImGui.Checkbox("##thirdRepoCheck"u8, ref isEnabled)) { this.thirdRepoListChanged = true; } @@ -226,10 +226,10 @@ public class ThirdRepoSettingsEntry : SettingsEntry } ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(repoNumber.ToString()).X / 2)); - ImGui.TextUnformatted(repoNumber.ToString()); + ImGui.Text(repoNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); - ImGui.InputText("##thirdRepoUrlInput", ref this.thirdRepoTempUrl, 300); + ImGui.InputText("##thirdRepoUrlInput"u8, ref this.thirdRepoTempUrl, 300); ImGui.NextColumn(); // Enabled button ImGui.NextColumn(); @@ -262,7 +262,7 @@ public class ThirdRepoSettingsEntry : SettingsEntry if (!string.IsNullOrEmpty(this.thirdRepoAddError)) { - ImGuiHelpers.SafeTextColoredWrapped(new Vector4(1, 0, 0, 1), this.thirdRepoAddError); + ImGui.TextColoredWrapped(new Vector4(1, 0, 0, 1), this.thirdRepoAddError); } } diff --git a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs index ceb009139..f9e8022a1 100644 --- a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs +++ b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs @@ -4,6 +4,7 @@ using System.Numerics; using System.Reflection; using CheapLoc; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -11,8 +12,6 @@ using Dalamud.Interface.Style; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility; -using ImGuiNET; - using Serilog; namespace Dalamud.Interface.Internal.Windows.StyleEditor; @@ -27,6 +26,7 @@ public class StyleEditorWindow : Window private int currentSel = 0; private string initialStyle = string.Empty; private bool didSave = false; + private bool anyChanges = false; private string renameText = string.Empty; private bool renameModalDrawing = false; @@ -66,6 +66,10 @@ public class StyleEditorWindow : Window var config = Service.Get(); var newStyle = config.SavedStyles.FirstOrDefault(x => x.Name == this.initialStyle); newStyle?.Apply(); + if (this.anyChanges) + { + Service.Get().InvokeStyleChanged(); + } } base.OnClose(); @@ -85,10 +89,11 @@ public class StyleEditorWindow : Window var styleAry = config.SavedStyles.Select(x => x.Name).ToArray(); ImGui.Text(Loc.Localize("StyleEditorChooseStyle", "Choose Style:")); - if (ImGui.Combo("###styleChooserCombo", ref this.currentSel, styleAry, styleAry.Length)) + if (ImGui.Combo("###styleChooserCombo", ref this.currentSel, styleAry)) { var newStyle = config.SavedStyles[this.currentSel]; newStyle.Apply(); + this.Change(); appliedThisFrame = true; } @@ -103,6 +108,7 @@ public class StyleEditorWindow : Window this.currentSel = config.SavedStyles.Count - 1; newStyle.Apply(); + this.Change(); appliedThisFrame = true; config.QueueSave(); @@ -112,12 +118,13 @@ public class StyleEditorWindow : Window if (isBuiltinStyle) ImGui.BeginDisabled(); - + if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash) && this.currentSel != 0) { this.currentSel--; var newStyle = config.SavedStyles[this.currentSel]; newStyle.Apply(); + this.Change(); appliedThisFrame = true; config.SavedStyles.RemoveAt(this.currentSel + 1); @@ -157,7 +164,7 @@ public class StyleEditorWindow : Window if (ImGui.IsItemHovered()) ImGui.SetTooltip(Loc.Localize("StyleEditorCopy", "Copy style to clipboard for sharing")); - + if (isBuiltinStyle) ImGui.EndDisabled(); @@ -182,6 +189,7 @@ public class StyleEditorWindow : Window config.SavedStyles.Add(newStyle); newStyle.Apply(); + this.Change(); appliedThisFrame = true; this.currentSel = config.SavedStyles.Count - 1; @@ -209,52 +217,56 @@ public class StyleEditorWindow : Window { ImGui.Text(Loc.Localize("StyleEditorApplying", "Applying style...")); } - else if (ImGui.BeginTabBar("StyleEditorTabs")) + else if (ImGui.BeginTabBar("StyleEditorTabs"u8)) { var style = ImGui.GetStyle(); - + var changes = false; if (ImGui.BeginTabItem(Loc.Localize("StyleEditorVariables", "Variables"))) { if (ImGui.BeginChild($"ScrollingVars", ImGuiHelpers.ScaledVector2(0, -32), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() - 5); - ImGui.SliderFloat2("WindowPadding", ref style.WindowPadding, 0.0f, 20.0f, "%.0f"); - ImGui.SliderFloat2("FramePadding", ref style.FramePadding, 0.0f, 20.0f, "%.0f"); - ImGui.SliderFloat2("CellPadding", ref style.CellPadding, 0.0f, 20.0f, "%.0f"); - ImGui.SliderFloat2("ItemSpacing", ref style.ItemSpacing, 0.0f, 20.0f, "%.0f"); - ImGui.SliderFloat2("ItemInnerSpacing", ref style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); - ImGui.SliderFloat2("TouchExtraPadding", ref style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); - ImGui.SliderFloat("IndentSpacing", ref style.IndentSpacing, 0.0f, 30.0f, "%.0f"); - ImGui.SliderFloat("ScrollbarSize", ref style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); - ImGui.SliderFloat("GrabMinSize", ref style.GrabMinSize, 1.0f, 20.0f, "%.0f"); - ImGui.Text("Borders"); - ImGui.SliderFloat("WindowBorderSize", ref style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui.SliderFloat("ChildBorderSize", ref style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui.SliderFloat("PopupBorderSize", ref style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui.SliderFloat("FrameBorderSize", ref style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui.SliderFloat("TabBorderSize", ref style.TabBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui.Text("Rounding"); - ImGui.SliderFloat("WindowRounding", ref style.WindowRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("ChildRounding", ref style.ChildRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("FrameRounding", ref style.FrameRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("PopupRounding", ref style.PopupRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("ScrollbarRounding", ref style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("GrabRounding", ref style.GrabRounding, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("LogSliderDeadzone", ref style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); - ImGui.SliderFloat("TabRounding", ref style.TabRounding, 0.0f, 12.0f, "%.0f"); - ImGui.Text("Alignment"); - ImGui.SliderFloat2("WindowTitleAlign", ref style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + changes |= ImGui.SliderFloat2("WindowPadding", ref style.WindowPadding, 0.0f, 20.0f, "%.0f"); + changes |= ImGui.SliderFloat2("FramePadding", ref style.FramePadding, 0.0f, 20.0f, "%.0f"); + changes |= ImGui.SliderFloat2("CellPadding", ref style.CellPadding, 0.0f, 20.0f, "%.0f"); + changes |= ImGui.SliderFloat2("ItemSpacing", ref style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + changes |= ImGui.SliderFloat2("ItemInnerSpacing", ref style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + changes |= ImGui.SliderFloat2("TouchExtraPadding", ref style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + changes |= ImGui.SliderFloat("IndentSpacing"u8, ref style.IndentSpacing, 0.0f, 30.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("ScrollbarSize"u8, ref style.ScrollbarSize, 1.0f, 20.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("GrabMinSize"u8, ref style.GrabMinSize, 1.0f, 20.0f, "%.0f"u8); + ImGui.Text("Borders"u8); + changes |= ImGui.SliderFloat("WindowBorderSize"u8, ref style.WindowBorderSize, 0.0f, 1.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("ChildBorderSize"u8, ref style.ChildBorderSize, 0.0f, 1.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("PopupBorderSize"u8, ref style.PopupBorderSize, 0.0f, 1.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("FrameBorderSize"u8, ref style.FrameBorderSize, 0.0f, 1.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("TabBorderSize"u8, ref style.TabBorderSize, 0.0f, 1.0f, "%.0f"u8); + ImGui.Text("Rounding"u8); + changes |= ImGui.SliderFloat("WindowRounding"u8, ref style.WindowRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("ChildRounding"u8, ref style.ChildRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("FrameRounding"u8, ref style.FrameRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("PopupRounding"u8, ref style.PopupRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("ScrollbarRounding"u8, ref style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("GrabRounding"u8, ref style.GrabRounding, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("LogSliderDeadzone"u8, ref style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"u8); + changes |= ImGui.SliderFloat("TabRounding"u8, ref style.TabRounding, 0.0f, 12.0f, "%.0f"u8); + ImGui.Text("Alignment"u8); + changes |= ImGui.SliderFloat2("WindowTitleAlign", ref style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); var windowMenuButtonPosition = (int)style.WindowMenuButtonPosition + 1; - if (ImGui.Combo("WindowMenuButtonPosition", ref windowMenuButtonPosition, "None\0Left\0Right\0")) + if (ImGui.Combo("WindowMenuButtonPosition"u8, ref windowMenuButtonPosition, ["None", "Left", "Right"])) + { style.WindowMenuButtonPosition = (ImGuiDir)(windowMenuButtonPosition - 1); - ImGui.SliderFloat2("ButtonTextAlign", ref style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + changes = true; + } + + changes |= ImGui.SliderFloat2("ButtonTextAlign", ref style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); ImGui.SameLine(); ImGuiComponents.HelpMarker("Alignment applies when a button is larger than its text content."); - ImGui.SliderFloat2("SelectableTextAlign", ref style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + changes |= ImGui.SliderFloat2("SelectableTextAlign", ref style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); ImGui.SameLine(); ImGuiComponents.HelpMarker("Alignment applies when a selectable is larger than its text content."); - ImGui.SliderFloat2("DisplaySafeAreaPadding", ref style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); + changes |= ImGui.SliderFloat2("DisplaySafeAreaPadding", ref style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); ImGui.SameLine(); ImGuiComponents.HelpMarker( "Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); @@ -267,17 +279,17 @@ public class StyleEditorWindow : Window if (ImGui.BeginTabItem(Loc.Localize("StyleEditorColors", "Colors"))) { - if (ImGui.BeginChild("ScrollingColors", ImGuiHelpers.ScaledVector2(0, -30), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) + if (ImGui.BeginChild("ScrollingColors"u8, ImGuiHelpers.ScaledVector2(0, -30), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() - 5); - if (ImGui.RadioButton("Opaque", this.alphaFlags == ImGuiColorEditFlags.None)) + if (ImGui.RadioButton("Opaque"u8, this.alphaFlags == ImGuiColorEditFlags.None)) this.alphaFlags = ImGuiColorEditFlags.None; ImGui.SameLine(); - if (ImGui.RadioButton("Alpha", this.alphaFlags == ImGuiColorEditFlags.AlphaPreview)) + if (ImGui.RadioButton("Alpha"u8, this.alphaFlags == ImGuiColorEditFlags.AlphaPreview)) this.alphaFlags = ImGuiColorEditFlags.AlphaPreview; ImGui.SameLine(); - if (ImGui.RadioButton("Both", this.alphaFlags == ImGuiColorEditFlags.AlphaPreviewHalf)) + if (ImGui.RadioButton("Both"u8, this.alphaFlags == ImGuiColorEditFlags.AlphaPreviewHalf)) this.alphaFlags = ImGuiColorEditFlags.AlphaPreviewHalf; ImGui.SameLine(); @@ -288,15 +300,15 @@ public class StyleEditorWindow : Window foreach (var imGuiCol in Enum.GetValues()) { - if (imGuiCol == ImGuiCol.COUNT) + if (imGuiCol == ImGuiCol.Count) continue; ImGui.PushID(imGuiCol.ToString()); - ImGui.ColorEdit4("##color", ref style.Colors[(int)imGuiCol], ImGuiColorEditFlags.AlphaBar | this.alphaFlags); + changes |= ImGui.ColorEdit4("##color", ref style.Colors[(int)imGuiCol], ImGuiColorEditFlags.AlphaBar | this.alphaFlags); ImGui.SameLine(0.0f, style.ItemInnerSpacing.X); - ImGui.TextUnformatted(imGuiCol.ToString()); + ImGui.Text(imGuiCol.ToString()); ImGui.PopID(); } @@ -320,10 +332,11 @@ public class StyleEditorWindow : Window { property.SetValue(workStyle.BuiltInColors, color); workStyle.BuiltInColors?.Apply(); + changes = true; } ImGui.SameLine(0.0f, style.ItemInnerSpacing.X); - ImGui.TextUnformatted(property.Name); + ImGui.Text(property.Name); ImGui.PopID(); } @@ -334,6 +347,11 @@ public class StyleEditorWindow : Window ImGui.EndTabItem(); } + if (changes) + { + this.Change(); + } + ImGui.EndTabBar(); } @@ -365,12 +383,12 @@ public class StyleEditorWindow : Window ImGui.Text(Loc.Localize("StyleEditorEnterName", "Please enter the new name for this style.")); ImGui.Spacing(); - ImGui.InputText("###renameModalInput", ref this.renameText, 255); + ImGui.InputText("###renameModalInput"u8, ref this.renameText, 255); const float buttonWidth = 120f; ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2); - if (ImGui.Button("OK", new Vector2(buttonWidth, 40))) + if (ImGui.Button("OK"u8, new Vector2(buttonWidth, 40))) { config.SavedStyles[this.currentSel].Name = this.renameText; config.QueueSave(); @@ -396,4 +414,10 @@ public class StyleEditorWindow : Window config.QueueSave(); } + + private void Change() + { + this.anyChanges = true; + Service.Get().InvokeStyleChanged(); + } } diff --git a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs index 2b8973dc5..e3eb22a04 100644 --- a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs +++ b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; @@ -21,13 +22,8 @@ using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; using Dalamud.Storage.Assets; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; - -using ImGuiNET; - using Lumina.Text.ReadOnly; - using Serilog; using LSeStringBuilder = Lumina.Text.SeStringBuilder; @@ -360,7 +356,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)shadeEasing.ValueClamped)) { var texture = this.shadeTexture.Value; - ImGui.Image(texture.ImGuiHandle, new Vector2(texture.Width, texture.Height) * scale); + ImGui.Image(texture.Handle, new Vector2(texture.Width, texture.Height) * scale); } var isHover = ImGui.IsItemHovered(); @@ -416,7 +412,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable // Wrap should always be valid at this point due to us checking the validity of the image each frame var dalamudTextureWrap = entry.Texture.GetWrapOrEmpty(); - ImGui.Image(dalamudTextureWrap.ImGuiHandle, new Vector2(TitleScreenMenu.TextureSize * scale)); + ImGui.Image(dalamudTextureWrap.Handle, new Vector2(TitleScreenMenu.TextureSize * scale)); if (overrideAlpha || isFirst) { ImGui.PopStyleVar(); @@ -477,11 +473,11 @@ internal class TitleScreenMenuWindow : Window, IDisposable { if (args is not AddonDrawArgs drawArgs) return; - var addon = (AtkUnitBase*)drawArgs.Addon; + var addon = drawArgs.Addon.Struct; var textNode = addon->GetTextNodeById(3); // look and feel init. should be harmless to set. - textNode->TextFlags |= (byte)TextFlags.MultiLine; + textNode->TextFlags |= TextFlags.MultiLine; textNode->AlignmentType = AlignmentType.TopLeft; var containsDalamudVersionString = textNode->OriginalTextPointer.Value == textNode->NodeText.StringPtr.Value; diff --git a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs index dcfcc32e3..0449bbe09 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ManagedFontAtlas; diff --git a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs index 3b8bfd965..2e497b6cd 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs @@ -2,10 +2,9 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text.Unicode; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas; /// @@ -42,7 +41,7 @@ public static class FontAtlasBuildToolkitUtilities default(FluentGlyphRangeBuilder).With(range); /// - /// Compiles given s into an array of containing ImGui glyph ranges. + /// Compiles given s into an array of containing ImGui glyph ranges. /// /// The chars. /// Add fallback codepoints to the range. @@ -56,7 +55,7 @@ public static class FontAtlasBuildToolkitUtilities enumerable.BeginGlyphRange().Build(addFallbackCodepoints, addEllipsisCodepoints); /// - /// Compiles given s into an array of containing ImGui glyph ranges. + /// Compiles given s into an array of containing ImGui glyph ranges. /// /// The chars. /// Add fallback codepoints to the range. @@ -70,7 +69,7 @@ public static class FontAtlasBuildToolkitUtilities span.BeginGlyphRange().Build(addFallbackCodepoints, addEllipsisCodepoints); /// - /// Compiles given string into an array of containing ImGui glyph ranges. + /// Compiles given string into an array of containing ImGui glyph ranges. /// /// The string. /// Add fallback codepoints to the range. @@ -93,10 +92,11 @@ public static class FontAtlasBuildToolkitUtilities /// The relevant config pointer, or empty config pointer if not found. public static unsafe ImFontConfigPtr FindConfigPtr(this IFontAtlasBuildToolkit toolkit, ImFontPtr fontPtr) { - foreach (ref var c in toolkit.NewImAtlas.ConfigDataWrapped().DataSpan) + for (var i = 0; i < toolkit.NewImAtlas.ConfigData.Size; i++) { - if (c.DstFont == fontPtr.NativePtr) - return new((nint)Unsafe.AsPointer(ref c)); + var c = toolkit.NewImAtlas.ConfigData[i]; + if (c.DstFont == fontPtr.Handle) + return new((ImFontConfig*)Unsafe.AsPointer(ref c)); } return default; diff --git a/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs b/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs index b30d5c26c..47751e12d 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas; /// @@ -15,14 +14,14 @@ public enum FontScaleMode /// Note that bitmap fonts and game fonts will always look blurry if they're not in their original sizes. /// Default, - + /// /// Do nothing with the font. Dalamud will load the font with the size that is exactly as specified. /// On drawing, the font will look blurry due to stretching. /// Intended for use with custom scale handling. /// SkipHandling, - + /// /// Stretch the glyphs of the loaded font by the inverse of the global scale. /// On drawing, the font will always render exactly as the requested size without blurring, as long as diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs index d622fbbb2..1ef0d8a20 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs @@ -1,10 +1,9 @@ using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas; /// @@ -39,7 +38,7 @@ public interface IFontAtlas : IDisposable string Name { get; } /// - /// Gets a value how the atlas should be rebuilt when the relevant Dalamud Configuration changes. + /// Gets a value how the atlas should be rebuilt when the relevant Dalamud Configuration changes. /// FontAtlasAutoRebuildMode AutoRebuildMode { get; } @@ -130,7 +129,7 @@ public interface IFontAtlas : IDisposable /// On use: /// /// using (this.fontHandle.Push()) - /// ImGui.TextUnformatted("Example"); + /// ImGui.Text("Example"u8); /// /// public IFontHandle NewDelegateFontHandle(FontAtlasBuildStepDelegate buildStepDelegate); @@ -153,7 +152,7 @@ public interface IFontAtlas : IDisposable void BuildFontsImmediately(); /// - /// Rebuilds fonts asynchronously, on any thread. + /// Rebuilds fonts asynchronously, on any thread. /// /// The task. /// If is . diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs index ae996a39c..6dbd45c01 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs @@ -1,9 +1,8 @@ using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas; /// diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs index c09285fce..32a096909 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs @@ -1,8 +1,6 @@ -using Dalamud.Interface.Internal; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Textures.TextureWraps; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas; /// diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs index babe17fdd..80757d831 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs @@ -2,12 +2,10 @@ using System.IO; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; using Dalamud.Interface.Utility; -using Dalamud.Utility; - -using ImGuiNET; using TerraFX.Interop.DirectX; @@ -72,12 +70,12 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// Adds a font from memory region allocated using .
/// It WILL crash if you try to use a memory pointer allocated in some other way.
/// - /// Do NOT call on the once this function has + /// Do NOT call on the once this function has /// been called, unless is set and the function has thrown an error. /// ///
/// Memory address for the data allocated using . - /// The size of the font file.. + /// The size of the font file. /// The font config. /// Free if an exception happens. /// A debug tag. @@ -99,12 +97,12 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// Adds a font from memory region allocated using .
/// It WILL crash if you try to use a memory pointer allocated in some other way.
/// - /// Do NOT call on the once this function has + /// Do NOT call on the once this function has /// been called, unless is set and the function has thrown an error. /// ///
/// Memory address for the data allocated using . - /// The size of the font file.. + /// The size of the font file. /// The font config. /// Free if an exception happens. /// A debug tag. @@ -157,7 +155,7 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// used as the font size. Specify -1 to use the default font size. /// /// The glyph ranges. Use .ToGlyphRange to build. - /// A font returned from . + /// A font returned from . ImFontPtr AddDalamudDefaultFont(float sizePx, ushort[]? glyphRanges = null); /// @@ -211,7 +209,7 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// /// The font style, in range from 0 to 2. 0 is normal. /// - /// May do nothing at all if is unsupported by Dalamud font handler. + /// May do nothing at all if is unsupported by Dalamud font handler. /// See /// Microsoft /// Learn for the fonts. diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs index 803f6b82c..2853aa4d2 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ManagedFontAtlas; @@ -56,9 +56,9 @@ public interface IFontHandle : IDisposable /// You may not access the font once you dispose this object. /// /// A disposable object that will pop the font on dispose. - /// If called outside of the main thread. + /// If called outside the main thread. /// - /// This function uses , and may do extra things. + /// This function uses , and may do extra things. /// Use or to undo this operation. /// Do not use . /// @@ -66,18 +66,18 @@ public interface IFontHandle : IDisposable /// Push a font with `using` clause. /// /// using (fontHandle.Push()) - /// ImGui.TextUnformatted("Test"); + /// ImGui.Text("Test"u8); /// /// Push a font with a matching call to . /// /// fontHandle.Push(); - /// ImGui.TextUnformatted("Test 2"); + /// ImGui.Text("Test 2"u8); /// fontHandle.Pop(); /// /// Push a font between two choices. /// /// using ((someCondition ? myFontHandle : dalamudPluginInterface.UiBuilder.MonoFontHandle).Push()) - /// ImGui.TextUnformatted("Test 3"); + /// ImGui.Text("Test 3"u8); /// /// IDisposable Push(); diff --git a/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs b/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs index a4cc3afa7..b59f15485 100644 --- a/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ManagedFontAtlas; diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs index 39e324ff2..f2c91d264 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs @@ -1,12 +1,11 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// @@ -159,7 +158,7 @@ internal sealed class DelegateFontHandle : FontHandle { toolkitPreBuild.Font = default; k.CallOnBuildStepChange(toolkitPreBuild); - if (toolkitPreBuild.Font.IsNull()) + if (toolkitPreBuild.Font.IsNull) { if (fontCountPrevious == fontsVector.Length) { @@ -177,7 +176,7 @@ internal sealed class DelegateFontHandle : FontHandle { for (var i = fontCountPrevious; !found && i < fontsVector.Length; i++) { - if (fontsVector[i].NativePtr == toolkitPreBuild.Font.NativePtr) + if (fontsVector[i].Handle == toolkitPreBuild.Font.Handle) found = true; } } @@ -223,7 +222,7 @@ internal sealed class DelegateFontHandle : FontHandle { unsafe { - if (fontsVector[i].NativePtr == fontsVector[j].NativePtr) + if (fontsVector[i].Handle == fontsVector[j].Handle) throw new InvalidOperationException("An already added font has been added again."); } } @@ -247,7 +246,7 @@ internal sealed class DelegateFontHandle : FontHandle { var distinct = fontsVector - .DistinctBy(x => (nint)x.NativePtr) // Remove duplicates + .DistinctBy(x => (nint)x.Handle) // Remove duplicates .Where(x => x.ValidateUnsafe() is null) // Remove invalid entries without freeing them .ToArray(); diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs index 955b10892..2a93cf093 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; @@ -14,11 +15,7 @@ using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Storage.Assets; using Dalamud.Utility; - -using ImGuiNET; - using SharpDX.DXGI; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -119,7 +116,7 @@ internal sealed partial class FontAtlasFactory foreach (var s in this.data.Substances) { var f = s.GetFontPtr(fontHandle); - if (!f.IsNull()) + if (!f.IsNull) return f; } @@ -155,7 +152,7 @@ internal sealed partial class FontAtlasFactory Log.Verbose( "[{name}] 0x{atlas:X}: {funcname}(0x{dataPointer:X}, 0x{dataSize:X}, ...) from {tag}", this.data.Owner?.Name ?? "(error)", - (nint)this.NewImAtlas.NativePtr, + (nint)this.NewImAtlas.Handle, nameof(this.AddFontFromImGuiHeapAllocatedMemory), (nint)dataPointer, dataSize, @@ -169,7 +166,7 @@ internal sealed partial class FontAtlasFactory var raw = fontConfig.Raw with { FontData = dataPointer, - FontDataOwnedByAtlas = 1, + FontDataOwnedByAtlas = true, FontDataSize = dataSize, }; @@ -181,7 +178,7 @@ internal sealed partial class FontAtlasFactory TrueTypeUtils.CheckImGuiCompatibleOrThrow(raw); - font = this.NewImAtlas.AddFont(&raw); + font = this.NewImAtlas.AddFont(raw); var dataHash = default(HashCode); dataHash.AddBytes(new(dataPointer, dataSize)); @@ -218,11 +215,11 @@ internal sealed partial class FontAtlasFactory } catch { - if (!font.IsNull()) + if (!font.IsNull) { // Note that for both RemoveAt calls, corresponding destructors will be called. - var configIndex = this.data.ConfigData.FindIndex(x => x.DstFont == font.NativePtr); + var configIndex = this.data.ConfigData.FindIndex(x => x.DstFont == font.Handle); if (configIndex >= 0) this.data.ConfigData.RemoveAt(configIndex); @@ -233,7 +230,7 @@ internal sealed partial class FontAtlasFactory // ImFontConfig has no destructor, and does not free the data. if (freeOnException) - ImGuiNative.igMemFree(dataPointer); + ImGui.MemFree(dataPointer); throw; } @@ -265,21 +262,21 @@ internal sealed partial class FontAtlasFactory stream = ms; } - var length = checked((int)(uint)stream.Length); + var length = checked((uint)stream.Length); var memory = ImGuiHelpers.AllocateMemory(length); try { - stream.ReadExactly(new(memory, length)); + stream.ReadExactly(new(memory, checked((int)length))); return this.AddFontFromImGuiHeapAllocatedMemory( memory, - length, + checked((int)length), fontConfig, false, $"{nameof(this.AddFontFromStream)}({debugTag})"); } catch { - ImGuiNative.igMemFree(memory); + ImGui.MemFree(memory); throw; } } @@ -291,7 +288,7 @@ internal sealed partial class FontAtlasFactory string debugTag) { var length = span.Length; - var memory = ImGuiHelpers.AllocateMemory(length); + var memory = ImGuiHelpers.AllocateMemory(checked((uint)length)); try { span.CopyTo(new(memory, length)); @@ -304,7 +301,7 @@ internal sealed partial class FontAtlasFactory } catch { - ImGuiNative.igMemFree(memory); + ImGui.MemFree(memory); throw; } } @@ -334,14 +331,14 @@ internal sealed partial class FontAtlasFactory } } - if (font.IsNull()) + if (font.IsNull) { // fall back to AXIS fonts font = this.AddGameGlyphs(new(GameFontFamily.Axis, sizePx), glyphRanges, default); } this.AttachExtraGlyphsForDalamudLanguage(new() { SizePx = sizePx, MergeFont = font }); - if (this.Font.IsNull()) + if (this.Font.IsNull) this.Font = font; return font; } @@ -416,9 +413,9 @@ internal sealed partial class FontAtlasFactory int style = (int)DWRITE_FONT_STYLE.DWRITE_FONT_STYLE_NORMAL) { var targetFont = fontConfig.MergeFont; - if (targetFont.IsNull()) + if (targetFont.IsNull) targetFont = this.Font; - if (targetFont.IsNull()) + if (targetFont.IsNull) return; // https://learn.microsoft.com/en-us/windows/apps/design/globalizing/loc-international-fonts @@ -559,9 +556,9 @@ internal sealed partial class FontAtlasFactory public void AttachExtraGlyphsForDalamudLanguage(in SafeFontConfig fontConfig) { var targetFont = fontConfig.MergeFont; - if (targetFont.IsNull()) + if (targetFont.IsNull) targetFont = this.Font; - if (targetFont.IsNull()) + if (targetFont.IsNull) return; var dalamudConfiguration = Service.Get(); @@ -653,7 +650,7 @@ internal sealed partial class FontAtlasFactory foreach (var c in FallbackCodepoints) { var g = font.FindGlyphNoFallback(c); - if (g.NativePtr == null) + if (g == null) continue; font.UpdateFallbackChar(c); @@ -663,7 +660,7 @@ internal sealed partial class FontAtlasFactory foreach (var c in EllipsisCodepoints) { var g = font.FindGlyphNoFallback(c); - if (g.NativePtr == null) + if (g == null) continue; font.EllipsisChar = c; @@ -699,8 +696,8 @@ internal sealed partial class FontAtlasFactory { ref var texture = ref textureSpan[i]; var name = - $"{nameof(FontAtlasBuiltData)}[{this.data.Owner?.Name ?? "-"}][0x{(long)this.data.Atlas.NativePtr:X}][{i}]"; - if (texture.TexID != 0) + $"{nameof(FontAtlasBuiltData)}[{this.data.Owner?.Name ?? "-"}][0x{(long)this.data.Atlas.Handle:X}][{i}]"; + if (!texture.TexID.IsNull) { // Nothing to do } @@ -712,7 +709,7 @@ internal sealed partial class FontAtlasFactory name); this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin); this.data.AddExistingTexture(wrap); - texture.TexID = wrap.ImGuiHandle; + texture.TexID = wrap.Handle; } else if (texture.TexPixelsAlpha8 is not null) { @@ -758,7 +755,7 @@ internal sealed partial class FontAtlasFactory name); this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin); this.data.AddExistingTexture(wrap); - texture.TexID = wrap.ImGuiHandle; + texture.TexID = wrap.Handle; continue; } else @@ -769,9 +766,9 @@ internal sealed partial class FontAtlasFactory } if (texture.TexPixelsRGBA32 is not null) - ImGuiNative.igMemFree(texture.TexPixelsRGBA32); + ImGui.MemFree(texture.TexPixelsRGBA32); if (texture.TexPixelsAlpha8 is not null) - ImGuiNative.igMemFree(texture.TexPixelsAlpha8); + ImGui.MemFree(texture.TexPixelsAlpha8); texture.TexPixelsRGBA32 = null; texture.TexPixelsAlpha8 = null; } @@ -795,8 +792,8 @@ internal sealed partial class FontAtlasFactory var targetFound = false; foreach (var f in this.Fonts) { - sourceFound |= f.NativePtr == source.NativePtr; - targetFound |= f.NativePtr == target.NativePtr; + sourceFound |= f.Handle == source.Handle; + targetFound |= f.Handle == target.Handle; } if (sourceFound && targetFound) @@ -817,8 +814,8 @@ internal sealed partial class FontAtlasFactory public unsafe void BuildLookupTable(ImFontPtr font) { // Need to clear previous Fallback pointers before BuildLookupTable, or it may crash - font.NativePtr->FallbackGlyph = null; - font.NativePtr->FallbackHotData = null; + font.Handle->FallbackGlyph = null; + font.Handle->FallbackHotData = null; font.BuildLookupTable(); // Need to fix our custom ImGui, so that imgui_widgets.cpp:3656 stops thinking @@ -826,7 +823,7 @@ internal sealed partial class FontAtlasFactory // Otherwise, having a fallback character in ImGui.InputText gets strange. var indexedHotData = font.IndexedHotDataWrapped(); var indexLookup = font.IndexLookupWrapped(); - ref var fallbackHotData = ref *(ImGuiHelpers.ImFontGlyphHotDataReal*)font.NativePtr->FallbackHotData; + ref var fallbackHotData = ref *(ImGuiHelpers.ImFontGlyphHotDataReal*)font.Handle->FallbackHotData; for (var codepoint = 0; codepoint < indexedHotData.Length; codepoint++) { if (indexLookup[codepoint] == ushort.MaxValue) diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs index 2d3b9582c..430f26127 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs @@ -8,16 +8,14 @@ using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; -using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; -using ImGuiNET; - using JetBrains.Annotations; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -74,12 +72,12 @@ internal sealed partial class FontAtlasFactory var wrapsCopy = this.wraps = new(); this.Garbage.Add(() => wrapsCopy.Clear()); - var atlasPtr = ImGuiNative.ImFontAtlas_ImFontAtlas(); + var atlasPtr = ImGui.ImFontAtlas(); this.Atlas = atlasPtr; - if (this.Atlas.NativePtr is null) + if (this.Atlas.Handle is null) throw new OutOfMemoryException($"Failed to allocate a new {nameof(ImFontAtlas)}."); - this.Garbage.Add(() => ImGuiNative.ImFontAtlas_destroy(atlasPtr)); + this.Garbage.Add(() => this.Atlas.Destroy()); this.IsBuildInProgress = true; Interlocked.Increment(ref numActiveInstances); @@ -128,7 +126,7 @@ internal sealed partial class FontAtlasFactory if (this.wraps is null) throw new ObjectDisposedException(nameof(FontAtlasBuiltData)); - var handle = wrap.ImGuiHandle; + var handle = wrap.Handle; var index = this.ImTextures.IndexOf(x => x.TexID == handle); if (index == -1) { @@ -189,7 +187,7 @@ internal sealed partial class FontAtlasFactory case IRefCountable.RefCountResult.FinalRelease: #if VeryVerboseLog - Log.Verbose("[{name}] 0x{ptr:X}: Disposing", this.Owner?.Name ?? "", (nint)this.Atlas.NativePtr); + Log.Verbose("[{name}] 0x{ptr:X}: Disposing", this.Owner?.Name ?? "", (nint)this.Atlas.Handle); #endif if (this.IsBuildInProgress) @@ -200,7 +198,7 @@ internal sealed partial class FontAtlasFactory "[{name}] 0x{ptr:X}: Trying to dispose while build is in progress; disposing later.\n" + "Stack:\n{trace}", this.Owner?.Name ?? "", - (nint)this.Atlas.NativePtr, + (nint)this.Atlas.Handle, new StackTrace()); } @@ -310,7 +308,7 @@ internal sealed partial class FontAtlasFactory throw; } - this.factory.SceneTask.ContinueWith( + this.factory.BackendTask.ContinueWith( r => { lock (this.syncRoot) @@ -318,8 +316,8 @@ internal sealed partial class FontAtlasFactory if (this.disposed) return; - r.Result.OnNewRenderFrame += this.ImGuiSceneOnNewRenderFrame; - this.disposables.Add(() => r.Result.OnNewRenderFrame -= this.ImGuiSceneOnNewRenderFrame); + r.Result.NewRenderFrame += this.ImGuiSceneOnNewRenderFrame; + this.disposables.Add(() => r.Result.NewRenderFrame -= this.ImGuiSceneOnNewRenderFrame); } if (this.AutoRebuildMode == FontAtlasAutoRebuildMode.OnNewFrame) @@ -372,7 +370,7 @@ internal sealed partial class FontAtlasFactory public Task BuildTask => this.buildTask; /// - public bool HasBuiltAtlas => !(this.builtData?.Atlas.IsNull() ?? true); + public bool HasBuiltAtlas => !(this.builtData?.Atlas.IsNull ?? true); /// public bool IsGlobalScaled { get; } @@ -555,7 +553,7 @@ internal sealed partial class FontAtlasFactory } var res = await this.RebuildFontsPrivate(true, scale); - if (res.Atlas.IsNull()) + if (res.Atlas.IsNull) return res; this.PromoteBuiltData(rebuildIndex, res, nameof(this.BuildFontsAsync)); @@ -653,7 +651,7 @@ internal sealed partial class FontAtlasFactory res.InitialAddSubstance(fhm.NewSubstance(res)); unsafe { - atlasPtr = (nint)res.Atlas.NativePtr; + atlasPtr = (nint)res.Atlas.Handle; } Log.Verbose( @@ -688,7 +686,7 @@ internal sealed partial class FontAtlasFactory res.InitialAddSubstance(fhm.NewSubstance(res)); unsafe { - atlasPtr = (nint)res.Atlas.NativePtr; + atlasPtr = (nint)res.Atlas.Handle; } toolkit = res.CreateToolkit(this.factory, isAsync); @@ -721,7 +719,7 @@ internal sealed partial class FontAtlasFactory foreach (var font in toolkit.Fonts) toolkit.BuildLookupTable(font); - if (this.factory.SceneTask is { IsCompleted: false } sceneTask) + if (this.factory.BackendTask is { IsCompleted: false } backendTask) { Log.Verbose( "[{name}:{functionname}] 0x{ptr:X}: await SceneTask (at {sw}ms)", @@ -729,7 +727,7 @@ internal sealed partial class FontAtlasFactory nameof(this.RebuildFontsPrivateReal), atlasPtr, sw.ElapsedMilliseconds); - await sceneTask.ConfigureAwait(!isAsync); + await backendTask.ConfigureAwait(!isAsync); } #if VeryVerboseLog diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs index c084d88e2..6ae810dec 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs @@ -1,28 +1,24 @@ -using System.Buffers; +using System.Buffers; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Data; using Dalamud.Game; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; +using Dalamud.Interface.ImGuiBackend; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; using Dalamud.Utility; - -using ImGuiNET; - -using ImGuiScene; - using Lumina.Data.Files; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -52,9 +48,9 @@ internal sealed partial class FontAtlasFactory this.Framework = framework; this.InterfaceManager = interfaceManager; this.dalamudAssetManager = dalamudAssetManager; - this.SceneTask = Service + this.BackendTask = Service .GetAsync() - .ContinueWith(r => r.Result.Manager.Scene); + .ContinueWith(r => r.Result.Manager.Backend); var gffasInfo = Enum.GetValues() .Select( @@ -120,19 +116,11 @@ internal sealed partial class FontAtlasFactory public IFontSpec DefaultFontSpec => this.DefaultFontSpecOverride ?? Service.Get().DefaultFontSpec -#pragma warning disable CS0618 // Type or member is obsolete - ?? (Service.Get().UseAxisFontsFromGame -#pragma warning restore CS0618 // Type or member is obsolete - ? new() - { - FontId = new GameFontAndFamilyId(GameFontFamily.Axis), - SizePx = InterfaceManager.DefaultFontSizePx, - } - : new SingleFontSpec - { - FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansJpMedium), - SizePx = InterfaceManager.DefaultFontSizePx + 1, - }); + ?? new SingleFontSpec() + { + FontId = new GameFontAndFamilyId(GameFontFamily.Axis), + SizePx = InterfaceManager.DefaultFontSizePx, + }; /// /// Gets the service instance of . @@ -141,7 +129,7 @@ internal sealed partial class FontAtlasFactory /// /// Gets the service instance of .
- /// may not yet be available. + /// may not yet be available. ///
public InterfaceManager InterfaceManager { get; } @@ -151,9 +139,9 @@ internal sealed partial class FontAtlasFactory public TextureManager TextureManager => Service.Get(); /// - /// Gets the async task for inside . + /// Gets the async task for inside . /// - public Task SceneTask { get; } + public Task BackendTask { get; } /// /// Gets the default glyph ranges (glyph ranges of ). diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs index 7f390350c..1fdaf4596 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs @@ -4,14 +4,12 @@ using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; - -using ImGuiNET; - using Serilog; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -184,7 +182,7 @@ internal abstract class FontHandle : IFontHandle } var fontPtr = substance.GetFontPtr(this); - if (fontPtr.IsNull()) + if (fontPtr.IsNull) { // The font for the requested handle is unavailable. Release the reference and try again. substance.DataRoot.Release(); diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs index 3d1dfa674..f6904db7c 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs @@ -1,19 +1,17 @@ -using System.Buffers; +using System.Buffers; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reactive.Disposables; +using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; using Dalamud.Interface.GameFonts; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Utility; - -using ImGuiNET; - using Lumina.Data.Files; using Vector4 = System.Numerics.Vector4; @@ -252,7 +250,7 @@ internal class GamePrebakedFontHandle : FontHandle GameFontStyle style, ushort[]? glyphRanges = null) { - if (font.IsNull()) + if (font.IsNull) font = this.CreateTemplateFont(toolkitPreBuild, style.SizePx); this.attachments.Add((font, style, glyphRanges)); return font; @@ -381,7 +379,10 @@ internal class GamePrebakedFontHandle : FontHandle var pixels8Array = new byte*[toolkitPostBuild.NewImAtlas.Textures.Size]; var widths = new int[toolkitPostBuild.NewImAtlas.Textures.Size]; for (var i = 0; i < pixels8Array.Length; i++) - toolkitPostBuild.NewImAtlas.GetTexDataAsAlpha8(i, out pixels8Array[i], out widths[i], out _); + { + var width = 0; + toolkitPostBuild.NewImAtlas.GetTexDataAsAlpha8(i, ref pixels8Array[i], ref widths[i], ref width); + } foreach (var (style, plan) in this.fonts) { @@ -429,7 +430,7 @@ internal class GamePrebakedFontHandle : FontHandle var fas = style.Scale(atlasScale).FamilyAndSize; using var handle = this.handleManager.GameFontTextureProvider.CreateFdtFileView(fas, out var fdt); ref var fdtFontHeader = ref fdt.FontHeader; - var fontPtr = font.NativePtr; + var fontPtr = font.Handle; var scale = style.SizePt / fdtFontHeader.Size; fontPtr->Ascent = fdtFontHeader.Ascent * scale; @@ -513,7 +514,7 @@ internal class GamePrebakedFontHandle : FontHandle var ranges = this.Ranges[this.FullRangeFont]; foreach (var (font, extraRange) in this.Ranges) { - if (font.NativePtr != this.FullRangeFont.NativePtr) + if (font.Handle != this.FullRangeFont.Handle) ranges.Or(extraRange); } @@ -562,7 +563,7 @@ internal class GamePrebakedFontHandle : FontHandle public unsafe void PostProcessFullRangeFont(float atlasScale) { var round = 1 / atlasScale; - var pfrf = this.FullRangeFont.NativePtr; + var pfrf = this.FullRangeFont.Handle; ref var frf = ref *pfrf; frf.FontSize = MathF.Round(frf.FontSize / round) * round; @@ -589,19 +590,18 @@ internal class GamePrebakedFontHandle : FontHandle continue; if (!fullRange[leftInt] || !fullRange[rightInt]) continue; - ImGuiNative.ImFont_AddKerningPair( - pfrf, + pfrf->AddKerningPair( (ushort)leftInt, (ushort)rightInt, MathF.Round((k.RightOffset * scale) / round) * round); } pfrf->FallbackGlyph = null; - ImGuiNative.ImFont_BuildLookupTable(pfrf); + pfrf->BuildLookupTable(); foreach (var fallbackCharCandidate in FontAtlasFactory.FallbackCodepoints) { - var glyph = ImGuiNative.ImFont_FindGlyphNoFallback(pfrf, fallbackCharCandidate); + var glyph = pfrf->FindGlyphNoFallback(fallbackCharCandidate); if ((nint)glyph == IntPtr.Zero) continue; frf.FallbackChar = fallbackCharCandidate; @@ -619,7 +619,7 @@ internal class GamePrebakedFontHandle : FontHandle foreach (var (font, rangeBits) in this.Ranges) { - if (font.NativePtr == this.FullRangeFont.NativePtr) + if (font.Handle == this.FullRangeFont.Handle) continue; var fontScaleMode = toolkitPostBuild.GetFontScaleMode(font); @@ -681,16 +681,16 @@ internal class GamePrebakedFontHandle : FontHandle } } - font.NativePtr->FallbackGlyph = null; + font.Handle->FallbackGlyph = null; font.BuildLookupTable(); foreach (var fallbackCharCandidate in FontAtlasFactory.FallbackCodepoints) { - var glyph = font.FindGlyphNoFallback(fallbackCharCandidate).NativePtr; - if ((nint)glyph == IntPtr.Zero) + var glyph = font.FindGlyphNoFallback(fallbackCharCandidate); + if (glyph == null) continue; - ref var frf = ref *font.NativePtr; + ref var frf = ref *font.Handle; frf.FallbackChar = fallbackCharCandidate; frf.FallbackGlyph = glyph; frf.FallbackHotData = @@ -804,8 +804,7 @@ internal class GamePrebakedFontHandle : FontHandle else { ref var rc = ref *(ImGuiHelpers.ImFontAtlasCustomRectReal*)toolkitPostBuild.NewImAtlas - .GetCustomRectByIndex(rectId) - .NativePtr; + .GetCustomRectByIndex(rectId); var widthAdjustment = this.BaseStyle.CalculateBaseWidthAdjustment(fdtFontHeader, fdtGlyph); // Glyph is scaled at this point; undo that. diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs index ef4150e33..75d06bd7e 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// @@ -45,7 +44,7 @@ internal interface IFontHandleSubstance : IDisposable /// /// The toolkit. void OnPreBuild(IFontAtlasBuildToolkitPreBuild toolkitPreBuild); - + /// /// Called between and calls.
/// Any further modification to will result in undefined behavior. diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs index bd50502c8..b7f5ad12b 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs @@ -1,7 +1,6 @@ +using Dalamud.Bindings.ImGui; using Dalamud.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs index 0c96025ac..0d6ad5c7c 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.Diagnostics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - using Microsoft.Extensions.ObjectPool; using Serilog; @@ -32,10 +31,10 @@ internal sealed class SimplePushedFont : IDisposable public static SimplePushedFont Rent(List stack, ImFontPtr fontPtr) { var rented = Pool.Get(); - Debug.Assert(rented.font.IsNull(), "Rented object must not have its font set"); + Debug.Assert(rented.font.IsNull, "Rented object must not have its font set"); rented.stack = stack; - if (fontPtr.IsNotNullAndLoaded()) + if (!fontPtr.IsNull && fontPtr.IsLoaded()) { rented.font = fontPtr; ImGui.PushFont(fontPtr); @@ -54,9 +53,9 @@ internal sealed class SimplePushedFont : IDisposable this.stack.RemoveAt(this.stack.Count - 1); - if (!this.font.IsNull()) + if (!this.font.IsNull) { - if (ImGui.GetFont().NativePtr == this.font.NativePtr) + if (ImGui.GetFont().Handle == this.font.Handle) { ImGui.PopFont(); } diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs index 1d437d56d..3c566e756 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs @@ -2,10 +2,9 @@ using System.Buffers.Binary; using System.Collections.Generic; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; -using ImGuiNET; - namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// @@ -18,7 +17,7 @@ internal static partial class TrueTypeUtils /// and throws an appropriate exception if it is the case. /// /// The font config. - public static unsafe void CheckImGuiCompatibleOrThrow(in ImFontConfig fontConfig) + public static unsafe void CheckImGuiCompatibleOrThrow(in ImFontConfigPtr fontConfig) { var ranges = fontConfig.GlyphRanges; var sfnt = AsSfntFile(fontConfig); @@ -35,7 +34,7 @@ internal static partial class TrueTypeUtils /// The font config. /// The enumerable of pair adjustments. Distance values need to be multiplied by font size in pixels. public static IEnumerable<(char Left, char Right, float Distance)> ExtractHorizontalPairAdjustments( - ImFontConfig fontConfig) + ImFontConfigPtr fontConfig) { float multiplier; Dictionary glyphToCodepoints; @@ -107,7 +106,7 @@ internal static partial class TrueTypeUtils } } - private static unsafe SfntFile AsSfntFile(in ImFontConfig fontConfig) + private static unsafe SfntFile AsSfntFile(in ImFontConfigPtr fontConfig) { var memory = new PointerSpan((byte*)fontConfig.FontData, fontConfig.FontDataSize); if (memory.Length < 4) diff --git a/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs b/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs index caa686856..484c3540b 100644 --- a/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs +++ b/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Text; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.ManagedFontAtlas; @@ -14,13 +14,14 @@ public struct SafeFontConfig /// /// The raw config. /// - public ImFontConfig Raw; + public ImFontConfigPtr Raw; /// /// Initializes a new instance of the struct. /// - public SafeFontConfig() + public unsafe SafeFontConfig() { + this.Raw.Handle = ImGui.ImFontConfig(); this.OversampleH = 1; this.OversampleV = 1; this.PixelSnapH = true; @@ -28,7 +29,7 @@ public struct SafeFontConfig this.RasterizerMultiply = 1f; this.RasterizerGamma = 1.7f; this.EllipsisChar = unchecked((char)-1); - this.Raw.FontDataOwnedByAtlas = 1; + this.Raw.FontDataOwnedByAtlas = true; } /// @@ -39,9 +40,9 @@ public struct SafeFontConfig public unsafe SafeFontConfig(ImFontConfigPtr config) : this() { - if (config.NativePtr is not null) + if (config.Handle is not null) { - this.Raw = *config.NativePtr; + this.Raw = config.Handle; this.Raw.GlyphRanges = null; } } @@ -107,8 +108,8 @@ public struct SafeFontConfig /// public bool PixelSnapH { - get => this.Raw.PixelSnapH != 0; - set => this.Raw.PixelSnapH = value ? (byte)1 : (byte)0; + get => this.Raw.PixelSnapH; + set => this.Raw.PixelSnapH = value; } /// @@ -237,11 +238,11 @@ public struct SafeFontConfig /// public unsafe ImFontPtr MergeFont { - get => this.Raw.DstFont is not null ? this.Raw.DstFont : default; + get => this.Raw.DstFont.Handle != null ? this.Raw.DstFont : default; set { - this.Raw.MergeMode = value.NativePtr is null ? (byte)0 : (byte)1; - this.Raw.DstFont = value.NativePtr is null ? default : value.NativePtr; + this.Raw.MergeMode = value.Handle != null; + this.Raw.DstFont = value.Handle == null ? ImFontPtr.Null : value.Handle; } } diff --git a/Dalamud/Interface/Style/StyleModel.cs b/Dalamud/Interface/Style/StyleModel.cs index 643fe463d..bfce480f2 100644 --- a/Dalamud/Interface/Style/StyleModel.cs +++ b/Dalamud/Interface/Style/StyleModel.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Utility; -using ImGuiNET; using Newtonsoft.Json; using Serilog; diff --git a/Dalamud/Interface/Style/StyleModelV1.cs b/Dalamud/Interface/Style/StyleModelV1.cs index ca3f74942..8c1de86f3 100644 --- a/Dalamud/Interface/Style/StyleModelV1.cs +++ b/Dalamud/Interface/Style/StyleModelV1.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; -using ImGuiNET; using Newtonsoft.Json; namespace Dalamud.Interface.Style; @@ -400,7 +400,7 @@ public class StyleModelV1 : StyleModel foreach (var imGuiCol in Enum.GetValues()) { - if (imGuiCol == ImGuiCol.COUNT) + if (imGuiCol == ImGuiCol.Count) { continue; } @@ -472,7 +472,7 @@ public class StyleModelV1 : StyleModel foreach (var imGuiCol in Enum.GetValues()) { - if (imGuiCol == ImGuiCol.COUNT) + if (imGuiCol == ImGuiCol.Count) { continue; } @@ -512,7 +512,7 @@ public class StyleModelV1 : StyleModel foreach (var imGuiCol in Enum.GetValues()) { - if (imGuiCol == ImGuiCol.COUNT) + if (imGuiCol == ImGuiCol.Count) { continue; } diff --git a/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs b/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs index 7f8f02c7e..e786d373c 100644 --- a/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs +++ b/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs @@ -1,4 +1,3 @@ -using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface.Textures; @@ -17,6 +16,6 @@ public static class DalamudTextureWrapExtensions return false; if (a is null) return false; - return a.ImGuiHandle == b.ImGuiHandle; + return a.Handle == b.Handle; } } diff --git a/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs b/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs index c48d8c73e..d04688fe4 100644 --- a/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs +++ b/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs @@ -1,11 +1,9 @@ using System.Numerics; using System.Text; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; - -using ImGuiNET; - using TerraFX.Interop.DirectX; namespace Dalamud.Interface.Textures; diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs b/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs index ffdc17d58..837b41271 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Plugin.Internal.Types; @@ -65,7 +66,7 @@ internal sealed partial class TextureManager try { - if (textureWrap.ImGuiHandle == nint.Zero) + if (textureWrap.Handle.IsNull) return textureWrap; } catch (ObjectDisposedException) @@ -102,7 +103,7 @@ internal sealed partial class TextureManager try { - if (textureWrap.ImGuiHandle == nint.Zero) + if (textureWrap.Handle.IsNull) return textureWrap; } catch (ObjectDisposedException) @@ -252,16 +253,16 @@ internal sealed partial class TextureManager 0); /// - public IntPtr ImGuiHandle + public ImTextureID Handle { get { if (this.refCount == 0) - return Service.Get().Empty4X4.ImGuiHandle; + return Service.Get().Empty4X4.Handle; this.srvDebugPreviewExpiryTick = Environment.TickCount64 + 1000; if (!this.srvDebugPreview.IsEmpty()) - return (nint)this.srvDebugPreview.Get(); + return new ImTextureID(this.srvDebugPreview.Get()); var srvDesc = new D3D11_SHADER_RESOURCE_VIEW_DESC( this.tex2D, D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); @@ -272,10 +273,10 @@ internal sealed partial class TextureManager using var srv = default(ComPtr); if (device.Get()->CreateShaderResourceView((ID3D11Resource*)this.tex2D, &srvDesc, srv.GetAddressOf()) .FAILED) - return Service.Get().Empty4X4.ImGuiHandle; + return Service.Get().Empty4X4.Handle; srv.Swap(ref this.srvDebugPreview); - return (nint)this.srvDebugPreview.Get(); + return new ImTextureID(this.srvDebugPreview.Get()); } } diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs b/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs index 7fb79311a..b4573f04f 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs @@ -2,11 +2,9 @@ using System.Buffers; using System.Diagnostics.CodeAnalysis; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Storage.Assets; using Dalamud.Utility; - -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -60,7 +58,7 @@ internal sealed partial class TextureManager /// The device. public void Setup(ID3D11Device* device) { - var assembly = typeof(ImGuiScene.ImGui_Impl_DX11).Assembly; + var assembly = typeof(SimpleDrawerImpl).Assembly; // Create the vertex shader if (this.vertexShader.IsEmpty() || this.inputLayout.IsEmpty()) @@ -214,10 +212,10 @@ internal sealed partial class TextureManager { var data = stackalloc ImDrawVert[] { - new() { col = uint.MaxValue, pos = new(-1, 1), uv = new(0, 0) }, - new() { col = uint.MaxValue, pos = new(-1, -1), uv = new(0, 1) }, - new() { col = uint.MaxValue, pos = new(1, 1), uv = new(1, 0) }, - new() { col = uint.MaxValue, pos = new(1, -1), uv = new(1, 1) }, + new() { Col = uint.MaxValue, Pos = new(-1, 1), Uv = new(0, 0) }, + new() { Col = uint.MaxValue, Pos = new(-1, -1), Uv = new(0, 1) }, + new() { Col = uint.MaxValue, Pos = new(1, 1), Uv = new(1, 0) }, + new() { Col = uint.MaxValue, Pos = new(1, -1), Uv = new(1, 1) }, }; var desc = new D3D11_BUFFER_DESC( (uint)(sizeof(ImDrawVert) * 4), @@ -295,10 +293,10 @@ internal sealed partial class TextureManager return; _ = new Span(mapped.pData, 4) { - [0] = new() { col = uint.MaxValue, pos = new(-1, 1), uv = uv0 }, - [1] = new() { col = uint.MaxValue, pos = new(-1, -1), uv = new(uv0.X, uv1.Y) }, - [2] = new() { col = uint.MaxValue, pos = new(1, 1), uv = new(uv1.X, uv0.Y) }, - [3] = new() { col = uint.MaxValue, pos = new(1, -1), uv = uv1 }, + [0] = new() { Col = uint.MaxValue, Pos = new(-1, 1), Uv = uv0 }, + [1] = new() { Col = uint.MaxValue, Pos = new(-1, -1), Uv = new(uv0.X, uv1.Y) }, + [2] = new() { Col = uint.MaxValue, Pos = new(1, 1), Uv = new(uv1.X, uv0.Y) }, + [3] = new() { Col = uint.MaxValue, Pos = new(1, -1), Uv = uv1 }, }; ctx->Unmap((ID3D11Resource*)buffer, 0u); } @@ -382,7 +380,7 @@ internal sealed partial class TextureManager ctx->PSSetShader(this.pixelShader, null, 0); var simp = this.sampler.Get(); ctx->PSSetSamplers(0, 1, &simp); - var ppn = (ID3D11ShaderResourceView*)Service.Get().White4X4.ImGuiHandle; + var ppn = (ID3D11ShaderResourceView*)Service.Get().White4X4.Handle.Handle; ctx->PSSetShaderResources(0, 1, &ppn); ctx->GSSetShader(null, null, 0); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs b/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs index 829b8d0c5..07068db5b 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs @@ -320,7 +320,7 @@ internal sealed partial class TextureManager { this.wrapToClose = leaveWrapOpen ? null : wrap; - using var unk = new ComPtr((IUnknown*)wrap.ImGuiHandle); + using var unk = new ComPtr((IUnknown*)wrap.Handle.Handle); using var srvTemp = default(ComPtr); unk.As(&srvTemp).ThrowOnError(); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.cs b/Dalamud/Interface/Textures/Internal/TextureManager.cs index 8ac8e60ec..059c716ce 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.cs @@ -61,7 +61,7 @@ internal sealed partial class TextureManager private unsafe TextureManager(InterfaceManager.InterfaceManagerWithScene withScene) { using var failsafe = new DisposeSafety.ScopedFinalizer(); - failsafe.Add(this.device = new((ID3D11Device*)withScene.Manager.Device!.NativePointer)); + failsafe.Add(this.device = new((ID3D11Device*)withScene.Manager.Backend!.DeviceHandle)); failsafe.Add(this.dynamicPriorityTextureLoader = new(Math.Max(1, Environment.ProcessorCount - 1))); failsafe.Add(this.sharedTextureManager = new(this)); failsafe.Add(this.wicManager = new(this)); diff --git a/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs index 7d6ff8580..342397c5e 100644 --- a/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs @@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using System.Runtime.CompilerServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps.Internal; @@ -13,10 +14,10 @@ namespace Dalamud.Interface.Textures.TextureWraps; public abstract class ForwardingTextureWrap : IDalamudTextureWrap { /// - public IntPtr ImGuiHandle + public ImTextureID Handle { [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => this.GetWrap().ImGuiHandle; + get => this.GetWrap().Handle; } /// @@ -55,7 +56,7 @@ public abstract class ForwardingTextureWrap : IDalamudTextureWrap public virtual unsafe IDalamudTextureWrap CreateWrapSharingLowLevelResource() { // Dalamud specific: IDalamudTextureWrap always points to an ID3D11ShaderResourceView. - var handle = (IUnknown*)this.ImGuiHandle; + var handle = (IUnknown*)this.Handle.Handle; return new UnknownTextureWrap(handle, this.Width, this.Height, true); } diff --git a/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs index 88f2dd718..b30adced7 100644 --- a/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs @@ -1,5 +1,6 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Textures.TextureWraps.Internal; using TerraFX.Interop.Windows; @@ -15,7 +16,7 @@ namespace Dalamud.Interface.Textures.TextureWraps; public interface IDalamudTextureWrap : IDisposable { /// Gets a texture handle suitable for direct use with ImGui functions. - IntPtr ImGuiHandle { get; } + ImTextureID Handle { get; } /// Gets the width of the texture. int Width { get; } @@ -32,7 +33,7 @@ public interface IDalamudTextureWrap : IDisposable /// The new reference to this texture wrap. /// /// On calling this function, a new instance of will be returned, but with - /// the same . The new instance must be d, as the backing + /// the same . The new instance must be d, as the backing /// resource will stay alive until all the references are released. The old instance may be disposed as needed, /// once this function returns; the new instance will stay alive regardless of whether the old instance has been /// disposed.
@@ -40,12 +41,12 @@ public interface IDalamudTextureWrap : IDisposable /// across plugin boundaries for use for an indeterminate duration, the receiver should call this function to /// obtain a new reference to the texture received, so that it gets its own "copy" of the texture and the caller /// may dispose the texture anytime without any care for the receiver.
- /// The default implementation will treat as an . + /// The default implementation will treat as an . ///
unsafe IDalamudTextureWrap CreateWrapSharingLowLevelResource() { // Dalamud specific: IDalamudTextureWrap always points to an ID3D11ShaderResourceView. - var handle = (IUnknown*)this.ImGuiHandle; + var handle = (IUnknown*)this.Handle.Handle; return new UnknownTextureWrap(handle, this.Width, this.Height, true); } } diff --git a/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs index 4fb5d1aca..55a0ca027 100644 --- a/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs @@ -1,9 +1,8 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Textures.TextureWraps.Internal; -using ImGuiNET; - namespace Dalamud.Interface.Textures.TextureWraps; /// A texture wrap that can be drawn using ImGui draw data. @@ -41,7 +40,7 @@ public interface IDrawListTextureWrap : IDalamudTextureWrap /// This function can be called only from the main thread. void Draw(ImDrawListPtr drawListPtr, Vector2 displayPos, Vector2 scale); - /// + /// void Draw(scoped in ImDrawData drawData); /// Draws from a draw data to this texture. @@ -55,7 +54,7 @@ public interface IDrawListTextureWrap : IDalamudTextureWrap /// Resizes this texture and draws an ImGui window. /// Name and ID of the window to draw. Use the value that goes into - /// . + /// . /// Scale to apply to all draw commands in the draw list. void ResizeAndDrawWindow(ReadOnlySpan windowName, Vector2 scale); } diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs index 4901ca2e3..13878abe2 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs @@ -1,13 +1,12 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; using Dalamud.Utility; -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -61,14 +60,14 @@ internal sealed unsafe partial class DrawListTextureWrap : IDrawListTextureWrap, this.device.Get()->GetImmediateContext(pdc); this.emptyTexture = emptyTexture; - this.srv = new((ID3D11ShaderResourceView*)emptyTexture.ImGuiHandle); + this.srv = new((ID3D11ShaderResourceView*)emptyTexture.Handle.Handle); } /// Finalizes an instance of the class. ~DrawListTextureWrap() => this.RealDispose(); /// - public nint ImGuiHandle => (nint)this.srv.Get(); + public ImTextureID Handle => new(this.srv.Get()); /// public int Width @@ -192,7 +191,7 @@ internal sealed unsafe partial class DrawListTextureWrap : IDrawListTextureWrap, || drawData.CmdListsCount < 1 || drawData.TotalIdxCount < 1 || drawData.TotalVtxCount < 1 - || drawData.CmdLists == 0 + || drawData.CmdLists.IsNull || drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0 || drawData.FramebufferScale.X == 0 @@ -227,7 +226,7 @@ internal sealed unsafe partial class DrawListTextureWrap : IDrawListTextureWrap, this.rtvPremultiplied.Reset(); this.width = newWidth; this.Height = newHeight; - this.srv = new((ID3D11ShaderResourceView*)this.emptyTexture.ImGuiHandle); + this.srv = new((ID3D11ShaderResourceView*)this.emptyTexture.Handle.Handle); return S.S_FALSE; } diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs index 55cf13881..b8f82828b 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs @@ -1,7 +1,5 @@ using System.Runtime.InteropServices; -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs index 1243c8754..06b580de3 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs @@ -4,12 +4,11 @@ using System.Numerics; using System.Reflection; using System.Runtime.InteropServices; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Utility; -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -50,7 +49,7 @@ internal sealed unsafe partial class DrawListTextureWrap { try { - this.device = new((ID3D11Device*)iwms.Manager.Device!.NativePointer); + this.device = new((ID3D11Device*)iwms.Manager.Backend!.DeviceHandle); fixed (ID3D11DeviceContext** p = &this.deviceContext.GetPinnableReference()) this.device.Get()->GetImmediateContext(p); this.deviceContext.Get()->AddRef(); @@ -80,7 +79,7 @@ internal sealed unsafe partial class DrawListTextureWrap if (drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0 || !drawData.Valid || drawData.CmdListsCount < 1) return; - var cmdLists = new Span(drawData.NativePtr->CmdLists, drawData.NativePtr->CmdListsCount); + var cmdLists = new Span(drawData.CmdLists, drawData.CmdListsCount); // Create and grow vertex/index buffers if needed if (this.vertexBufferSize < drawData.TotalVtxCount) @@ -135,8 +134,8 @@ internal sealed unsafe partial class DrawListTextureWrap var targetIndices = new Span(indexData.pData, this.indexBufferSize); foreach (ref var cmdList in cmdLists) { - var vertices = new ImVectorWrapper(&cmdList.NativePtr->VtxBuffer); - var indices = new ImVectorWrapper(&cmdList.NativePtr->IdxBuffer); + var vertices = new ImVectorWrapper(cmdList.VtxBuffer.ToUntyped()); + var indices = new ImVectorWrapper(cmdList.IdxBuffer.ToUntyped()); vertices.DataSpan.CopyTo(targetVertices); indices.DataSpan.CopyTo(targetIndices); @@ -226,7 +225,7 @@ internal sealed unsafe partial class DrawListTextureWrap new Vector4(drawData.FramebufferScale, drawData.FramebufferScale.X, drawData.FramebufferScale.Y); foreach (ref var cmdList in cmdLists) { - var cmds = new ImVectorWrapper(&cmdList.NativePtr->CmdBuffer); + var cmds = new ImVectorWrapper(cmdList.CmdBuffer.ToUntyped()); foreach (ref var cmd in cmds.DataSpan) { var clipV4 = (cmd.ClipRect - clipOff) * frameBufferScaleV4; @@ -238,11 +237,11 @@ internal sealed unsafe partial class DrawListTextureWrap this.deviceContext.Get()->RSSetScissorRects(1, &clipRect); - if (cmd.UserCallback == nint.Zero) + if (cmd.UserCallback == null) { // Bind texture and draw var samplerp = this.samplerState.Get(); - var srvp = (ID3D11ShaderResourceView*)cmd.TextureId; + var srvp = (ID3D11ShaderResourceView*)cmd.TextureId.Handle; this.deviceContext.Get()->PSSetShader(this.drawToPremulPixelShader, null, 0); this.deviceContext.Get()->PSSetSamplers(0, 1, &samplerp); this.deviceContext.Get()->PSSetShaderResources(0, 1, &srvp); diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs index 532da3e03..18eaab37c 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs @@ -1,11 +1,6 @@ -using System.Diagnostics; -using System.Linq; using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Textures.TextureWraps.Internal; @@ -15,13 +10,13 @@ internal sealed unsafe partial class DrawListTextureWrap /// public void ResizeAndDrawWindow(ReadOnlySpan windowName, Vector2 scale) { - ref var window = ref ImGuiWindow.FindWindowByName(windowName); - if (Unsafe.IsNullRef(ref window)) + var window = ImGuiP.FindWindowByName(windowName); + if (window.IsNull) throw new ArgumentException("Window not found", nameof(windowName)); this.Size = window.Size; - var numDrawList = CountDrawList(ref window); + var numDrawList = CountDrawList(window); var drawLists = stackalloc ImDrawList*[numDrawList]; var drawData = new ImDrawData { @@ -34,7 +29,7 @@ internal sealed unsafe partial class DrawListTextureWrap DisplaySize = window.Size, FramebufferScale = scale, }; - AddWindowToDrawData(ref window, ref drawLists); + AddWindowToDrawData(window, ref drawLists); for (var i = 0; i < numDrawList; i++) { drawData.TotalVtxCount += drawData.CmdLists[i]->VtxBuffer.Size; @@ -45,16 +40,15 @@ internal sealed unsafe partial class DrawListTextureWrap return; - static bool IsWindowActiveAndVisible(scoped in ImGuiWindow window) => - window.Active != 0 && window.Hidden == 0; + static bool IsWindowActiveAndVisible(ImGuiWindowPtr window) => window is { Active: true, Hidden: false }; - static void AddWindowToDrawData(scoped ref ImGuiWindow window, ref ImDrawList** wptr) + static void AddWindowToDrawData(ImGuiWindowPtr window, ref ImDrawList** wptr) { switch (window.DrawList.CmdBuffer.Size) { case 0: case 1 when window.DrawList.CmdBuffer[0].ElemCount == 0 && - window.DrawList.CmdBuffer[0].UserCallback == 0: + window.DrawList.CmdBuffer[0].UserCallback == null: break; default: *wptr++ = window.DrawList; @@ -63,67 +57,24 @@ internal sealed unsafe partial class DrawListTextureWrap for (var i = 0; i < window.DC.ChildWindows.Size; i++) { - ref var child = ref *(ImGuiWindow*)window.DC.ChildWindows[i]; - if (IsWindowActiveAndVisible(in child)) // Clipped children may have been marked not active - AddWindowToDrawData(ref child, ref wptr); + var child = window.DC.ChildWindows[i]; + if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active + AddWindowToDrawData(child, ref wptr); } } - static int CountDrawList(scoped ref ImGuiWindow window) + static int CountDrawList(ImGuiWindowPtr window) { var res = window.DrawList.CmdBuffer.Size switch { 0 => 0, 1 when window.DrawList.CmdBuffer[0].ElemCount == 0 && - window.DrawList.CmdBuffer[0].UserCallback == 0 => 0, + window.DrawList.CmdBuffer[0].UserCallback == null => 0, _ => 1, }; for (var i = 0; i < window.DC.ChildWindows.Size; i++) - res += CountDrawList(ref *(ImGuiWindow*)window.DC.ChildWindows[i]); + res += CountDrawList(window.DC.ChildWindows[i]); return res; } } - - [StructLayout(LayoutKind.Explicit, Size = 0x448)] - private struct ImGuiWindow - { - [FieldOffset(0x048)] - public Vector2 Pos; - - [FieldOffset(0x050)] - public Vector2 Size; - - [FieldOffset(0x0CB)] - public byte Active; - - [FieldOffset(0x0D2)] - public byte Hidden; - - [FieldOffset(0x118)] - public ImGuiWindowTempData DC; - - [FieldOffset(0x2C0)] - public ImDrawListPtr DrawList; - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] -#pragma warning disable SA1300 - public static extern ImGuiWindow* igCustom_FindWindowByName(byte* inherit); -#pragma warning restore SA1300 - - public static ref ImGuiWindow FindWindowByName(ReadOnlySpan name) - { - var nb = Encoding.UTF8.GetByteCount(name); - var buf = stackalloc byte[nb + 1]; - buf[Encoding.UTF8.GetBytes(name, new(buf, nb))] = 0; - - return ref *igCustom_FindWindowByName(buf); - } - - [StructLayout(LayoutKind.Explicit, Size = 0xF0)] - public struct ImGuiWindowTempData - { - [FieldOffset(0x98)] - public ImVector ChildWindows; - } - } } diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs index ec23d7d03..f0a9a474f 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs @@ -1,5 +1,6 @@ using System.Threading; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Utility; @@ -15,7 +16,7 @@ internal sealed unsafe class UnknownTextureWrap : IDalamudTextureWrap, IDeferred /// Initializes a new instance of the class. /// The pointer to that is suitable for use with - /// . + /// . /// The width of the texture. /// The height of the texture. /// If true, call . @@ -33,10 +34,10 @@ internal sealed unsafe class UnknownTextureWrap : IDalamudTextureWrap, IDeferred ~UnknownTextureWrap() => this.Dispose(false); /// - public nint ImGuiHandle => + public ImTextureID Handle => this.imGuiHandle == nint.Zero ? throw new ObjectDisposedException(nameof(UnknownTextureWrap)) - : this.imGuiHandle; + : new ImTextureID(this.imGuiHandle); /// public int Width { get; } diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs index 6e21bc0e8..2247fc781 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs @@ -2,15 +2,13 @@ using System.Diagnostics; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; using Dalamud.Utility; - -using ImGuiNET; - using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -53,12 +51,12 @@ internal sealed class ViewportTextureWrap : IDalamudTextureWrap, IDeferredDispos ~ViewportTextureWrap() => this.Dispose(false); /// - public unsafe nint ImGuiHandle + public unsafe ImTextureID Handle { get { var t = (nint)this.srv.Get(); - return t == nint.Zero ? Service.Get().Empty4X4.ImGuiHandle : t; + return t == nint.Zero ? Service.Get().Empty4X4.Handle : ImTextureID.Null; } } diff --git a/Dalamud/Interface/UiBuilder.cs b/Dalamud/Interface/UiBuilder.cs index abe6bd87b..e38537018 100644 --- a/Dalamud/Interface/UiBuilder.cs +++ b/Dalamud/Interface/UiBuilder.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.ClientState; @@ -11,15 +12,11 @@ using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.Internal; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; +using Dalamud.Plugin; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; - -using ImGuiNET; - using Serilog; -using SharpDX.Direct3D11; - namespace Dalamud.Interface; /// @@ -61,6 +58,15 @@ public interface IUiBuilder /// event Action? HideUi; + /// + event Action? DefaultGlobalScaleChanged; + + /// + event Action? DefaultFontChanged; + + /// + event Action? DefaultStyleChanged; + /// /// Gets the handle to the default Dalamud font - supporting all game languages and icons. /// @@ -117,14 +123,52 @@ public interface IUiBuilder IFontSpec DefaultFontSpec { get; } /// - /// Gets the game's active Direct3D device. + /// Gets the default Dalamud font size in points. /// - Device Device { get; } + public float FontDefaultSizePt { get; } /// - /// Gets the game's main window handle. + /// Gets the default Dalamud font size in pixels. /// - IntPtr WindowHandlePtr { get; } + public float FontDefaultSizePx { get; } + + /// + /// Gets the default Dalamud font - supporting all game languages and icons.
+ /// Accessing this static property outside of is dangerous and not supported. + ///
+ public ImFontPtr FontDefault { get; } + + /// + /// Gets the default Dalamud icon font based on FontAwesome 5 Free solid.
+ /// Accessing this static property outside of is dangerous and not supported. + ///
+ public ImFontPtr FontIcon { get; } + + /// + /// Gets the default Dalamud monospaced font based on Inconsolata Regular.
+ /// Accessing this static property outside of is dangerous and not supported. + ///
+ public ImFontPtr FontMono { get; } + + /// + /// Gets the game's active Direct3D device. + /// + // TODO: Remove it on API11/APIXI, and remove SharpDX/PInvoke/etc. dependency from Dalamud. + [Obsolete($"Use {nameof(DeviceHandle)} and wrap it using DirectX wrapper library of your choice.")] + SharpDX.Direct3D11.Device Device { get; } + + /// Gets the game's active Direct3D device. + /// Pointer to the instance of IUnknown that the game is using and should be containing an ID3D11Device, + /// or 0 if it is not available yet. + /// Use + /// + /// QueryInterface with IID of IID_ID3D11Device if you want to ensure that the interface type contained + /// within is indeed an instance of ID3D11Device. + nint DeviceHandle { get; } + + /// Gets the game's main window handle. + /// HWND of the main game window, or 0 if it is not available yet. + nint WindowHandlePtr { get; } /// /// Gets or sets a value indicating whether this plugin should hide its UI automatically when the game's UI is hidden. @@ -258,6 +302,8 @@ public sealed class UiBuilder : IDisposable, IUiBuilder private IFontHandle? monoFontHandle; private IFontHandle? iconFontFixedWidthHandle; + private SharpDX.Direct3D11.Device? sdxDevice; + /// /// Initializes a new instance of the class and registers it. /// You do not have to call this manually. @@ -279,6 +325,15 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.interfaceManager.ResizeBuffers += this.OnResizeBuffers; this.scopedFinalizer.Add(() => this.interfaceManager.ResizeBuffers -= this.OnResizeBuffers); + this.interfaceManager.DefaultStyleChanged += this.OnDefaultStyleChanged; + this.scopedFinalizer.Add(() => this.interfaceManager.DefaultStyleChanged -= this.OnDefaultStyleChanged); + + this.interfaceManager.DefaultGlobalScaleChanged += this.OnDefaultGlobalScaleChanged; + this.scopedFinalizer.Add(() => this.interfaceManager.DefaultGlobalScaleChanged -= this.OnDefaultGlobalScaleChanged); + + this.interfaceManager.DefaultFontChanged += this.OnDefaultFontChanged; + this.scopedFinalizer.Add(() => this.interfaceManager.DefaultFontChanged -= this.OnDefaultFontChanged); + this.FontAtlas = this.scopedFinalizer .Add( @@ -311,6 +366,15 @@ public sealed class UiBuilder : IDisposable, IUiBuilder /// public event Action? HideUi; + /// + public event Action? DefaultGlobalScaleChanged; + + /// + public event Action? DefaultFontChanged; + + /// + public event Action? DefaultStyleChanged; + /// /// Gets the default Dalamud font size in points. /// @@ -344,6 +408,21 @@ public sealed class UiBuilder : IDisposable, IUiBuilder /// public IFontSpec DefaultFontSpec => Service.Get().DefaultFontSpec; + /// + public float FontDefaultSizePt => Service.Get().DefaultFontSpec.SizePt; + + /// + public float FontDefaultSizePx => Service.Get().DefaultFontSpec.SizePx; + + /// + public ImFontPtr FontDefault => InterfaceManager.DefaultFont; + + /// + public ImFontPtr FontIcon => InterfaceManager.IconFont; + + /// + public ImFontPtr FontMono => InterfaceManager.MonoFont; + /// /// Gets the handle to the default Dalamud font - supporting all game languages and icons. /// @@ -414,15 +493,17 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.InterfaceManagerWithScene?.MonoFontHandle ?? throw new InvalidOperationException("Scene is not yet ready."))); - /// - /// Gets the game's active Direct3D device. - /// - public Device Device => this.InterfaceManagerWithScene!.Device!; + /// + // TODO: Remove it on API11/APIXI, and remove SharpDX/PInvoke/etc. dependency from Dalamud. + [Obsolete($"Use {nameof(DeviceHandle)} and wrap it using DirectX wrapper library of your choice.")] + public SharpDX.Direct3D11.Device Device => + this.sdxDevice ??= new(this.InterfaceManagerWithScene!.Backend!.DeviceHandle); - /// - /// Gets the game's main window handle. - /// - public IntPtr WindowHandlePtr => this.InterfaceManagerWithScene!.WindowHandlePtr; + /// + public nint DeviceHandle => this.InterfaceManagerWithScene?.Backend?.DeviceHandle ?? 0; + + /// + public nint WindowHandlePtr => this.InterfaceManagerWithScene is { } imws ? imws.GameWindowHandle : 0; /// /// Gets or sets a value indicating whether this plugin should hide its UI automatically when the game's UI is hidden. @@ -699,14 +780,17 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.stopwatch.Restart(); } - if (this.hasErrorWindow && ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize)) + if (this.hasErrorWindow) { - ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game."); - ImGui.Spacing(); - - if (ImGui.Button("OK")) + if (ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize)) { - this.hasErrorWindow = false; + ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game."); + ImGui.Spacing(); + + if (ImGui.Button("OK"u8)) + { + this.hasErrorWindow = false; + } } ImGui.End(); @@ -746,6 +830,15 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.ResizeBuffers?.InvokeSafely(); } + private void OnDefaultStyleChanged() + => this.DefaultStyleChanged.InvokeSafely(); + + private void OnDefaultGlobalScaleChanged() + => this.DefaultGlobalScaleChanged.InvokeSafely(); + + private void OnDefaultFontChanged() + => this.DefaultFontChanged.InvokeSafely(); + private class FontHandleWrapper : IFontHandle { private IFontHandle? wrapped; diff --git a/Dalamud/Interface/Utility/ImGuiClip.cs b/Dalamud/Interface/Utility/ImGuiClip.cs index c9321fe4c..2d3f07b0c 100644 --- a/Dalamud/Interface/Utility/ImGuiClip.cs +++ b/Dalamud/Interface/Utility/ImGuiClip.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; namespace Dalamud.Interface.Utility; @@ -34,11 +34,7 @@ public static class ImGuiClip // Uses ImGuiListClipper and thus handles start- and end-dummies itself. public static void ClippedDraw(IReadOnlyList data, Action draw, float lineHeight) { - ImGuiListClipperPtr clipper; - unsafe - { - clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); - } + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(data.Count, lineHeight); while (clipper.Step()) @@ -69,14 +65,10 @@ public static class ImGuiClip /// The type of data to draw. public static void ClippedDraw(IReadOnlyList data, Action draw, int itemsPerLine, float lineHeight) { - ImGuiListClipperPtr clipper; - unsafe - { - clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); - } - + var clipper = ImGui.ImGuiListClipper(); + var maxRows = (int)MathF.Ceiling((float)data.Count / itemsPerLine); - + clipper.Begin(maxRows, lineHeight); while (clipper.Step()) { @@ -91,7 +83,7 @@ public static class ImGuiClip var itemsForRow = data .Skip(actualRow * itemsPerLine) .Take(itemsPerLine); - + var currentIndex = 0; foreach (var item in itemsForRow) { @@ -99,7 +91,7 @@ public static class ImGuiClip { ImGui.SameLine(); } - + draw(item); } } @@ -113,11 +105,7 @@ public static class ImGuiClip // Uses ImGuiListClipper and thus handles start- and end-dummies itself, but acts on type and index. public static void ClippedDraw(IReadOnlyList data, Action draw, float lineHeight) { - ImGuiListClipperPtr clipper; - unsafe - { - clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); - } + var clipper = ImGui.ImGuiListClipper(); clipper.Begin(data.Count, lineHeight); while (clipper.Step()) diff --git a/Dalamud/Interface/Utility/ImGuiExtensions.cs b/Dalamud/Interface/Utility/ImGuiExtensions.cs index 21a0d3747..9ded58e7a 100644 --- a/Dalamud/Interface/Utility/ImGuiExtensions.cs +++ b/Dalamud/Interface/Utility/ImGuiExtensions.cs @@ -1,7 +1,6 @@ using System.Numerics; -using System.Text; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility; @@ -20,7 +19,7 @@ public static class ImGuiExtensions /// Size of the text, if known. /// Alignment. /// Clip rect to use. - public static void AddTextClippedEx(this ImDrawListPtr drawListPtr, Vector2 posMin, Vector2 posMax, string text, Vector2? textSizeIfKnown, Vector2 align, Vector4? clipRect) + public static unsafe void AddTextClippedEx(this ImDrawListPtr drawListPtr, Vector2 posMin, Vector2 posMax, string text, Vector2? textSizeIfKnown, Vector2 align, Vector4? clipRect) { var pos = posMin; var textSize = textSizeIfKnown ?? ImGui.CalcTextSize(text, false, 0); @@ -45,43 +44,18 @@ public static class ImGuiExtensions if (needClipping) { var fineClipRect = new Vector4(clipMin.X, clipMin.Y, clipMax.X, clipMax.Y); - drawListPtr.AddText(ImGui.GetFont(), ImGui.GetFontSize(), pos, ImGui.GetColorU32(ImGuiCol.Text), text, ref fineClipRect); + drawListPtr.AddText( + ImGui.GetFont(), + ImGui.GetFontSize(), + pos, + ImGui.GetColorU32(ImGuiCol.Text), + text, + 0, + fineClipRect); } else { drawListPtr.AddText(ImGui.GetFont(), ImGui.GetFontSize(), pos, ImGui.GetColorU32(ImGuiCol.Text), text); } } - - /// - /// Add text to a draw list. - /// - /// Pointer to the draw list. - /// Font to use. - /// Font size. - /// Position to draw at. - /// Color to use. - /// Text to draw. - /// Clip rect to use. - // TODO: This should go into ImDrawList.Manual.cs in ImGui.NET... - public static unsafe void AddText(this ImDrawListPtr drawListPtr, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - var nativeFont = font.NativePtr; - var textBeginByteCount = Encoding.UTF8.GetByteCount(textBegin); - var nativeTextBegin = stackalloc byte[textBeginByteCount + 1]; - - fixed (char* textBeginPtr = textBegin) - { - var nativeTextBeginOffset = Encoding.UTF8.GetBytes(textBeginPtr, textBegin.Length, nativeTextBegin, textBeginByteCount); - nativeTextBegin[nativeTextBeginOffset] = 0; - } - - byte* nativeTextEnd = null; - var wrapWidth = 0.0f; - - fixed (Vector4* nativeCpuFineClipRect = &cpuFineClipRect) - { - ImGuiNative.ImDrawList_AddText_FontPtr(drawListPtr.NativePtr, nativeFont, fontSize, pos, col, nativeTextBegin, nativeTextEnd, wrapWidth, nativeCpuFineClipRect); - } - } } diff --git a/Dalamud/Interface/Utility/ImGuiHelpers.cs b/Dalamud/Interface/Utility/ImGuiHelpers.cs index 8e9bf2c0f..27cb3596c 100644 --- a/Dalamud/Interface/Utility/ImGuiHelpers.cs +++ b/Dalamud/Interface/Utility/ImGuiHelpers.cs @@ -3,28 +3,28 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Reactive.Disposables; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; using System.Text.Unicode; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; -using Dalamud.Game.ClientState.Keys; using Dalamud.Game.Text.SeStringHandling.Payloads; +using Dalamud.Interface.ImGuiBackend.InputHandler; using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; -using ImGuiScene; +using VirtualKey = Dalamud.Game.ClientState.Keys.VirtualKey; namespace Dalamud.Interface.Utility; /// /// Class containing various helper methods for use with ImGui inside Dalamud. /// -public static class ImGuiHelpers +public static partial class ImGuiHelpers { /// /// Gets the main viewport. @@ -41,7 +41,7 @@ public static class ImGuiHelpers /// This does not necessarily mean you can call drawing functions. /// public static unsafe bool IsImGuiInitialized => - ImGui.GetCurrentContext() != nint.Zero && ImGui.GetIO().NativePtr is not null; + ImGui.GetCurrentContext().Handle is not null && ImGui.GetIO().Handle is not null; /// /// Gets the global Dalamud scale; even available before drawing is ready.
@@ -135,7 +135,7 @@ public static class ImGuiHelpers /// The name/ID of the window. /// The position of the window. /// When to set the position. - public static void SetWindowPosRelativeMainViewport(string name, Vector2 position, ImGuiCond condition = ImGuiCond.None) + public static void SetWindowPosRelativeMainViewport(ImU8String name, Vector2 position, ImGuiCond condition = ImGuiCond.None) => ImGui.SetWindowPos(name, position + MainViewport.Pos, condition); /// @@ -143,12 +143,13 @@ public static class ImGuiHelpers /// /// The total number of swatches to use. /// Default color palette. - public static List DefaultColorPalette(int swatchCount = 32) + public static unsafe List DefaultColorPalette(int swatchCount = 32) { var colorPalette = new List(); for (var i = 0; i < swatchCount; i++) { - ImGui.ColorConvertHSVtoRGB(i / 31.0f, 0.7f, 0.8f, out var r, out var g, out var b); + float r = 0f, g = 0f, b = 0f; + ImGui.ColorConvertHSVtoRGB(i / 31.0f, 0.7f, 0.8f, ref r, ref g, ref b); colorPalette.Add(new Vector4(r, g, b, 1.0f)); } @@ -160,7 +161,8 @@ public static class ImGuiHelpers ///
/// Text in the button. /// with the size of the button. - public static Vector2 GetButtonSize(string text) => ImGui.CalcTextSize(text) + (ImGui.GetStyle().FramePadding * 2); + public static Vector2 GetButtonSize(ImU8String text) + => ImGui.CalcTextSize(text) + (ImGui.GetStyle().FramePadding * 2); /// /// Print out text that can be copied when clicked. @@ -168,10 +170,8 @@ public static class ImGuiHelpers /// The text to show. /// The text to copy when clicked. /// The color of the text. - public static void ClickToCopyText(string text, string? textCopy = null, Vector4? color = null) + public static void ClickToCopyText(ImU8String text, ImU8String textCopy = default, Vector4? color = null) { - textCopy ??= text; - using (var col = new ImRaii.Color()) { if (color.HasValue) @@ -179,7 +179,7 @@ public static class ImGuiHelpers col.Push(ImGuiCol.Text, color.Value); } - ImGui.TextUnformatted($"{text}"); + ImGui.Text(text.Span); } if (ImGui.IsItemHovered()) @@ -190,18 +190,21 @@ public static class ImGuiHelpers { using (ImRaii.PushFont(UiBuilder.IconFont)) { - ImGui.TextUnformatted(FontAwesomeIcon.Copy.ToIconString()); + ImGui.Text(FontAwesomeIcon.Copy.ToIconString()); } ImGui.SameLine(); - ImGui.TextUnformatted(textCopy); + ImGui.Text(textCopy.IsNull ? text.Span : textCopy.Span); } } if (ImGui.IsItemClicked()) { - ImGui.SetClipboardText(textCopy); + ImGui.SetClipboardText(textCopy.IsNull ? text.Span : textCopy.Span); } + + text.Dispose(); + textCopy.Dispose(); } /// Draws a SeString. @@ -235,18 +238,20 @@ public static class ImGuiHelpers /// Write unformatted text wrapped. /// /// The text to write. - public static void SafeTextWrapped(string text) => ImGui.TextWrapped(text.Replace("%", "%%")); + [Obsolete("Use ImGui.TextWrapped. It's safe now.", true)] + public static void SafeTextWrapped(ImU8String text) => ImGui.TextWrapped(text); /// - /// Write unformatted text wrapped. + /// Write colored, unformatted text wrapped. /// /// The color of the text. /// The text to write. - public static void SafeTextColoredWrapped(Vector4 color, string text) + [Obsolete("Use ImGui.TextColoredWrapped. It's safe.", true)] + public static void SafeTextColoredWrapped(Vector4 color, ImU8String text) { using (ImRaii.PushColor(ImGuiCol.Text, color)) { - ImGui.TextWrapped(text.Replace("%", "%%")); + ImGui.TextWrapped(text); } } @@ -260,7 +265,7 @@ public static class ImGuiHelpers { Func rounder = round > 0 ? x => MathF.Round(x / round) * round : x => x; - var font = fontPtr.NativePtr; + var font = fontPtr.Handle; font->FontSize = rounder(font->FontSize * scale); font->Ascent = rounder(font->Ascent * scale); font->Descent = font->FontSize - font->Ascent; @@ -353,7 +358,7 @@ public static class ImGuiHelpers if (glyph->Codepoint < rangeLow || glyph->Codepoint > rangeHigh) continue; - var prevGlyphPtr = (ImFontGlyphReal*)target.FindGlyphNoFallback((ushort)glyph->Codepoint).NativePtr; + var prevGlyphPtr = (ImFontGlyphReal*)target.FindGlyphNoFallback((ushort)glyph->Codepoint); if ((IntPtr)prevGlyphPtr == IntPtr.Zero) { addedCodepoints.Add(glyph->Codepoint); @@ -395,9 +400,9 @@ public static class ImGuiHelpers var kernPairs = source.KerningPairs; for (int j = 0, k = kernPairs.Size; j < k; j++) { - if (!addedCodepoints.Contains(kernPairs[j].Left)) + if (!addedCodepoints.Contains((int)kernPairs[j].Left)) continue; - if (!addedCodepoints.Contains(kernPairs[j].Right)) + if (!addedCodepoints.Contains((int)kernPairs[j].Right)) continue; target.AddKerningPair(kernPairs[j].Left, kernPairs[j].Right, kernPairs[j].AdvanceXAdjustment); changed = true; @@ -412,7 +417,7 @@ public static class ImGuiHelpers // On our secondary calls of BuildLookupTable, FallbackGlyph is set to some value that is not null, // making ImGui attempt to treat whatever was there as a ' '. // This may cause random glyphs to be sized randomly, if not an access violation exception. - target.NativePtr->FallbackGlyph = null; + target.Handle->FallbackGlyph = null; target.BuildLookupTable(); } @@ -425,7 +430,7 @@ public static class ImGuiHelpers /// The ImGuiKey that corresponds to this VirtualKey, or ImGuiKey.None otherwise. public static ImGuiKey VirtualKeyToImGuiKey(VirtualKey key) { - return ImGui_Input_Impl_Direct.VirtualKeyToImGuiKey((int)key); + return Win32InputHandler.VirtualKeyToImGuiKey((int)key); } /// @@ -435,24 +440,25 @@ public static class ImGuiHelpers /// The VirtualKey that corresponds to this ImGuiKey, or VirtualKey.NO_KEY otherwise. public static VirtualKey ImGuiKeyToVirtualKey(ImGuiKey key) { - return (VirtualKey)ImGui_Input_Impl_Direct.ImGuiKeyToVirtualKey(key); + return (VirtualKey)Win32InputHandler.ImGuiKeyToVirtualKey(key); } /// /// Show centered text. /// /// Text to show. - public static void CenteredText(string text) + public static void CenteredText(ImU8String text) { - CenterCursorForText(text); - ImGui.TextUnformatted(text); + CenterCursorForText(text.Span); + ImGui.Text(text); } /// /// Center the ImGui cursor for a certain text. - /// + /// /// The text to center for. - public static void CenterCursorForText(string text) => CenterCursorFor(ImGui.CalcTextSize(text).X); + public static void CenterCursorForText(ImU8String text) + => CenterCursorFor(ImGui.CalcTextSize(text).X); /// /// Center the ImGui cursor for an item with a certain width. @@ -468,37 +474,24 @@ public static class ImGuiHelpers public static HorizontalButtonGroup BeginHorizontalButtonGroup() => new(); /// - /// Allocates memory on the heap using
- /// Memory must be freed using . + /// Allocates memory on the heap using
+ /// Memory must be freed using . ///
/// Note that null is a valid return value when is 0. ///
/// The length of allocated memory. /// The allocated memory. - /// If returns null. - public static unsafe void* AllocateMemory(int length) + /// If returns null. + public static unsafe void* AllocateMemory(nuint length) { - // TODO: igMemAlloc takes size_t, which is nint; ImGui.NET apparently interpreted that as uint. - // fix that in ImGui.NET. - switch (length) + var memory = ImGui.MemAlloc(length); + if (memory is null) { - case 0: - return null; - case < 0: - throw new ArgumentOutOfRangeException( - nameof(length), - length, - $"{nameof(length)} cannot be a negative number."); - default: - var memory = ImGuiNative.igMemAlloc((uint)length); - if (memory is null) - { - throw new OutOfMemoryException( - $"Failed to allocate {length} bytes using {nameof(ImGuiNative.igMemAlloc)}"); - } - - return memory; + throw new OutOfMemoryException( + $"Failed to allocate {length} bytes using {nameof(ImGui.MemAlloc)}"); } + + return memory; } /// @@ -508,12 +501,12 @@ public static class ImGuiHelpers /// Disposable you can call. public static unsafe IDisposable NewFontGlyphRangeBuilderPtrScoped(out ImFontGlyphRangesBuilderPtr builder) { - builder = new(ImGuiNative.ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder()); - var ptr = builder.NativePtr; + builder = new(ImGui.ImFontGlyphRangesBuilder()); + var ptr = builder.Handle; return Disposable.Create(() => { if (ptr != null) - ImGuiNative.ImFontGlyphRangesBuilder_destroy(ptr); + new ImFontGlyphRangesBuilderPtr(ptr).Destroy(); ptr = null; }); } @@ -538,8 +531,9 @@ public static class ImGuiHelpers builder.AddChar('.'); } - builder.BuildRanges(out var vec); - return new ReadOnlySpan((void*)vec.Data, vec.Size).ToArray(); + ImVector outRanges = default; + builder.BuildRanges(&outRanges); + return new ReadOnlySpan((void*)outRanges.Data, outRanges.Size).ToArray(); } /// @@ -566,25 +560,11 @@ public static class ImGuiHelpers .ToArray(); /// - /// Determines whether is empty. + /// Determines whether is not empty and loaded. /// /// The pointer. - /// Whether it is empty. - public static unsafe bool IsNull(this ImFontPtr ptr) => ptr.NativePtr == null; - - /// - /// Determines whether is empty. - /// - /// The pointer. - /// Whether it is empty. - public static unsafe bool IsNotNullAndLoaded(this ImFontPtr ptr) => ptr.NativePtr != null && ptr.IsLoaded(); - - /// - /// Determines whether is empty. - /// - /// The pointer. - /// Whether it is empty. - public static unsafe bool IsNull(this ImFontAtlasPtr ptr) => ptr.NativePtr == null; + /// Whether it is not null and loaded. + public static unsafe bool IsNotNullAndLoaded(this ImFontPtr ptr) => !ptr.IsNull && ptr.IsLoaded(); /// /// If is default, then returns . @@ -593,18 +573,18 @@ public static class ImGuiHelpers /// The other. /// if it is not default; otherwise, . public static unsafe ImFontPtr OrElse(this ImFontPtr self, ImFontPtr other) => - self.NativePtr is null ? other : self; + self.IsNull ? other : self; /// /// Mark 4K page as used, after adding a codepoint to a font. /// /// The font. /// The codepoint. - internal static unsafe void Mark4KPageUsedAfterGlyphAdd(this ImFontPtr font, ushort codepoint) + internal static void Mark4KPageUsedAfterGlyphAdd(this ImFontPtr font, ushort codepoint) { // Mark 4K page as used var pageIndex = unchecked((ushort)(codepoint / 4096)); - font.NativePtr->Used4kPagesMap[pageIndex >> 3] |= unchecked((byte)(1 << (pageIndex & 7))); + font.Used4kPagesMap[pageIndex >> 3] |= unchecked((byte)(1 << (pageIndex & 7))); } /// @@ -612,17 +592,13 @@ public static class ImGuiHelpers /// /// The callback data. /// The new text. - internal static unsafe void SetTextFromCallback(ImGuiInputTextCallbackData* data, string s) + internal static void SetTextFromCallback(ref ImGuiInputTextCallbackData data, ImU8String s) { - if (data->BufTextLen != 0) - ImGuiNative.ImGuiInputTextCallbackData_DeleteChars(data, 0, data->BufTextLen); + if (data.BufTextLen != 0) + data.DeleteChars(0, data.BufTextLen); - var len = Encoding.UTF8.GetByteCount(s); - var buf = len < 1024 ? stackalloc byte[len] : new byte[len]; - Encoding.UTF8.GetBytes(s, buf); - fixed (byte* pBuf = buf) - ImGuiNative.ImGuiInputTextCallbackData_InsertChars(data, 0, pBuf, pBuf + len); - ImGuiNative.ImGuiInputTextCallbackData_SelectAll(data); + data.InsertChars(0, s); + data.SelectAll(); } /// @@ -635,16 +611,22 @@ public static class ImGuiHelpers if (!IsImGuiInitialized) return -1; - var viewports = new ImVectorWrapper(&ImGui.GetPlatformIO().NativePtr->Viewports); + var viewports = new ImVectorWrapper((ImVector*)Unsafe.AsPointer(ref ImGui.GetPlatformIO().Handle->Viewports)); for (var i = 0; i < viewports.LengthUnsafe; i++) { - if (viewports.DataUnsafe[i].PlatformHandle == hwnd) + if (viewports.DataUnsafe[i].PlatformHandle == hwnd.ToPointer()) return i; } return -1; } + /// + /// Clears the stack in the current ImGui context. + /// + [LibraryImport("cimgui", EntryPoint = "igCustom_ClearStacks")] + internal static partial void ClearStacksOnContext(); + /// /// Attempts to validate that is valid. /// @@ -654,21 +636,21 @@ public static class ImGuiHelpers { try { - var font = fontPtr.NativePtr; + var font = fontPtr.Handle; if (font is null) throw new NullReferenceException("The font is null."); _ = Marshal.ReadIntPtr((nint)font); - if (font->IndexedHotData.Data != 0) - _ = Marshal.ReadIntPtr(font->IndexedHotData.Data); - if (font->FrequentKerningPairs.Data != 0) - _ = Marshal.ReadIntPtr(font->FrequentKerningPairs.Data); - if (font->IndexLookup.Data != 0) - _ = Marshal.ReadIntPtr(font->IndexLookup.Data); - if (font->Glyphs.Data != 0) - _ = Marshal.ReadIntPtr(font->Glyphs.Data); - if (font->KerningPairs.Data != 0) - _ = Marshal.ReadIntPtr(font->KerningPairs.Data); + if (font->IndexedHotData.Data != null) + _ = *font->IndexedHotData.Front; + if (font->FrequentKerningPairs.Data != null) + _ = font->FrequentKerningPairs.Data; + if (font->IndexLookup.Data != null) + _ = *font->IndexLookup.Data; + if (font->Glyphs.Data != null) + _ = *font->Glyphs.Data; + if (font->KerningPairs.Data != null) + _ = *font->KerningPairs.Data; if (font->ConfigDataCount == 0 && font->ConfigData is not null) throw new InvalidOperationException("ConfigDataCount == 0 but ConfigData is not null?"); if (font->ConfigDataCount != 0 && font->ConfigData is null) @@ -676,11 +658,11 @@ public static class ImGuiHelpers if (font->ConfigData is not null) _ = Marshal.ReadIntPtr((nint)font->ConfigData); if (font->FallbackGlyph is not null - && ((nint)font->FallbackGlyph < font->Glyphs.Data || (nint)font->FallbackGlyph >= font->Glyphs.Data)) + && ((nint)font->FallbackGlyph < (nint)font->Glyphs.Data || (nint)font->FallbackGlyph >= (nint)font->Glyphs.Data)) throw new InvalidOperationException("FallbackGlyph is not in range of Glyphs.Data"); if (font->FallbackHotData is not null - && ((nint)font->FallbackHotData < font->IndexedHotData.Data - || (nint)font->FallbackHotData >= font->IndexedHotData.Data)) + && ((nint)font->FallbackHotData < (nint)font->IndexedHotData.Data + || (nint)font->FallbackHotData >= (nint)font->IndexedHotData.Data)) throw new InvalidOperationException("FallbackGlyph is not in range of Glyphs.Data"); if (font->ContainerAtlas is not null) _ = Marshal.ReadIntPtr((nint)font->ContainerAtlas); @@ -701,7 +683,7 @@ public static class ImGuiHelpers internal static unsafe void UpdateFallbackChar(this ImFontPtr font, char c) { font.FallbackChar = c; - font.NativePtr->FallbackHotData = + font.Handle->FallbackHotData = (ImFontGlyphHotData*)((ImFontGlyphHotDataReal*)font.IndexedHotData.Data + font.FallbackChar); } diff --git a/Dalamud/Interface/Utility/ImGuiId.cs b/Dalamud/Interface/Utility/ImGuiId.cs index 0231f3749..12f1cd0a2 100644 --- a/Dalamud/Interface/Utility/ImGuiId.cs +++ b/Dalamud/Interface/Utility/ImGuiId.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility; @@ -158,15 +158,13 @@ public readonly ref struct ImGuiId switch (this.IdType) { case Type.Numeric: - ImGuiNative.igPushID_Ptr((void*)this.Numeric); + ImGui.PushID((void*)this.Numeric); return true; case Type.U16: - fixed (void* p = this.U16) - ImGuiNative.igPushID_StrStr((byte*)p, (byte*)p + (this.U16.Length * 2)); + ImGui.PushID(this.U16); return true; case Type.U8: - fixed (void* p = this.U8) - ImGuiNative.igPushID_StrStr((byte*)p, (byte*)p + this.U8.Length); + ImGui.PushID(this.U8); return true; case Type.None: default: diff --git a/Dalamud/Interface/Utility/ImGuiTable.cs b/Dalamud/Interface/Utility/ImGuiTable.cs index c74bc0a2f..98df9652e 100644 --- a/Dalamud/Interface/Utility/ImGuiTable.cs +++ b/Dalamud/Interface/Utility/ImGuiTable.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; namespace Dalamud.Interface.Utility; diff --git a/Dalamud/Interface/Utility/ImVectorWrapper.cs b/Dalamud/Interface/Utility/ImVectorWrapper.cs index f350a6436..dee0f5994 100644 --- a/Dalamud/Interface/Utility/ImVectorWrapper.cs +++ b/Dalamud/Interface/Utility/ImVectorWrapper.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Numerics; +using System.Runtime.CompilerServices; -using ImGuiNET; +using Dalamud.Bindings.ImGui; using JetBrains.Annotations; @@ -24,7 +25,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi /// Initializes a new instance of the struct.
/// If is set to true, you must call after use, /// and the underlying memory for must have been allocated using - /// . Otherwise, it will crash. + /// . Otherwise, it will crash. ///
/// The underlying vector. /// The destroyer function to call on item removal. @@ -58,7 +59,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi $"{nameof(initialCapacity)} cannot be a negative number."); } - this.vector = (ImVector*)ImGuiNative.igMemAlloc((uint)sizeof(ImVector)); + this.vector = (ImVector*)ImGui.MemAlloc((uint)sizeof(ImVector)); if (this.vector is null) throw new OutOfMemoryException(); *this.vector = default; @@ -71,7 +72,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi } catch { - ImGuiNative.igMemFree(this.vector); + ImGui.MemFree(this.vector); this.vector = null; this.HasOwnership = false; this.destroyer = null; @@ -200,8 +201,8 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi { this.Clear(); this.SetCapacity(0); - Debug.Assert(this.vector->Data == 0, "SetCapacity(0) did not free the data"); - ImGuiNative.igMemFree(this.vector); + Debug.Assert(this.vector->Data == null, "SetCapacity(0) did not free the data"); + ImGui.MemFree(this.vector); } this.vector = null; @@ -492,7 +493,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi { if (capacity == 0 && this.DataUnsafe is not null) { - ImGuiNative.igMemFree(this.DataUnsafe); + ImGui.MemFree(this.DataUnsafe); this.DataUnsafe = null; } @@ -504,7 +505,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi var newAlloc = (T*)(capacity == 0 ? null - : ImGuiNative.igMemAlloc(checked((uint)(capacity * sizeof(T))))); + : ImGui.MemAlloc(checked((uint)(capacity * sizeof(T))))); if (newAlloc is null && capacity > 0) throw new OutOfMemoryException(); @@ -515,7 +516,7 @@ public unsafe struct ImVectorWrapper : IList, IList, IReadOnlyList, IDi oldSpan[..this.LengthUnsafe].CopyTo(newSpan); if (oldAlloc != null) - ImGuiNative.igMemFree(oldAlloc); + ImGui.MemFree(oldAlloc); this.DataUnsafe = newAlloc; this.CapacityUnsafe = capacity; @@ -685,9 +686,9 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper ConfigDataWrapped(this ImFontAtlasPtr obj) => - obj.NativePtr is null + obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->ConfigData, ImGuiNative.ImFontConfig_destroy); + : new((ImVector*)Unsafe.AsPointer(ref obj.ConfigData), x => x->Destroy()); /// /// Wraps into a .
@@ -696,9 +697,9 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper FontsWrapped(this ImFontAtlasPtr obj) => - obj.NativePtr is null + obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->Fonts, x => ImGuiNative.ImFont_destroy(x->NativePtr)); + : new((ImVector*)Unsafe.AsPointer(ref obj.Fonts), x => x->Destroy()); /// /// Wraps into a .
@@ -707,9 +708,9 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper TexturesWrapped(this ImFontAtlasPtr obj) => - obj.NativePtr is null + obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->Textures); + : new((ImVector*)Unsafe.AsPointer(ref obj.Textures)); /// /// Wraps into a .
@@ -718,9 +719,9 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper GlyphsWrapped(this ImFontPtr obj) => - obj.NativePtr is null + obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->Glyphs); + : new((ImVector*)Unsafe.AsPointer(ref obj.Glyphs)); /// /// Wraps into a .
@@ -729,9 +730,9 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper IndexedHotDataWrapped(this ImFontPtr obj) - => obj.NativePtr is null + => obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->IndexedHotData); + : new((ImVector*)Unsafe.AsPointer(ref obj.IndexedHotData)); /// /// Wraps into a .
@@ -740,7 +741,7 @@ public static class ImVectorWrapper /// The owner object. /// The wrapped vector. public static unsafe ImVectorWrapper IndexLookupWrapped(this ImFontPtr obj) => - obj.NativePtr is null + obj.Handle is null ? throw new NullReferenceException() - : new(&obj.NativePtr->IndexLookup); + : new((ImVector*)Unsafe.AsPointer(ref obj.IndexLookup)); } diff --git a/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs b/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs index 5fa242abe..86435e8c1 100644 --- a/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs +++ b/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs @@ -5,17 +5,14 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiFileDialog; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; - -using ImGuiNET; - using Serilog; - using TerraFX.Interop.Windows; namespace Dalamud.Interface.Utility.Internal; @@ -67,7 +64,7 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService var initiatorScreenOffset = ImGui.GetMousePos(); using var textureWrap = await texture; var textureManager = await Service.GetAsync(); - var popupName = $"{nameof(this.ShowTextureSaveMenuAsync)}_{textureWrap.ImGuiHandle:X}"; + var popupName = $"{nameof(this.ShowTextureSaveMenuAsync)}_{textureWrap.Handle.Handle:X}"; BitmapCodecInfo? encoder; { @@ -100,7 +97,7 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService return; } - if (ImGui.Selectable("Copy")) + if (ImGui.Selectable("Copy"u8)) tcs.TrySetResult(null); foreach (var encoder2 in encoders) { @@ -114,7 +111,7 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService size *= previewImageWidth / size.X; if (size.Y > previewImageWidth) size *= previewImageWidth / size.Y; - ImGui.Image(textureWrap.ImGuiHandle, size); + ImGui.Image(textureWrap.Handle, size); if (tcs.Task.IsCompleted) ImGui.CloseCurrentPopup(); diff --git a/Dalamud/Interface/Utility/Raii/Color.cs b/Dalamud/Interface/Utility/Raii/Color.cs index 3cf93b65c..7bf2efc38 100644 --- a/Dalamud/Interface/Utility/Raii/Color.cs +++ b/Dalamud/Interface/Utility/Raii/Color.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using ImGuiNET; +using Dalamud.Bindings.ImGui; +using Dalamud.Utility; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Raii/EndObjects.cs b/Dalamud/Interface/Utility/Raii/EndObjects.cs index f2fa64349..f84844dda 100644 --- a/Dalamud/Interface/Utility/Raii/EndObjects.cs +++ b/Dalamud/Interface/Utility/Raii/EndObjects.cs @@ -1,7 +1,6 @@ using System.Numerics; -using System.Text; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility.Raii; @@ -11,16 +10,16 @@ public static partial class ImRaii { private static int disabledCount = 0; - public static IEndObject Child(string strId) + public static IEndObject Child(ImU8String strId) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId)); - public static IEndObject Child(string strId, Vector2 size) + public static IEndObject Child(ImU8String strId, Vector2 size) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size)); - public static IEndObject Child(string strId, Vector2 size, bool border) + public static IEndObject Child(ImU8String strId, Vector2 size, bool border) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size, border)); - public static IEndObject Child(string strId, Vector2 size, bool border, ImGuiWindowFlags flags) + public static IEndObject Child(ImU8String strId, Vector2 size, bool border, ImGuiWindowFlags flags) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size, border, flags)); public static IEndObject DragDropTarget() @@ -32,40 +31,40 @@ public static partial class ImRaii public static IEndObject DragDropSource(ImGuiDragDropFlags flags) => new EndConditionally(ImGui.EndDragDropSource, ImGui.BeginDragDropSource(flags)); - public static IEndObject Popup(string id) + public static IEndObject Popup(ImU8String id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopup(id)); - public static IEndObject Popup(string id, ImGuiWindowFlags flags) + public static IEndObject Popup(ImU8String id, ImGuiWindowFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopup(id, flags)); - public static IEndObject PopupModal(string id) + public static IEndObject PopupModal(ImU8String id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id)); - public static IEndObject PopupModal(string id, ref bool open) + public static IEndObject PopupModal(ImU8String id, ref bool open) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open)); - public static IEndObject PopupModal(string id, ref bool open, ImGuiWindowFlags flags) + public static IEndObject PopupModal(ImU8String id, ref bool open, ImGuiWindowFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open, flags)); - public static IEndObject ContextPopup(string id) + public static IEndObject ContextPopup(ImU8String id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id)); - public static IEndObject ContextPopup(string id, ImGuiPopupFlags flags) + public static IEndObject ContextPopup(ImU8String id, ImGuiPopupFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id, flags)); - public static IEndObject ContextPopupItem(string id) + public static IEndObject ContextPopupItem(ImU8String id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id)); - public static IEndObject ContextPopupItem(string id, ImGuiPopupFlags flags) + public static IEndObject ContextPopupItem(ImU8String id, ImGuiPopupFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id, flags)); - public static IEndObject Combo(string label, string previewValue) + public static IEndObject Combo(ImU8String label, ImU8String previewValue) => new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue)); - public static IEndObject Combo(string label, string previewValue, ImGuiComboFlags flags) + public static IEndObject Combo(ImU8String label, ImU8String previewValue, ImGuiComboFlags flags) => new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue, flags)); - public static IEndObject Menu(string label) + public static IEndObject Menu(ImU8String label) => new EndConditionally(ImGui.EndMenu, ImGui.BeginMenu(label)); public static IEndObject MenuBar() @@ -110,75 +109,49 @@ public static partial class ImRaii return new EndUnconditionally(ImGui.PopTextWrapPos, true); } - public static IEndObject ListBox(string label) + public static IEndObject ListBox(ImU8String label) => new EndConditionally(ImGui.EndListBox, ImGui.BeginListBox(label)); - public static IEndObject ListBox(string label, Vector2 size) + public static IEndObject ListBox(ImU8String label, Vector2 size) => new EndConditionally(ImGui.EndListBox, ImGui.BeginListBox(label, size)); - public static IEndObject Table(string table, int numColumns) + public static IEndObject Table(ImU8String table, int numColumns) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns)); - public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags) + public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags)); - public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize) + public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags, outerSize)); - public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags, outerSize, innerWidth)); - public static IEndObject TabBar(string label) + public static IEndObject TabBar(ImU8String label) => new EndConditionally(ImGui.EndTabBar, ImGui.BeginTabBar(label)); - public static IEndObject TabBar(string label, ImGuiTabBarFlags flags) + public static IEndObject TabBar(ImU8String label, ImGuiTabBarFlags flags) => new EndConditionally(ImGui.EndTabBar, ImGui.BeginTabBar(label, flags)); - public static IEndObject TabItem(string label) + public static IEndObject TabItem(ImU8String label) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label)); public static unsafe IEndObject TabItem(byte* label, ImGuiTabItemFlags flags) - => new EndConditionally(ImGuiNative.igEndTabItem, ImGuiNative.igBeginTabItem(label, null, flags) != 0); + => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, flags)); - public static unsafe IEndObject TabItem(string label, ImGuiTabItemFlags flags) - { - ArgumentNullException.ThrowIfNull(label); + public static unsafe IEndObject TabItem(ImU8String label, ImGuiTabItemFlags flags) + => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, flags)); - // One-off for now, we should make this into a generic solution if we need it more often - const int labelMaxAlloc = 2048; - - var labelByteCount = Encoding.UTF8.GetByteCount(label); - - if (labelByteCount > labelMaxAlloc) - { - throw new ArgumentOutOfRangeException(nameof(label), $"Label is too long. (Longer than {labelMaxAlloc} bytes)"); - } - - var nativeLabelStackBytes = stackalloc byte[labelByteCount + 1]; - - int nativeLabelOffset; - fixed (char* utf16Ptr = label) - { - nativeLabelOffset = Encoding.UTF8.GetBytes(utf16Ptr, label.Length, nativeLabelStackBytes, labelByteCount); - } - - nativeLabelStackBytes[nativeLabelOffset] = 0; - - var ret = ImGuiNative.igBeginTabItem(nativeLabelStackBytes, null, flags); - - return new EndConditionally(ImGuiNative.igEndTabItem, ret != 0); - } - - public static IEndObject TabItem(string label, ref bool open) + public static IEndObject TabItem(ImU8String label, ref bool open) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, ref open)); - public static IEndObject TabItem(string label, ref bool open, ImGuiTabItemFlags flags) + public static IEndObject TabItem(ImU8String label, ref bool open, ImGuiTabItemFlags flags) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, ref open, flags)); - public static IEndObject TreeNode(string label) + public static IEndObject TreeNode(ImU8String label) => new EndConditionally(ImGui.TreePop, ImGui.TreeNodeEx(label)); - public static IEndObject TreeNode(string label, ImGuiTreeNodeFlags flags) + public static IEndObject TreeNode(ImU8String label, ImGuiTreeNodeFlags flags) => new EndConditionally(flags.HasFlag(ImGuiTreeNodeFlags.NoTreePushOnOpen) ? Nop : ImGui.TreePop, ImGui.TreeNodeEx(label, flags)); public static IEndObject Disabled() diff --git a/Dalamud/Interface/Utility/Raii/Font.cs b/Dalamud/Interface/Utility/Raii/Font.cs index 2d11bb071..da35c693a 100644 --- a/Dalamud/Interface/Utility/Raii/Font.cs +++ b/Dalamud/Interface/Utility/Raii/Font.cs @@ -1,4 +1,5 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; +using Dalamud.Utility; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Raii/Id.cs b/Dalamud/Interface/Utility/Raii/Id.cs index 51c6438c4..7fab495ae 100644 --- a/Dalamud/Interface/Utility/Raii/Id.cs +++ b/Dalamud/Interface/Utility/Raii/Id.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility.Raii; @@ -6,7 +6,7 @@ namespace Dalamud.Interface.Utility.Raii; // If condition is false, no id is pushed. public static partial class ImRaii { - public static Id PushId(string id, bool enabled = true) + public static Id PushId(ImU8String id, bool enabled = true) => enabled ? new Id().Push(id) : new Id(); public static Id PushId(int id, bool enabled = true) @@ -19,7 +19,7 @@ public static partial class ImRaii { private int count; - public Id Push(string id, bool condition = true) + public Id Push(ImU8String id, bool condition = true) { if (condition) { @@ -41,11 +41,11 @@ public static partial class ImRaii return this; } - public Id Push(IntPtr id, bool condition = true) + public unsafe Id Push(IntPtr id, bool condition = true) { if (condition) { - ImGui.PushID(id); + ImGui.PushID(id.ToPointer()); ++this.count; } diff --git a/Dalamud/Interface/Utility/Raii/Indent.cs b/Dalamud/Interface/Utility/Raii/Indent.cs index 3c8f0f1da..5057cebf1 100644 --- a/Dalamud/Interface/Utility/Raii/Indent.cs +++ b/Dalamud/Interface/Utility/Raii/Indent.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Raii/Plot.cs b/Dalamud/Interface/Utility/Raii/Plot.cs index fdf8ddf5a..d2ff38299 100644 --- a/Dalamud/Interface/Utility/Raii/Plot.cs +++ b/Dalamud/Interface/Utility/Raii/Plot.cs @@ -2,9 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using ImGuiNET; - -using ImPlotNET; +using Dalamud.Bindings.ImGui; +using Dalamud.Bindings.ImPlot; namespace Dalamud.Interface.Utility.Raii; @@ -13,26 +12,44 @@ public static partial class ImRaii { #region EndObjects - public static IEndObject Plot(string title_id, Vector2 size, ImPlotFlags flags) - => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(title_id, size, flags)); + public static IEndObject Plot(string titleId, Vector2 size, ImPlotFlags flags) + => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(titleId, size, flags)); - public static IEndObject AlignedPlots(string group_id, bool vertical = true) - => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(group_id, vertical)); + public static IEndObject Plot(ReadOnlySpan titleId, Vector2 size, ImPlotFlags flags) + => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(titleId, size, flags)); - public static IEndObject LegendPopup(string label_id, ImGuiMouseButton mouse_button = ImGuiMouseButton.Right) - => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(label_id, mouse_button)); + public static IEndObject AlignedPlots(string groupId, bool vertical = true) + => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(groupId, vertical)); - public static IEndObject Subplots(string title_id, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(title_id, rows, cols, size, flags)); + public static IEndObject AlignedPlots(ReadOnlySpan groupId, bool vertical = true) + => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(groupId, vertical)); - public static IEndObject Subplots(string title_id, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float row_ratios, ref float col_ratios) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(title_id, rows, cols, size, flags, ref row_ratios, ref col_ratios)); + public static IEndObject LegendPopup(string labelId, ImGuiMouseButton mouseButton = ImGuiMouseButton.Right) + => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(labelId, mouseButton)); + + public static IEndObject LegendPopup(ReadOnlySpan labelId, ImGuiMouseButton mouseButton = ImGuiMouseButton.Right) + => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(labelId, mouseButton)); + + public static IEndObject Subplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags)); + + public static IEndObject Subplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags)); + + public static IEndObject Subplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags, ref rowRatios, ref colRatios)); + + public static IEndObject Subplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags, ref rowRatios, ref colRatios)); public static IEndObject DragDropSourceAxis(ImAxis axis, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceAxis(axis, flags)); - - public static IEndObject DragDropSourceItem(string label_id, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) - => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(label_id, flags)); + + public static IEndObject DragDropSourceItem(string labelId, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) + => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(labelId, flags)); + + public static IEndObject DragDropSourceItem(ReadOnlySpan labelId, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) + => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(labelId, flags)); public static IEndObject DragDropSourcePlot(ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourcePlot(flags)); @@ -94,9 +111,9 @@ public static partial class ImRaii ImPlotStyleVar.FillAlpha => type != typeof(float), ImPlotStyleVar.ErrorBarSize => type != typeof(float), ImPlotStyleVar.ErrorBarWeight => type != typeof(float), - ImPlotStyleVar.DigitalBitHeight => type != typeof(float), - ImPlotStyleVar.DigitalBitGap => type != typeof(float), - ImPlotStyleVar.PlotBorderSize => type != typeof(float), + // ImPlotStyleVar.DigitalBitHeight => type != typeof(float), + // ImPlotStyleVar.DigitalBitGap => type != typeof(float), + // ImPlotStyleVar.PlotBorderSize => type != typeof(float), ImPlotStyleVar.MinorAlpha => type != typeof(float), ImPlotStyleVar.MajorTickLen => type != typeof(Vector2), ImPlotStyleVar.MinorTickLen => type != typeof(Vector2), @@ -104,7 +121,7 @@ public static partial class ImRaii ImPlotStyleVar.MinorTickSize => type != typeof(Vector2), ImPlotStyleVar.MajorGridSize => type != typeof(Vector2), ImPlotStyleVar.MinorGridSize => type != typeof(Vector2), - ImPlotStyleVar.PlotPadding => type != typeof(Vector2), + // ImPlotStyleVar.PlotPadding => type != typeof(Vector2), ImPlotStyleVar.LabelPadding => type != typeof(Vector2), ImPlotStyleVar.LegendPadding => type != typeof(Vector2), ImPlotStyleVar.LegendInnerPadding => type != typeof(Vector2), @@ -112,8 +129,8 @@ public static partial class ImRaii ImPlotStyleVar.MousePosPadding => type != typeof(Vector2), ImPlotStyleVar.AnnotationPadding => type != typeof(Vector2), ImPlotStyleVar.FitPadding => type != typeof(Vector2), - ImPlotStyleVar.PlotDefaultSize => type != typeof(Vector2), - ImPlotStyleVar.PlotMinSize => type != typeof(Vector2), + // ImPlotStyleVar.PlotDefaultSize => type != typeof(Vector2), + // ImPlotStyleVar.PlotMinSize => type != typeof(Vector2), _ => throw new ArgumentOutOfRangeException(nameof(idx), idx, null), }; @@ -133,9 +150,9 @@ public static partial class ImRaii ImPlotStyleVar.FillAlpha => new Vector2(style.FillAlpha, float.NaN), ImPlotStyleVar.ErrorBarSize => new Vector2(style.ErrorBarSize, float.NaN), ImPlotStyleVar.ErrorBarWeight => new Vector2(style.ErrorBarWeight, float.NaN), - ImPlotStyleVar.DigitalBitHeight => new Vector2(style.DigitalBitHeight, float.NaN), - ImPlotStyleVar.DigitalBitGap => new Vector2(style.DigitalBitGap, float.NaN), - ImPlotStyleVar.PlotBorderSize => new Vector2(style.PlotBorderSize, float.NaN), + // ImPlotStyleVar.DigitalBitHeight => new Vector2(style.DigitalBitHeight, float.NaN), + // ImPlotStyleVar.DigitalBitGap => new Vector2(style.DigitalBitGap, float.NaN), + // ImPlotStyleVar.PlotBorderSize => new Vector2(style.PlotBorderSize, float.NaN), ImPlotStyleVar.MinorAlpha => new Vector2(style.MinorAlpha, float.NaN), ImPlotStyleVar.MajorTickLen => style.MajorTickLen, ImPlotStyleVar.MinorTickLen => style.MinorTickLen, @@ -143,7 +160,7 @@ public static partial class ImRaii ImPlotStyleVar.MinorTickSize => style.MinorTickSize, ImPlotStyleVar.MajorGridSize => style.MajorGridSize, ImPlotStyleVar.MinorGridSize => style.MinorGridSize, - ImPlotStyleVar.PlotPadding => style.PlotPadding, + // ImPlotStyleVar.PlotPadding => style.PlotPadding, ImPlotStyleVar.LabelPadding => style.LabelPadding, ImPlotStyleVar.LegendPadding => style.LegendPadding, ImPlotStyleVar.LegendInnerPadding => style.LegendInnerPadding, @@ -151,8 +168,8 @@ public static partial class ImRaii ImPlotStyleVar.MousePosPadding => style.MousePosPadding, ImPlotStyleVar.AnnotationPadding => style.AnnotationPadding, ImPlotStyleVar.FitPadding => style.FitPadding, - ImPlotStyleVar.PlotDefaultSize => style.PlotDefaultSize, - ImPlotStyleVar.PlotMinSize => style.PlotMinSize, + // ImPlotStyleVar.PlotDefaultSize => style.PlotDefaultSize, + // ImPlotStyleVar.PlotMinSize => style.PlotMinSize, _ => throw new ArgumentOutOfRangeException(nameof(idx), idx, null), }; } diff --git a/Dalamud/Interface/Utility/Raii/Style.cs b/Dalamud/Interface/Utility/Raii/Style.cs index 6a8db074b..bfd04ea3c 100644 --- a/Dalamud/Interface/Utility/Raii/Style.cs +++ b/Dalamud/Interface/Utility/Raii/Style.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Table/Column.cs b/Dalamud/Interface/Utility/Table/Column.cs index 412ba87dc..468d49adc 100644 --- a/Dalamud/Interface/Utility/Table/Column.cs +++ b/Dalamud/Interface/Utility/Table/Column.cs @@ -1,4 +1,4 @@ -using ImGuiNET; +using Dalamud.Bindings.ImGui; namespace Dalamud.Interface.Utility.Table; @@ -16,7 +16,7 @@ public class Column public virtual bool DrawFilter() { ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(this.Label); + ImGui.Text(this.Label); return false; } diff --git a/Dalamud/Interface/Utility/Table/ColumnFlags.cs b/Dalamud/Interface/Utility/Table/ColumnFlags.cs index 24670adfc..e471920a1 100644 --- a/Dalamud/Interface/Utility/Table/ColumnFlags.cs +++ b/Dalamud/Interface/Utility/Table/ColumnFlags.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -38,7 +38,7 @@ public class ColumnFlags : Column where T : struct, Enum } if (!all && ImGui.IsItemHovered()) - ImGui.SetTooltip("Right-click to clear filters."); + ImGui.SetTooltip("Right-click to clear filters."u8); if (!combo) return false; @@ -46,7 +46,7 @@ public class ColumnFlags : Column where T : struct, Enum color.Pop(); var ret = false; - if (ImGui.Checkbox("Enable All", ref all)) + if (ImGui.Checkbox("Enable All"u8, ref all)) { this.SetValue(this.AllFlags, all); ret = true; diff --git a/Dalamud/Interface/Utility/Table/ColumnSelect.cs b/Dalamud/Interface/Utility/Table/ColumnSelect.cs index fb463700c..fd796be60 100644 --- a/Dalamud/Interface/Utility/Table/ColumnSelect.cs +++ b/Dalamud/Interface/Utility/Table/ColumnSelect.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; namespace Dalamud.Interface.Utility.Table; diff --git a/Dalamud/Interface/Utility/Table/ColumnString.cs b/Dalamud/Interface/Utility/Table/ColumnString.cs index 3f9d2df91..106f811f7 100644 --- a/Dalamud/Interface/Utility/Table/ColumnString.cs +++ b/Dalamud/Interface/Utility/Table/ColumnString.cs @@ -1,7 +1,7 @@ using System.Text.RegularExpressions; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; -using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -52,6 +52,6 @@ public class ColumnString : Column public override void DrawColumn(TItem item, int idx) { - ImGui.TextUnformatted(this.ToName(item)); + ImGui.Text(this.ToName(item)); } } diff --git a/Dalamud/Interface/Utility/Table/Table.cs b/Dalamud/Interface/Utility/Table/Table.cs index 86653e834..44f98d531 100644 --- a/Dalamud/Interface/Utility/Table/Table.cs +++ b/Dalamud/Interface/Utility/Table/Table.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; -using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -143,7 +143,7 @@ public class Table private void DrawTableInternal() { - using var table = ImRaii.Table("Table", this.Headers.Length, this.Flags, + using var table = ImRaii.Table("Table"u8, this.Headers.Length, this.Flags, ImGui.GetContentRegionAvail() - this.ExtraHeight * Vector2.UnitY * ImGuiHelpers.GlobalScale); if (!table) return; diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index 9b972256a..d302552f5 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -7,7 +7,7 @@ using System.Runtime.InteropServices; using System.Threading.Tasks; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Keys; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -19,13 +19,10 @@ using Dalamud.Interface.Utility.Internal; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing.Persistence; using Dalamud.Logging.Internal; +using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.UI; -using ImGuiNET; - -using PInvoke; - namespace Dalamud.Interface.Windowing; /// @@ -74,6 +71,18 @@ public abstract class Window this.ForceMainWindow = forceMainWindow; } + /// + /// Initializes a new instance of the class. + /// + /// The name/ID of this window. + /// If you have multiple windows with the same name, you will need to + /// append a unique ID to it by specifying it after "###" behind the window title. + /// + protected Window(string name) + : this(name, ImGuiWindowFlags.None) + { + } + /// /// Flags to control window behavior. /// @@ -433,7 +442,11 @@ public abstract class Window if (this.CanShowCloseButton ? ImGui.Begin(this.WindowName, ref this.internalIsOpen, flags) : ImGui.Begin(this.WindowName, flags)) { - ImGuiNativeAdditions.igCustom_WindowSetInheritNoInputs(this.internalIsClickthrough); + var context = ImGui.GetCurrentContext(); + if (!context.IsNull) + { + ImGuiP.GetCurrentWindow().InheritNoInputs = this.internalIsClickthrough; + } // Not supported yet on non-main viewports if ((this.internalIsPinned || this.internalIsClickthrough || this.internalAlpha.HasValue) && @@ -546,11 +559,12 @@ public abstract class Window ImGui.PopStyleVar(); } - var titleBarRect = Vector4.Zero; unsafe { - var window = ImGuiNativeAdditions.igGetCurrentWindow(); - ImGuiNativeAdditions.ImGuiWindow_TitleBarRect(&titleBarRect, window); + var window = ImGuiP.GetCurrentWindow(); + + ImRect outRect; + ImGuiP.TitleBarRect(&outRect, window); var additionsButton = new TitleBarButton { @@ -568,7 +582,7 @@ public abstract class Window if (flagsApplicableForTitleBarIcons) { - this.DrawTitleBarButtons(window, flags, titleBarRect, + this.DrawTitleBarButtons(window, flags, outRect, showAdditions ? this.TitleBarButtons.Append(additionsButton) : this.TitleBarButtons); @@ -729,7 +743,7 @@ public abstract class Window } } - private unsafe void DrawTitleBarButtons(void* window, ImGuiWindowFlags flags, Vector4 titleBarRect, IEnumerable buttons) + private unsafe void DrawTitleBarButtons(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImRect titleBarRect, IEnumerable buttons) { ImGui.PushClipRect(ImGui.GetWindowPos(), ImGui.GetWindowPos() + ImGui.GetWindowSize(), false); @@ -754,7 +768,7 @@ public abstract class Window // Pad to the left, to get out of the way of the native buttons padR += numNativeButtons * (buttonSize + style.ItemInnerSpacing.X); - Vector2 GetCenter(Vector4 rect) => new((rect.X + rect.Z) * 0.5f, (rect.Y + rect.W) * 0.5f); + Vector2 GetCenter(ImRect rect) => new((rect.Min.X + rect.Max.X) * 0.5f, (rect.Min.Y + rect.Max.Y) * 0.5f); var numButtons = 0; bool DrawButton(TitleBarButton button, Vector2 pos) @@ -762,10 +776,9 @@ public abstract class Window var id = ImGui.GetID($"###CustomTbButton{numButtons}"); numButtons++; - var min = pos; var max = pos + new Vector2(fontSize, fontSize); - Vector4 bb = new(min.X, min.Y, max.X, max.Y); - var isClipped = !ImGuiNativeAdditions.igItemAdd(bb, id, null, 0); + ImRect bb = new(pos, max); + var isClipped = !ImGuiP.ItemAdd(bb, id, null, 0); bool hovered, held; var pressed = false; @@ -775,12 +788,12 @@ public abstract class Window held = false; // ButtonBehavior does not function if the window is clickthrough, so we have to do it ourselves - if (ImGui.IsMouseHoveringRect(min, max)) + if (ImGui.IsMouseHoveringRect(pos, max)) { hovered = true; // We can't use ImGui native functions here, because they don't work with clickthrough - if ((User32.GetKeyState((int)VirtualKey.LBUTTON) & 0x8000) != 0) + if ((global::Windows.Win32.PInvoke.GetKeyState((int)VirtualKey.LBUTTON) & 0x8000) != 0) { held = true; pressed = true; @@ -789,7 +802,7 @@ public abstract class Window } else { - pressed = ImGuiNativeAdditions.igButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags.None); + pressed = ImGuiP.ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags.None); } if (isClipped) @@ -802,14 +815,14 @@ public abstract class Window drawList.AddCircleFilled(GetCenter(bb) + new Vector2(0.0f, -0.5f), (fontSize * 0.5f) + 1.0f, bgCol); var offset = button.IconOffset * ImGuiHelpers.GlobalScale; - drawList.AddText(InterfaceManager.IconFont, (float)(fontSize * 0.8), new Vector2(bb.X + offset.X, bb.Y + offset.Y), textCol, button.Icon.ToIconString()); + drawList.AddText(InterfaceManager.IconFont, (float)(fontSize * 0.8), new Vector2(bb.Min.X + offset.X, bb.Min.Y + offset.Y), textCol, button.Icon.ToIconString()); if (hovered) button.ShowTooltip?.Invoke(); // Switch to moving the window after mouse is moved beyond the initial drag threshold if (ImGui.IsItemActive() && ImGui.IsMouseDragging(ImGuiMouseButton.Left) && !this.internalIsClickthrough) - ImGuiNativeAdditions.igStartMouseMovingWindow(window); + ImGuiP.StartMouseMovingWindow(window); return pressed; } @@ -819,7 +832,7 @@ public abstract class Window if (this.internalIsClickthrough && !button.AvailableClickthrough) return; - Vector2 position = new(titleBarRect.Z - padR - buttonSize, titleBarRect.Y + style.FramePadding.Y); + Vector2 position = new(titleBarRect.Max.X - padR - buttonSize, titleBarRect.Min.Y + style.FramePadding.Y); padR += buttonSize + style.ItemInnerSpacing.X; if (DrawButton(button, position)) @@ -847,7 +860,7 @@ public abstract class Window { var dl = ImGui.GetWindowDrawList(); dl.AddImage( - this.fadeOutTexture!.ImGuiHandle, + this.fadeOutTexture!.Handle, this.fadeOutOrigin, this.fadeOutOrigin + this.fadeOutSize, Vector2.Zero, @@ -936,26 +949,4 @@ public abstract class Window /// public bool AvailableClickthrough { get; set; } } - - [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "imports")] - private static unsafe class ImGuiNativeAdditions - { - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern bool igItemAdd(Vector4 bb, uint id, Vector4* navBb, uint flags); - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern bool igButtonBehavior(Vector4 bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags); - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern void* igGetCurrentWindow(); - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern void igStartMouseMovingWindow(void* window); - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern void ImGuiWindow_TitleBarRect(Vector4* pOut, void* window); - - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] - public static extern void igCustom_WindowSetInheritNoInputs(bool inherit); - } } diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs index ccdc2b44c..87bd199a1 100644 --- a/Dalamud/Interface/Windowing/WindowSystem.cs +++ b/Dalamud/Interface/Windowing/WindowSystem.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.Linq; +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Windowing.Persistence; - -using ImGuiNET; using Serilog; namespace Dalamud.Interface.Windowing; diff --git a/Dalamud/Memory/MemoryHelper.cs b/Dalamud/Memory/MemoryHelper.cs index 212feb128..2eae1be6d 100644 --- a/Dalamud/Memory/MemoryHelper.cs +++ b/Dalamud/Memory/MemoryHelper.cs @@ -6,16 +6,13 @@ using System.Text; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Memory.Exceptions; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.System.Memory; using FFXIVClientStructs.FFXIV.Client.System.String; - +using Lumina.Text.Payloads; +using Lumina.Text.ReadOnly; using Microsoft.Extensions.ObjectPool; - -using static Dalamud.NativeFunctions; - -using LPayloadType = Lumina.Text.Payloads.PayloadType; -using LSeString = Lumina.Text.SeString; +using Windows.Win32.Foundation; +using Windows.Win32.System.Memory; // Heavily inspired from Reloaded (https://github.com/Reloaded-Project/Reloaded.Memory) @@ -29,6 +26,8 @@ public static unsafe class MemoryHelper private static readonly ObjectPool StringBuilderPool = ObjectPool.Create(new StringBuilderPooledObjectPolicy()); + private static readonly HANDLE ThisProcessPseudoHandle = new(unchecked((nint)0xFFFFFFFF)); + #region Cast /// Casts the given memory address as the reference to the live object. @@ -414,7 +413,7 @@ public static unsafe class MemoryHelper containsNonRepresentedPayload = false; while (*pin != 0 && maxLength > 0) { - if (*pin != LSeString.StartByte) + if (*pin != ReadOnlySeString.Stx) { var len = *pin switch { @@ -439,7 +438,7 @@ public static unsafe class MemoryHelper --maxLength; // Payload type - var payloadType = (LPayloadType)(*pin++); + var payloadType = (MacroCode)(*pin++); // Payload length if (!ReadIntExpression(ref pin, ref maxLength, out var expressionLength)) @@ -450,19 +449,19 @@ public static unsafe class MemoryHelper maxLength -= unchecked((int)expressionLength); // End byte - if (*pin++ != LSeString.EndByte) + if (*pin++ != ReadOnlySeString.Etx) break; --maxLength; switch (payloadType) { - case LPayloadType.NewLine: + case MacroCode.NewLine: sb.AppendLine(); break; - case LPayloadType.Hyphen: + case MacroCode.Hyphen: sb.Append('–'); break; - case LPayloadType.SoftHyphen: + case MacroCode.SoftHyphen: sb.Append('\u00AD'); break; default: @@ -743,16 +742,16 @@ public static unsafe class MemoryHelper [MethodImpl(MethodImplOptions.AggressiveInlining)] public static nint Allocate(int length) { - var address = VirtualAlloc( - nint.Zero, + var address = Windows.Win32.PInvoke.VirtualAlloc( + null, (nuint)length, - AllocationType.Commit | AllocationType.Reserve, - MemoryProtection.ExecuteReadWrite); + VIRTUAL_ALLOCATION_TYPE.MEM_COMMIT | VIRTUAL_ALLOCATION_TYPE.MEM_RESERVE, + PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE); - if (address == nint.Zero) + if (address == null) throw new MemoryAllocationException($"Unable to allocate {length} bytes."); - return address; + return new IntPtr(address); } /// @@ -773,7 +772,7 @@ public static unsafe class MemoryHelper [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Free(nint memoryAddress) { - return VirtualFree(memoryAddress, nuint.Zero, AllocationType.Release); + return Windows.Win32.PInvoke.VirtualFree(memoryAddress.ToPointer(), nuint.Zero, VIRTUAL_FREE_TYPE.MEM_RELEASE); } /// @@ -785,7 +784,11 @@ public static unsafe class MemoryHelper /// The old page permissions. public static MemoryProtection ChangePermission(nint memoryAddress, int length, MemoryProtection newPermissions) { - var result = VirtualProtect(memoryAddress, (nuint)length, newPermissions, out var oldPermissions); + var result = Windows.Win32.PInvoke.VirtualProtect( + memoryAddress.ToPointer(), + (nuint)length, + (PAGE_PROTECTION_FLAGS)newPermissions, + out var oldPermissions); if (!result) throw new MemoryPermissionException($"Unable to change permissions at {Util.DescribeAddress(memoryAddress)} of length {length} and permission {newPermissions} (result={result})"); @@ -794,7 +797,7 @@ public static unsafe class MemoryHelper if (last > 0) throw new MemoryPermissionException($"Unable to change permissions at {Util.DescribeAddress(memoryAddress)} of length {length} and permission {newPermissions} (error={last})"); - return oldPermissions; + return (MemoryProtection)oldPermissions; } /// @@ -860,14 +863,22 @@ public static unsafe class MemoryHelper unchecked { var length = value.Length; - var result = NativeFunctions.ReadProcessMemory((nint)0xFFFFFFFF, memoryAddress, value, length, out _); + fixed (byte* pVal = value) + { + var result = Windows.Win32.PInvoke.ReadProcessMemory( + ThisProcessPseudoHandle, + memoryAddress.ToPointer(), + pVal, + (nuint)length, + null); - if (!result) - throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); + if (!result) + throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); - var last = Marshal.GetLastWin32Error(); - if (last > 0) - throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); + var last = Marshal.GetLastWin32Error(); + if (last > 0) + throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); + } } } @@ -882,14 +893,22 @@ public static unsafe class MemoryHelper unchecked { var length = data.Length; - var result = NativeFunctions.WriteProcessMemory((nint)0xFFFFFFFF, memoryAddress, data, length, out _); + fixed (byte* pData = data) + { + var result = Windows.Win32.PInvoke.WriteProcessMemory( + ThisProcessPseudoHandle, + memoryAddress.ToPointer(), + pData, + (nuint)length, + null); - if (!result) - throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); + if (!result) + throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); - var last = Marshal.GetLastWin32Error(); - if (last > 0) - throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); + var last = Marshal.GetLastWin32Error(); + if (last > 0) + throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); + } } } diff --git a/Dalamud/NativeFunctions.cs b/Dalamud/NativeFunctions.cs deleted file mode 100644 index c9382bd17..000000000 --- a/Dalamud/NativeFunctions.cs +++ /dev/null @@ -1,2113 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Net.Sockets; -using System.Runtime.InteropServices; -using System.Text; - -namespace Dalamud; - -/// -/// Native user32 functions. -/// -internal static partial class NativeFunctions -{ - /// - /// FLASHW_* from winuser. - /// - public enum FlashWindow : uint - { - /// - /// Stop flashing. The system restores the window to its original state. - /// - Stop = 0, - - /// - /// Flash the window caption. - /// - Caption = 1, - - /// - /// Flash the taskbar button. - /// - Tray = 2, - - /// - /// Flash both the window caption and taskbar button. - /// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags. - /// - All = 3, - - /// - /// Flash continuously, until the FLASHW_STOP flag is set. - /// - Timer = 4, - - /// - /// Flash continuously until the window comes to the foreground. - /// - TimerNoFG = 12, - } - - /// - /// IDC_* from winuser. - /// - public enum CursorType - { - /// - /// Standard arrow and small hourglass. - /// - AppStarting = 32650, - - /// - /// Standard arrow. - /// - Arrow = 32512, - - /// - /// Crosshair. - /// - Cross = 32515, - - /// - /// Hand. - /// - Hand = 32649, - - /// - /// Arrow and question mark. - /// - Help = 32651, - - /// - /// I-beam. - /// - IBeam = 32513, - - /// - /// Obsolete for applications marked version 4.0 or later. - /// - Icon = 32641, - - /// - /// Slashed circle. - /// - No = 32648, - - /// - /// Obsolete for applications marked version 4.0 or later.Use IDC_SIZEALL. - /// - Size = 32640, - - /// - /// Four-pointed arrow pointing north, south, east, and west. - /// - SizeAll = 32646, - - /// - /// Double-pointed arrow pointing northeast and southwest. - /// - SizeNeSw = 32643, - - /// - /// Double-pointed arrow pointing north and south. - /// - SizeNS = 32645, - - /// - /// Double-pointed arrow pointing northwest and southeast. - /// - SizeNwSe = 32642, - - /// - /// Double-pointed arrow pointing west and east. - /// - SizeWE = 32644, - - /// - /// Vertical arrow. - /// - UpArrow = 32516, - - /// - /// Hourglass. - /// - Wait = 32514, - } - - /// - /// MB_* from winuser. - /// - [Flags] - public enum MessageBoxType : uint - { - /// - /// The default value for any of the various subtypes. - /// - DefaultValue = 0x0, - - // To indicate the buttons displayed in the message box, specify one of the following values. - - /// - /// The message box contains three push buttons: Abort, Retry, and Ignore. - /// - AbortRetryIgnore = 0x2, - - /// - /// The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead - /// of MB_ABORTRETRYIGNORE. - /// - CancelTryContinue = 0x6, - - /// - /// Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends - /// a WM_HELP message to the owner. - /// - Help = 0x4000, - - /// - /// The message box contains one push button: OK. This is the default. - /// - Ok = DefaultValue, - - /// - /// The message box contains two push buttons: OK and Cancel. - /// - OkCancel = 0x1, - - /// - /// The message box contains two push buttons: Retry and Cancel. - /// - RetryCancel = 0x5, - - /// - /// The message box contains two push buttons: Yes and No. - /// - YesNo = 0x4, - - /// - /// The message box contains three push buttons: Yes, No, and Cancel. - /// - YesNoCancel = 0x3, - - // To display an icon in the message box, specify one of the following values. - - /// - /// An exclamation-point icon appears in the message box. - /// - IconExclamation = 0x30, - - /// - /// An exclamation-point icon appears in the message box. - /// - IconWarning = IconExclamation, - - /// - /// An icon consisting of a lowercase letter i in a circle appears in the message box. - /// - IconInformation = 0x40, - - /// - /// An icon consisting of a lowercase letter i in a circle appears in the message box. - /// - IconAsterisk = IconInformation, - - /// - /// A question-mark icon appears in the message box. - /// The question-mark message icon is no longer recommended because it does not clearly represent a specific type - /// of message and because the phrasing of a message as a question could apply to any message type. In addition, - /// users can confuse the message symbol question mark with Help information. Therefore, do not use this question - /// mark message symbol in your message boxes. The system continues to support its inclusion only for backward - /// compatibility. - /// - IconQuestion = 0x20, - - /// - /// A stop-sign icon appears in the message box. - /// - IconStop = 0x10, - - /// - /// A stop-sign icon appears in the message box. - /// - IconError = IconStop, - - /// - /// A stop-sign icon appears in the message box. - /// - IconHand = IconStop, - - // To indicate the default button, specify one of the following values. - - /// - /// The first button is the default button. - /// MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified. - /// - DefButton1 = DefaultValue, - - /// - /// The second button is the default button. - /// - DefButton2 = 0x100, - - /// - /// The third button is the default button. - /// - DefButton3 = 0x200, - - /// - /// The fourth button is the default button. - /// - DefButton4 = 0x300, - - // To indicate the modality of the dialog box, specify one of the following values. - - /// - /// The user must respond to the message box before continuing work in the window identified by the hWnd parameter. - /// However, the user can move to the windows of other threads and work in those windows. Depending on the hierarchy - /// of windows in the application, the user may be able to move to other windows within the thread. All child windows - /// of the parent of the message box are automatically disabled, but pop-up windows are not. MB_APPLMODAL is the - /// default if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified. - /// - ApplModal = DefaultValue, - - /// - /// Same as MB_APPLMODAL except that the message box has the WS_EX_TOPMOST style. - /// Use system-modal message boxes to notify the user of serious, potentially damaging errors that require immediate - /// attention (for example, running out of memory). This flag has no effect on the user's ability to interact with - /// windows other than those associated with hWnd. - /// - SystemModal = 0x1000, - - /// - /// Same as MB_APPLMODAL except that all the top-level windows belonging to the current thread are disabled if the - /// hWnd parameter is NULL. Use this flag when the calling application or library does not have a window handle - /// available but still needs to prevent input to other windows in the calling thread without suspending other threads. - /// - TaskModal = 0x2000, - - // To specify other options, use one or more of the following values. - - /// - /// Same as desktop of the interactive window station. For more information, see Window Stations. If the current - /// input desktop is not the default desktop, MessageBox does not return until the user switches to the default - /// desktop. - /// - DefaultDesktopOnly = 0x20000, - - /// - /// The text is right-justified. - /// - Right = 0x80000, - - /// - /// Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems. - /// - RtlReading = 0x100000, - - /// - /// The message box becomes the foreground window. Internally, the system calls the SetForegroundWindow function - /// for the message box. - /// - SetForeground = 0x10000, - - /// - /// The message box is created with the WS_EX_TOPMOST window style. - /// - Topmost = 0x40000, - - /// - /// The caller is a service notifying the user of an event. The function displays a message box on the current active - /// desktop, even if there is no user logged on to the computer. - /// - ServiceNotification = 0x200000, - } - - /// - /// GWL_* from winuser. - /// - public enum WindowLongType - { - /// - /// Sets a new extended window style. - /// - ExStyle = -20, - - /// - /// Sets a new application instance handle. - /// - HInstance = -6, - - /// - /// Sets a new identifier of the child window.The window cannot be a top-level window. - /// - Id = -12, - - /// - /// Sets a new window style. - /// - Style = -16, - - /// - /// Sets the user data associated with the window. This data is intended for use by the application that created the window. Its value is initially zero. - /// - UserData = -21, - - /// - /// Sets a new address for the window procedure. - /// - WndProc = -4, - - // The following values are also available when the hWnd parameter identifies a dialog box. - - // /// - // /// Sets the new pointer to the dialog box procedure. - // /// - // DWLP_DLGPROC = DWLP_MSGRESULT + sizeof(LRESULT), - - /// - /// Sets the return value of a message processed in the dialog box procedure. - /// - MsgResult = 0, - - // /// - // /// Sets new extra information that is private to the application, such as handles or pointers. - // /// - // DWLP_USER = DWLP_DLGPROC + sizeof(DLGPROC), - } - - /// - /// WM_* from winuser. - /// These are spread throughout multiple files, find the documentation manually if you need it. - /// https://gist.github.com/amgine/2395987. - /// - [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1602:Enumeration items should be documented", Justification = "No documentation available.")] - public enum WindowsMessage - { - WM_NULL = 0x0000, - WM_CREATE = 0x0001, - WM_DESTROY = 0x0002, - WM_MOVE = 0x0003, - WM_SIZE = 0x0005, - WM_ACTIVATE = 0x0006, - WM_SETFOCUS = 0x0007, - WM_KILLFOCUS = 0x0008, - WM_ENABLE = 0x000A, - WM_SETREDRAW = 0x000B, - WM_SETTEXT = 0x000C, - WM_GETTEXT = 0x000D, - WM_GETTEXTLENGTH = 0x000E, - WM_PAINT = 0x000F, - WM_CLOSE = 0x0010, - WM_QUERYENDSESSION = 0x0011, - WM_QUERYOPEN = 0x0013, - WM_ENDSESSION = 0x0016, - WM_QUIT = 0x0012, - WM_ERASEBKGND = 0x0014, - WM_SYSCOLORCHANGE = 0x0015, - WM_SHOWWINDOW = 0x0018, - WM_WININICHANGE = 0x001A, - WM_SETTINGCHANGE = WM_WININICHANGE, - WM_DEVMODECHANGE = 0x001B, - WM_ACTIVATEAPP = 0x001C, - WM_FONTCHANGE = 0x001D, - WM_TIMECHANGE = 0x001E, - WM_CANCELMODE = 0x001F, - WM_SETCURSOR = 0x0020, - WM_MOUSEACTIVATE = 0x0021, - WM_CHILDACTIVATE = 0x0022, - WM_QUEUESYNC = 0x0023, - WM_GETMINMAXINFO = 0x0024, - WM_PAINTICON = 0x0026, - WM_ICONERASEBKGND = 0x0027, - WM_NEXTDLGCTL = 0x0028, - WM_SPOOLERSTATUS = 0x002A, - WM_DRAWITEM = 0x002B, - WM_MEASUREITEM = 0x002C, - WM_DELETEITEM = 0x002D, - WM_VKEYTOITEM = 0x002E, - WM_CHARTOITEM = 0x002F, - WM_SETFONT = 0x0030, - WM_GETFONT = 0x0031, - WM_SETHOTKEY = 0x0032, - WM_GETHOTKEY = 0x0033, - WM_QUERYDRAGICON = 0x0037, - WM_COMPAREITEM = 0x0039, - WM_GETOBJECT = 0x003D, - WM_COMPACTING = 0x0041, - WM_COMMNOTIFY = 0x0044, - WM_WINDOWPOSCHANGING = 0x0046, - WM_WINDOWPOSCHANGED = 0x0047, - WM_POWER = 0x0048, - WM_COPYDATA = 0x004A, - WM_CANCELJOURNAL = 0x004B, - WM_NOTIFY = 0x004E, - WM_INPUTLANGCHANGEREQUEST = 0x0050, - WM_INPUTLANGCHANGE = 0x0051, - WM_TCARD = 0x0052, - WM_HELP = 0x0053, - WM_USERCHANGED = 0x0054, - WM_NOTIFYFORMAT = 0x0055, - WM_CONTEXTMENU = 0x007B, - WM_STYLECHANGING = 0x007C, - WM_STYLECHANGED = 0x007D, - WM_DISPLAYCHANGE = 0x007E, - WM_GETICON = 0x007F, - WM_SETICON = 0x0080, - WM_NCCREATE = 0x0081, - WM_NCDESTROY = 0x0082, - WM_NCCALCSIZE = 0x0083, - WM_NCHITTEST = 0x0084, - WM_NCPAINT = 0x0085, - WM_NCACTIVATE = 0x0086, - WM_GETDLGCODE = 0x0087, - WM_SYNCPAINT = 0x0088, - - WM_NCMOUSEMOVE = 0x00A0, - WM_NCLBUTTONDOWN = 0x00A1, - WM_NCLBUTTONUP = 0x00A2, - WM_NCLBUTTONDBLCLK = 0x00A3, - WM_NCRBUTTONDOWN = 0x00A4, - WM_NCRBUTTONUP = 0x00A5, - WM_NCRBUTTONDBLCLK = 0x00A6, - WM_NCMBUTTONDOWN = 0x00A7, - WM_NCMBUTTONUP = 0x00A8, - WM_NCMBUTTONDBLCLK = 0x00A9, - WM_NCXBUTTONDOWN = 0x00AB, - WM_NCXBUTTONUP = 0x00AC, - WM_NCXBUTTONDBLCLK = 0x00AD, - - WM_INPUT_DEVICE_CHANGE = 0x00FE, - WM_INPUT = 0x00FF, - - WM_KEYFIRST = 0x0100, - WM_KEYDOWN = WM_KEYFIRST, - WM_KEYUP = 0x0101, - WM_CHAR = 0x0102, - WM_DEADCHAR = 0x0103, - WM_SYSKEYDOWN = 0x0104, - WM_SYSKEYUP = 0x0105, - WM_SYSCHAR = 0x0106, - WM_SYSDEADCHAR = 0x0107, - WM_UNICHAR = 0x0109, - WM_KEYLAST = WM_UNICHAR, - - WM_IME_STARTCOMPOSITION = 0x010D, - WM_IME_ENDCOMPOSITION = 0x010E, - WM_IME_COMPOSITION = 0x010F, - WM_IME_KEYLAST = WM_IME_COMPOSITION, - - WM_INITDIALOG = 0x0110, - WM_COMMAND = 0x0111, - WM_SYSCOMMAND = 0x0112, - WM_TIMER = 0x0113, - WM_HSCROLL = 0x0114, - WM_VSCROLL = 0x0115, - WM_INITMENU = 0x0116, - WM_INITMENUPOPUP = 0x0117, - WM_MENUSELECT = 0x011F, - WM_MENUCHAR = 0x0120, - WM_ENTERIDLE = 0x0121, - WM_MENURBUTTONUP = 0x0122, - WM_MENUDRAG = 0x0123, - WM_MENUGETOBJECT = 0x0124, - WM_UNINITMENUPOPUP = 0x0125, - WM_MENUCOMMAND = 0x0126, - - WM_CHANGEUISTATE = 0x0127, - WM_UPDATEUISTATE = 0x0128, - WM_QUERYUISTATE = 0x0129, - - WM_CTLCOLORMSGBOX = 0x0132, - WM_CTLCOLOREDIT = 0x0133, - WM_CTLCOLORLISTBOX = 0x0134, - WM_CTLCOLORBTN = 0x0135, - WM_CTLCOLORDLG = 0x0136, - WM_CTLCOLORSCROLLBAR = 0x0137, - WM_CTLCOLORSTATIC = 0x0138, - MN_GETHMENU = 0x01E1, - - WM_MOUSEFIRST = 0x0200, - WM_MOUSEMOVE = WM_MOUSEFIRST, - WM_LBUTTONDOWN = 0x0201, - WM_LBUTTONUP = 0x0202, - WM_LBUTTONDBLCLK = 0x0203, - WM_RBUTTONDOWN = 0x0204, - WM_RBUTTONUP = 0x0205, - WM_RBUTTONDBLCLK = 0x0206, - WM_MBUTTONDOWN = 0x0207, - WM_MBUTTONUP = 0x0208, - WM_MBUTTONDBLCLK = 0x0209, - WM_MOUSEWHEEL = 0x020A, - WM_XBUTTONDOWN = 0x020B, - WM_XBUTTONUP = 0x020C, - WM_XBUTTONDBLCLK = 0x020D, - WM_MOUSEHWHEEL = 0x020E, - - WM_PARENTNOTIFY = 0x0210, - WM_ENTERMENULOOP = 0x0211, - WM_EXITMENULOOP = 0x0212, - - WM_NEXTMENU = 0x0213, - WM_SIZING = 0x0214, - WM_CAPTURECHANGED = 0x0215, - WM_MOVING = 0x0216, - - WM_POWERBROADCAST = 0x0218, - - WM_DEVICECHANGE = 0x0219, - - WM_MDICREATE = 0x0220, - WM_MDIDESTROY = 0x0221, - WM_MDIACTIVATE = 0x0222, - WM_MDIRESTORE = 0x0223, - WM_MDINEXT = 0x0224, - WM_MDIMAXIMIZE = 0x0225, - WM_MDITILE = 0x0226, - WM_MDICASCADE = 0x0227, - WM_MDIICONARRANGE = 0x0228, - WM_MDIGETACTIVE = 0x0229, - - WM_MDISETMENU = 0x0230, - WM_ENTERSIZEMOVE = 0x0231, - WM_EXITSIZEMOVE = 0x0232, - WM_DROPFILES = 0x0233, - WM_MDIREFRESHMENU = 0x0234, - - WM_IME_SETCONTEXT = 0x0281, - WM_IME_NOTIFY = 0x0282, - WM_IME_CONTROL = 0x0283, - WM_IME_COMPOSITIONFULL = 0x0284, - WM_IME_SELECT = 0x0285, - WM_IME_CHAR = 0x0286, - WM_IME_REQUEST = 0x0288, - WM_IME_KEYDOWN = 0x0290, - WM_IME_KEYUP = 0x0291, - - WM_MOUSEHOVER = 0x02A1, - WM_MOUSELEAVE = 0x02A3, - WM_NCMOUSEHOVER = 0x02A0, - WM_NCMOUSELEAVE = 0x02A2, - - WM_WTSSESSION_CHANGE = 0x02B1, - - WM_TABLET_FIRST = 0x02c0, - WM_TABLET_LAST = 0x02df, - - WM_CUT = 0x0300, - WM_COPY = 0x0301, - WM_PASTE = 0x0302, - WM_CLEAR = 0x0303, - WM_UNDO = 0x0304, - WM_RENDERFORMAT = 0x0305, - WM_RENDERALLFORMATS = 0x0306, - WM_DESTROYCLIPBOARD = 0x0307, - WM_DRAWCLIPBOARD = 0x0308, - WM_PAINTCLIPBOARD = 0x0309, - WM_VSCROLLCLIPBOARD = 0x030A, - WM_SIZECLIPBOARD = 0x030B, - WM_ASKCBFORMATNAME = 0x030C, - WM_CHANGECBCHAIN = 0x030D, - WM_HSCROLLCLIPBOARD = 0x030E, - WM_QUERYNEWPALETTE = 0x030F, - WM_PALETTEISCHANGING = 0x0310, - WM_PALETTECHANGED = 0x0311, - WM_HOTKEY = 0x0312, - - WM_PRINT = 0x0317, - WM_PRINTCLIENT = 0x0318, - - WM_APPCOMMAND = 0x0319, - - WM_THEMECHANGED = 0x031A, - - WM_CLIPBOARDUPDATE = 0x031D, - - WM_DWMCOMPOSITIONCHANGED = 0x031E, - WM_DWMNCRENDERINGCHANGED = 0x031F, - WM_DWMCOLORIZATIONCOLORCHANGED = 0x0320, - WM_DWMWINDOWMAXIMIZEDCHANGE = 0x0321, - - WM_GETTITLEBARINFOEX = 0x033F, - - WM_HANDHELDFIRST = 0x0358, - WM_HANDHELDLAST = 0x035F, - - WM_AFXFIRST = 0x0360, - WM_AFXLAST = 0x037F, - - WM_PENWINFIRST = 0x0380, - WM_PENWINLAST = 0x038F, - - WM_APP = 0x8000, - - WM_USER = 0x0400, - - WM_REFLECT = WM_USER + 0x1C00, - } - - /// - /// Returns true if the current application has focus, false otherwise. - /// - /// - /// If the current application is focused. - /// - public static bool ApplicationIsActivated() - { - var activatedHandle = GetForegroundWindow(); - if (activatedHandle == IntPtr.Zero) - return false; // No window is currently activated - - _ = GetWindowThreadProcessId(activatedHandle, out var activeProcId); - if (Marshal.GetLastWin32Error() != 0) - return false; - - return activeProcId == Environment.ProcessId; - } - - /// - /// Passes message information to the specified window procedure. - /// - /// - /// The previous window procedure. If this value is obtained by calling the GetWindowLong function with the nIndex parameter set to - /// GWL_WNDPROC or DWL_DLGPROC, it is actually either the address of a window or dialog box procedure, or a special internal value - /// meaningful only to CallWindowProc. - /// - /// - /// A handle to the window procedure to receive the message. - /// - /// - /// The message. - /// - /// - /// Additional message-specific information. The contents of this parameter depend on the value of the Msg parameter. - /// - /// - /// More additional message-specific information. The contents of this parameter depend on the value of the Msg parameter. - /// - /// - /// Use the CallWindowProc function for window subclassing. Usually, all windows with the same class share one window procedure. A - /// subclass is a window or set of windows with the same class whose messages are intercepted and processed by another window procedure - /// (or procedures) before being passed to the window procedure of the class. - /// The SetWindowLong function creates the subclass by changing the window procedure associated with a particular window, causing the - /// system to call the new window procedure instead of the previous one.An application must pass any messages not processed by the new - /// window procedure to the previous window procedure by calling CallWindowProc.This allows the application to create a chain of window - /// procedures. - /// - [DllImport("user32.dll")] - public static extern long CallWindowProcW(IntPtr lpPrevWndFunc, IntPtr hWnd, uint msg, ulong wParam, long lParam); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-flashwindowex. - /// Flashes the specified window. It does not change the active state of the window. - /// - /// - /// A pointer to a FLASHWINFO structure. - /// - /// - /// The return value specifies the window's state before the call to the FlashWindowEx function. If the window caption - /// was drawn as active before the call, the return value is nonzero. Otherwise, the return value is zero. - /// - [DllImport("user32.dll")] - [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool FlashWindowEx(ref FlashWindowInfo pwfi); - - /// - /// Retrieves a handle to the foreground window (the window with which the user is currently working). The system assigns - /// a slightly higher priority to the thread that creates the foreground window than it does to other threads. - /// - /// - /// The return value is a handle to the foreground window. The foreground window can be NULL in certain circumstances, - /// such as when a window is losing activation. - /// - [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] - public static extern IntPtr GetForegroundWindow(); - - /// - /// Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the - /// process that created the window. - /// - /// - /// A handle to the window. - /// - /// - /// A pointer to a variable that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId - /// copies the identifier of the process to the variable; otherwise, it does not. - /// - /// - /// The return value is the identifier of the thread that created the window. - /// - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - public static extern int GetWindowThreadProcessId(IntPtr handle, out int processId); - - /// - /// Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, - /// such as status or error information. The message box returns an integer value that indicates which button the user - /// clicked. - /// - /// - /// A handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no - /// owner window. - /// - /// - /// The message to be displayed. If the string consists of more than one line, you can separate the lines using a carriage - /// return and/or linefeed character between each line. - /// - /// - /// The dialog box title. If this parameter is NULL, the default title is Error. - /// - /// The contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups - /// of flags. - /// - /// - /// If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or - /// the Cancel button is selected. If the message box has no Cancel button, pressing ESC will no effect - unless an - /// MB_OK button is present. If an MB_OK button is displayed and the user presses ESC, the return value will be IDOK. - /// If the function fails, the return value is zero.To get extended error information, call GetLastError. If the function - /// succeeds, the return value is one of the ID* enum values. - /// - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] - public static extern int MessageBoxW(IntPtr hWnd, string text, string caption, MessageBoxType type); - - /// - /// Changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory. - /// - /// - /// A handle to the window and, indirectly, the class to which the window belongs. The SetWindowLongPtr function fails if the - /// process that owns the window specified by the hWnd parameter is at a higher process privilege in the UIPI hierarchy than the - /// process the calling thread resides in. - /// - /// - /// The zero-based offset to the value to be set. Valid values are in the range zero through the number of bytes of extra window - /// memory, minus the size of a LONG_PTR. To set any other value, specify one of the values. - /// - /// - /// The replacement value. - /// - /// - /// If the function succeeds, the return value is the previous value of the specified offset. If the function fails, the return - /// value is zero.To get extended error information, call GetLastError. If the previous value is zero and the function succeeds, - /// the return value is zero, but the function does not clear the last error information. To determine success or failure, clear - /// the last error information by calling SetLastError with 0, then call SetWindowLongPtr.Function failure will be indicated by - /// a return value of zero and a GetLastError result that is nonzero. - /// - [DllImport("user32.dll", SetLastError = true)] - public static extern IntPtr SetWindowLongPtrW(IntPtr hWnd, WindowLongType nIndex, IntPtr dwNewLong); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-flashwinfo. - /// Contains the flash status for a window and the number of times the system should flash the window. - /// - [StructLayout(LayoutKind.Sequential)] - public struct FlashWindowInfo - { - /// - /// The size of the structure, in bytes. - /// - public uint Size; - - /// - /// A handle to the window to be flashed. The window can be either opened or minimized. - /// - public IntPtr Hwnd; - - /// - /// The flash status. This parameter can be one or more of the FlashWindow enum values. - /// - public FlashWindow Flags; - - /// - /// The number of times to flash the window. - /// - public uint Count; - - /// - /// The rate at which the window is to be flashed, in milliseconds. If dwTimeout is zero, the function uses the - /// default cursor blink rate. - /// - public uint Timeout; - } - - /// - /// Parameters for use with SystemParametersInfo. - /// - public enum AccessibilityParameter - { -#pragma warning disable SA1602 - SPI_GETCLIENTAREAANIMATION = 0x1042, -#pragma warning restore SA1602 - } - - /// - /// Retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter. - /// - /// The system-wide parameter to be retrieved or set. - /// A parameter whose usage and format depends on the system parameter being queried or set. - /// A parameter whose usage and format depends on the system parameter being queried or set. If not otherwise indicated, you must specify zero for this parameter. - /// If a system parameter is being set, specifies whether the user profile is to be updated, and if so, whether the WM_SETTINGCHANGE message is to be broadcast to all top-level windows to notify them of the change. - /// If the function succeeds, the return value is a nonzero value. - [DllImport("user32.dll", SetLastError = true)] - public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, ref int pvParam, uint fWinIni); -} - -/// -/// Native imm32 functions. -/// -internal static partial class NativeFunctions -{ - /// - /// GCS_* from imm32. - /// These values are used with ImmGetCompositionString and WM_IME_COMPOSITION. - /// - [Flags] - public enum IMEComposition - { - /// - /// Retrieve or update the attribute of the composition string. - /// - CompAttr = 0x0010, - - /// - /// Retrieve or update clause information of the composition string. - /// - CompClause = 0x0020, - - /// - /// Retrieve or update the attributes of the reading string of the current composition. - /// - CompReadAttr = 0x0002, - - /// - /// Retrieve or update the clause information of the reading string of the composition string. - /// - CompReadClause = 0x0004, - - /// - /// Retrieve or update the reading string of the current composition. - /// - CompReadStr = 0x0001, - - /// - /// Retrieve or update the current composition string. - /// - CompStr = 0x0008, - - /// - /// Retrieve or update the cursor position in composition string. - /// - CursorPos = 0x0080, - - /// - /// Retrieve or update the starting position of any changes in composition string. - /// - DeltaStart = 0x0100, - - /// - /// Retrieve or update clause information of the result string. - /// - ResultClause = 0x1000, - - /// - /// Retrieve or update clause information of the reading string. - /// - ResultReadClause = 0x0400, - - /// - /// Retrieve or update the reading string. - /// - ResultReadStr = 0x0200, - - /// - /// Retrieve or update the string of the composition result. - /// - ResultStr = 0x0800, - } - - /// - /// IMN_* from imm32. - /// Input Method Manager Commands, this enum is not exhaustive. - /// - public enum IMECommand - { - /// - /// Notifies the application when an IME is about to change the content of the candidate window. - /// - ChangeCandidate = 0x0003, - - /// - /// Notifies an application when an IME is about to close the candidates window. - /// - CloseCandidate = 0x0004, - - /// - /// Notifies an application when an IME is about to open the candidate window. - /// - OpenCandidate = 0x0005, - - /// - /// Notifies an application when the conversion mode of the input context is updated. - /// - SetConversionMode = 0x0006, - } - - /// - /// Returns the input context associated with the specified window. - /// - /// Unnamed parameter 1. - /// - /// Returns the handle to the input context. - /// - [DllImport("imm32.dll")] - public static extern IntPtr ImmGetContext(IntPtr hWnd); - - /// - /// Retrieves information about the composition string. - /// - /// - /// Unnamed parameter 1. - /// - /// - /// Unnamed parameter 2. - /// - /// - /// Pointer to a buffer in which the function retrieves the composition string information. - /// - /// - /// Size, in bytes, of the output buffer, even if the output is a Unicode string. The application sets this parameter to 0 - /// if the function is to return the size of the required output buffer. - /// - /// - /// Returns the number of bytes copied to the output buffer. If dwBufLen is set to 0, the function returns the buffer size, - /// in bytes, required to receive all requested information, excluding the terminating null character. The return value is - /// always the size, in bytes, even if the requested data is a Unicode string. - /// This function returns one of the following negative error codes if it does not succeed: - /// - IMM_ERROR_NODATA.Composition data is not ready in the input context. - /// - IMM_ERROR_GENERAL.General error detected by IME. - /// - [DllImport("imm32.dll")] - public static extern long ImmGetCompositionStringW(IntPtr hImc, IMEComposition arg2, IntPtr lpBuf, uint dwBufLen); - - /// - /// Retrieves a candidate list. - /// - /// - /// Unnamed parameter 1. - /// - /// - /// Zero-based index of the candidate list. - /// - /// - /// Pointer to a CANDIDATELIST structure in which the function retrieves the candidate list. - /// - /// - /// Size, in bytes, of the buffer to receive the candidate list. The application can specify 0 for this parameter if the - /// function is to return the required size of the output buffer only. - /// - /// - /// Returns the number of bytes copied to the candidate list buffer if successful. If the application has supplied 0 for - /// the dwBufLen parameter, the function returns the size required for the candidate list buffer. The function returns 0 - /// if it does not succeed. - /// - [DllImport("imm32.dll")] - public static extern long ImmGetCandidateListW(IntPtr hImc, uint deIndex, IntPtr lpCandList, uint dwBufLen); - - /// - /// Sets the position of the composition window. - /// - /// - /// Unnamed parameter 1. - /// - /// - /// Pointer to a COMPOSITIONFORM structure that contains the new position and other related information about - /// the composition window. - /// - /// - /// Returns a nonzero value if successful, or 0 otherwise. - /// - [DllImport("imm32.dll", CharSet = CharSet.Auto)] - public static extern bool ImmSetCompositionWindow(IntPtr hImc, ref CompositionForm frm); - - /// - /// Releases the input context and unlocks the memory associated in the input context. An application must call this - /// function for each call to the ImmGetContext function. - /// - /// - /// Unnamed parameter 1. - /// - /// - /// Unnamed parameter 2. - /// - /// - /// Returns a nonzero value if successful, or 0 otherwise. - /// - [DllImport("imm32.dll", CharSet = CharSet.Auto)] - public static extern bool ImmReleaseContext(IntPtr hwnd, IntPtr hImc); - - /// - /// Contains information about a candidate list. - /// - public struct CandidateList - { - /// - /// Size, in bytes, of the structure, the offset array, and all candidate strings. - /// - public int Size; - - /// - /// Candidate style values. This member can have one or more of the IME_CAND_* values. - /// - public int Style; - - /// - /// Number of candidate strings. - /// - public int Count; - - /// - /// Index of the selected candidate string. - /// - public int Selection; - - /// - /// Index of the first candidate string in the candidate window. This varies as the user presses the PAGE UP and PAGE DOWN keys. - /// - public int PageStart; - - /// - /// Number of candidate strings to be shown in one page in the candidate window. The user can move to the next page by pressing IME-defined keys, such as the PAGE UP or PAGE DOWN key. If this number is 0, an application can define a proper value by itself. - /// - public int PageSize; - - // /// - // /// Offset to the start of the first candidate string, relative to the start of this structure. The offsets - // /// for subsequent strings immediately follow this member, forming an array of 32-bit offsets. - // /// - // public IntPtr Offset; // manually handle - } - - /// - /// Contains style and position information for a composition window. - /// - [StructLayout(LayoutKind.Sequential)] - public struct CompositionForm - { - /// - /// Position style. This member can be one of the CFS_* values. - /// - public int Style; - - /// - /// A POINT structure containing the coordinates of the upper left corner of the composition window. - /// - public Point CurrentPos; - - /// - /// A RECT structure containing the coordinates of the upper left and lower right corners of the composition window. - /// - public Rect Area; - } - - /// - /// Contains coordinates for a point. - /// - [StructLayout(LayoutKind.Sequential)] - public struct Point - { - /// - /// The X position. - /// - public int X; - - /// - /// The Y position. - /// - public int Y; - } - - /// - /// Contains dimensions for a rectangle. - /// - [StructLayout(LayoutKind.Sequential)] - public struct Rect - { - /// - /// The left position. - /// - public int Left; - - /// - /// The top position. - /// - public int Top; - - /// - /// The right position. - /// - public int Right; - - /// - /// The bottom position. - /// - public int Bottom; - } -} - -/// -/// Native kernel32 functions. -/// -[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1629:Documentation text should end with a period", Justification = "Stupid rule")] -internal static partial class NativeFunctions -{ - /// - /// MEM_* from memoryapi. - /// - [Flags] - public enum AllocationType - { - /// - /// To coalesce two adjacent placeholders, specify MEM_RELEASE | MEM_COALESCE_PLACEHOLDERS. When you coalesce - /// placeholders, lpAddress and dwSize must exactly match those of the placeholder. - /// - CoalescePlaceholders = 0x1, - - /// - /// Frees an allocation back to a placeholder (after you've replaced a placeholder with a private allocation using - /// VirtualAlloc2 or Virtual2AllocFromApp). To split a placeholder into two placeholders, specify - /// MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER. - /// - PreservePlaceholder = 0x2, - - /// - /// Allocates memory charges (from the overall size of memory and the paging files on disk) for the specified reserved - /// memory pages. The function also guarantees that when the caller later initially accesses the memory, the contents - /// will be zero. Actual physical pages are not allocated unless/until the virtual addresses are actually accessed. - /// To reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Attempting to commit - /// a specific address range by specifying MEM_COMMIT without MEM_RESERVE and a non-NULL lpAddress fails unless the - /// entire range has already been reserved. The resulting error code is ERROR_INVALID_ADDRESS. An attempt to commit - /// a page that is already committed does not cause the function to fail. This means that you can commit pages without - /// first determining the current commitment state of each page. If lpAddress specifies an address within an enclave, - /// flAllocationType must be MEM_COMMIT. - /// - Commit = 0x1000, - - /// - /// Reserves a range of the process's virtual address space without allocating any actual physical storage in memory - /// or in the paging file on disk. You commit reserved pages by calling VirtualAllocEx again with MEM_COMMIT. To - /// reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Other memory allocation - /// functions, such as malloc and LocalAlloc, cannot use reserved memory until it has been released. - /// - Reserve = 0x2000, - - /// - /// Decommits the specified region of committed pages. After the operation, the pages are in the reserved state. - /// The function does not fail if you attempt to decommit an uncommitted page. This means that you can decommit - /// a range of pages without first determining the current commitment state. The MEM_DECOMMIT value is not supported - /// when the lpAddress parameter provides the base address for an enclave. - /// - Decommit = 0x4000, - - /// - /// Releases the specified region of pages, or placeholder (for a placeholder, the address space is released and - /// available for other allocations). After this operation, the pages are in the free state. If you specify this - /// value, dwSize must be 0 (zero), and lpAddress must point to the base address returned by the VirtualAlloc function - /// when the region is reserved. The function fails if either of these conditions is not met. If any pages in the - /// region are committed currently, the function first decommits, and then releases them. The function does not - /// fail if you attempt to release pages that are in different states, some reserved and some committed. This means - /// that you can release a range of pages without first determining the current commitment state. - /// - Release = 0x8000, - - /// - /// Indicates that data in the memory range specified by lpAddress and dwSize is no longer of interest. The pages - /// should not be read from or written to the paging file. However, the memory block will be used again later, so - /// it should not be decommitted. This value cannot be used with any other value. Using this value does not guarantee - /// that the range operated on with MEM_RESET will contain zeros. If you want the range to contain zeros, decommit - /// the memory and then recommit it. When you use MEM_RESET, the VirtualAllocEx function ignores the value of fProtect. - /// However, you must still set fProtect to a valid protection value, such as PAGE_NOACCESS. VirtualAllocEx returns - /// an error if you use MEM_RESET and the range of memory is mapped to a file. A shared view is only acceptable - /// if it is mapped to a paging file. - /// - Reset = 0x80000, - - /// - /// MEM_RESET_UNDO should only be called on an address range to which MEM_RESET was successfully applied earlier. - /// It indicates that the data in the specified memory range specified by lpAddress and dwSize is of interest to - /// the caller and attempts to reverse the effects of MEM_RESET. If the function succeeds, that means all data in - /// the specified address range is intact. If the function fails, at least some of the data in the address range - /// has been replaced with zeroes. This value cannot be used with any other value. If MEM_RESET_UNDO is called on - /// an address range which was not MEM_RESET earlier, the behavior is undefined. When you specify MEM_RESET, the - /// VirtualAllocEx function ignores the value of flProtect. However, you must still set flProtect to a valid - /// protection value, such as PAGE_NOACCESS. - /// - ResetUndo = 0x1000000, - - /// - /// Reserves an address range that can be used to map Address Windowing Extensions (AWE) pages. This value must - /// be used with MEM_RESERVE and no other values. - /// - Physical = 0x400000, - - /// - /// Allocates memory at the highest possible address. This can be slower than regular allocations, especially when - /// there are many allocations. - /// - TopDown = 0x100000, - - /// - /// Causes the system to track pages that are written to in the allocated region. If you specify this value, you - /// must also specify MEM_RESERVE. To retrieve the addresses of the pages that have been written to since the region - /// was allocated or the write-tracking state was reset, call the GetWriteWatch function. To reset the write-tracking - /// state, call GetWriteWatch or ResetWriteWatch. The write-tracking feature remains enabled for the memory region - /// until the region is freed. - /// - WriteWatch = 0x200000, - - /// - /// Allocates memory using large page support. The size and alignment must be a multiple of the large-page minimum. - /// To obtain this value, use the GetLargePageMinimum function. If you specify this value, you must also specify - /// MEM_RESERVE and MEM_COMMIT. - /// - LargePages = 0x20000000, - } - - /// - /// SEM_* from errhandlingapi. - /// - [Flags] - public enum ErrorModes : uint - { - /// - /// Use the system default, which is to display all error dialog boxes. - /// - SystemDefault = 0x0, - - /// - /// The system does not display the critical-error-handler message box. Instead, the system sends the error to the - /// calling process. Best practice is that all applications call the process-wide SetErrorMode function with a parameter - /// of SEM_FAILCRITICALERRORS at startup. This is to prevent error mode dialogs from hanging the application. - /// - FailCriticalErrors = 0x0001, - - /// - /// The system automatically fixes memory alignment faults and makes them invisible to the application. It does - /// this for the calling process and any descendant processes. This feature is only supported by certain processor - /// architectures. For more information, see the Remarks section. After this value is set for a process, subsequent - /// attempts to clear the value are ignored. - /// - NoAlignmentFaultExcept = 0x0004, - - /// - /// The system does not display the Windows Error Reporting dialog. - /// - NoGpFaultErrorBox = 0x0002, - - /// - /// The OpenFile function does not display a message box when it fails to find a file. Instead, the error is returned - /// to the caller. This error mode overrides the OF_PROMPT flag. - /// - NoOpenFileErrorBox = 0x8000, - } - - /// - /// PAGE_* from memoryapi. - /// - [Flags] - public enum MemoryProtection - { - /// - /// Enables execute access to the committed region of pages. An attempt to write to the committed region results - /// in an access violation. This flag is not supported by the CreateFileMapping function. - /// - Execute = 0x10, - - /// - /// Enables execute or read-only access to the committed region of pages. An attempt to write to the committed region - /// results in an access violation. - /// - ExecuteRead = 0x20, - - /// - /// Enables execute, read-only, or read/write access to the committed region of pages. - /// - ExecuteReadWrite = 0x40, - - /// - /// Enables execute, read-only, or copy-on-write access to a mapped view of a file mapping object. An attempt to - /// write to a committed copy-on-write page results in a private copy of the page being made for the process. The - /// private page is marked as PAGE_EXECUTE_READWRITE, and the change is written to the new page. This flag is not - /// supported by the VirtualAlloc or VirtualAllocEx functions. - /// - ExecuteWriteCopy = 0x80, - - /// - /// Disables all access to the committed region of pages. An attempt to read from, write to, or execute the committed - /// region results in an access violation. This flag is not supported by the CreateFileMapping function. - /// - NoAccess = 0x01, - - /// - /// Enables read-only access to the committed region of pages. An attempt to write to the committed region results - /// in an access violation. If Data Execution Prevention is enabled, an attempt to execute code in the committed - /// region results in an access violation. - /// - ReadOnly = 0x02, - - /// - /// Enables read-only or read/write access to the committed region of pages. If Data Execution Prevention is enabled, - /// attempting to execute code in the committed region results in an access violation. - /// - ReadWrite = 0x04, - - /// - /// Enables read-only or copy-on-write access to a mapped view of a file mapping object. An attempt to write to - /// a committed copy-on-write page results in a private copy of the page being made for the process. The private - /// page is marked as PAGE_READWRITE, and the change is written to the new page. If Data Execution Prevention is - /// enabled, attempting to execute code in the committed region results in an access violation. This flag is not - /// supported by the VirtualAlloc or VirtualAllocEx functions. - /// - WriteCopy = 0x08, - - /// - /// Sets all locations in the pages as invalid targets for CFG. Used along with any execute page protection like - /// PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. Any indirect call to locations - /// in those pages will fail CFG checks and the process will be terminated. The default behavior for executable - /// pages allocated is to be marked valid call targets for CFG. This flag is not supported by the VirtualProtect - /// or CreateFileMapping functions. - /// - TargetsInvalid = 0x40000000, - - /// - /// Pages in the region will not have their CFG information updated while the protection changes for VirtualProtect. - /// For example, if the pages in the region was allocated using PAGE_TARGETS_INVALID, then the invalid information - /// will be maintained while the page protection changes. This flag is only valid when the protection changes to - /// an executable type like PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. - /// The default behavior for VirtualProtect protection change to executable is to mark all locations as valid call - /// targets for CFG. - /// - TargetsNoUpdate = TargetsInvalid, - - /// - /// Pages in the region become guard pages. Any attempt to access a guard page causes the system to raise a - /// STATUS_GUARD_PAGE_VIOLATION exception and turn off the guard page status. Guard pages thus act as a one-time - /// access alarm. For more information, see Creating Guard Pages. When an access attempt leads the system to turn - /// off guard page status, the underlying page protection takes over. If a guard page exception occurs during a - /// system service, the service typically returns a failure status indicator. This value cannot be used with - /// PAGE_NOACCESS. This flag is not supported by the CreateFileMapping function. - /// - Guard = 0x100, - - /// - /// Sets all pages to be non-cachable. Applications should not use this attribute except when explicitly required - /// for a device. Using the interlocked functions with memory that is mapped with SEC_NOCACHE can result in an - /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_NOCACHE flag cannot be used with the PAGE_GUARD, PAGE_NOACCESS, - /// or PAGE_WRITECOMBINE flags. The PAGE_NOCACHE flag can be used only when allocating private memory with the - /// VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable non-cached memory access for shared - /// memory, specify the SEC_NOCACHE flag when calling the CreateFileMapping function. - /// - NoCache = 0x200, - - /// - /// Sets all pages to be write-combined. Applications should not use this attribute except when explicitly required - /// for a device. Using the interlocked functions with memory that is mapped as write-combined can result in an - /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_WRITECOMBINE flag cannot be specified with the PAGE_NOACCESS, - /// PAGE_GUARD, and PAGE_NOCACHE flags. The PAGE_WRITECOMBINE flag can be used only when allocating private memory - /// with the VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable write-combined memory access - /// for shared memory, specify the SEC_WRITECOMBINE flag when calling the CreateFileMapping function. - /// - WriteCombine = 0x400, - } - - /// - /// HEAP_* from heapapi. - /// - [Flags] - public enum HeapOptions - { - /// - /// Serialized access is not used when the heap functions access this heap. This option applies to all - /// subsequent heap function calls. Alternatively, you can specify this option on individual heap function - /// calls. The low-fragmentation heap (LFH) cannot be enabled for a heap created with this option. A heap - /// created with this option cannot be locked. - /// - NoSerialize = 0x00000001, - - /// - /// The system raises an exception to indicate failure (for example, an out-of-memory condition) for calls to - /// HeapAlloc and HeapReAlloc instead of returning NULL. - /// - GenerateExceptions = 0x00000004, - - /// - /// The allocated memory will be initialized to zero. Otherwise, the memory is not initialized to zero. - /// - ZeroMemory = 0x00000008, - - /// - /// All memory blocks that are allocated from this heap allow code execution, if the hardware enforces data - /// execution prevention. Use this flag heap in applications that run code from the heap. If - /// HEAP_CREATE_ENABLE_EXECUTE is not specified and an application attempts to run code from a protected page, - /// the application receives an exception with the status code STATUS_ACCESS_VIOLATION. - /// - CreateEnableExecute = 0x00040000, - } - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-setevent - /// Sets the specified event object to the signaled state. - /// - /// A handle to the event object. The CreateEvent or OpenEvent function returns this handle. - /// - /// If the function succeeds, the return value is nonzero. - /// If the function fails, the return value is zero. To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll")] - public static extern bool SetEvent(IntPtr hEvent); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-freelibrary. - /// Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference - /// count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer - /// valid. - /// - /// - /// A handle to the loaded library module. The LoadLibrary, LoadLibraryEx, GetModuleHandle, or GetModuleHandleEx function - /// returns this handle. - /// - /// - /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended - /// error information, call the GetLastError function. - /// - [DllImport("kernel32.dll", SetLastError = true)] - [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool FreeLibrary(IntPtr hModule); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew. - /// Retrieves the fully qualified path for the file that contains the specified module. The module must have been loaded - /// by the current process. To locate the file for a module that was loaded by another process, use the GetModuleFileNameEx - /// function. - /// - /// - /// A handle to the loaded module whose path is being requested. If this parameter is NULL, GetModuleFileName retrieves - /// the path of the executable file of the current process. The GetModuleFileName function does not retrieve the path - /// for modules that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag. For more information, see LoadLibraryEx. - /// - /// - /// A pointer to a buffer that receives the fully qualified path of the module. If the length of the path is less than - /// the size that the nSize parameter specifies, the function succeeds and the path is returned as a null-terminated - /// string. If the length of the path exceeds the size that the nSize parameter specifies, the function succeeds and - /// the string is truncated to nSize characters including the terminating null character. - /// - /// - /// The size of the lpFilename buffer, in TCHARs. - /// - /// - /// If the function succeeds, the return value is the length of the string that is copied to the buffer, in characters, - /// not including the terminating null character. If the buffer is too small to hold the module name, the string is - /// truncated to nSize characters including the terminating null character, the function returns nSize, and the function - /// sets the last error to ERROR_INSUFFICIENT_BUFFER. If nSize is zero, the return value is zero and the last error - /// code is ERROR_SUCCESS. If the function fails, the return value is 0 (zero). To get extended error information, call - /// GetLastError. - /// - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - [PreserveSig] - public static extern uint GetModuleFileNameW( - [In] IntPtr hModule, - [Out] StringBuilder lpFilename, - [In][MarshalAs(UnmanagedType.U4)] int nSize); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandlew. - /// Retrieves a module handle for the specified module. The module must have been loaded by the calling process. To - /// avoid the race conditions described in the Remarks section, use the GetModuleHandleEx function. - /// - /// - /// The name of the loaded module (either a .dll or .exe file). If the file name extension is omitted, the default - /// library extension .dll is appended. The file name string can include a trailing point character (.) to indicate - /// that the module name has no extension. The string does not have to specify a path. When specifying a path, be sure - /// to use backslashes (\), not forward slashes (/). The name is compared (case independently) to the names of modules - /// currently mapped into the address space of the calling process. If this parameter is NULL, GetModuleHandle returns - /// a handle to the file used to create the calling process (.exe file). The GetModuleHandle function does not retrieve - /// handles for modules that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag.For more information, see LoadLibraryEx. - /// - /// - /// If the function succeeds, the return value is a handle to the specified module. If the function fails, the return - /// value is NULL.To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] - public static extern IntPtr GetModuleHandleW(string lpModuleName); - - /// - /// Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL). - /// - /// - /// A handle to the DLL module that contains the function or variable. The LoadLibrary, LoadLibraryEx, LoadPackagedLibrary, - /// or GetModuleHandle function returns this handle. The GetProcAddress function does not retrieve addresses from modules - /// that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag.For more information, see LoadLibraryEx. - /// - /// - /// The function or variable name, or the function's ordinal value. If this parameter is an ordinal value, it must be - /// in the low-order word; the high-order word must be zero. - /// - /// - /// If the function succeeds, the return value is the address of the exported function or variable. If the function - /// fails, the return value is NULL.To get extended error information, call GetLastError. - /// - [DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] - [SuppressMessage("Globalization", "CA2101:Specify marshaling for P/Invoke string arguments", Justification = "Ansi only")] - public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryw. - /// Loads the specified module into the address space of the calling process. The specified module may cause other modules - /// to be loaded. For additional load options, use the LoadLibraryEx function. - /// - /// - /// The name of the module. This can be either a library module (a .dll file) or an executable module (an .exe file). - /// The name specified is the file name of the module and is not related to the name stored in the library module itself, - /// as specified by the LIBRARY keyword in the module-definition (.def) file. If the string specifies a full path, the - /// function searches only that path for the module. If the string specifies a relative path or a module name without - /// a path, the function uses a standard search strategy to find the module; for more information, see the Remarks. - /// If the function cannot find the module, the function fails.When specifying a path, be sure to use backslashes (\), - /// not forward slashes(/). For more information about paths, see Naming a File or Directory. If the string specifies - /// a module name without a path and the file name extension is omitted, the function appends the default library extension - /// .dll to the module name. To prevent the function from appending .dll to the module name, include a trailing point - /// character (.) in the module name string. - /// - /// - /// If the function succeeds, the return value is a handle to the module. If the function fails, the return value is - /// NULL.To get extended error information, call GetLastError. - /// - [DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)] - public static extern IntPtr LoadLibraryW([MarshalAs(UnmanagedType.LPWStr)] string lpFileName); - - /// - /// ReadProcessMemory copies the data in the specified address range from the address space of the specified process - /// into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can - /// call the function. The entire area to be read must be accessible, and if it is not accessible, the function fails. - /// - /// - /// A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process. - /// - /// - /// A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the - /// system verifies that all data in the base address and memory of the specified size is accessible for read access, - /// and if it is not accessible the function fails. - /// - /// - /// A pointer to a buffer that receives the contents from the address space of the specified process. - /// - /// - /// The number of bytes to be read from the specified process. - /// - /// - /// A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead - /// is NULL, the parameter is ignored. - /// - /// - /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get - /// extended error information, call GetLastError. The function fails if the requested read operation crosses into an - /// area of the process that is inaccessible. - /// - [DllImport("kernel32.dll", SetLastError = true)] - public static extern bool ReadProcessMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - IntPtr lpBuffer, - int dwSize, - out IntPtr lpNumberOfBytesRead); - - /// - /// ReadProcessMemory copies the data in the specified address range from the address space of the specified process - /// into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can - /// call the function. The entire area to be read must be accessible, and if it is not accessible, the function fails. - /// - /// - /// A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process. - /// - /// - /// A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the - /// system verifies that all data in the base address and memory of the specified size is accessible for read access, - /// and if it is not accessible the function fails. - /// - /// - /// A pointer to a buffer that receives the contents from the address space of the specified process. - /// - /// - /// The number of bytes to be read from the specified process. - /// - /// - /// A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead - /// is NULL, the parameter is ignored. - /// - /// - /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get - /// extended error information, call GetLastError. The function fails if the requested read operation crosses into an - /// area of the process that is inaccessible. - /// - [DllImport("kernel32.dll", SetLastError = true)] - public static extern bool ReadProcessMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - byte[] lpBuffer, - int dwSize, - out IntPtr lpNumberOfBytesRead); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode. - /// Controls whether the system will handle the specified types of serious errors or whether the process will handle - /// them. - /// - /// - /// The process error mode. This parameter can be one or more of the ErrorMode enum values. - /// - /// - /// The return value is the previous state of the error-mode bit flags. - /// - [DllImport("kernel32.dll", SetLastError = true)] - public static extern ErrorModes SetErrorMode(ErrorModes uMode); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter. - /// Enables an application to supersede the top-level exception handler of each thread of a process. After calling this - /// function, if an exception occurs in a process that is not being debugged, and the exception makes it to the unhandled - /// exception filter, that filter will call the exception filter function specified by the lpTopLevelExceptionFilter - /// parameter. - /// - /// - /// A pointer to a top-level exception filter function that will be called whenever the UnhandledExceptionFilter function - /// gets control, and the process is not being debugged. A value of NULL for this parameter specifies default handling - /// within UnhandledExceptionFilter. The filter function has syntax similar to that of UnhandledExceptionFilter: It - /// takes a single parameter of type LPEXCEPTION_POINTERS, has a WINAPI calling convention, and returns a value of type - /// LONG. The filter function should return one of the EXCEPTION_* enum values. - /// - /// - /// The SetUnhandledExceptionFilter function returns the address of the previous exception filter established with the - /// function. A NULL return value means that there is no current top-level exception handler. - /// - [DllImport("kernel32.dll")] - public static extern IntPtr SetUnhandledExceptionFilter(IntPtr lpTopLevelExceptionFilter); - - /// - /// HeapCreate - Creates a private heap object that can be used by the calling process. - /// The function reserves space in the virtual address space of the process and allocates - /// physical storage for a specified initial portion of this block. - /// Ref: https://learn.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapcreate - /// - /// - /// The heap allocation options. - /// These options affect subsequent access to the new heap through calls to the heap functions. - /// - /// - /// The initial size of the heap, in bytes. - /// - /// This value determines the initial amount of memory that is committed for the heap. - /// The value is rounded up to a multiple of the system page size. The value must be smaller than dwMaximumSize. - /// - /// If this parameter is 0, the function commits one page. To determine the size of a page on the host computer, - /// use the GetSystemInfo function. - /// - /// - /// The maximum size of the heap, in bytes. The HeapCreate function rounds dwMaximumSize up to a multiple of the - /// system page size and then reserves a block of that size in the process's virtual address space for the heap. - /// If allocation requests made by the HeapAlloc or HeapReAlloc functions exceed the size specified by - /// dwInitialSize, the system commits additional pages of memory for the heap, up to the heap's maximum size. - /// - /// If dwMaximumSize is not zero, the heap size is fixed and cannot grow beyond the maximum size. Also, the largest - /// memory block that can be allocated from the heap is slightly less than 512 KB for a 32-bit process and slightly - /// less than 1,024 KB for a 64-bit process. Requests to allocate larger blocks fail, even if the maximum size of - /// the heap is large enough to contain the block. - /// - /// If dwMaximumSize is 0, the heap can grow in size. The heap's size is limited only by the available memory. - /// Requests to allocate memory blocks larger than the limit for a fixed-size heap do not automatically fail; - /// instead, the system calls the VirtualAlloc function to obtain the memory that is needed for large blocks. - /// Applications that need to allocate large memory blocks should set dwMaximumSize to 0. - /// - /// - /// If the function succeeds, the return value is a handle to the newly created heap. - /// - /// If the function fails, the return value is NULL. To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll", SetLastError = true)] - public static extern nint HeapCreate(HeapOptions flOptions, nuint dwInitialSize, nuint dwMaximumSize); - - /// - /// Allocates a block of memory from a heap. The allocated memory is not movable. - /// - /// - /// A handle to the heap from which the memory will be allocated. This handle is returned by the HeapCreate or - /// GetProcessHeap function. - /// - /// - /// The heap allocation options. Specifying any of these values will override the corresponding value specified when - /// the heap was created with HeapCreate. - /// - /// The number of bytes to be allocated. - /// - /// If the heap specified by the hHeap parameter is a "non-growable" heap, dwBytes must be less than 0x7FFF8. - /// You create a non-growable heap by calling the HeapCreate function with a nonzero value. - /// - /// - /// If the function succeeds, the return value is a pointer to the allocated memory block. - /// - /// If the function fails and you have not specified HEAP_GENERATE_EXCEPTIONS, the return value is NULL. - /// - /// If the function fails and you have specified HEAP_GENERATE_EXCEPTIONS, the function may generate either of the - /// exceptions listed in the following table. The particular exception depends upon the nature of the heap - /// corruption. For more information, see GetExceptionCode. - /// - [DllImport("kernel32.dll", SetLastError=false)] - public static extern nint HeapAlloc(nint hHeap, HeapOptions dwFlags, nuint dwBytes); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc. - /// Reserves, commits, or changes the state of a region of pages in the virtual address space of the calling process. - /// Memory allocated by this function is automatically initialized to zero. To allocate memory in the address space - /// of another process, use the VirtualAllocEx function. - /// - /// - /// The starting address of the region to allocate. If the memory is being reserved, the specified address is rounded - /// down to the nearest multiple of the allocation granularity. If the memory is already reserved and is being committed, - /// the address is rounded down to the next page boundary. To determine the size of a page and the allocation granularity - /// on the host computer, use the GetSystemInfo function. If this parameter is NULL, the system determines where to - /// allocate the region. If this address is within an enclave that you have not initialized by calling InitializeEnclave, - /// VirtualAlloc allocates a page of zeros for the enclave at that address. The page must be previously uncommitted, - /// and will not be measured with the EEXTEND instruction of the Intel Software Guard Extensions programming model. - /// If the address in within an enclave that you initialized, then the allocation operation fails with the - /// ERROR_INVALID_ADDRESS error. - /// - /// - /// The size of the region, in bytes. If the lpAddress parameter is NULL, this value is rounded up to the next page - /// boundary. Otherwise, the allocated pages include all pages containing one or more bytes in the range from lpAddress - /// to lpAddress+dwSize. This means that a 2-byte range straddling a page boundary causes both pages to be included - /// in the allocated region. - /// - /// - /// The type of memory allocation. This parameter must contain one of the MEM_* enum values. - /// - /// - /// The memory protection for the region of pages to be allocated. If the pages are being committed, you can specify - /// any one of the memory protection constants. - /// - /// - /// If the function succeeds, the return value is the base address of the allocated region of pages. If the function - /// fails, the return value is NULL.To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - public static extern IntPtr VirtualAlloc( - IntPtr lpAddress, - UIntPtr dwSize, - AllocationType flAllocationType, - MemoryProtection flProtect); - - /// - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - public static extern IntPtr VirtualAlloc( - IntPtr lpAddress, - UIntPtr dwSize, - AllocationType flAllocationType, - Memory.MemoryProtection flProtect); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualfree. - /// Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling - /// process. - /// process. - /// - /// - /// A pointer to the base address of the region of pages to be freed. If the dwFreeType parameter is MEM_RELEASE, this - /// parameter must be the base address returned by the VirtualAlloc function when the region of pages is reserved. - /// - /// - /// The size of the region of memory to be freed, in bytes. If the dwFreeType parameter is MEM_RELEASE, this parameter - /// must be 0 (zero). The function frees the entire region that is reserved in the initial allocation call to VirtualAlloc. - /// If the dwFreeType parameter is MEM_DECOMMIT, the function decommits all memory pages that contain one or more bytes - /// in the range from the lpAddress parameter to (lpAddress+dwSize). This means, for example, that a 2-byte region of - /// memory that straddles a page boundary causes both pages to be decommitted.If lpAddress is the base address returned - /// by VirtualAlloc and dwSize is 0 (zero), the function decommits the entire region that is allocated by VirtualAlloc. - /// After that, the entire region is in the reserved state. - /// - /// - /// The type of free operation. This parameter must be one of the MEM_* enum values. - /// - /// - /// If the function succeeds, the return value is a nonzero value. If the function fails, the return value is 0 (zero). - /// To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - public static extern bool VirtualFree( - IntPtr lpAddress, - UIntPtr dwSize, - AllocationType dwFreeType); - - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualprotect. - /// Changes the protection on a region of committed pages in the virtual address space of the calling process. - /// - /// - /// The address of the starting page of the region of pages whose access protection attributes are to be changed. All - /// pages in the specified region must be within the same reserved region allocated when calling the VirtualAlloc or - /// VirtualAllocEx function using MEM_RESERVE. The pages cannot span adjacent reserved regions that were allocated by - /// separate calls to VirtualAlloc or VirtualAllocEx using MEM_RESERVE. - /// - /// - /// The size of the region whose access protection attributes are to be changed, in bytes. The region of affected pages - /// includes all pages containing one or more bytes in the range from the lpAddress parameter to (lpAddress+dwSize). - /// This means that a 2-byte range straddling a page boundary causes the protection attributes of both pages to be changed. - /// - /// - /// The memory protection option. This parameter can be one of the memory protection constants. For mapped views, this - /// value must be compatible with the access protection specified when the view was mapped (see MapViewOfFile, - /// MapViewOfFileEx, and MapViewOfFileExNuma). - /// - /// - /// A pointer to a variable that receives the previous access protection value of the first page in the specified region - /// of pages. If this parameter is NULL or does not point to a valid variable, the function fails. - /// - /// - /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. - /// To get extended error information, call GetLastError. - /// - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - public static extern bool VirtualProtect( - IntPtr lpAddress, - UIntPtr dwSize, - MemoryProtection flNewProtection, - out MemoryProtection lpflOldProtect); - - /// - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - public static extern bool VirtualProtect( - IntPtr lpAddress, - UIntPtr dwSize, - Memory.MemoryProtection flNewProtection, - out Memory.MemoryProtection lpflOldProtect); - - /// - /// Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or - /// the operation fails. - /// - /// - /// A handle to the process memory to be modified. The handle must have PROCESS_VM_WRITE and PROCESS_VM_OPERATION access - /// to the process. - /// - /// - /// A pointer to the base address in the specified process to which data is written. Before data transfer occurs, the - /// system verifies that all data in the base address and memory of the specified size is accessible for write access, - /// and if it is not accessible, the function fails. - /// - /// - /// A pointer to the buffer that contains data to be written in the address space of the specified process. - /// - /// - /// The number of bytes to be written to the specified process. - /// - /// - /// A pointer to a variable that receives the number of bytes transferred into the specified process. This parameter - /// is optional. If lpNumberOfBytesWritten is NULL, the parameter is ignored. - /// - /// - /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get - /// extended error information, call GetLastError.The function fails if the requested write operation crosses into an - /// area of the process that is inaccessible. - /// - [DllImport("kernel32.dll", SetLastError = true)] - public static extern bool WriteProcessMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - byte[] lpBuffer, - int dwSize, - out IntPtr lpNumberOfBytesWritten); - - /// - /// Get a handle to the current process. - /// - /// Handle to the process. - [DllImport("kernel32.dll")] - public static extern IntPtr GetCurrentProcess(); - - /// - /// Get the current process ID. - /// - /// The process ID. - [DllImport("kernel32.dll")] - public static extern uint GetCurrentProcessId(); - - /// - /// Get the current thread ID. - /// - /// The thread ID. - [DllImport("kernel32.dll")] - public static extern uint GetCurrentThreadId(); -} - -/// -/// Native dbghelp functions. -/// -[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1201:Elements should appear in the correct order", Justification = "Native funcs")] -internal static partial class NativeFunctions -{ - /// - /// Type of minidump to create. - /// - public enum MiniDumpType : int - { - /// - /// Normal minidump. - /// - MiniDumpNormal, - - /// - /// Minidump with data segments. - /// - MiniDumpWithDataSegs, - - /// - /// Minidump with full memory. - /// - MiniDumpWithFullMemory, - } - - /// - /// Initializes the symbol handler for a process. - /// - /// - /// A handle that identifies the caller. - /// This value should be unique and nonzero, but need not be a process handle. - /// However, if you do use a process handle, be sure to use the correct handle. - /// If the application is a debugger, use the process handle for the process being debugged. - /// Do not use the handle returned by GetCurrentProcess when debugging another process, because calling functions like SymLoadModuleEx can have unexpected results. - /// This parameter cannot be NULL. - /// - /// The path, or series of paths separated by a semicolon (;), that is used to search for symbol files. - /// If this parameter is NULL, the library attempts to form a symbol path from the following sources: - /// - The current working directory of the application - /// - The _NT_SYMBOL_PATH environment variable - /// - The _NT_ALTERNATE_SYMBOL_PATH environment variable - /// Note that the search path can also be set using the SymSetSearchPath function. - /// - /// - /// If this value is , enumerates the loaded modules for the process and effectively calls the SymLoadModule64 function for each module. - /// - /// Whether the function succeeded. - [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] - public static extern bool SymInitialize(IntPtr hProcess, string userSearchPath, bool fInvadeProcess); - - /// - /// Deallocates all resources associated with the process handle. - /// - /// A handle to the process that was originally passed to the function. - /// Whether the function succeeded. - [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] - public static extern bool SymCleanup(IntPtr hProcess); - - /// - /// Creates a minidump. - /// - /// Target process handle. - /// Target process ID. - /// Output file handle. - /// Type of dump to take. - /// Exception information. - /// User information. - /// Callback. - /// Whether the minidump succeeded. - [DllImport("dbghelp.dll")] - public static extern bool MiniDumpWriteDump(IntPtr hProcess, uint processId, IntPtr hFile, int dumpType, ref MinidumpExceptionInformation exceptionInfo, IntPtr userStreamParam, IntPtr callback); - - /// - /// Structure describing minidump exception information. - /// - [StructLayout(LayoutKind.Sequential, Pack = 4)] - public struct MinidumpExceptionInformation - { - /// - /// ID of the thread that caused the exception. - /// - public uint ThreadId; - - /// - /// Pointer to the exception record. - /// - public IntPtr ExceptionPointers; - - /// - /// ClientPointers field. - /// - public int ClientPointers; - } - - /// - /// Finds window according to conditions. - /// - /// Handle to parent window. - /// Window to search after. - /// Name of class. - /// Name of window. - /// Found window, or null. - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] - public static extern IntPtr FindWindowEx( - IntPtr parentHandle, - IntPtr childAfter, - string className, - IntPtr windowTitle); -} - -/// -/// Native ws2_32 functions. -/// -internal static partial class NativeFunctions -{ - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt. - /// The setsockopt function sets a socket option. - /// - /// - /// A descriptor that identifies a socket. - /// - /// - /// The level at which the option is defined (for example, SOL_SOCKET). - /// - /// - /// The socket option for which the value is to be set (for example, SO_BROADCAST). The optname parameter must be a - /// socket option defined within the specified level, or behavior is undefined. - /// - /// - /// A pointer to the buffer in which the value for the requested option is specified. - /// - /// - /// The size, in bytes, of the buffer pointed to by the optval parameter. - /// - /// - /// If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error - /// code can be retrieved by calling WSAGetLastError. - /// - [DllImport("ws2_32.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = "setsockopt")] - public static extern int SetSockOpt(IntPtr socket, SocketOptionLevel level, SocketOptionName optName, ref IntPtr optVal, int optLen); -} - -/// -/// Native dwmapi functions. -/// -internal static partial class NativeFunctions -{ - /// - /// Attributes for use with DwmSetWindowAttribute. - /// - public enum DWMWINDOWATTRIBUTE : int - { - /// - /// Allows the window frame for this window to be drawn in dark mode colors when the dark mode system setting is enabled. - /// - DWMWA_USE_IMMERSIVE_DARK_MODE = 20, - } - - /// - /// Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. - /// - /// The handle to the window for which the attribute value is to be set. - /// The attribute to be set. - /// The value of the attribute. - /// The size of the attribute. - /// HRESULT. - [DllImport("dwmapi.dll", PreserveSig = true)] - public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize); -} diff --git a/Dalamud/NativeMethods.json b/Dalamud/NativeMethods.json new file mode 100644 index 000000000..ffb313dfc --- /dev/null +++ b/Dalamud/NativeMethods.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://aka.ms/CsWin32.schema.json", + "allowMarshaling": false +} diff --git a/Dalamud/NativeMethods.txt b/Dalamud/NativeMethods.txt index d9d05e472..ee888a98b 100644 --- a/Dalamud/NativeMethods.txt +++ b/Dalamud/NativeMethods.txt @@ -8,10 +8,17 @@ SetWindowPos SetForegroundWindow SetFocus SetActiveWindow +GetKeyState HWND_TOPMOST HWND_NOTOPMOST SET_WINDOW_POS_FLAGS +SetEvent +CreateMutex + +SymInitialize +SymCleanup + OpenClipboard SetClipboardData CloseClipboard @@ -21,3 +28,35 @@ GlobalAlloc GlobalLock GlobalUnlock GLOBAL_ALLOC_FLAGS + +VirtualAlloc +VirtualProtect +VirtualFree +VirtualQuery + +SetUnhandledExceptionFilter + +ReadProcessMemory +WriteProcessMemory + +FlashWindowEx + +GetProcAddress +GetModuleHandle +GetForegroundWindow +GetCurrentProcess +GetWindowThreadProcessId + +MessageBoxW + +SystemParametersInfo + +SystemParametersInfo + +DwmSetWindowAttribute + +setsockopt + +RegisterDragDrop +RevokeDragDrop +DragQueryFileW diff --git a/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs b/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs new file mode 100644 index 000000000..7a3991dcd --- /dev/null +++ b/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; + +namespace Dalamud.Plugin; + +/// +public class ActivePluginsChangedEventArgs : EventArgs, IActivePluginsChangedEventArgs +{ + /// + /// Initializes a new instance of the class + /// with the specified parameters. + /// + /// The kind of change that triggered the event. + /// The internal names of the plugins affected by the change. + internal ActivePluginsChangedEventArgs(PluginListInvalidationKind kind, IEnumerable affectedInternalNames) + { + this.Kind = kind; + this.AffectedInternalNames = affectedInternalNames; + } + + /// + public PluginListInvalidationKind Kind { get; } + + /// + public IEnumerable AffectedInternalNames { get; } +} diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index e1c6b7830..541071b63 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -13,8 +13,6 @@ using Dalamud.Data; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.Sanitizer; -using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface; using Dalamud.Interface.Internal; using Dalamud.Interface.Internal.Windows.PluginInstaller; @@ -427,39 +425,6 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa #endregion - #region Chat Links - - // TODO API9: Move to chatgui, don't allow passing own commandId - - /// - /// Register a chat link handler. - /// - /// The ID of the command. - /// The action to be executed. - /// Returns an SeString payload for the link. - public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction) - { - return Service.Get().AddChatLinkHandler(this.plugin.InternalName, commandId, commandAction); - } - - /// - /// Remove a chat link handler. - /// - /// The ID of the command. - public void RemoveChatLinkHandler(uint commandId) - { - Service.Get().RemoveChatLinkHandler(this.plugin.InternalName, commandId); - } - - /// - /// Removes all chat link handlers registered by the plugin. - /// - public void RemoveChatLinkHandler() - { - Service.Get().RemoveChatLinkHandler(this.plugin.InternalName); - } - #endregion - #region Dependency Injection /// @@ -523,15 +488,14 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa /// /// Dispatch the active plugins changed event. /// - /// What action caused this event to be fired. - /// If this plugin was affected by the change. - internal void NotifyActivePluginsChanged(PluginListInvalidationKind kind, bool affectedThisPlugin) + /// The event arguments containing information about the change. + internal void NotifyActivePluginsChanged(IActivePluginsChangedEventArgs args) { foreach (var action in Delegate.EnumerateInvocationList(this.ActivePluginsChanged)) { try { - action(kind, affectedThisPlugin); + action(args); } catch (Exception ex) { diff --git a/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs b/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs new file mode 100644 index 000000000..17c4347c7 --- /dev/null +++ b/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace Dalamud.Plugin; + +/// +/// Contains data about changes to the list of active plugins. +/// +public interface IActivePluginsChangedEventArgs +{ + /// + /// Gets the invalidation kind that caused this event to be fired. + /// + PluginListInvalidationKind Kind { get; } + + /// + /// Gets the InternalNames of affected plugins. + /// + IEnumerable AffectedInternalNames { get; } +} diff --git a/Dalamud/Plugin/IDalamudPluginInterface.cs b/Dalamud/Plugin/IDalamudPluginInterface.cs index 5b7c3836e..e98398a16 100644 --- a/Dalamud/Plugin/IDalamudPluginInterface.cs +++ b/Dalamud/Plugin/IDalamudPluginInterface.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Threading.Tasks; @@ -32,9 +32,8 @@ public interface IDalamudPluginInterface /// /// Delegate for events that listen to changes to the list of active plugins. /// - /// What action caused this event to be fired. - /// If this plugin was affected by the change. - public delegate void ActivePluginsChangedDelegate(PluginListInvalidationKind kind, bool affectedThisPlugin); + /// The event arguments containing information about the change. + public delegate void ActivePluginsChangedDelegate(IActivePluginsChangedEventArgs args); /// /// Event that gets fired when loc is changed @@ -281,25 +280,6 @@ public interface IDalamudPluginInterface /// directory with path of AppData/XIVLauncher/pluginConfig/PluginInternalName/loc. string GetPluginLocDirectory(); - /// - /// Register a chat link handler. - /// - /// The ID of the command. - /// The action to be executed. - /// Returns an SeString payload for the link. - DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction); - - /// - /// Remove a chat link handler. - /// - /// The ID of the command. - void RemoveChatLinkHandler(uint commandId); - - /// - /// Removes all chat link handlers registered by the plugin. - /// - void RemoveChatLinkHandler(); - /// /// Create a new object of the provided type using its default constructor, then inject objects and properties. /// diff --git a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs index 1a57790f8..169864bdf 100644 --- a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs +++ b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Threading.Tasks; using CheapLoc; - +using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; @@ -24,8 +24,6 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using ImGuiNET; - namespace Dalamud.Plugin.Internal.AutoUpdate; /// @@ -102,8 +100,6 @@ internal class AutoUpdateManager : IServiceType this.openInstallerWindowLinkTask = Service.GetAsync().ContinueWith( chatGuiTask => chatGuiTask.Result.AddChatLinkHandler( - "Dalamud", - 1001, (_, _) => { Service.GetNullable()?.OpenPluginInstallerTo(PluginInstallerOpenKind.InstalledPlugins); diff --git a/Dalamud/Plugin/Internal/PluginErrorHandler.cs b/Dalamud/Plugin/Internal/PluginErrorHandler.cs index f9d1f73f6..0094c3751 100644 --- a/Dalamud/Plugin/Internal/PluginErrorHandler.cs +++ b/Dalamud/Plugin/Internal/PluginErrorHandler.cs @@ -1,14 +1,13 @@ using System.Collections.Generic; using System.Linq.Expressions; +using Dalamud.Bindings.ImGui; using Dalamud.Interface; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Internal; using Dalamud.Plugin.Internal.Types; -using ImGuiNET; - using Serilog; namespace Dalamud.Plugin.Internal; @@ -113,7 +112,7 @@ internal class PluginErrorHandler : IServiceType this.activeNotification = this.notificationManager.AddNotification(notification); this.activeNotification.DrawActions += _ => { - if (ImGui.Button("Show console")) + if (ImGui.Button("Show console"u8)) { this.di.OpenLogWindow(this.plugin.InternalName); this.activeNotification.DismissNow(); @@ -121,12 +120,12 @@ internal class PluginErrorHandler : IServiceType if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Show the console filtered to this plugin"); + ImGui.SetTooltip("Show the console filtered to this plugin"u8); } ImGui.SameLine(); - if (ImGui.Button("Disable notifications")) + if (ImGui.Button("Disable notifications"u8)) { devPlugin.NotifyForErrors = false; this.activeNotification.DismissNow(); @@ -134,7 +133,7 @@ internal class PluginErrorHandler : IServiceType if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Disable error notifications for this plugin"); + ImGui.SetTooltip("Disable error notifications for this plugin"u8); } }; } diff --git a/Dalamud/Plugin/Internal/PluginManager.cs b/Dalamud/Plugin/Internal/PluginManager.cs index bfb1b3430..a4aa3919b 100644 --- a/Dalamud/Plugin/Internal/PluginManager.cs +++ b/Dalamud/Plugin/Internal/PluginManager.cs @@ -125,8 +125,6 @@ internal class PluginManager : IInternalDisposableService this.openInstallerWindowPluginChangelogsLink = Service.GetAsync().ContinueWith( chatGuiTask => chatGuiTask.Result.AddChatLinkHandler( - "Dalamud", - 1003, (_, _) => { Service.GetNullable()?.OpenPluginInstallerTo( @@ -1294,6 +1292,23 @@ internal class PluginManager : IInternalDisposableService /// The calling plugin, or null. public LocalPlugin? FindCallingPlugin() => this.FindCallingPlugin(new StackTrace()); + /// + /// Notifies all plugins that the active plugins list changed. + /// + /// The invalidation kind. + /// The affected plugins. + public void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable affectedInternalNames) + { + foreach (var installedPlugin in this.installedPluginsList) + { + if (!installedPlugin.IsLoaded || installedPlugin.DalamudInterface == null) + continue; + + installedPlugin.DalamudInterface.NotifyActivePluginsChanged( + new ActivePluginsChangedEventArgs(kind, affectedInternalNames)); + } + } + /// /// Resolves the services that a plugin may have a dependency on.
/// This is required, as the lifetime of a plugin cannot be longer than PluginManager, @@ -1823,20 +1838,6 @@ internal class PluginManager : IInternalDisposableService this.OnInstalledPluginsChanged?.InvokeSafely(); } - private void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable affectedInternalNames) - { - foreach (var installedPlugin in this.installedPluginsList) - { - if (!installedPlugin.IsLoaded || installedPlugin.DalamudInterface == null) - continue; - - installedPlugin.DalamudInterface.NotifyActivePluginsChanged( - kind, - // ReSharper disable once PossibleMultipleEnumeration - affectedInternalNames.Contains(installedPlugin.Manifest.InternalName)); - } - } - private void LoadAndStartLoadSyncPlugins() { try diff --git a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs index 4b2b62669..70b1db872 100644 --- a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs +++ b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs @@ -395,6 +395,9 @@ internal class LocalPlugin : IAsyncDisposable this.dalamudInterface); this.State = PluginState.Loaded; Log.Information("Finished loading {PluginName}", this.InternalName); + + var manager = Service.Get(); + manager.NotifyPluginsForStateChange(PluginListInvalidationKind.Loaded, [this.manifest.InternalName]); } catch (Exception ex) { @@ -470,6 +473,9 @@ internal class LocalPlugin : IAsyncDisposable this.State = PluginState.Unloaded; Log.Information("Finished unloading {PluginName}", this.InternalName); + + var manager = Service.Get(); + manager.NotifyPluginsForStateChange(PluginListInvalidationKind.Unloaded, [this.manifest.InternalName]); } catch (Exception ex) { diff --git a/Dalamud/Plugin/PluginListInvalidationKind.cs b/Dalamud/Plugin/PluginListInvalidationKind.cs index 4e7782703..588ae60d7 100644 --- a/Dalamud/Plugin/PluginListInvalidationKind.cs +++ b/Dalamud/Plugin/PluginListInvalidationKind.cs @@ -1,10 +1,20 @@ -namespace Dalamud.Plugin; +namespace Dalamud.Plugin; /// /// Causes for a change to the plugin list. /// public enum PluginListInvalidationKind { + /// + /// A plugin was loaded. + /// + Loaded, + + /// + /// A plugin was unloaded. + /// + Unloaded, + /// /// An installer-initiated update reloaded plugins. /// diff --git a/Dalamud/Plugin/Services/IAddonEventManager.cs b/Dalamud/Plugin/Services/IAddonEventManager.cs index e534eafb4..c6499e4e2 100644 --- a/Dalamud/Plugin/Services/IAddonEventManager.cs +++ b/Dalamud/Plugin/Services/IAddonEventManager.cs @@ -1,4 +1,5 @@ using Dalamud.Game.Addon.Events; +using Dalamud.Game.Addon.Events.EventDataTypes; namespace Dalamud.Plugin.Services; @@ -7,15 +8,6 @@ namespace Dalamud.Plugin.Services; ///
public interface IAddonEventManager { - /// - /// Delegate to be called when an event is received. - /// - /// Event type for this event handler. - /// The parent addon for this event handler. - /// The specific node that will trigger this event handler. - [Obsolete("Use AddonEventDelegate instead")] - public delegate void AddonEventHandler(AddonEventType atkEventType, nint atkUnitBase, nint atkResNode); - /// /// Delegate to be called when an event is received. /// @@ -23,17 +15,6 @@ public interface IAddonEventManager /// The event data object for use in handling this event. public delegate void AddonEventDelegate(AddonEventType atkEventType, AddonEventData data); - /// - /// Registers an event handler for the specified addon, node, and type. - /// - /// The parent addon for this event. - /// The node that will trigger this event. - /// The event type for this event. - /// The handler to call when event is triggered. - /// IAddonEventHandle used to remove the event. Null if no event was added. - [Obsolete("Use AddEvent with AddonEventDelegate instead of AddonEventHandler")] - IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, AddonEventHandler eventHandler); - /// /// Registers an event handler for the specified addon, node, and type. /// diff --git a/Dalamud/Plugin/Services/IChatGui.cs b/Dalamud/Plugin/Services/IChatGui.cs index 3f221b3bb..c474ca386 100644 --- a/Dalamud/Plugin/Services/IChatGui.cs +++ b/Dalamud/Plugin/Services/IChatGui.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Game.Text.SeStringHandling.Payloads; namespace Dalamud.Plugin.Services; @@ -84,6 +85,25 @@ public interface IChatGui ///
public IReadOnlyDictionary<(string PluginName, uint CommandId), Action> RegisteredLinkHandlers { get; } + /// + /// Register a chat link handler. + /// + /// The ID of the command. + /// The action to be executed. + /// Returns an SeString payload for the link. + public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction); + + /// + /// Remove a chat link handler. + /// + /// The ID of the command. + public void RemoveChatLinkHandler(uint commandId); + + /// + /// Removes all chat link handlers registered by the plugin. + /// + public void RemoveChatLinkHandler(); + /// /// Queue a chat message. Dalamud will send queued messages on the next framework event. /// diff --git a/Dalamud/Plugin/Services/IGameGui.cs b/Dalamud/Plugin/Services/IGameGui.cs index 0e2da7874..773ba61b4 100644 --- a/Dalamud/Plugin/Services/IGameGui.cs +++ b/Dalamud/Plugin/Services/IGameGui.cs @@ -1,6 +1,7 @@ -using System.Numerics; +using System.Numerics; using Dalamud.Game.Gui; +using Dalamud.Game.NativeWrapper; using Dalamud.Game.Text.SeStringHandling.Payloads; namespace Dalamud.Plugin.Services; @@ -75,37 +76,37 @@ public unsafe interface IGameGui public bool ScreenToWorld(Vector2 screenPos, out Vector3 worldPos, float rayDistance = 100000.0f); /// - /// Gets a pointer to the game's UI module. + /// Gets a pointer to the game's UIModule instance. /// - /// IntPtr pointing to UI module. - public nint GetUIModule(); + /// A pointer wrapper to UIModule. + public UIModulePtr GetUIModule(); /// /// Gets the pointer to the Addon with the given name and index. /// /// Name of addon to find. /// Index of addon to find (1-indexed). - /// nint.Zero if unable to find UI, otherwise nint pointing to the start of the addon. - public nint GetAddonByName(string name, int index = 1); + /// A pointer wrapper to the addon. + public AtkUnitBasePtr GetAddonByName(string name, int index = 1); + + /// + /// Find the agent associated with an addon, if possible. + /// + /// The agent id. + /// A pointer wrapper to the agent interface. + public AgentInterfacePtr GetAgentById(int id); /// /// Find the agent associated with an addon, if possible. /// /// The addon name. - /// A pointer to the agent interface. - public nint FindAgentInterface(string addonName); + /// A pointer wrapper to the agent interface. + public AgentInterfacePtr FindAgentInterface(string addonName); /// /// Find the agent associated with an addon, if possible. /// /// The addon address. - /// A pointer to the agent interface. - public nint FindAgentInterface(void* addon); - - /// - /// Find the agent associated with an addon, if possible. - /// - /// The addon address. - /// A pointer to the agent interface. - public IntPtr FindAgentInterface(IntPtr addonPtr); + /// A pointer wrapper to the agent interface. + public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon); } diff --git a/Dalamud/Plugin/Services/IGameNetwork.cs b/Dalamud/Plugin/Services/IGameNetwork.cs index eed79b4af..969176da7 100644 --- a/Dalamud/Plugin/Services/IGameNetwork.cs +++ b/Dalamud/Plugin/Services/IGameNetwork.cs @@ -5,6 +5,7 @@ namespace Dalamud.Plugin.Services; /// /// This class handles interacting with game network events. /// +[Obsolete("Will be removed in a future release. Use packet handler hooks instead.", true)] public interface IGameNetwork { // TODO(v9): we shouldn't be passing pointers to the actual data here diff --git a/Dalamud/Plugin/Services/IGamepadState.cs b/Dalamud/Plugin/Services/IGamepadState.cs index c349923f3..2816c927e 100644 --- a/Dalamud/Plugin/Services/IGamepadState.cs +++ b/Dalamud/Plugin/Services/IGamepadState.cs @@ -1,7 +1,7 @@ using System.Numerics; +using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.GamePad; -using ImGuiNET; namespace Dalamud.Plugin.Services; @@ -16,12 +16,12 @@ public interface IGamepadState /// Gets the pointer to the current instance of the GamepadInput struct. ///
public nint GamepadInputAddress { get; } - + /// /// Gets the left analogue sticks tilt vector. /// public Vector2 LeftStick { get; } - + /// /// Gets the right analogue sticks tilt vector. /// diff --git a/Dalamud/Plugin/Services/IObjectTable.cs b/Dalamud/Plugin/Services/IObjectTable.cs index ad2c4d6dc..4c5305513 100644 --- a/Dalamud/Plugin/Services/IObjectTable.cs +++ b/Dalamud/Plugin/Services/IObjectTable.cs @@ -19,6 +19,38 @@ public interface IObjectTable : IEnumerable ///
public int Length { get; } + /// + /// Gets an enumerator for accessing player objects. This will only contain BattleChara objects. + /// Does not contain any mounts, minions, or accessories. + /// + public IEnumerable PlayerObjects { get; } + + /// + /// Gets an enumerator for accessing character manager objects. Contains all objects in indexes [0, 199]. + /// Includes mounts, minions, accessories, and players. + /// + public IEnumerable CharacterManagerObjects { get; } + + /// + /// Gets an enumerator for accessing client objects. Contains all objects in indexes [200, 448]. + /// + public IEnumerable ClientObjects { get; } + + /// + /// Gets an enumerator for accessing event objects. Contains all objects in indexes [449, 488]. + /// + public IEnumerable EventObjects { get; } + + /// + /// Gets an enumerator for accessing stand objects. Contains all objects in indexes [489, 628]. + /// + public IEnumerable StandObjects { get; } + + /// + /// Gets an enumerator for accessing reaction event objects. Contains all objects in indexes [629, 728]. + /// + public IEnumerable ReactionEventObjects { get; } + /// /// Get an object at the specified spawn index. /// diff --git a/Dalamud/Plugin/Services/ISeStringEvaluator.cs b/Dalamud/Plugin/Services/ISeStringEvaluator.cs index 846dcd53e..65932652e 100644 --- a/Dalamud/Plugin/Services/ISeStringEvaluator.cs +++ b/Dalamud/Plugin/Services/ISeStringEvaluator.cs @@ -1,5 +1,3 @@ -using System.Diagnostics.CodeAnalysis; - using Dalamud.Game; using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.Text.Evaluator; @@ -11,7 +9,6 @@ namespace Dalamud.Plugin.Services; /// /// Defines a service for retrieving localized text for various in-game entities. /// -[Experimental("SeStringEvaluator")] public interface ISeStringEvaluator { /// diff --git a/Dalamud/Plugin/Services/ITextureProvider.cs b/Dalamud/Plugin/Services/ITextureProvider.cs index 3f9ae99df..a8ad76995 100644 --- a/Dalamud/Plugin/Services/ITextureProvider.cs +++ b/Dalamud/Plugin/Services/ITextureProvider.cs @@ -5,12 +5,11 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal.Windows.Data.Widgets; using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.TextureWraps; -using ImGuiNET; - using Lumina.Data.Files; namespace Dalamud.Plugin.Services; @@ -214,7 +213,7 @@ public interface ITextureProvider /// to read using . /// true if it is the case. bool HasClipboardImage(); - + /// Gets a shared texture corresponding to the given game resource icon specifier. /// /// This function does not throw exceptions. diff --git a/Dalamud/SafeMemory.cs b/Dalamud/SafeMemory.cs index 8d9c62c30..a8ac40a5d 100644 --- a/Dalamud/SafeMemory.cs +++ b/Dalamud/SafeMemory.cs @@ -12,11 +12,11 @@ namespace Dalamud; /// public static class SafeMemory { - private static readonly IntPtr Handle; + private static readonly SafeHandle Handle; static SafeMemory() { - Handle = Imports.GetCurrentProcess(); + Handle = Windows.Win32.PInvoke.GetCurrentProcess_SafeHandle(); } /// @@ -26,10 +26,24 @@ public static class SafeMemory /// The amount of bytes to read. /// The result buffer. /// Whether the read succeeded. - public static bool ReadBytes(IntPtr address, int count, out byte[] buffer) + public static unsafe bool ReadBytes(IntPtr address, int count, out byte[] buffer) { buffer = new byte[count <= 0 ? 0 : count]; - return Imports.ReadProcessMemory(Handle, address, buffer, buffer.Length, out _); + fixed (byte* p = buffer) + { + UIntPtr bytesRead; + if (!Windows.Win32.PInvoke.ReadProcessMemory( + Handle, + address.ToPointer(), + p, + new UIntPtr((uint)count), + &bytesRead)) + { + return false; + } + } + + return true; } /// @@ -38,9 +52,26 @@ public static class SafeMemory /// The address to write to. /// The buffer to write. /// Whether the write succeeded. - public static bool WriteBytes(IntPtr address, byte[] buffer) + public static unsafe bool WriteBytes(IntPtr address, byte[] buffer) { - return Imports.WriteProcessMemory(Handle, address, buffer, buffer.Length, out _); + if (buffer.Length == 0) + return true; + + UIntPtr bytesWritten; + fixed (byte* p = buffer) + { + if (!Windows.Win32.PInvoke.WriteProcessMemory( + Handle, + address.ToPointer(), + p, + new UIntPtr((uint)buffer.Length), + &bytesWritten)) + { + return false; + } + } + + return true; } /// @@ -240,18 +271,6 @@ public static class SafeMemory } } - private static class Imports - { - [DllImport("kernel32", SetLastError = true)] - public static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [Out] byte[] lpBuffer, int nSize, out int lpNumberOfBytesRead); - - [DllImport("kernel32", SetLastError = true)] - public static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten); - - [DllImport("kernel32", SetLastError = false)] - public static extern IntPtr GetCurrentProcess(); - } - private sealed class LocalMemory : IDisposable { private readonly int size; diff --git a/Dalamud/Utility/DiagnosticUtil.cs b/Dalamud/Utility/DiagnosticUtil.cs index 9c9718c4e..155d5cda7 100644 --- a/Dalamud/Utility/DiagnosticUtil.cs +++ b/Dalamud/Utility/DiagnosticUtil.cs @@ -1,6 +1,8 @@ using System.Diagnostics; using System.Linq; +using Dalamud.Bindings.ImGui; + namespace Dalamud.Utility; /// @@ -10,7 +12,6 @@ public static class DiagnosticUtil { private static readonly string[] IgnoredNamespaces = [ nameof(System), - nameof(ImGuiNET.ImGuiNative) ]; /// diff --git a/Dalamud/Utility/ItemUtil.cs b/Dalamud/Utility/ItemUtil.cs index 0b37a6abb..5f718bcee 100644 --- a/Dalamud/Utility/ItemUtil.cs +++ b/Dalamud/Utility/ItemUtil.cs @@ -7,10 +7,34 @@ using Lumina.Excel.Sheets; using Lumina.Text; using Lumina.Text.ReadOnly; -using static Dalamud.Game.Text.SeStringHandling.Payloads.ItemPayload; - namespace Dalamud.Utility; +/// +/// Kinds of items that can be fetched from this payload. +/// +public enum ItemKind : uint +{ + /// + /// Normal items. + /// + Normal, + + /// + /// Collectible Items. + /// + Collectible = 500_000, + + /// + /// High-Quality items. + /// + Hq = 1_000_000, + + /// + /// Event/Key items. + /// + EventItem = 2_000_000, +} + /// /// Utilities related to Items. /// diff --git a/Dalamud/Utility/SeStringExtensions.cs b/Dalamud/Utility/SeStringExtensions.cs index 904375250..cd095c467 100644 --- a/Dalamud/Utility/SeStringExtensions.cs +++ b/Dalamud/Utility/SeStringExtensions.cs @@ -24,6 +24,7 @@ public static class SeStringExtensions /// /// The original Lumina SeString. /// The re-parsed Dalamud SeString. + [Obsolete("Switch to using ReadOnlySeString instead of Lumina's SeString.", true)] public static DSeString ToDalamudString(this LSeString originalString) => DSeString.Parse(originalString.RawData); /// diff --git a/Dalamud/Utility/TexFileExtensions.cs b/Dalamud/Utility/TexFileExtensions.cs index ec8e10b3c..9d6f152c5 100644 --- a/Dalamud/Utility/TexFileExtensions.cs +++ b/Dalamud/Utility/TexFileExtensions.cs @@ -1,10 +1,12 @@ using System.Runtime.CompilerServices; +using Dalamud.Interface.ImGuiBackend.Renderers; using Dalamud.Memory; -using ImGuiScene; using Lumina.Data.Files; +using TerraFX.Interop.DirectX; + namespace Dalamud.Utility; /// @@ -13,7 +15,9 @@ namespace Dalamud.Utility; public static class TexFileExtensions { /// - /// Returns the image data formatted for . + /// Returns the image data formatted for , + /// using .
+ /// Consider using with . ///
/// The TexFile to format. /// The formatted image data. diff --git a/Dalamud/Utility/Util.cs b/Dalamud/Utility/Util.cs index 1d96523be..a1c2eb6b2 100644 --- a/Dalamud/Utility/Util.cs +++ b/Dalamud/Utility/Util.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; using System.IO; using System.IO.Compression; @@ -10,8 +9,10 @@ using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; +using System.Threading; using System.Threading.Tasks; +using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; using Dalamud.Game.ClientState.Objects.SubKinds; @@ -20,16 +21,18 @@ using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Support; -using ImGuiNET; using Lumina.Excel.Sheets; using Serilog; using TerraFX.Interop.Windows; -using Windows.Win32.Storage.FileSystem; using Windows.Win32.System.Memory; using Windows.Win32.System.Ole; +using Windows.Win32.UI.WindowsAndMessaging; -using static TerraFX.Interop.Windows.Windows; +using Dalamud.Interface.Internal; +using FLASHWINFO = Windows.Win32.UI.WindowsAndMessaging.FLASHWINFO; +using HWND = Windows.Win32.Foundation.HWND; +using MEMORY_BASIC_INFORMATION = Windows.Win32.System.Memory.MEMORY_BASIC_INFORMATION; using Win32_PInvoke = Windows.Win32.PInvoke; namespace Dalamud.Utility; @@ -37,7 +40,7 @@ namespace Dalamud.Utility; /// /// Class providing various helper methods for use in Dalamud and plugins. /// -public static class Util +public static partial class Util { private static readonly string[] PageProtectionFlagNames = [ "PAGE_NOACCESS", @@ -209,14 +212,14 @@ public static class Util } MEMORY_BASIC_INFORMATION mbi; - if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) + if (Win32_PInvoke.VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) return $"0x{p:X}(???)"; var sb = new StringBuilder(); sb.Append($"0x{p:X}("); for (int i = 0, c = 0; i < PageProtectionFlagNames.Length; i++) { - if ((mbi.Protect & (1 << i)) == 0) + if (((uint)mbi.Protect & (1 << i)) == 0) continue; if (c++ != 0) sb.Append(" | "); @@ -364,7 +367,7 @@ public static class Util ImGuiHelpers.ScaledDummy(5); - ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:"); + ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:"u8); ImGui.Indent(); @@ -389,7 +392,7 @@ public static class Util ImGuiHelpers.ScaledDummy(5); - ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:"); + ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:"u8); ImGui.Indent(); @@ -409,9 +412,9 @@ public static class Util /// Specify whether to exit immediately. public static void Fatal(string message, string caption, bool exit = true) { - var flags = NativeFunctions.MessageBoxType.Ok | NativeFunctions.MessageBoxType.IconError | - NativeFunctions.MessageBoxType.Topmost; - _ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags); + var flags = MESSAGEBOX_STYLE.MB_OK | MESSAGEBOX_STYLE.MB_ICONERROR | + MESSAGEBOX_STYLE.MB_TOPMOST; + _ = Windows.Win32.PInvoke.MessageBox(new HWND(Process.GetCurrentProcess().MainWindowHandle), message, caption, flags); if (exit) { @@ -522,17 +525,36 @@ public static class Util public static bool IsWindows11() => Environment.OSVersion.Version.Build >= 22000; /// - /// Open a link in the default browser. + /// Open a link in the default browser, and attempts to focus the newly launched application. /// /// The link to open. - public static void OpenLink(string url) - { - var process = new ProcessStartInfo(url) + public static void OpenLink(string url) => new Thread( + static url => { - UseShellExecute = true, - }; - Process.Start(process); - } + try + { + var psi = new ProcessStartInfo((string)url!) + { + UseShellExecute = true, + ErrorDialogParentHandle = Service.GetNullable() is { } im + ? im.GameWindowHandle + : 0, + Verb = "open", + }; + if (Process.Start(psi) is not { } process) + return; + + if (process.Id != 0) + TerraFX.Interop.Windows.Windows.AllowSetForegroundWindow((uint)process.Id); + process.WaitForInputIdle(); + TerraFX.Interop.Windows.Windows.SetForegroundWindow( + (TerraFX.Interop.Windows.HWND)process.MainWindowHandle); + } + catch (Exception e) + { + Log.Error(e, "{fn}: failed to open {url}", nameof(OpenLink), url); + } + }).Start(url); /// /// Perform a "zipper merge" (A, 1, B, 2, C, 3) of multiple enumerables, allowing for lists to end early. @@ -585,56 +607,44 @@ public static class Util } /// - /// Request that Windows flash the game window to grab the user's attention. + /// Returns true if the current application has focus, false otherwise. /// - /// Attempt to flash even if the game is currently focused. - public static void FlashWindow(bool flashIfOpen = false) + /// + /// If the current application is focused. + /// + public static unsafe bool ApplicationIsActivated() { - if (NativeFunctions.ApplicationIsActivated() && !flashIfOpen) - return; + var activatedHandle = Win32_PInvoke.GetForegroundWindow(); + if (activatedHandle == IntPtr.Zero) + return false; // No window is currently activated - var flashInfo = new NativeFunctions.FlashWindowInfo - { - Size = (uint)Marshal.SizeOf(), - Count = uint.MaxValue, - Timeout = 0, - Flags = NativeFunctions.FlashWindow.All | NativeFunctions.FlashWindow.TimerNoFG, - Hwnd = Process.GetCurrentProcess().MainWindowHandle, - }; + uint pid; + _ = Win32_PInvoke.GetWindowThreadProcessId(activatedHandle, &pid); + if (Marshal.GetLastWin32Error() != 0) + return false; - NativeFunctions.FlashWindowEx(ref flashInfo); + return pid == Environment.ProcessId; } /// - /// Overwrite text in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. + /// Request that Windows flash the game window to grab the user's attention. /// - /// The path of the file to write to. - /// The text to write. - [Api13ToDo("Remove.")] - [Obsolete("Replaced with FilesystemUtil.WriteAllTextSafe()")] - public static void WriteAllTextSafe(string path, string text) => FilesystemUtil.WriteAllTextSafe(path, text); + /// Attempt to flash even if the game is currently focused. + public static unsafe void FlashWindow(bool flashIfOpen = false) + { + if (ApplicationIsActivated() && !flashIfOpen) + return; - /// - /// Overwrite text in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. - /// - /// The path of the file to write to. - /// The text to write. - /// Encoding to use. - [Api13ToDo("Remove.")] - [Obsolete("Replaced with FilesystemUtil.WriteAllTextSafe()")] - public static void WriteAllTextSafe(string path, string text, Encoding encoding) => FilesystemUtil.WriteAllTextSafe(path, text, encoding); - - /// - /// Overwrite data in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. - /// - /// The path of the file to write to. - /// The data to write. - [Api13ToDo("Remove.")] - [Obsolete("Replaced with FilesystemUtil.WriteAllBytesSafe()")] - public static void WriteAllBytesSafe(string path, byte[] bytes) => FilesystemUtil.WriteAllBytesSafe(path, bytes); + var flashInfo = new FLASHWINFO + { + cbSize = (uint)sizeof(FLASHWINFO), + uCount = uint.MaxValue, + dwTimeout = 0, + dwFlags = FLASHWINFO_FLAGS.FLASHW_ALL | FLASHWINFO_FLAGS.FLASHW_TIMERNOFG, + hwnd = new HWND(Process.GetCurrentProcess().MainWindowHandle), + }; + Win32_PInvoke.FlashWindowEx(flashInfo); + } /// Gets a temporary file name, for use as the sourceFileName in /// . @@ -757,7 +767,7 @@ public static class Util $" HomeWorld: {(resolveGameData ? pc.HomeWorld.ValueNullable?.Name : pc.HomeWorld.RowId.ToString())} CurrentWorld: {(resolveGameData ? pc.CurrentWorld.ValueNullable?.Name : pc.CurrentWorld.RowId.ToString())} FC: {pc.CompanyTag}\n"; } - ImGui.TextUnformatted(actorString); + ImGui.Text(actorString); ImGui.SameLine(); if (ImGui.Button($"C##{actor.Address.ToInt64()}")) { @@ -791,7 +801,7 @@ public static class Util $" HomeWorld: {(resolveGameData ? pc.HomeWorld.ValueNullable?.Name : pc.HomeWorld.RowId.ToString())} CurrentWorld: {(resolveGameData ? pc.CurrentWorld.ValueNullable?.Name : pc.CurrentWorld.RowId.ToString())} FC: {pc.CompanyTag}\n"; } - ImGui.TextUnformatted(actorString); + ImGui.Text(actorString); ImGui.SameLine(); if (ImGui.Button($"C##{actor.Address.ToInt64()}")) { @@ -868,7 +878,7 @@ public static class Util var propType = p.PropertyType; if (p.GetGetMethod() is not { } getMethod) { - ImGui.Text("(No getter available)"); + ImGui.Text("(No getter available)"u8); return; } @@ -962,7 +972,7 @@ public static class Util var pointerType = typeof(T*); for (var i = 0; i < spanobj.Length; i++) { - ImGui.TextUnformatted($"[{offset + i:n0} (0x{offset + i:X})] "); + ImGui.Text($"[{offset + i:n0} (0x{offset + i:X})] "); ImGui.SameLine(); path.Add($"{offset + i}"); ShowValue(addr, path, pointerType, Pointer.Box(p + i, pointerType), true); @@ -1003,7 +1013,7 @@ public static class Util var ptrObj = SafeMemory.PtrToStructure(new IntPtr(unboxed), eType); if (ptrObj == null) { - ImGui.Text("null or invalid"); + ImGui.Text("null or invalid"u8); } else { @@ -1017,7 +1027,7 @@ public static class Util } else { - ImGui.Text("null"); + ImGui.Text("null"u8); } } else @@ -1088,7 +1098,7 @@ public static class Util if (fixedBuffer != null) { - ImGui.Text("fixed"); + ImGui.Text("fixed"u8); ImGui.SameLine(); ImGui.TextColored(new Vector4(0.2f, 0.9f, 0.9f, 1), $"{fixedBuffer.ElementType.Name}[0x{fixedBuffer.Length:X}]"); } @@ -1112,7 +1122,7 @@ public static class Util { if (f.FieldType.IsGenericType && (f.FieldType.IsByRef || f.FieldType.IsByRefLike)) { - ImGui.Text("Cannot preview ref typed fields."); // object never contains ref struct + ImGui.Text("Cannot preview ref typed fields."u8); // object never contains ref struct } else if (f.FieldType == typeof(bool) && offset != null) { @@ -1127,7 +1137,7 @@ public static class Util { using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1f, 0.4f, 0.4f, 1f))) { - ImGui.TextUnformatted($"Error: {ex.GetType().Name}: {ex.Message}"); + ImGui.Text($"Error: {ex.GetType().Name}: {ex.Message}"); } } finally @@ -1152,7 +1162,7 @@ public static class Util } else if (p.PropertyType.IsGenericType && (p.PropertyType.IsByRef || p.PropertyType.IsByRefLike)) { - ImGui.Text("Cannot preview ref typed properties."); + ImGui.Text("Cannot preview ref typed properties."u8); } else { @@ -1163,7 +1173,7 @@ public static class Util { using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1f, 0.4f, 0.4f, 1f))) { - ImGui.TextUnformatted($"Error: {ex.GetType().Name}: {ex.Message}"); + ImGui.Text($"Error: {ex.GetType().Name}: {ex.Message}"); } } finally diff --git a/DalamudCrashHandler/DalamudCrashHandler.vcxproj b/DalamudCrashHandler/DalamudCrashHandler.vcxproj index 52d70fbf2..00d67cd65 100644 --- a/DalamudCrashHandler/DalamudCrashHandler.vcxproj +++ b/DalamudCrashHandler/DalamudCrashHandler.vcxproj @@ -58,7 +58,7 @@ true false _DEBUG;%(PreprocessorDefinitions) - MultiThreadedDebug + MultiThreadedDebugDLL false @@ -70,7 +70,7 @@ true true NDEBUG;%(PreprocessorDefinitions) - MultiThreaded + MultiThreadedDLL true diff --git a/Directory.Build.props b/Directory.Build.props index 92902b0c0..224b610b6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -10,8 +10,7 @@ - 5.7.0 - 7.2.2 + 6.3.0 13.0.3 diff --git a/external/cimgui/cimgui.vcxproj b/external/cimgui/cimgui.vcxproj index 55e737595..d99d23119 100644 --- a/external/cimgui/cimgui.vcxproj +++ b/external/cimgui/cimgui.vcxproj @@ -21,6 +21,8 @@ + + 17.0 @@ -56,8 +58,8 @@ - bin\$(Configuration)\ - obj\$(Configuration)\ + bin\$(Configuration)\ + obj\$(Configuration)\ @@ -71,7 +73,7 @@ true _DEBUG;CIMGUI_EXPORTS;_WINDOWS;_USRDLL;IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1;IMGUI_USER_CONFIG="cimgui_user.h";%(PreprocessorDefinitions) true - MultiThreadedDebug + MultiThreadedDebugDLL Windows @@ -87,7 +89,7 @@ true NDEBUG;CIMGUI_EXPORTS;_WINDOWS;_USRDLL;IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1;IMGUI_USER_CONFIG="cimgui_user.h";%(PreprocessorDefinitions) true - MultiThreaded + MultiThreadedDLL Windows @@ -104,4 +106,4 @@ - + \ No newline at end of file diff --git a/external/cimguizmo/cimguizmo.vcxproj b/external/cimguizmo/cimguizmo.vcxproj index 3014786b8..9bf692d4b 100644 --- a/external/cimguizmo/cimguizmo.vcxproj +++ b/external/cimguizmo/cimguizmo.vcxproj @@ -60,24 +60,22 @@ - bin\$(Configuration)\ - obj\$(Configuration)\ + bin\$(Configuration)\ + obj\$(Configuration)\ - ..\..\lib\cimgui\imgui;..\..\lib\cimguizmo\ImGuizmo;..\..\lib\cimgui;%(AdditionalIncludeDirectories) NotUsing - Level3 true _DEBUG;CIMGUIZMO_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - MultiThreadedDebug + MultiThreadedDebugDLL Windows @@ -93,7 +91,7 @@ true NDEBUG;CIMGUIZMO_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - MultiThreaded + MultiThreadedDLL Windows @@ -110,4 +108,4 @@ - + \ No newline at end of file diff --git a/external/cimplot/cimplot.vcxproj b/external/cimplot/cimplot.vcxproj index c2b468fab..e9aecbc15 100644 --- a/external/cimplot/cimplot.vcxproj +++ b/external/cimplot/cimplot.vcxproj @@ -58,24 +58,22 @@ - bin\$(Configuration)\ - obj\$(Configuration)\ + bin\$(Configuration)\ + obj\$(Configuration)\ - ..\..\lib\cimgui\imgui;..\..\lib\cimplot\implot;..\..\lib\cimgui;%(AdditionalIncludeDirectories) NotUsing - Level3 true _DEBUG;CIMPLOT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - MultiThreadedDebug + MultiThreadedDebugDLL Windows @@ -91,7 +89,7 @@ true NDEBUG;CIMPLOT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - MultiThreaded + MultiThreadedDLL Windows @@ -108,4 +106,4 @@ - + \ No newline at end of file diff --git a/filter_imgui_bindings.ps1 b/filter_imgui_bindings.ps1 new file mode 100644 index 000000000..e2ca0d7ba --- /dev/null +++ b/filter_imgui_bindings.ps1 @@ -0,0 +1,291 @@ +$ErrorActionPreference = "Stop" +Set-StrictMode -Version Latest + +$namespaceDefPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^\s*)namespace\s+(?[\w.]+)\b', 'Compiled,Multiline,Singleline' +$usingPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^|;)\s*using\s+(?\w+)\s*;', 'Compiled,Multiline,Singleline' +$classDefPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?^\s*)(?public\s+|internal\s+|protected\s+|private\s+)?(?static\s+)?(?unsafe\s+)?(?partial\s+)?(?class\s+|struct\s+)(?\w+)\b', 'Compiled,Multiline,Singleline' +$methodPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^\s+?\[.*?\](?:\r\n|\r|\n))?(?^\s*)(?(?public\s+|internal\s+|protected\s+|private\s+)?(?static\s+)?(?unsafe\s+)?(?(?!public|internal|protected|private|static|unsafe)\w+(?:\s*<\s*\w+?(?:<\s*\w+\s*>?)?\s*>)?(?:\s*\*+)?\s+)(?\w+)(?\s*\([^)]*\)))(?:\r\n|\r|\n)[\s\S]+?(?:^\k}(?:\r\n|\r|\n))', 'Compiled,Multiline,Singleline' +$referNativeFunction = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?`r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`n$husks" + $husks | Set-Content -Path "$targetPath.gen.cs" -Encoding ascii + } + + $husks = "// `r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`nnamespace $namespace;`r`n`r`n" + + $sb = New-Object -TypeName "System.Text.StringBuilder" + $discardMethods = New-Object -TypeName "System.Collections.Generic.SortedSet[string]" + $null = $discardMethods.Add("ImFontAtlasBuildPackCustomRectsNative") + foreach ($classDef in $classes.Keys) + { + $null = $sb.Clear().Append($husks).Append("public unsafe partial $classDef`r`n{`r`n") + $className = $classDef.Split(" ")[1] + $isNative = $className.EndsWith("Native") + $discardMethods.Clear() + + if (!$isNative) + { + foreach ($methods in $classes[$classDef].Values) + { + $methodName = $methods[0].Groups["name"].Value; + + # discard Drag/Slider functions + if ($methodName.StartsWith("Drag") -or + $methodName.StartsWith("Slider") -or + $methodName.StartsWith("VSlider") -or + $methodName.StartsWith("InputFloat") -or + $methodName.StartsWith("InputInt") -or + $methodName.StartsWith("InputDouble") -or + $methodName.StartsWith("InputScalar") -or + $methodName.StartsWith("ColorEdit") -or + $methodName.StartsWith("ColorPicker")) + { + $null = $discardMethods.Add($methodName) + continue + } + + # discard specific functions + if ($methodName.StartsWith("ImGuiTextRange") -or + $methodName.StartsWith("AddInputCharacter")) + { + $null = $discardMethods.Add($methodName) + continue + } + + # discard Get...Ref functions + if ($methodName.StartsWith("Get") -And + $methodName.EndsWith("Ref")) + { + $null = $discardMethods.Add($methodName) + continue + } + + foreach ($overload in $methods) + { + $returnType = $overload.Groups["return"].Value.Trim() + $argDef = $overload.Groups["args"].Value + + # discard functions returning a string of some sort + if ($returnType -eq "string" -and + $methodName.EndsWith("S")) + { + $null = $discardMethods.Add($methodName.Substring(0, $methodName.Length - 1)) + $null = $discardMethods.Add($methodName) + break + } + + # discard formatting functions or functions accepting (begin, end) or (data, size) pairs + if ($argDef.Contains("fmt") -or + $argDef -match "\btext\b" -or + # $argDef.Contains("byte* textEnd") -or + $argDef.Contains("str") -or + # $argDef.Contains("byte* strEnd") -or + # $argDef.Contains("byte* strIdEnd") -or + $argDef.Contains("label") -or + $argDef.Contains("name") -or + $argDef.Contains("prefix") -or + $argDef.Contains("byte* shortcut") -or + $argDef.Contains("byte* type") -or + $argDef.Contains("byte* iniData") -or + $argDef.Contains("int dataSize") -or + $argDef.Contains("values, int valuesCount") -or + $argDef.Contains("data, int itemCount") -or + $argDef.Contains("pData, int components") -or + $argDef.Contains("ushort* glyphRanges") -or + $argDef.Contains("nuint args")) + { + $null = $discardMethods.Add($methodName) + break + } + } + } + } + + foreach ($methods in $classes[$classDef].Values) + { + $methodName = $methods[0].Groups["name"]; + + if ( $discardMethods.Contains($methodName)) + { + continue + } + + foreach ($overload in $methods) + { + if ($isNative) + { + $null = $sb.Append($overload.Groups[0].Value.Replace("internal ", "public ").Replace("Native(", "(").Replace("funcTable", "$($className.Substring(0, $className.Length - 6) ).funcTable")) + continue + } + + $tmp = $overload.Groups[0].Value + $tmp = $referNativeFunction.Replace($tmp, "$( $className )Native.`$1") + $tmp = $referNativeFunctionQualified.Replace($tmp, '$1Native.$2') + $tmp = $tmp -creplace '(?<=Get[A-Za-z0-9_]+\()ref ([A-Za-z*]+) self(?=, |\))', 'this scoped in $1 self' + $tmp = $tmp -creplace '(?<=\()(ref )?([A-Za-z*]+) self(?=, |\))', 'this $1$2 self' + $null = $sb.Append($tmp) + } + } + + $null = $sb.Append("}`r`n") + + $nativeMethods = $null + if (!$classes.TryGetValue($classDef + "Native", [ref]$nativeMethods)) + { + $nativeMethods = $null + } + + foreach ($methodName in $discardMethods) + { + if ($nativeMethods -ne $null) + { + $overloads = $null + if ($nativeMethods.TryGetValue($methodName + "Native", [ref]$overloads)) + { + foreach ($overload in $overloads) + { + $null = $sb.Append("// DISCARDED: $( $overload.Groups["prototype"].Value )`r`n") + } + continue + } + } + + $null = $sb.Append("// DISCARDED: $methodName`r`n") + } + + $sb.ToString() | Set-Content -Path "$targetPath/$className.gen.cs" -Encoding ascii + } +} diff --git a/generate_imgui_bindings.ps1 b/generate_imgui_bindings.ps1 new file mode 100644 index 000000000..0384bb488 --- /dev/null +++ b/generate_imgui_bindings.ps1 @@ -0,0 +1,81 @@ +# Store initial directory +$initialDirectory = Get-Location + +# CD to the directory of this script +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 { + param ( + [string]$filePath + ) + + $lines = Get-Content $filePath + $inserted = $false + + foreach ($line in $lines) { + if ($line -match "#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS") { + $index = [Array]::IndexOf($lines, $line) + if ($index -gt 0 -and $lines[$index - 1] -ne "#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS") { + $lines = $lines[0..($index - 1)] + "#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS" + "`r`n" + $lines[$index..($lines.Length - 1)] + $inserted = $true + } + break + } + } + + if (-not $inserted) { + Write-Host "CIMGUI_DEFINE_ENUMS_AND_STRUCTS not found in $filePath. Exiting." + exit 1 + } + + # Write the modified lines back to the file + Set-Content -Path $filePath -Value $lines +} + +# Insert the define line into all relevant header files +InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" +InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimplot/cimplot.h" +InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimguizmo/cimguizmo.h" + +# Copy modified cimgui.h to cimplot and cimguizmo directories +Copy-Item -Path "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot/cimgui.h" -Force +Copy-Item -Path "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo/cimgui.h" -Force + + +Set-Location -Path "lib/Hexa.NET.ImGui" +#dotnet workload restore +#dotnet restore + +# CD to generator directory +Set-Location -Path "Generator" + +# Build generator +dotnet build + +# Run generator +Read-Host -Prompt "Press any key to generate" | Out-Null +Set-Location -Path "bin/Debug/net9.0" +.\Generator.exe + +# Restore initial directory +Set-Location -Path $initialDirectory + +& "$PSScriptRoot\filter_imgui_bindings.ps1" diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs new file mode 100644 index 000000000..8001f2632 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs @@ -0,0 +1,695 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +/* Functions.000.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.001.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.002.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.003.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.004.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.005.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.006.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.007.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.008.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.009.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.010.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.011.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.012.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.013.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.014.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.015.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.016.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.017.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.018.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.019.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.020.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.021.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.022.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.023.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.024.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.025.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.026.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.027.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.028.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.029.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.030.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.031.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.032.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.033.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.034.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.035.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.036.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.037.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.038.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.039.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.040.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.041.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.042.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.043.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.044.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.045.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.046.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.047.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.048.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.049.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.050.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.051.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.052.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.053.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.054.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.055.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.056.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.057.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.058.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.059.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.060.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.061.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.062.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.063.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.064.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.065.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.066.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.067.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.068.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.069.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.070.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.071.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.072.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.073.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.074.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.075.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.076.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.077.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.078.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.079.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.080.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.081.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.082.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.083.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.084.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.085.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.086.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.087.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.088.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.089.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.090.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.091.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.092.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.093.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.094.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.095.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.096.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.097.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs new file mode 100644 index 000000000..3574ab21f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs @@ -0,0 +1,8899 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGui +{ + public static Vector2* ImVec2() + { + Vector2* ret = ImGuiNative.ImVec2(); + return ret; + } + public static Vector2* ImVec2(float x, float y) + { + Vector2* ret = ImGuiNative.ImVec2(x, y); + return ret; + } + public static void Destroy(Vector2* self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(ref Vector2 self) + { + fixed (Vector2* pself = &self) + { + ImGuiNative.Destroy((Vector2*)pself); + } + } + public static void Destroy(Vector4* self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(ref Vector4 self) + { + fixed (Vector4* pself = &self) + { + ImGuiNative.Destroy((Vector4*)pself); + } + } + public static void Destroy(this ImGuiStylePtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStyle self) + { + fixed (ImGuiStyle* pself = &self) + { + ImGuiNative.Destroy((ImGuiStyle*)pself); + } + } + public static void Destroy(this ImGuiIOPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.Destroy((ImGuiIO*)pself); + } + } + public static void Destroy(this ImGuiInputTextCallbackDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + ImGuiNative.Destroy((ImGuiInputTextCallbackData*)pself); + } + } + public static void Destroy(this ImGuiWindowClassPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiWindowClass self) + { + fixed (ImGuiWindowClass* pself = &self) + { + ImGuiNative.Destroy((ImGuiWindowClass*)pself); + } + } + public static void Destroy(this ImGuiPayloadPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + ImGuiNative.Destroy((ImGuiPayload*)pself); + } + } + public static void Destroy(this ImGuiTableColumnSortSpecsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableColumnSortSpecs self) + { + fixed (ImGuiTableColumnSortSpecs* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableColumnSortSpecs*)pself); + } + } + public static void Destroy(this ImGuiTableSortSpecsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableSortSpecs self) + { + fixed (ImGuiTableSortSpecs* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableSortSpecs*)pself); + } + } + public static void Destroy(this ImGuiOnceUponAFramePtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiOnceUponAFrame self) + { + fixed (ImGuiOnceUponAFrame* pself = &self) + { + ImGuiNative.Destroy((ImGuiOnceUponAFrame*)pself); + } + } + public static void Destroy(this ImGuiTextFilterPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + ImGuiNative.Destroy((ImGuiTextFilter*)pself); + } + } + public static void Destroy(this ImGuiTextRangePtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTextRange self) + { + fixed (ImGuiTextRange* pself = &self) + { + ImGuiNative.Destroy((ImGuiTextRange*)pself); + } + } + public static void Destroy(this ImGuiTextBufferPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + ImGuiNative.Destroy((ImGuiTextBuffer*)pself); + } + } + public static void Destroy(this ImGuiStoragePairPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStoragePair self) + { + fixed (ImGuiStoragePair* pself = &self) + { + ImGuiNative.Destroy((ImGuiStoragePair*)pself); + } + } + public static void Destroy(this ImGuiListClipperPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + ImGuiNative.Destroy((ImGuiListClipper*)pself); + } + } + public static void Destroy(this ImColorPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImColor self) + { + fixed (ImColor* pself = &self) + { + ImGuiNative.Destroy((ImColor*)pself); + } + } + public static void Destroy(this ImDrawCmdPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImDrawCmd self) + { + fixed (ImDrawCmd* pself = &self) + { + ImGuiNative.Destroy((ImDrawCmd*)pself); + } + } + public static void Destroy(this ImDrawListSplitterPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.Destroy((ImDrawListSplitter*)pself); + } + } + public static void Destroy(this ImDrawListPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.Destroy((ImDrawList*)pself); + } + } + public static void Destroy(this ImDrawDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + ImGuiNative.Destroy((ImDrawData*)pself); + } + } + public static void Destroy(this ImFontConfigPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImFontConfig self) + { + fixed (ImFontConfig* pself = &self) + { + ImGuiNative.Destroy((ImFontConfig*)pself); + } + } + public static void Destroy(this ImFontGlyphRangesBuilderPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImFontGlyphRangesBuilder self) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.Destroy((ImFontGlyphRangesBuilder*)pself); + } + } + public static void Destroy(this ImFontAtlasCustomRectPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImFontAtlasCustomRect self) + { + fixed (ImFontAtlasCustomRect* pself = &self) + { + ImGuiNative.Destroy((ImFontAtlasCustomRect*)pself); + } + } + public static void Destroy(this ImFontAtlasPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.Destroy((ImFontAtlas*)pself); + } + } + public static void Destroy(this ImFontPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImFont self) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.Destroy((ImFont*)pself); + } + } + public static void Destroy(this ImGuiViewportPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + ImGuiNative.Destroy((ImGuiViewport*)pself); + } + } + public static void Destroy(this ImGuiPlatformIOPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPlatformIO self) + { + fixed (ImGuiPlatformIO* pself = &self) + { + ImGuiNative.Destroy((ImGuiPlatformIO*)pself); + } + } + public static void Destroy(this ImGuiPlatformMonitorPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPlatformMonitor self) + { + fixed (ImGuiPlatformMonitor* pself = &self) + { + ImGuiNative.Destroy((ImGuiPlatformMonitor*)pself); + } + } + public static void Destroy(this ImGuiPlatformImeDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPlatformImeData self) + { + fixed (ImGuiPlatformImeData* pself = &self) + { + ImGuiNative.Destroy((ImGuiPlatformImeData*)pself); + } + } + public static void Destroy(ImVec1Ptr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(ref ImVec1 self) + { + fixed (ImVec1* pself = &self) + { + ImGuiNative.Destroy((ImVec1*)pself); + } + } + public static void Destroy(ImVec2IhPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(ref ImVec2Ih self) + { + fixed (ImVec2Ih* pself = &self) + { + ImGuiNative.Destroy((ImVec2Ih*)pself); + } + } + public static void Destroy(this ImRectPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiNative.Destroy((ImRect*)pself); + } + } + public static void Destroy(this ImDrawListSharedDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImDrawListSharedData self) + { + fixed (ImDrawListSharedData* pself = &self) + { + ImGuiNative.Destroy((ImDrawListSharedData*)pself); + } + } + public static void Destroy(this ImGuiStyleModPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStyleMod self) + { + fixed (ImGuiStyleMod* pself = &self) + { + ImGuiNative.Destroy((ImGuiStyleMod*)pself); + } + } + public static void Destroy(this ImGuiComboPreviewDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiComboPreviewData self) + { + fixed (ImGuiComboPreviewData* pself = &self) + { + ImGuiNative.Destroy((ImGuiComboPreviewData*)pself); + } + } + public static void Destroy(this ImGuiMenuColumnsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiMenuColumns self) + { + fixed (ImGuiMenuColumns* pself = &self) + { + ImGuiNative.Destroy((ImGuiMenuColumns*)pself); + } + } + public static void Destroy(this ImGuiInputTextStatePtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiNative.Destroy((ImGuiInputTextState*)pself); + } + } + public static void Destroy(this ImGuiPopupDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPopupData self) + { + fixed (ImGuiPopupData* pself = &self) + { + ImGuiNative.Destroy((ImGuiPopupData*)pself); + } + } + public static void Destroy(this ImGuiNextWindowDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiNextWindowData self) + { + fixed (ImGuiNextWindowData* pself = &self) + { + ImGuiNative.Destroy((ImGuiNextWindowData*)pself); + } + } + public static void Destroy(this ImGuiNextItemDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiNextItemData self) + { + fixed (ImGuiNextItemData* pself = &self) + { + ImGuiNative.Destroy((ImGuiNextItemData*)pself); + } + } + public static void Destroy(this ImGuiLastItemDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiLastItemData self) + { + fixed (ImGuiLastItemData* pself = &self) + { + ImGuiNative.Destroy((ImGuiLastItemData*)pself); + } + } + public static void Destroy(this ImGuiStackSizesPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + ImGuiNative.Destroy((ImGuiStackSizes*)pself); + } + } + public static void Destroy(this ImGuiPtrOrIndexPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiPtrOrIndex self) + { + fixed (ImGuiPtrOrIndex* pself = &self) + { + ImGuiNative.Destroy((ImGuiPtrOrIndex*)pself); + } + } + public static void Destroy(this ImGuiInputEventPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiInputEvent self) + { + fixed (ImGuiInputEvent* pself = &self) + { + ImGuiNative.Destroy((ImGuiInputEvent*)pself); + } + } + public static void Destroy(this ImGuiListClipperDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiListClipperData self) + { + fixed (ImGuiListClipperData* pself = &self) + { + ImGuiNative.Destroy((ImGuiListClipperData*)pself); + } + } + public static void Destroy(this ImGuiNavItemDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiNavItemData self) + { + fixed (ImGuiNavItemData* pself = &self) + { + ImGuiNative.Destroy((ImGuiNavItemData*)pself); + } + } + public static void Destroy(this ImGuiOldColumnDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiOldColumnData self) + { + fixed (ImGuiOldColumnData* pself = &self) + { + ImGuiNative.Destroy((ImGuiOldColumnData*)pself); + } + } + public static void Destroy(this ImGuiOldColumnsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiOldColumns self) + { + fixed (ImGuiOldColumns* pself = &self) + { + ImGuiNative.Destroy((ImGuiOldColumns*)pself); + } + } + public static void Destroy(this ImGuiDockContextPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiDockContext self) + { + fixed (ImGuiDockContext* pself = &self) + { + ImGuiNative.Destroy((ImGuiDockContext*)pself); + } + } + public static void Destroy(this ImGuiWindowSettingsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiWindowSettings self) + { + fixed (ImGuiWindowSettings* pself = &self) + { + ImGuiNative.Destroy((ImGuiWindowSettings*)pself); + } + } + public static void Destroy(this ImGuiSettingsHandlerPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiSettingsHandler self) + { + fixed (ImGuiSettingsHandler* pself = &self) + { + ImGuiNative.Destroy((ImGuiSettingsHandler*)pself); + } + } + public static void Destroy(this ImGuiMetricsConfigPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiMetricsConfig self) + { + fixed (ImGuiMetricsConfig* pself = &self) + { + ImGuiNative.Destroy((ImGuiMetricsConfig*)pself); + } + } + public static void Destroy(this ImGuiStackLevelInfoPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStackLevelInfo self) + { + fixed (ImGuiStackLevelInfo* pself = &self) + { + ImGuiNative.Destroy((ImGuiStackLevelInfo*)pself); + } + } + public static void Destroy(this ImGuiStackToolPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiStackTool self) + { + fixed (ImGuiStackTool* pself = &self) + { + ImGuiNative.Destroy((ImGuiStackTool*)pself); + } + } + public static void Destroy(this ImGuiContextHookPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiContextHook self) + { + fixed (ImGuiContextHook* pself = &self) + { + ImGuiNative.Destroy((ImGuiContextHook*)pself); + } + } + public static void Destroy(this ImGuiContextPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiContext self) + { + fixed (ImGuiContext* pself = &self) + { + ImGuiNative.Destroy((ImGuiContext*)pself); + } + } + public static void Destroy(this ImGuiTabItemPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTabItem self) + { + fixed (ImGuiTabItem* pself = &self) + { + ImGuiNative.Destroy((ImGuiTabItem*)pself); + } + } + public static void Destroy(this ImGuiTabBarPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTabBar self) + { + fixed (ImGuiTabBar* pself = &self) + { + ImGuiNative.Destroy((ImGuiTabBar*)pself); + } + } + public static void Destroy(this ImGuiTableColumnPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableColumn self) + { + fixed (ImGuiTableColumn* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableColumn*)pself); + } + } + public static void Destroy(this ImGuiTableInstanceDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableInstanceData self) + { + fixed (ImGuiTableInstanceData* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableInstanceData*)pself); + } + } + public static void Destroy(this ImGuiTableTempDataPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableTempData self) + { + fixed (ImGuiTableTempData* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableTempData*)pself); + } + } + public static void Destroy(this ImGuiTableColumnSettingsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableColumnSettings self) + { + fixed (ImGuiTableColumnSettings* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableColumnSettings*)pself); + } + } + public static void Destroy(this ImGuiTableSettingsPtr self) + { + ImGuiNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTableSettings self) + { + fixed (ImGuiTableSettings* pself = &self) + { + ImGuiNative.Destroy((ImGuiTableSettings*)pself); + } + } + public static Vector4* ImVec4() + { + Vector4* ret = ImGuiNative.ImVec4(); + return ret; + } + public static Vector4* ImVec4(float x, float y, float z, float w) + { + Vector4* ret = ImGuiNative.ImVec4(x, y, z, w); + return ret; + } + public static ImGuiContextPtr CreateContext(ImFontAtlasPtr sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiNative.CreateContext(sharedFontAtlas); + return ret; + } + public static ImGuiContextPtr CreateContext() + { + ImGuiContextPtr ret = ImGuiNative.CreateContext((ImFontAtlas*)(default)); + return ret; + } + public static ImGuiContextPtr CreateContext(ref ImFontAtlas sharedFontAtlas) + { + fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiNative.CreateContext((ImFontAtlas*)psharedFontAtlas); + return ret; + } + } + public static void DestroyContext(ImGuiContextPtr ctx) + { + ImGuiNative.DestroyContext(ctx); + } + public static void DestroyContext() + { + ImGuiNative.DestroyContext((ImGuiContext*)(default)); + } + public static void DestroyContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiNative.DestroyContext((ImGuiContext*)pctx); + } + } + public static ImGuiContextPtr GetCurrentContext() + { + ImGuiContextPtr ret = ImGuiNative.GetCurrentContext(); + return ret; + } + public static void SetCurrentContext(ImGuiContextPtr ctx) + { + ImGuiNative.SetCurrentContext(ctx); + } + public static void SetCurrentContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiNative.SetCurrentContext((ImGuiContext*)pctx); + } + } + public static ImGuiIOPtr GetIO() + { + ImGuiIOPtr ret = ImGuiNative.GetIO(); + return ret; + } + public static ImGuiStylePtr GetStyle() + { + ImGuiStylePtr ret = ImGuiNative.GetStyle(); + return ret; + } + public static void NewFrame() + { + ImGuiNative.NewFrame(); + } + public static void EndFrame() + { + ImGuiNative.EndFrame(); + } + public static void Render() + { + ImGuiNative.Render(); + } + public static ImDrawDataPtr GetDrawData() + { + ImDrawDataPtr ret = ImGuiNative.GetDrawData(); + return ret; + } + public static void ShowDemoWindow(bool* pOpen) + { + ImGuiNative.ShowDemoWindow(pOpen); + } + public static void ShowDemoWindow() + { + ImGuiNative.ShowDemoWindow((bool*)(default)); + } + public static void ShowDemoWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiNative.ShowDemoWindow((bool*)ppOpen); + } + } + public static void ShowMetricsWindow(bool* pOpen) + { + ImGuiNative.ShowMetricsWindow(pOpen); + } + public static void ShowMetricsWindow() + { + ImGuiNative.ShowMetricsWindow((bool*)(default)); + } + public static void ShowMetricsWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiNative.ShowMetricsWindow((bool*)ppOpen); + } + } + public static void ShowDebugLogWindow(bool* pOpen) + { + ImGuiNative.ShowDebugLogWindow(pOpen); + } + public static void ShowDebugLogWindow() + { + ImGuiNative.ShowDebugLogWindow((bool*)(default)); + } + public static void ShowDebugLogWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiNative.ShowDebugLogWindow((bool*)ppOpen); + } + } + public static void ShowStackToolWindow(bool* pOpen) + { + ImGuiNative.ShowStackToolWindow(pOpen); + } + public static void ShowStackToolWindow() + { + ImGuiNative.ShowStackToolWindow((bool*)(default)); + } + public static void ShowStackToolWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiNative.ShowStackToolWindow((bool*)ppOpen); + } + } + public static void ShowAboutWindow(bool* pOpen) + { + ImGuiNative.ShowAboutWindow(pOpen); + } + public static void ShowAboutWindow() + { + ImGuiNative.ShowAboutWindow((bool*)(default)); + } + public static void ShowAboutWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiNative.ShowAboutWindow((bool*)ppOpen); + } + } + public static void ShowStyleEditor(ImGuiStylePtr reference) + { + ImGuiNative.ShowStyleEditor(reference); + } + public static void ShowStyleEditor() + { + ImGuiNative.ShowStyleEditor((ImGuiStyle*)(default)); + } + public static void ShowStyleEditor(ref ImGuiStyle reference) + { + fixed (ImGuiStyle* preference = &reference) + { + ImGuiNative.ShowStyleEditor((ImGuiStyle*)preference); + } + } + public static void ShowUserGuide() + { + ImGuiNative.ShowUserGuide(); + } + public static void StyleColorsDark(ImGuiStylePtr dst) + { + ImGuiNative.StyleColorsDark(dst); + } + public static void StyleColorsDark() + { + ImGuiNative.StyleColorsDark((ImGuiStyle*)(default)); + } + public static void StyleColorsDark(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + ImGuiNative.StyleColorsDark((ImGuiStyle*)pdst); + } + } + public static void StyleColorsLight(ImGuiStylePtr dst) + { + ImGuiNative.StyleColorsLight(dst); + } + public static void StyleColorsLight() + { + ImGuiNative.StyleColorsLight((ImGuiStyle*)(default)); + } + public static void StyleColorsLight(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + ImGuiNative.StyleColorsLight((ImGuiStyle*)pdst); + } + } + public static void StyleColorsClassic(ImGuiStylePtr dst) + { + ImGuiNative.StyleColorsClassic(dst); + } + public static void StyleColorsClassic() + { + ImGuiNative.StyleColorsClassic((ImGuiStyle*)(default)); + } + public static void StyleColorsClassic(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + ImGuiNative.StyleColorsClassic((ImGuiStyle*)pdst); + } + } + public static void End() + { + ImGuiNative.End(); + } + public static void End(this ImGuiListClipperPtr self) + { + ImGuiNative.End(self); + } + public static void End(this ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + ImGuiNative.End((ImGuiListClipper*)pself); + } + } + public static void EndChild() + { + ImGuiNative.EndChild(); + } + public static bool IsWindowAppearing() + { + byte ret = ImGuiNative.IsWindowAppearing(); + return ret != 0; + } + public static bool IsWindowCollapsed() + { + byte ret = ImGuiNative.IsWindowCollapsed(); + return ret != 0; + } + public static bool IsWindowFocused(ImGuiFocusedFlags flags) + { + byte ret = ImGuiNative.IsWindowFocused(flags); + return ret != 0; + } + public static bool IsWindowFocused() + { + byte ret = ImGuiNative.IsWindowFocused((ImGuiFocusedFlags)(0)); + return ret != 0; + } + public static bool IsWindowHovered(ImGuiHoveredFlags flags) + { + byte ret = ImGuiNative.IsWindowHovered(flags); + return ret != 0; + } + public static bool IsWindowHovered() + { + byte ret = ImGuiNative.IsWindowHovered((ImGuiHoveredFlags)(0)); + return ret != 0; + } + public static ImDrawListPtr GetWindowDrawList() + { + ImDrawListPtr ret = ImGuiNative.GetWindowDrawList(); + return ret; + } + public static float GetWindowDpiScale() + { + float ret = ImGuiNative.GetWindowDpiScale(); + return ret; + } + public static Vector2 GetWindowPos() + { + Vector2 ret; + ImGuiNative.GetWindowPos(&ret); + return ret; + } + public static void GetWindowPos(Vector2* pOut) + { + ImGuiNative.GetWindowPos(pOut); + } + public static void GetWindowPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetWindowPos((Vector2*)ppOut); + } + } + public static Vector2 GetWindowSize() + { + Vector2 ret; + ImGuiNative.GetWindowSize(&ret); + return ret; + } + public static void GetWindowSize(Vector2* pOut) + { + ImGuiNative.GetWindowSize(pOut); + } + public static void GetWindowSize(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetWindowSize((Vector2*)ppOut); + } + } + public static float GetWindowWidth() + { + float ret = ImGuiNative.GetWindowWidth(); + return ret; + } + public static float GetWindowHeight() + { + float ret = ImGuiNative.GetWindowHeight(); + return ret; + } + public static ImGuiViewportPtr GetWindowViewport() + { + ImGuiViewportPtr ret = ImGuiNative.GetWindowViewport(); + return ret; + } + public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) + { + ImGuiNative.SetNextWindowPos(pos, cond, pivot); + } + public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond) + { + ImGuiNative.SetNextWindowPos(pos, cond, (Vector2)(new Vector2(0,0))); + } + public static void SetNextWindowPos(Vector2 pos) + { + ImGuiNative.SetNextWindowPos(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); + } + public static void SetNextWindowPos(Vector2 pos, Vector2 pivot) + { + ImGuiNative.SetNextWindowPos(pos, (ImGuiCond)(0), pivot); + } + public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) + { + ImGuiNative.SetNextWindowSize(size, cond); + } + public static void SetNextWindowSize(Vector2 size) + { + ImGuiNative.SetNextWindowSize(size, (ImGuiCond)(0)); + } + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) + { + ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, customCallback, customCallbackData); + } + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) + { + ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, customCallback, (void*)(default)); + } + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax) + { + ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); + } + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) + { + ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); + } + public static void SetNextWindowContentSize(Vector2 size) + { + ImGuiNative.SetNextWindowContentSize(size); + } + public static void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) + { + ImGuiNative.SetNextWindowCollapsed(collapsed ? (byte)1 : (byte)0, cond); + } + public static void SetNextWindowCollapsed(bool collapsed) + { + ImGuiNative.SetNextWindowCollapsed(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + public static void SetNextWindowFocus() + { + ImGuiNative.SetNextWindowFocus(); + } + public static void SetNextWindowBgAlpha(float alpha) + { + ImGuiNative.SetNextWindowBgAlpha(alpha); + } + public static void SetNextWindowViewport(uint viewportId) + { + ImGuiNative.SetNextWindowViewport(viewportId); + } + public static void SetWindowFontScale(float scale) + { + ImGuiNative.SetWindowFontScale(scale); + } + public static Vector2 GetContentRegionAvail() + { + Vector2 ret; + ImGuiNative.GetContentRegionAvail(&ret); + return ret; + } + public static void GetContentRegionAvail(Vector2* pOut) + { + ImGuiNative.GetContentRegionAvail(pOut); + } + public static void GetContentRegionAvail(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetContentRegionAvail((Vector2*)ppOut); + } + } + public static Vector2 GetContentRegionMax() + { + Vector2 ret; + ImGuiNative.GetContentRegionMax(&ret); + return ret; + } + public static void GetContentRegionMax(Vector2* pOut) + { + ImGuiNative.GetContentRegionMax(pOut); + } + public static void GetContentRegionMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetContentRegionMax((Vector2*)ppOut); + } + } + public static Vector2 GetWindowContentRegionMin() + { + Vector2 ret; + ImGuiNative.GetWindowContentRegionMin(&ret); + return ret; + } + public static void GetWindowContentRegionMin(Vector2* pOut) + { + ImGuiNative.GetWindowContentRegionMin(pOut); + } + public static void GetWindowContentRegionMin(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetWindowContentRegionMin((Vector2*)ppOut); + } + } + public static Vector2 GetWindowContentRegionMax() + { + Vector2 ret; + ImGuiNative.GetWindowContentRegionMax(&ret); + return ret; + } + public static void GetWindowContentRegionMax(Vector2* pOut) + { + ImGuiNative.GetWindowContentRegionMax(pOut); + } + public static void GetWindowContentRegionMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetWindowContentRegionMax((Vector2*)ppOut); + } + } + public static float GetScrollX() + { + float ret = ImGuiNative.GetScrollX(); + return ret; + } + public static float GetScrollY() + { + float ret = ImGuiNative.GetScrollY(); + return ret; + } + public static void SetScrollX(float scrollX) + { + ImGuiNative.SetScrollX(scrollX); + } + public static void SetScrollY(float scrollY) + { + ImGuiNative.SetScrollY(scrollY); + } + public static float GetScrollMaxX() + { + float ret = ImGuiNative.GetScrollMaxX(); + return ret; + } + public static float GetScrollMaxY() + { + float ret = ImGuiNative.GetScrollMaxY(); + return ret; + } + public static void SetScrollHereX(float centerXRatio) + { + ImGuiNative.SetScrollHereX(centerXRatio); + } + public static void SetScrollHereX() + { + ImGuiNative.SetScrollHereX((float)(0.5f)); + } + public static void SetScrollHereY(float centerYRatio) + { + ImGuiNative.SetScrollHereY(centerYRatio); + } + public static void SetScrollHereY() + { + ImGuiNative.SetScrollHereY((float)(0.5f)); + } + public static void SetScrollFromPosX(float localX, float centerXRatio) + { + ImGuiNative.SetScrollFromPosX(localX, centerXRatio); + } + public static void SetScrollFromPosX(float localX) + { + ImGuiNative.SetScrollFromPosX(localX, (float)(0.5f)); + } + public static void SetScrollFromPosY(float localY, float centerYRatio) + { + ImGuiNative.SetScrollFromPosY(localY, centerYRatio); + } + public static void SetScrollFromPosY(float localY) + { + ImGuiNative.SetScrollFromPosY(localY, (float)(0.5f)); + } + public static void PushFont(ImFontPtr font) + { + ImGuiNative.PushFont(font); + } + public static void PushFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + ImGuiNative.PushFont((ImFont*)pfont); + } + } + public static void PopFont() + { + ImGuiNative.PopFont(); + } + public static void PushStyleColor(ImGuiCol idx, uint col) + { + ImGuiNative.PushStyleColor(idx, col); + } + public static void PushStyleColor(ImGuiCol idx, Vector4 col) + { + ImGuiNative.PushStyleColor(idx, col); + } + public static void PopStyleColor(int count) + { + ImGuiNative.PopStyleColor(count); + } + public static void PopStyleColor() + { + ImGuiNative.PopStyleColor((int)(1)); + } + public static void PushStyleVar(ImGuiStyleVar idx, float val) + { + ImGuiNative.PushStyleVar(idx, val); + } + public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) + { + ImGuiNative.PushStyleVar(idx, val); + } + public static void PopStyleVar(int count) + { + ImGuiNative.PopStyleVar(count); + } + public static void PopStyleVar() + { + ImGuiNative.PopStyleVar((int)(1)); + } + public static void PushAllowKeyboardFocus(bool allowKeyboardFocus) + { + ImGuiNative.PushAllowKeyboardFocus(allowKeyboardFocus ? (byte)1 : (byte)0); + } + public static void PopAllowKeyboardFocus() + { + ImGuiNative.PopAllowKeyboardFocus(); + } + public static void PushButtonRepeat(bool repeat) + { + ImGuiNative.PushButtonRepeat(repeat ? (byte)1 : (byte)0); + } + public static void PopButtonRepeat() + { + ImGuiNative.PopButtonRepeat(); + } + public static void PushItemWidth(float itemWidth) + { + ImGuiNative.PushItemWidth(itemWidth); + } + public static void PopItemWidth() + { + ImGuiNative.PopItemWidth(); + } + public static void SetNextItemWidth(float itemWidth) + { + ImGuiNative.SetNextItemWidth(itemWidth); + } + public static float CalcItemWidth() + { + float ret = ImGuiNative.CalcItemWidth(); + return ret; + } + public static void PushTextWrapPos(float wrapLocalPosX) + { + ImGuiNative.PushTextWrapPos(wrapLocalPosX); + } + public static void PushTextWrapPos() + { + ImGuiNative.PushTextWrapPos((float)(0.0f)); + } + public static void PopTextWrapPos() + { + ImGuiNative.PopTextWrapPos(); + } + public static ImFontPtr GetFont() + { + ImFontPtr ret = ImGuiNative.GetFont(); + return ret; + } + public static float GetFontSize() + { + float ret = ImGuiNative.GetFontSize(); + return ret; + } + public static ImTextureID GetFontTexIdWhitePixel() + { + ImTextureID ret = ImGuiNative.GetFontTexIdWhitePixel(); + return ret; + } + public static Vector2 GetFontTexUvWhitePixel() + { + Vector2 ret; + ImGuiNative.GetFontTexUvWhitePixel(&ret); + return ret; + } + public static void GetFontTexUvWhitePixel(Vector2* pOut) + { + ImGuiNative.GetFontTexUvWhitePixel(pOut); + } + public static void GetFontTexUvWhitePixel(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetFontTexUvWhitePixel((Vector2*)ppOut); + } + } + public static uint GetColorU32(ImGuiCol idx, float alphaMul) + { + uint ret = ImGuiNative.GetColorU32(idx, alphaMul); + return ret; + } + public static uint GetColorU32(ImGuiCol idx) + { + uint ret = ImGuiNative.GetColorU32(idx, (float)(1.0f)); + return ret; + } + public static uint GetColorU32(Vector4 col) + { + uint ret = ImGuiNative.GetColorU32(col); + return ret; + } + public static uint GetColorU32(uint col) + { + uint ret = ImGuiNative.GetColorU32(col); + return ret; + } + public static Vector4* GetStyleColorVec4(ImGuiCol idx) + { + Vector4* ret = ImGuiNative.GetStyleColorVec4(idx); + return ret; + } + public static void Separator() + { + ImGuiNative.Separator(); + } + public static void SameLine(float offsetFromStartX, float spacing) + { + ImGuiNative.SameLine(offsetFromStartX, spacing); + } + public static void SameLine(float offsetFromStartX) + { + ImGuiNative.SameLine(offsetFromStartX, (float)(-1.0f)); + } + public static void SameLine() + { + ImGuiNative.SameLine((float)(0.0f), (float)(-1.0f)); + } + public static void NewLine() + { + ImGuiNative.NewLine(); + } + public static void Spacing() + { + ImGuiNative.Spacing(); + } + public static void Dummy(Vector2 size) + { + ImGuiNative.Dummy(size); + } + public static void Indent(float indentW) + { + ImGuiNative.Indent(indentW); + } + public static void Indent() + { + ImGuiNative.Indent((float)(0.0f)); + } + public static void Unindent(float indentW) + { + ImGuiNative.Unindent(indentW); + } + public static void Unindent() + { + ImGuiNative.Unindent((float)(0.0f)); + } + public static void BeginGroup() + { + ImGuiNative.BeginGroup(); + } + public static void EndGroup() + { + ImGuiNative.EndGroup(); + } + public static Vector2 GetCursorPos() + { + Vector2 ret; + ImGuiNative.GetCursorPos(&ret); + return ret; + } + public static void GetCursorPos(Vector2* pOut) + { + ImGuiNative.GetCursorPos(pOut); + } + public static void GetCursorPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetCursorPos((Vector2*)ppOut); + } + } + public static float GetCursorPosX() + { + float ret = ImGuiNative.GetCursorPosX(); + return ret; + } + public static float GetCursorPosY() + { + float ret = ImGuiNative.GetCursorPosY(); + return ret; + } + public static void SetCursorPos(Vector2 localPos) + { + ImGuiNative.SetCursorPos(localPos); + } + public static void SetCursorPosX(float localX) + { + ImGuiNative.SetCursorPosX(localX); + } + public static void SetCursorPosY(float localY) + { + ImGuiNative.SetCursorPosY(localY); + } + public static Vector2 GetCursorStartPos() + { + Vector2 ret; + ImGuiNative.GetCursorStartPos(&ret); + return ret; + } + public static void GetCursorStartPos(Vector2* pOut) + { + ImGuiNative.GetCursorStartPos(pOut); + } + public static void GetCursorStartPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetCursorStartPos((Vector2*)ppOut); + } + } + public static Vector2 GetCursorScreenPos() + { + Vector2 ret; + ImGuiNative.GetCursorScreenPos(&ret); + return ret; + } + public static void GetCursorScreenPos(Vector2* pOut) + { + ImGuiNative.GetCursorScreenPos(pOut); + } + public static void GetCursorScreenPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetCursorScreenPos((Vector2*)ppOut); + } + } + public static void SetCursorScreenPos(Vector2 pos) + { + ImGuiNative.SetCursorScreenPos(pos); + } + public static void AlignTextToFramePadding() + { + ImGuiNative.AlignTextToFramePadding(); + } + public static float GetTextLineHeight() + { + float ret = ImGuiNative.GetTextLineHeight(); + return ret; + } + public static float GetTextLineHeightWithSpacing() + { + float ret = ImGuiNative.GetTextLineHeightWithSpacing(); + return ret; + } + public static float GetFrameHeight() + { + float ret = ImGuiNative.GetFrameHeight(); + return ret; + } + public static float GetFrameHeightWithSpacing() + { + float ret = ImGuiNative.GetFrameHeightWithSpacing(); + return ret; + } + public static void PopID() + { + ImGuiNative.PopID(); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) + { + ImGuiNative.Image(userTextureId, size, uv0, uv1, tintCol, borderCol); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + ImGuiNative.Image(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) + { + ImGuiNative.Image(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0) + { + ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size) + { + ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) + { + ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol) + { + ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) + { + ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) + { + ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), bgCol, tintCol); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); + return ret != 0; + } + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); + return ret != 0; + } + public static void Bullet() + { + ImGuiNative.Bullet(); + } + public static void EndCombo() + { + ImGuiNative.EndCombo(); + } + public static void SetColorEditOptions(ImGuiColorEditFlags flags) + { + ImGuiNative.SetColorEditOptions(flags); + } + public static void TreePop() + { + ImGuiNative.TreePop(); + } + public static float GetTreeNodeToLabelSpacing() + { + float ret = ImGuiNative.GetTreeNodeToLabelSpacing(); + return ret; + } + public static void SetNextItemOpen(bool isOpen, ImGuiCond cond) + { + ImGuiNative.SetNextItemOpen(isOpen ? (byte)1 : (byte)0, cond); + } + public static void SetNextItemOpen(bool isOpen) + { + ImGuiNative.SetNextItemOpen(isOpen ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + public static void EndListBox() + { + ImGuiNative.EndListBox(); + } + public static bool BeginMenuBar() + { + byte ret = ImGuiNative.BeginMenuBar(); + return ret != 0; + } + public static void EndMenuBar() + { + ImGuiNative.EndMenuBar(); + } + public static bool BeginMainMenuBar() + { + byte ret = ImGuiNative.BeginMainMenuBar(); + return ret != 0; + } + public static void EndMainMenuBar() + { + ImGuiNative.EndMainMenuBar(); + } + public static void EndMenu() + { + ImGuiNative.EndMenu(); + } + public static void BeginTooltip() + { + ImGuiNative.BeginTooltip(); + } + public static void EndTooltip() + { + ImGuiNative.EndTooltip(); + } + public static void EndPopup() + { + ImGuiNative.EndPopup(); + } + public static void CloseCurrentPopup() + { + ImGuiNative.CloseCurrentPopup(); + } + public static void EndTable() + { + ImGuiNative.EndTable(); + } + public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) + { + ImGuiNative.TableNextRow(rowFlags, minRowHeight); + } + public static void TableNextRow(ImGuiTableRowFlags rowFlags) + { + ImGuiNative.TableNextRow(rowFlags, (float)(0.0f)); + } + public static void TableNextRow() + { + ImGuiNative.TableNextRow((ImGuiTableRowFlags)(0), (float)(0.0f)); + } + public static void TableNextRow(float minRowHeight) + { + ImGuiNative.TableNextRow((ImGuiTableRowFlags)(0), minRowHeight); + } + public static bool TableNextColumn() + { + byte ret = ImGuiNative.TableNextColumn(); + return ret != 0; + } + public static bool TableSetColumnIndex(int columnN) + { + byte ret = ImGuiNative.TableSetColumnIndex(columnN); + return ret != 0; + } + public static void TableSetupScrollFreeze(int cols, int rows) + { + ImGuiNative.TableSetupScrollFreeze(cols, rows); + } + public static void TableHeadersRow() + { + ImGuiNative.TableHeadersRow(); + } + public static ImGuiTableSortSpecsPtr TableGetSortSpecs() + { + ImGuiTableSortSpecsPtr ret = ImGuiNative.TableGetSortSpecs(); + return ret; + } + public static int TableGetColumnCount() + { + int ret = ImGuiNative.TableGetColumnCount(); + return ret; + } + public static int TableGetColumnIndex() + { + int ret = ImGuiNative.TableGetColumnIndex(); + return ret; + } + public static int TableGetRowIndex() + { + int ret = ImGuiNative.TableGetRowIndex(); + return ret; + } + public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) + { + ImGuiTableColumnFlags ret = ImGuiNative.TableGetColumnFlags(columnN); + return ret; + } + public static ImGuiTableColumnFlags TableGetColumnFlags() + { + ImGuiTableColumnFlags ret = ImGuiNative.TableGetColumnFlags((int)(-1)); + return ret; + } + public static void TableSetColumnEnabled(int columnN, bool v) + { + ImGuiNative.TableSetColumnEnabled(columnN, v ? (byte)1 : (byte)0); + } + public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) + { + ImGuiNative.TableSetBgColor(target, color, columnN); + } + public static void TableSetBgColor(ImGuiTableBgTarget target, uint color) + { + ImGuiNative.TableSetBgColor(target, color, (int)(-1)); + } + public static void NextColumn() + { + ImGuiNative.NextColumn(); + } + public static int GetColumnIndex() + { + int ret = ImGuiNative.GetColumnIndex(); + return ret; + } + public static float GetColumnWidth(int columnIndex) + { + float ret = ImGuiNative.GetColumnWidth(columnIndex); + return ret; + } + public static float GetColumnWidth() + { + float ret = ImGuiNative.GetColumnWidth((int)(-1)); + return ret; + } + public static void SetColumnWidth(int columnIndex, float width) + { + ImGuiNative.SetColumnWidth(columnIndex, width); + } + public static float GetColumnOffset(int columnIndex) + { + float ret = ImGuiNative.GetColumnOffset(columnIndex); + return ret; + } + public static float GetColumnOffset() + { + float ret = ImGuiNative.GetColumnOffset((int)(-1)); + return ret; + } + public static void SetColumnOffset(int columnIndex, float offsetX) + { + ImGuiNative.SetColumnOffset(columnIndex, offsetX); + } + public static int GetColumnsCount() + { + int ret = ImGuiNative.GetColumnsCount(); + return ret; + } + public static void EndTabBar() + { + ImGuiNative.EndTabBar(); + } + public static void EndTabItem() + { + ImGuiNative.EndTabItem(); + } + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpace(id, size, flags, windowClass); + return ret; + } + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) + { + uint ret = ImGuiNative.DockSpace(id, size, flags, (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpace(uint id, Vector2 size) + { + uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpace(uint id) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpace(uint id, Vector2 size, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + public static uint DockSpace(uint id, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, windowClass); + return ret; + } + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpace(id, size, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpace(uint id, Vector2 size, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpace(uint id, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, windowClass); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpaceOverViewport() + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, windowClass); + return ret; + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, windowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); + return ret; + } + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiWindowClassPtr windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + } + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + } + public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) + { + ImGuiNative.SetNextWindowDockID(dockId, cond); + } + public static void SetNextWindowDockID(uint dockId) + { + ImGuiNative.SetNextWindowDockID(dockId, (ImGuiCond)(0)); + } + public static void SetNextWindowClass(ImGuiWindowClassPtr windowClass) + { + ImGuiNative.SetNextWindowClass(windowClass); + } + public static void SetNextWindowClass(ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + ImGuiNative.SetNextWindowClass((ImGuiWindowClass*)pwindowClass); + } + } + public static uint GetWindowDockID() + { + uint ret = ImGuiNative.GetWindowDockID(); + return ret; + } + public static bool IsWindowDocked() + { + byte ret = ImGuiNative.IsWindowDocked(); + return ret != 0; + } + public static void LogToTTY(int autoOpenDepth) + { + ImGuiNative.LogToTTY(autoOpenDepth); + } + public static void LogToTTY() + { + ImGuiNative.LogToTTY((int)(-1)); + } + public static void LogToClipboard(int autoOpenDepth) + { + ImGuiNative.LogToClipboard(autoOpenDepth); + } + public static void LogToClipboard() + { + ImGuiNative.LogToClipboard((int)(-1)); + } + public static void LogFinish() + { + ImGuiNative.LogFinish(); + } + public static void LogButtons() + { + ImGuiNative.LogButtons(); + } + public static bool BeginDragDropSource(ImGuiDragDropFlags flags) + { + byte ret = ImGuiNative.BeginDragDropSource(flags); + return ret != 0; + } + public static bool BeginDragDropSource() + { + byte ret = ImGuiNative.BeginDragDropSource((ImGuiDragDropFlags)(0)); + return ret != 0; + } + public static void EndDragDropSource() + { + ImGuiNative.EndDragDropSource(); + } + public static bool BeginDragDropTarget() + { + byte ret = ImGuiNative.BeginDragDropTarget(); + return ret != 0; + } + public static void EndDragDropTarget() + { + ImGuiNative.EndDragDropTarget(); + } + public static ImGuiPayloadPtr GetDragDropPayload() + { + ImGuiPayloadPtr ret = ImGuiNative.GetDragDropPayload(); + return ret; + } + public static void BeginDisabled(bool disabled) + { + ImGuiNative.BeginDisabled(disabled ? (byte)1 : (byte)0); + } + public static void BeginDisabled() + { + ImGuiNative.BeginDisabled((byte)(1)); + } + public static void EndDisabled() + { + ImGuiNative.EndDisabled(); + } + public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + ImGuiNative.PushClipRect(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + public static void PushClipRect(this ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + ImGuiNative.PushClipRect(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + public static void PushClipRect(this ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax) + { + ImGuiNative.PushClipRect(self, clipRectMin, clipRectMax, (byte)(0)); + } + public static void PushClipRect(this ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PushClipRect((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + } + public static void PushClipRect(this ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PushClipRect((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); + } + } + public static void PopClipRect() + { + ImGuiNative.PopClipRect(); + } + public static void PopClipRect(this ImDrawListPtr self) + { + ImGuiNative.PopClipRect(self); + } + public static void PopClipRect(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PopClipRect((ImDrawList*)pself); + } + } + public static void SetItemDefaultFocus() + { + ImGuiNative.SetItemDefaultFocus(); + } + public static void SetKeyboardFocusHere(int offset) + { + ImGuiNative.SetKeyboardFocusHere(offset); + } + public static void SetKeyboardFocusHere() + { + ImGuiNative.SetKeyboardFocusHere((int)(0)); + } + public static bool IsItemHovered(ImGuiHoveredFlags flags) + { + byte ret = ImGuiNative.IsItemHovered(flags); + return ret != 0; + } + public static bool IsItemHovered() + { + byte ret = ImGuiNative.IsItemHovered((ImGuiHoveredFlags)(0)); + return ret != 0; + } + public static bool IsItemActive() + { + byte ret = ImGuiNative.IsItemActive(); + return ret != 0; + } + public static bool IsItemFocused() + { + byte ret = ImGuiNative.IsItemFocused(); + return ret != 0; + } + public static bool IsItemClicked(ImGuiMouseButton mouseButton) + { + byte ret = ImGuiNative.IsItemClicked(mouseButton); + return ret != 0; + } + public static bool IsItemClicked() + { + byte ret = ImGuiNative.IsItemClicked((ImGuiMouseButton)(0)); + return ret != 0; + } + public static bool IsItemVisible() + { + byte ret = ImGuiNative.IsItemVisible(); + return ret != 0; + } + public static bool IsItemEdited() + { + byte ret = ImGuiNative.IsItemEdited(); + return ret != 0; + } + public static bool IsItemActivated() + { + byte ret = ImGuiNative.IsItemActivated(); + return ret != 0; + } + public static bool IsItemDeactivated() + { + byte ret = ImGuiNative.IsItemDeactivated(); + return ret != 0; + } + public static bool IsItemDeactivatedAfterEdit() + { + byte ret = ImGuiNative.IsItemDeactivatedAfterEdit(); + return ret != 0; + } + public static bool IsItemToggledOpen() + { + byte ret = ImGuiNative.IsItemToggledOpen(); + return ret != 0; + } + public static bool IsAnyItemHovered() + { + byte ret = ImGuiNative.IsAnyItemHovered(); + return ret != 0; + } + public static bool IsAnyItemActive() + { + byte ret = ImGuiNative.IsAnyItemActive(); + return ret != 0; + } + public static bool IsAnyItemFocused() + { + byte ret = ImGuiNative.IsAnyItemFocused(); + return ret != 0; + } + public static Vector2 GetItemRectMin() + { + Vector2 ret; + ImGuiNative.GetItemRectMin(&ret); + return ret; + } + public static void GetItemRectMin(Vector2* pOut) + { + ImGuiNative.GetItemRectMin(pOut); + } + public static void GetItemRectMin(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetItemRectMin((Vector2*)ppOut); + } + } + public static Vector2 GetItemRectMax() + { + Vector2 ret; + ImGuiNative.GetItemRectMax(&ret); + return ret; + } + public static void GetItemRectMax(Vector2* pOut) + { + ImGuiNative.GetItemRectMax(pOut); + } + public static void GetItemRectMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetItemRectMax((Vector2*)ppOut); + } + } + public static Vector2 GetItemRectSize() + { + Vector2 ret; + ImGuiNative.GetItemRectSize(&ret); + return ret; + } + public static void GetItemRectSize(Vector2* pOut) + { + ImGuiNative.GetItemRectSize(pOut); + } + public static void GetItemRectSize(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetItemRectSize((Vector2*)ppOut); + } + } + public static void SetItemAllowOverlap() + { + ImGuiNative.SetItemAllowOverlap(); + } + public static ImGuiViewportPtr GetMainViewport() + { + ImGuiViewportPtr ret = ImGuiNative.GetMainViewport(); + return ret; + } + public static ImDrawListPtr GetBackgroundDrawList() + { + ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList(); + return ret; + } + public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) + { + ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList(viewport); + return ret; + } + public static ImDrawListPtr GetBackgroundDrawList(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList((ImGuiViewport*)pviewport); + return ret; + } + } + public static ImDrawListPtr GetForegroundDrawList() + { + ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList(); + return ret; + } + public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) + { + ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList(viewport); + return ret; + } + public static ImDrawListPtr GetForegroundDrawList(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList((ImGuiViewport*)pviewport); + return ret; + } + } + public static bool IsRectVisible(Vector2 size) + { + byte ret = ImGuiNative.IsRectVisible(size); + return ret != 0; + } + public static bool IsRectVisible(Vector2 rectMin, Vector2 rectMax) + { + byte ret = ImGuiNative.IsRectVisible(rectMin, rectMax); + return ret != 0; + } + public static double GetTime() + { + double ret = ImGuiNative.GetTime(); + return ret; + } + public static int GetFrameCount() + { + int ret = ImGuiNative.GetFrameCount(); + return ret; + } + public static ImDrawListSharedDataPtr GetDrawListSharedData() + { + ImDrawListSharedDataPtr ret = ImGuiNative.GetDrawListSharedData(); + return ret; + } + public static void SetStateStorage(ImGuiStoragePtr storage) + { + ImGuiNative.SetStateStorage(storage); + } + public static void SetStateStorage(ref ImGuiStorage storage) + { + fixed (ImGuiStorage* pstorage = &storage) + { + ImGuiNative.SetStateStorage((ImGuiStorage*)pstorage); + } + } + public static ImGuiStoragePtr GetStateStorage() + { + ImGuiStoragePtr ret = ImGuiNative.GetStateStorage(); + return ret; + } + public static bool BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) + { + byte ret = ImGuiNative.BeginChildFrame(id, size, flags); + return ret != 0; + } + public static bool BeginChildFrame(uint id, Vector2 size) + { + byte ret = ImGuiNative.BeginChildFrame(id, size, (ImGuiWindowFlags)(0)); + return ret != 0; + } + public static void EndChildFrame() + { + ImGuiNative.EndChildFrame(); + } + public static Vector4 ColorConvertU32ToFloat4(uint input) + { + Vector4 ret; + ImGuiNative.ColorConvertU32ToFloat4(&ret, input); + return ret; + } + public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) + { + ImGuiNative.ColorConvertU32ToFloat4(pOut, input); + } + public static void ColorConvertU32ToFloat4(ref Vector4 pOut, uint input) + { + fixed (Vector4* ppOut = &pOut) + { + ImGuiNative.ColorConvertU32ToFloat4((Vector4*)ppOut, input); + } + } + public static uint ColorConvertFloat4ToU32(Vector4 input) + { + uint ret = ImGuiNative.ColorConvertFloat4ToU32(input); + return ret; + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, outS, outV); + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, float* outV) + { + fixed (float* poutH = &outH) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, outS, outV); + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, float* outV) + { + fixed (float* poutS = &outS) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, (float*)poutS, outV); + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, float* outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, (float*)poutS, outV); + } + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, ref float outV) + { + fixed (float* poutV = &outV) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, outS, (float*)poutV); + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutV = &outV) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, outS, (float*)poutV); + } + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, ref float outV) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, (float*)poutS, (float*)poutV); + } + } + } + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); + } + } + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, outG, outB); + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, float* outB) + { + fixed (float* poutR = &outR) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, outG, outB); + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, float* outB) + { + fixed (float* poutG = &outG) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, (float*)poutG, outB); + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, float* outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, (float*)poutG, outB); + } + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, ref float outB) + { + fixed (float* poutB = &outB) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, outG, (float*)poutB); + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutB = &outB) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, outG, (float*)poutB); + } + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, ref float outB) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, (float*)poutG, (float*)poutB); + } + } + } + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); + } + } + } + } + public static bool IsKeyDown(ImGuiKey key) + { + byte ret = ImGuiNative.IsKeyDown(key); + return ret != 0; + } + public static bool IsKeyPressed(ImGuiKey key, bool repeat) + { + byte ret = ImGuiNative.IsKeyPressed(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool IsKeyPressed(ImGuiKey key) + { + byte ret = ImGuiNative.IsKeyPressed(key, (byte)(1)); + return ret != 0; + } + public static bool IsKeyReleased(ImGuiKey key) + { + byte ret = ImGuiNative.IsKeyReleased(key); + return ret != 0; + } + public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) + { + int ret = ImGuiNative.GetKeyPressedAmount(key, repeatDelay, rate); + return ret; + } + public static void SetNextFrameWantCaptureKeyboard(bool wantCaptureKeyboard) + { + ImGuiNative.SetNextFrameWantCaptureKeyboard(wantCaptureKeyboard ? (byte)1 : (byte)0); + } + public static bool IsMouseDown(ImGuiMouseButton button) + { + byte ret = ImGuiNative.IsMouseDown(button); + return ret != 0; + } + public static bool IsMouseClicked(ImGuiMouseButton button, bool repeat) + { + byte ret = ImGuiNative.IsMouseClicked(button, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool IsMouseClicked(ImGuiMouseButton button) + { + byte ret = ImGuiNative.IsMouseClicked(button, (byte)(0)); + return ret != 0; + } + public static bool IsMouseReleased(ImGuiMouseButton button) + { + byte ret = ImGuiNative.IsMouseReleased(button); + return ret != 0; + } + public static bool IsMouseDoubleClicked(ImGuiMouseButton button) + { + byte ret = ImGuiNative.IsMouseDoubleClicked(button); + return ret != 0; + } + public static int GetMouseClickedCount(ImGuiMouseButton button) + { + int ret = ImGuiNative.GetMouseClickedCount(button); + return ret; + } + public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, bool clip) + { + byte ret = ImGuiNative.IsMouseHoveringRect(rMin, rMax, clip ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax) + { + byte ret = ImGuiNative.IsMouseHoveringRect(rMin, rMax, (byte)(1)); + return ret != 0; + } + public static bool IsMousePosValid(Vector2* mousePos) + { + byte ret = ImGuiNative.IsMousePosValid(mousePos); + return ret != 0; + } + public static bool IsMousePosValid() + { + byte ret = ImGuiNative.IsMousePosValid((Vector2*)(default)); + return ret != 0; + } + public static bool IsMousePosValid(ref Vector2 mousePos) + { + fixed (Vector2* pmousePos = &mousePos) + { + byte ret = ImGuiNative.IsMousePosValid((Vector2*)pmousePos); + return ret != 0; + } + } + public static bool IsAnyMouseDown() + { + byte ret = ImGuiNative.IsAnyMouseDown(); + return ret != 0; + } + public static Vector2 GetMousePos() + { + Vector2 ret; + ImGuiNative.GetMousePos(&ret); + return ret; + } + public static void GetMousePos(Vector2* pOut) + { + ImGuiNative.GetMousePos(pOut); + } + public static void GetMousePos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMousePos((Vector2*)ppOut); + } + } + public static Vector2 GetMousePosOnOpeningCurrentPopup() + { + Vector2 ret; + ImGuiNative.GetMousePosOnOpeningCurrentPopup(&ret); + return ret; + } + public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) + { + ImGuiNative.GetMousePosOnOpeningCurrentPopup(pOut); + } + public static void GetMousePosOnOpeningCurrentPopup(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMousePosOnOpeningCurrentPopup((Vector2*)ppOut); + } + } + public static bool IsMouseDragging(ImGuiMouseButton button, float lockThreshold) + { + byte ret = ImGuiNative.IsMouseDragging(button, lockThreshold); + return ret != 0; + } + public static bool IsMouseDragging(ImGuiMouseButton button) + { + byte ret = ImGuiNative.IsMouseDragging(button, (float)(-1.0f)); + return ret != 0; + } + public static Vector2 GetMouseDragDelta() + { + Vector2 ret; + ImGuiNative.GetMouseDragDelta(&ret, (ImGuiMouseButton)(0), (float)(-1.0f)); + return ret; + } + public static Vector2 GetMouseDragDelta(ImGuiMouseButton button) + { + Vector2 ret; + ImGuiNative.GetMouseDragDelta(&ret, button, (float)(-1.0f)); + return ret; + } + public static void GetMouseDragDelta(Vector2* pOut) + { + ImGuiNative.GetMouseDragDelta(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); + } + public static Vector2 GetMouseDragDelta(float lockThreshold) + { + Vector2 ret; + ImGuiNative.GetMouseDragDelta(&ret, (ImGuiMouseButton)(0), lockThreshold); + return ret; + } + public static Vector2 GetMouseDragDelta(ImGuiMouseButton button, float lockThreshold) + { + Vector2 ret; + ImGuiNative.GetMouseDragDelta(&ret, button, lockThreshold); + return ret; + } + public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) + { + ImGuiNative.GetMouseDragDelta(pOut, button, lockThreshold); + } + public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button) + { + ImGuiNative.GetMouseDragDelta(pOut, button, (float)(-1.0f)); + } + public static void GetMouseDragDelta(Vector2* pOut, float lockThreshold) + { + ImGuiNative.GetMouseDragDelta(pOut, (ImGuiMouseButton)(0), lockThreshold); + } + public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button, float lockThreshold) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, button, lockThreshold); + } + } + public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, button, (float)(-1.0f)); + } + } + public static void GetMouseDragDelta(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); + } + } + public static void GetMouseDragDelta(ref Vector2 pOut, float lockThreshold) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); + } + } + public static void ResetMouseDragDelta(ImGuiMouseButton button) + { + ImGuiNative.ResetMouseDragDelta(button); + } + public static void ResetMouseDragDelta() + { + ImGuiNative.ResetMouseDragDelta((ImGuiMouseButton)(0)); + } + public static ImGuiMouseCursor GetMouseCursor() + { + ImGuiMouseCursor ret = ImGuiNative.GetMouseCursor(); + return ret; + } + public static void SetMouseCursor(ImGuiMouseCursor cursorType) + { + ImGuiNative.SetMouseCursor(cursorType); + } + public static void SetNextFrameWantCaptureMouse(bool wantCaptureMouse) + { + ImGuiNative.SetNextFrameWantCaptureMouse(wantCaptureMouse ? (byte)1 : (byte)0); + } + public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) + { + ImGuiNative.SetAllocatorFunctions(allocFunc, freeFunc, userData); + } + public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) + { + ImGuiNative.SetAllocatorFunctions(allocFunc, freeFunc, (void*)(default)); + } + public static void GetAllocatorFunctions(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) + { + ImGuiNative.GetAllocatorFunctions(pAllocFunc, pFreeFunc, pUserData); + } + public static void* MemAlloc(nuint size) + { + void* ret = ImGuiNative.MemAlloc(size); + return ret; + } + public static void MemFree(void* ptr) + { + ImGuiNative.MemFree(ptr); + } + public static ImGuiPlatformIOPtr GetPlatformIO() + { + ImGuiPlatformIOPtr ret = ImGuiNative.GetPlatformIO(); + return ret; + } + public static void UpdatePlatformWindows() + { + ImGuiNative.UpdatePlatformWindows(); + } + public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) + { + ImGuiNative.RenderPlatformWindowsDefault(platformRenderArg, rendererRenderArg); + } + public static void RenderPlatformWindowsDefault(void* platformRenderArg) + { + ImGuiNative.RenderPlatformWindowsDefault(platformRenderArg, (void*)(default)); + } + public static void RenderPlatformWindowsDefault() + { + ImGuiNative.RenderPlatformWindowsDefault((void*)(default), (void*)(default)); + } + public static void DestroyPlatformWindows() + { + ImGuiNative.DestroyPlatformWindows(); + } + public static ImGuiViewportPtr FindViewportByID(uint id) + { + ImGuiViewportPtr ret = ImGuiNative.FindViewportByID(id); + return ret; + } + public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle) + { + ImGuiViewportPtr ret = ImGuiNative.FindViewportByPlatformHandle(platformHandle); + return ret; + } + public static ImGuiStylePtr ImGuiStyle() + { + ImGuiStylePtr ret = ImGuiNative.ImGuiStyle(); + return ret; + } + public static void ScaleAllSizes(this ImGuiStylePtr self, float scaleFactor) + { + ImGuiNative.ScaleAllSizes(self, scaleFactor); + } + public static void ScaleAllSizes(this ref ImGuiStyle self, float scaleFactor) + { + fixed (ImGuiStyle* pself = &self) + { + ImGuiNative.ScaleAllSizes((ImGuiStyle*)pself, scaleFactor); + } + } + public static void AddKeyEvent(this ImGuiIOPtr self, ImGuiKey key, bool down) + { + ImGuiNative.AddKeyEvent(self, key, down ? (byte)1 : (byte)0); + } + public static void AddKeyEvent(this ref ImGuiIO self, ImGuiKey key, bool down) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddKeyEvent((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); + } + } + public static void AddKeyAnalogEvent(this ImGuiIOPtr self, ImGuiKey key, bool down, float v) + { + ImGuiNative.AddKeyAnalogEvent(self, key, down ? (byte)1 : (byte)0, v); + } + public static void AddKeyAnalogEvent(this ref ImGuiIO self, ImGuiKey key, bool down, float v) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddKeyAnalogEvent((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); + } + } + public static void AddMousePosEvent(this ImGuiIOPtr self, float x, float y) + { + ImGuiNative.AddMousePosEvent(self, x, y); + } + public static void AddMousePosEvent(this ref ImGuiIO self, float x, float y) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddMousePosEvent((ImGuiIO*)pself, x, y); + } + } + public static void AddMouseButtonEvent(this ImGuiIOPtr self, int button, bool down) + { + ImGuiNative.AddMouseButtonEvent(self, button, down ? (byte)1 : (byte)0); + } + public static void AddMouseButtonEvent(this ref ImGuiIO self, int button, bool down) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddMouseButtonEvent((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); + } + } + public static void AddMouseWheelEvent(this ImGuiIOPtr self, float whX, float whY) + { + ImGuiNative.AddMouseWheelEvent(self, whX, whY); + } + public static void AddMouseWheelEvent(this ref ImGuiIO self, float whX, float whY) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddMouseWheelEvent((ImGuiIO*)pself, whX, whY); + } + } + public static void AddMouseViewportEvent(this ImGuiIOPtr self, uint id) + { + ImGuiNative.AddMouseViewportEvent(self, id); + } + public static void AddMouseViewportEvent(this ref ImGuiIO self, uint id) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddMouseViewportEvent((ImGuiIO*)pself, id); + } + } + public static void AddFocusEvent(this ImGuiIOPtr self, bool focused) + { + ImGuiNative.AddFocusEvent(self, focused ? (byte)1 : (byte)0); + } + public static void AddFocusEvent(this ref ImGuiIO self, bool focused) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.AddFocusEvent((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); + } + } + public static void SetKeyEventNativeData(this ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + ImGuiNative.SetKeyEventNativeData(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + public static void SetKeyEventNativeData(this ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode) + { + ImGuiNative.SetKeyEventNativeData(self, key, nativeKeycode, nativeScancode, (int)(-1)); + } + public static void SetKeyEventNativeData(this ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.SetKeyEventNativeData((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + } + public static void SetKeyEventNativeData(this ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.SetKeyEventNativeData((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); + } + } + public static void SetAppAcceptingEvents(this ImGuiIOPtr self, bool acceptingEvents) + { + ImGuiNative.SetAppAcceptingEvents(self, acceptingEvents ? (byte)1 : (byte)0); + } + public static void SetAppAcceptingEvents(this ref ImGuiIO self, bool acceptingEvents) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.SetAppAcceptingEvents((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); + } + } + public static void ClearInputCharacters(this ImGuiIOPtr self) + { + ImGuiNative.ClearInputCharacters(self); + } + public static void ClearInputCharacters(this ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.ClearInputCharacters((ImGuiIO*)pself); + } + } + public static void ClearInputKeys(this ImGuiIOPtr self) + { + ImGuiNative.ClearInputKeys(self); + } + public static void ClearInputKeys(this ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + ImGuiNative.ClearInputKeys((ImGuiIO*)pself); + } + } + public static ImGuiIOPtr ImGuiIO() + { + ImGuiIOPtr ret = ImGuiNative.ImGuiIO(); + return ret; + } + public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData() + { + ImGuiInputTextCallbackDataPtr ret = ImGuiNative.ImGuiInputTextCallbackData(); + return ret; + } + public static void DeleteChars(this ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount) + { + ImGuiNative.DeleteChars(self, pos, bytesCount); + } + public static void DeleteChars(this ref ImGuiInputTextCallbackData self, int pos, int bytesCount) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + ImGuiNative.DeleteChars((ImGuiInputTextCallbackData*)pself, pos, bytesCount); + } + } + public static void SelectAll(this ImGuiInputTextCallbackDataPtr self) + { + ImGuiNative.SelectAll(self); + } + public static void SelectAll(this ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + ImGuiNative.SelectAll((ImGuiInputTextCallbackData*)pself); + } + } + public static void ClearSelection(this ImGuiInputTextCallbackDataPtr self) + { + ImGuiNative.ClearSelection(self); + } + public static void ClearSelection(this ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + ImGuiNative.ClearSelection((ImGuiInputTextCallbackData*)pself); + } + } + public static bool HasSelection(this ImGuiInputTextCallbackDataPtr self) + { + byte ret = ImGuiNative.HasSelection(self); + return ret != 0; + } + public static bool HasSelection(this ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte ret = ImGuiNative.HasSelection((ImGuiInputTextCallbackData*)pself); + return ret != 0; + } + } + public static ImGuiWindowClassPtr ImGuiWindowClass() + { + ImGuiWindowClassPtr ret = ImGuiNative.ImGuiWindowClass(); + return ret; + } + public static ImGuiPayloadPtr ImGuiPayload() + { + ImGuiPayloadPtr ret = ImGuiNative.ImGuiPayload(); + return ret; + } + public static void Clear(this ImGuiPayloadPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + ImGuiNative.Clear((ImGuiPayload*)pself); + } + } + public static void Clear(this ImGuiTextFilterPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + ImGuiNative.Clear((ImGuiTextFilter*)pself); + } + } + public static void Clear(this ImGuiStoragePtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImGuiStorage self) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.Clear((ImGuiStorage*)pself); + } + } + public static void Clear(this ImDrawListSplitterPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.Clear((ImDrawListSplitter*)pself); + } + } + public static void Clear(this ImDrawDataPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + ImGuiNative.Clear((ImDrawData*)pself); + } + } + public static void Clear(this ImFontGlyphRangesBuilderPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImFontGlyphRangesBuilder self) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.Clear((ImFontGlyphRangesBuilder*)pself); + } + } + public static void Clear(this ImFontAtlasPtr self) + { + ImGuiNative.Clear(self); + } + public static void Clear(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.Clear((ImFontAtlas*)pself); + } + } + public static bool IsPreview(this ImGuiPayloadPtr self) + { + byte ret = ImGuiNative.IsPreview(self); + return ret != 0; + } + public static bool IsPreview(this ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + byte ret = ImGuiNative.IsPreview((ImGuiPayload*)pself); + return ret != 0; + } + } + public static bool IsDelivery(this ImGuiPayloadPtr self) + { + byte ret = ImGuiNative.IsDelivery(self); + return ret != 0; + } + public static bool IsDelivery(this ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + byte ret = ImGuiNative.IsDelivery((ImGuiPayload*)pself); + return ret != 0; + } + } + public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs() + { + ImGuiTableColumnSortSpecsPtr ret = ImGuiNative.ImGuiTableColumnSortSpecs(); + return ret; + } + public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs() + { + ImGuiTableSortSpecsPtr ret = ImGuiNative.ImGuiTableSortSpecs(); + return ret; + } + public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame() + { + ImGuiOnceUponAFramePtr ret = ImGuiNative.ImGuiOnceUponAFrame(); + return ret; + } + public static void Build(this ImGuiTextFilterPtr self) + { + ImGuiNative.Build(self); + } + public static void Build(this ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + ImGuiNative.Build((ImGuiTextFilter*)pself); + } + } + public static bool Build(this ImFontAtlasPtr self) + { + byte ret = ImGuiNative.Build(self); + return ret != 0; + } + public static bool Build(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + byte ret = ImGuiNative.Build((ImFontAtlas*)pself); + return ret != 0; + } + } + public static bool IsActive(this ImGuiTextFilterPtr self) + { + byte ret = ImGuiNative.IsActive(self); + return ret != 0; + } + public static bool IsActive(this ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte ret = ImGuiNative.IsActive((ImGuiTextFilter*)pself); + return ret != 0; + } + } + public static bool empty(this ImGuiTextRangePtr self) + { + byte ret = ImGuiNative.empty(self); + return ret != 0; + } + public static bool empty(this ref ImGuiTextRange self) + { + fixed (ImGuiTextRange* pself = &self) + { + byte ret = ImGuiNative.empty((ImGuiTextRange*)pself); + return ret != 0; + } + } + public static bool empty(this ImGuiTextBufferPtr self) + { + byte ret = ImGuiNative.empty(self); + return ret != 0; + } + public static bool empty(this ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte ret = ImGuiNative.empty((ImGuiTextBuffer*)pself); + return ret != 0; + } + } + public static void split(this ImGuiTextRangePtr self, byte separator, ImVector* output) + { + ImGuiNative.split(self, separator, output); + } + public static void split(this ref ImGuiTextRange self, byte separator, ImVector* output) + { + fixed (ImGuiTextRange* pself = &self) + { + ImGuiNative.split((ImGuiTextRange*)pself, separator, output); + } + } + public static void split(this ImGuiTextRangePtr self, byte separator, ref ImVector output) + { + fixed (ImVector* poutput = &output) + { + ImGuiNative.split(self, separator, (ImVector*)poutput); + } + } + public static void split(this ref ImGuiTextRange self, byte separator, ref ImVector output) + { + fixed (ImGuiTextRange* pself = &self) + { + fixed (ImVector* poutput = &output) + { + ImGuiNative.split((ImGuiTextRange*)pself, separator, (ImVector*)poutput); + } + } + } + public static ImGuiTextBufferPtr ImGuiTextBuffer() + { + ImGuiTextBufferPtr ret = ImGuiNative.ImGuiTextBuffer(); + return ret; + } + public static int size(this ImGuiTextBufferPtr self) + { + int ret = ImGuiNative.size(self); + return ret; + } + public static int size(this ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + int ret = ImGuiNative.size((ImGuiTextBuffer*)pself); + return ret; + } + } + public static void clear(this ImGuiTextBufferPtr self) + { + ImGuiNative.clear(self); + } + public static void clear(this ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + ImGuiNative.clear((ImGuiTextBuffer*)pself); + } + } + public static void reserve(this ImGuiTextBufferPtr self, int capacity) + { + ImGuiNative.reserve(self, capacity); + } + public static void reserve(this ref ImGuiTextBuffer self, int capacity) + { + fixed (ImGuiTextBuffer* pself = &self) + { + ImGuiNative.reserve((ImGuiTextBuffer*)pself, capacity); + } + } + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, int valI) + { + ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valI); + return ret; + } + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, float valF) + { + ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valF); + return ret; + } + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, void* valP) + { + ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valP); + return ret; + } + public static int GetInt(this ImGuiStoragePtr self, uint key, int defaultVal) + { + int ret = ImGuiNative.GetInt(self, key, defaultVal); + return ret; + } + public static int GetInt(this ImGuiStoragePtr self, uint key) + { + int ret = ImGuiNative.GetInt(self, key, (int)(0)); + return ret; + } + public static int GetInt(this scoped in ImGuiStorage self, uint key, int defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + int ret = ImGuiNative.GetInt((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + public static int GetInt(this scoped in ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + int ret = ImGuiNative.GetInt((ImGuiStorage*)pself, key, (int)(0)); + return ret; + } + } + public static void SetInt(this ImGuiStoragePtr self, uint key, int val) + { + ImGuiNative.SetInt(self, key, val); + } + public static void SetInt(this ref ImGuiStorage self, uint key, int val) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.SetInt((ImGuiStorage*)pself, key, val); + } + } + public static bool GetBool(this ImGuiStoragePtr self, uint key, bool defaultVal) + { + byte ret = ImGuiNative.GetBool(self, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool GetBool(this ImGuiStoragePtr self, uint key) + { + byte ret = ImGuiNative.GetBool(self, key, (byte)(0)); + return ret != 0; + } + public static bool GetBool(this scoped in ImGuiStorage self, uint key, bool defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + byte ret = ImGuiNative.GetBool((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + } + public static bool GetBool(this scoped in ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + byte ret = ImGuiNative.GetBool((ImGuiStorage*)pself, key, (byte)(0)); + return ret != 0; + } + } + public static void SetBool(this ImGuiStoragePtr self, uint key, bool val) + { + ImGuiNative.SetBool(self, key, val ? (byte)1 : (byte)0); + } + public static void SetBool(this ref ImGuiStorage self, uint key, bool val) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.SetBool((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); + } + } + public static float GetFloat(this ImGuiStoragePtr self, uint key, float defaultVal) + { + float ret = ImGuiNative.GetFloat(self, key, defaultVal); + return ret; + } + public static float GetFloat(this ImGuiStoragePtr self, uint key) + { + float ret = ImGuiNative.GetFloat(self, key, (float)(0.0f)); + return ret; + } + public static float GetFloat(this scoped in ImGuiStorage self, uint key, float defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + float ret = ImGuiNative.GetFloat((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + public static float GetFloat(this scoped in ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + float ret = ImGuiNative.GetFloat((ImGuiStorage*)pself, key, (float)(0.0f)); + return ret; + } + } + public static void SetFloat(this ImGuiStoragePtr self, uint key, float val) + { + ImGuiNative.SetFloat(self, key, val); + } + public static void SetFloat(this ref ImGuiStorage self, uint key, float val) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.SetFloat((ImGuiStorage*)pself, key, val); + } + } + public static void* GetVoidPtr(this ImGuiStoragePtr self, uint key) + { + void* ret = ImGuiNative.GetVoidPtr(self, key); + return ret; + } + public static void* GetVoidPtr(this scoped in ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + void* ret = ImGuiNative.GetVoidPtr((ImGuiStorage*)pself, key); + return ret; + } + } + public static void SetVoidPtr(this ImGuiStoragePtr self, uint key, void* val) + { + ImGuiNative.SetVoidPtr(self, key, val); + } + public static void SetVoidPtr(this ref ImGuiStorage self, uint key, void* val) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.SetVoidPtr((ImGuiStorage*)pself, key, val); + } + } + public static void SetAllInt(this ImGuiStoragePtr self, int val) + { + ImGuiNative.SetAllInt(self, val); + } + public static void SetAllInt(this ref ImGuiStorage self, int val) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.SetAllInt((ImGuiStorage*)pself, val); + } + } + public static void BuildSortByKey(this ImGuiStoragePtr self) + { + ImGuiNative.BuildSortByKey(self); + } + public static void BuildSortByKey(this ref ImGuiStorage self) + { + fixed (ImGuiStorage* pself = &self) + { + ImGuiNative.BuildSortByKey((ImGuiStorage*)pself); + } + } + public static ImGuiListClipperPtr ImGuiListClipper() + { + ImGuiListClipperPtr ret = ImGuiNative.ImGuiListClipper(); + return ret; + } + public static bool Step(this ImGuiListClipperPtr self) + { + byte ret = ImGuiNative.Step(self); + return ret != 0; + } + public static bool Step(this ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + byte ret = ImGuiNative.Step((ImGuiListClipper*)pself); + return ret != 0; + } + } + public static void ForceDisplayRangeByIndices(this ImGuiListClipperPtr self, int itemMin, int itemMax) + { + ImGuiNative.ForceDisplayRangeByIndices(self, itemMin, itemMax); + } + public static void ForceDisplayRangeByIndices(this ref ImGuiListClipper self, int itemMin, int itemMax) + { + fixed (ImGuiListClipper* pself = &self) + { + ImGuiNative.ForceDisplayRangeByIndices((ImGuiListClipper*)pself, itemMin, itemMax); + } + } + public static ImColorPtr ImColor() + { + ImColorPtr ret = ImGuiNative.ImColor(); + return ret; + } + public static ImColorPtr ImColor(float r, float g, float b, float a) + { + ImColorPtr ret = ImGuiNative.ImColor(r, g, b, a); + return ret; + } + public static ImColorPtr ImColor(float r, float g, float b) + { + ImColorPtr ret = ImGuiNative.ImColor(r, g, b, (float)(1.0f)); + return ret; + } + public static ImColorPtr ImColor(Vector4 col) + { + ImColorPtr ret = ImGuiNative.ImColor(col); + return ret; + } + public static ImColorPtr ImColor(int r, int g, int b, int a) + { + ImColorPtr ret = ImGuiNative.ImColor(r, g, b, a); + return ret; + } + public static ImColorPtr ImColor(int r, int g, int b) + { + ImColorPtr ret = ImGuiNative.ImColor(r, g, b, (int)(255)); + return ret; + } + public static ImColorPtr ImColor(uint rgba) + { + ImColorPtr ret = ImGuiNative.ImColor(rgba); + return ret; + } + public static void SetHSV(this ImColorPtr self, float h, float s, float v, float a) + { + ImGuiNative.SetHSV(self, h, s, v, a); + } + public static void SetHSV(this ImColorPtr self, float h, float s, float v) + { + ImGuiNative.SetHSV(self, h, s, v, (float)(1.0f)); + } + public static void SetHSV(this ref ImColor self, float h, float s, float v, float a) + { + fixed (ImColor* pself = &self) + { + ImGuiNative.SetHSV((ImColor*)pself, h, s, v, a); + } + } + public static void SetHSV(this ref ImColor self, float h, float s, float v) + { + fixed (ImColor* pself = &self) + { + ImGuiNative.SetHSV((ImColor*)pself, h, s, v, (float)(1.0f)); + } + } + public static ImColor HSV(float h, float s, float v) + { + ImColor ret; + ImGuiNative.HSV(&ret, h, s, v, (float)(1.0f)); + return ret; + } + public static ImColor HSV(float h, float s, float v, float a) + { + ImColor ret; + ImGuiNative.HSV(&ret, h, s, v, a); + return ret; + } + public static void HSV(ImColorPtr pOut, float h, float s, float v, float a) + { + ImGuiNative.HSV(pOut, h, s, v, a); + } + public static void HSV(ImColorPtr pOut, float h, float s, float v) + { + ImGuiNative.HSV(pOut, h, s, v, (float)(1.0f)); + } + public static void HSV(ref ImColor pOut, float h, float s, float v, float a) + { + fixed (ImColor* ppOut = &pOut) + { + ImGuiNative.HSV((ImColor*)ppOut, h, s, v, a); + } + } + public static void HSV(ref ImColor pOut, float h, float s, float v) + { + fixed (ImColor* ppOut = &pOut) + { + ImGuiNative.HSV((ImColor*)ppOut, h, s, v, (float)(1.0f)); + } + } + public static ImDrawCmdPtr ImDrawCmd() + { + ImDrawCmdPtr ret = ImGuiNative.ImDrawCmd(); + return ret; + } + public static ImTextureID GetTexID(this ImDrawCmdPtr self) + { + ImTextureID ret = ImGuiNative.GetTexID(self); + return ret; + } + public static ImTextureID GetTexID(this scoped in ImDrawCmd self) + { + fixed (ImDrawCmd* pself = &self) + { + ImTextureID ret = ImGuiNative.GetTexID((ImDrawCmd*)pself); + return ret; + } + } + public static ImDrawListSplitterPtr ImDrawListSplitter() + { + ImDrawListSplitterPtr ret = ImGuiNative.ImDrawListSplitter(); + return ret; + } + public static void ClearFreeMemory(this ImDrawListSplitterPtr self) + { + ImGuiNative.ClearFreeMemory(self); + } + public static void ClearFreeMemory(this ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.ClearFreeMemory((ImDrawListSplitter*)pself); + } + } + public static void Split(this ImDrawListSplitterPtr self, ImDrawListPtr drawList, int count) + { + ImGuiNative.Split(self, drawList, count); + } + public static void Split(this ref ImDrawListSplitter self, ImDrawListPtr drawList, int count) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.Split((ImDrawListSplitter*)pself, drawList, count); + } + } + public static void Split(this ImDrawListSplitterPtr self, ref ImDrawList drawList, int count) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Split(self, (ImDrawList*)pdrawList, count); + } + } + public static void Split(this ref ImDrawListSplitter self, ref ImDrawList drawList, int count) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Split((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); + } + } + } + public static void Merge(this ImDrawListSplitterPtr self, ImDrawListPtr drawList) + { + ImGuiNative.Merge(self, drawList); + } + public static void Merge(this ref ImDrawListSplitter self, ImDrawListPtr drawList) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.Merge((ImDrawListSplitter*)pself, drawList); + } + } + public static void Merge(this ImDrawListSplitterPtr self, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Merge(self, (ImDrawList*)pdrawList); + } + } + public static void Merge(this ref ImDrawListSplitter self, ref ImDrawList drawList) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Merge((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); + } + } + } + public static void SetCurrentChannel(this ImDrawListSplitterPtr self, ImDrawListPtr drawList, int channelIdx) + { + ImGuiNative.SetCurrentChannel(self, drawList, channelIdx); + } + public static void SetCurrentChannel(this ref ImDrawListSplitter self, ImDrawListPtr drawList, int channelIdx) + { + fixed (ImDrawListSplitter* pself = &self) + { + ImGuiNative.SetCurrentChannel((ImDrawListSplitter*)pself, drawList, channelIdx); + } + } + public static void SetCurrentChannel(this ImDrawListSplitterPtr self, ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.SetCurrentChannel(self, (ImDrawList*)pdrawList, channelIdx); + } + } + public static void SetCurrentChannel(this ref ImDrawListSplitter self, ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.SetCurrentChannel((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); + } + } + } + public static ImDrawListPtr ImDrawList(ImDrawListSharedDataPtr sharedData) + { + ImDrawListPtr ret = ImGuiNative.ImDrawList(sharedData); + return ret; + } + public static ImDrawListPtr ImDrawList(ref ImDrawListSharedData sharedData) + { + fixed (ImDrawListSharedData* psharedData = &sharedData) + { + ImDrawListPtr ret = ImGuiNative.ImDrawList((ImDrawListSharedData*)psharedData); + return ret; + } + } + public static void PushClipRectFullScreen(this ImDrawListPtr self) + { + ImGuiNative.PushClipRectFullScreen(self); + } + public static void PushClipRectFullScreen(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PushClipRectFullScreen((ImDrawList*)pself); + } + } + public static void PushTextureID(this ImDrawListPtr self, ImTextureID textureId) + { + ImGuiNative.PushTextureID(self, textureId); + } + public static void PushTextureID(this ref ImDrawList self, ImTextureID textureId) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PushTextureID((ImDrawList*)pself, textureId); + } + } + public static void PopTextureID(this ImDrawListPtr self) + { + ImGuiNative.PopTextureID(self); + } + public static void PopTextureID(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PopTextureID((ImDrawList*)pself); + } + } + public static Vector2 GetClipRectMin(this ImDrawListPtr self) + { + Vector2 ret; + ImGuiNative.GetClipRectMin(&ret, self); + return ret; + } + public static void GetClipRectMin(Vector2* pOut, ImDrawListPtr self) + { + ImGuiNative.GetClipRectMin(pOut, self); + } + public static void GetClipRectMin(ref Vector2 pOut, ImDrawListPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetClipRectMin((Vector2*)ppOut, self); + } + } + public static Vector2 GetClipRectMin(this scoped in ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + Vector2 ret; + ImGuiNative.GetClipRectMin(&ret, (ImDrawList*)pself); + return ret; + } + } + public static void GetClipRectMin(Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.GetClipRectMin(pOut, (ImDrawList*)pself); + } + } + public static void GetClipRectMin(ref Vector2 pOut, ref ImDrawList self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.GetClipRectMin((Vector2*)ppOut, (ImDrawList*)pself); + } + } + } + public static Vector2 GetClipRectMax(this ImDrawListPtr self) + { + Vector2 ret; + ImGuiNative.GetClipRectMax(&ret, self); + return ret; + } + public static void GetClipRectMax(Vector2* pOut, ImDrawListPtr self) + { + ImGuiNative.GetClipRectMax(pOut, self); + } + public static void GetClipRectMax(ref Vector2 pOut, ImDrawListPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetClipRectMax((Vector2*)ppOut, self); + } + } + public static Vector2 GetClipRectMax(this scoped in ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + Vector2 ret; + ImGuiNative.GetClipRectMax(&ret, (ImDrawList*)pself); + return ret; + } + } + public static void GetClipRectMax(Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.GetClipRectMax(pOut, (ImDrawList*)pself); + } + } + public static void GetClipRectMax(ref Vector2 pOut, ref ImDrawList self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.GetClipRectMax((Vector2*)ppOut, (ImDrawList*)pself); + } + } + } + public static void AddLine(this ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + ImGuiNative.AddLine(self, p1, p2, col, thickness); + } + public static void AddLine(this ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col) + { + ImGuiNative.AddLine(self, p1, p2, col, (float)(1.0f)); + } + public static void AddLine(this ref ImDrawList self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddLine((ImDrawList*)pself, p1, p2, col, thickness); + } + } + public static void AddLine(this ref ImDrawList self, Vector2 p1, Vector2 p2, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddLine((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); + } + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddRect(self, pMin, pMax, col, rounding, flags, thickness); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddRect(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGuiNative.AddRect(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + ImGuiNative.AddRect(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + } + public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + } + public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddRectFilled(self, pMin, pMax, col, rounding, flags); + } + public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGuiNative.AddRectFilled(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddRectFilled(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGuiNative.AddRectFilled(self, pMin, pMax, col, (float)(0.0f), flags); + } + public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, rounding, flags); + } + } + public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + } + public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + } + public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); + } + } + public static void AddRectFilledMultiColor(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + ImGuiNative.AddRectFilledMultiColor(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + public static void AddRectFilledMultiColor(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddRectFilledMultiColor((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + } + public static void AddQuad(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGuiNative.AddQuad(self, p1, p2, p3, p4, col, thickness); + } + public static void AddQuad(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddQuad(self, p1, p2, p3, p4, col, (float)(1.0f)); + } + public static void AddQuad(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddQuad((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); + } + } + public static void AddQuad(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddQuad((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); + } + } + public static void AddQuadFilled(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddQuadFilled(self, p1, p2, p3, p4, col); + } + public static void AddQuadFilled(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddQuadFilled((ImDrawList*)pself, p1, p2, p3, p4, col); + } + } + public static void AddTriangle(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGuiNative.AddTriangle(self, p1, p2, p3, col, thickness); + } + public static void AddTriangle(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGuiNative.AddTriangle(self, p1, p2, p3, col, (float)(1.0f)); + } + public static void AddTriangle(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddTriangle((ImDrawList*)pself, p1, p2, p3, col, thickness); + } + } + public static void AddTriangle(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddTriangle((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); + } + } + public static void AddTriangleFilled(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGuiNative.AddTriangleFilled(self, p1, p2, p3, col); + } + public static void AddTriangleFilled(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddTriangleFilled((ImDrawList*)pself, p1, p2, p3, col); + } + } + public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGuiNative.AddCircle(self, center, radius, col, numSegments, thickness); + } + public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddCircle(self, center, radius, col, numSegments, (float)(1.0f)); + } + public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col) + { + ImGuiNative.AddCircle(self, center, radius, col, (int)(0), (float)(1.0f)); + } + public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, float thickness) + { + ImGuiNative.AddCircle(self, center, radius, col, (int)(0), thickness); + } + public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, numSegments, thickness); + } + } + public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); + } + } + public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); + } + } + public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, (int)(0), thickness); + } + } + public static void AddCircleFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddCircleFilled(self, center, radius, col, numSegments); + } + public static void AddCircleFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col) + { + ImGuiNative.AddCircleFilled(self, center, radius, col, (int)(0)); + } + public static void AddCircleFilled(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircleFilled((ImDrawList*)pself, center, radius, col, numSegments); + } + } + public static void AddCircleFilled(this ref ImDrawList self, Vector2 center, float radius, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCircleFilled((ImDrawList*)pself, center, radius, col, (int)(0)); + } + } + public static void AddNgon(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGuiNative.AddNgon(self, center, radius, col, numSegments, thickness); + } + public static void AddNgon(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddNgon(self, center, radius, col, numSegments, (float)(1.0f)); + } + public static void AddNgon(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddNgon((ImDrawList*)pself, center, radius, col, numSegments, thickness); + } + } + public static void AddNgon(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddNgon((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); + } + } + public static void AddNgonFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddNgonFilled(self, center, radius, col, numSegments); + } + public static void AddNgonFilled(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddNgonFilled((ImDrawList*)pself, center, radius, col, numSegments); + } + } + public static void AddPolyline(this ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddPolyline(self, points, numPoints, col, flags, thickness); + } + public static void AddPolyline(this ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddPolyline((ImDrawList*)pself, points, numPoints, col, flags, thickness); + } + } + public static void AddPolyline(this ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddPolyline(self, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + public static void AddPolyline(this ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddPolyline((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + } + public static void AddConvexPolyFilled(this ImDrawListPtr self, Vector2* points, int numPoints, uint col) + { + ImGuiNative.AddConvexPolyFilled(self, points, numPoints, col); + } + public static void AddConvexPolyFilled(this ref ImDrawList self, Vector2* points, int numPoints, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddConvexPolyFilled((ImDrawList*)pself, points, numPoints, col); + } + } + public static void AddConvexPolyFilled(this ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddConvexPolyFilled(self, (Vector2*)ppoints, numPoints, col); + } + } + public static void AddConvexPolyFilled(this ref ImDrawList self, ref Vector2 points, int numPoints, uint col) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddConvexPolyFilled((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); + } + } + } + public static void AddBezierCubic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + ImGuiNative.AddBezierCubic(self, p1, p2, p3, p4, col, thickness, numSegments); + } + public static void AddBezierCubic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGuiNative.AddBezierCubic(self, p1, p2, p3, p4, col, thickness, (int)(0)); + } + public static void AddBezierCubic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddBezierCubic((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); + } + } + public static void AddBezierCubic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddBezierCubic((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); + } + } + public static void AddBezierQuadratic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + ImGuiNative.AddBezierQuadratic(self, p1, p2, p3, col, thickness, numSegments); + } + public static void AddBezierQuadratic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGuiNative.AddBezierQuadratic(self, p1, p2, p3, col, thickness, (int)(0)); + } + public static void AddBezierQuadratic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddBezierQuadratic((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); + } + } + public static void AddBezierQuadratic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddBezierQuadratic((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); + } + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddImage(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + } + public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGuiNative.AddImageQuad(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)); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddImageQuad(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); + } + public static void AddImageQuad(this 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) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + } + public static void AddImageQuad(this 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) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((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)); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((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)); + } + } + public static void AddImageQuad(this 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) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageQuad((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); + } + } + public static void AddImageRounded(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddImageRounded(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + public static void AddImageRounded(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + ImGuiNative.AddImageRounded(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + public static void AddImageRounded(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageRounded((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + } + public static void AddImageRounded(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddImageRounded((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + } + public static void PathClear(this ImDrawListPtr self) + { + ImGuiNative.PathClear(self); + } + public static void PathClear(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathClear((ImDrawList*)pself); + } + } + public static void PathLineTo(this ImDrawListPtr self, Vector2 pos) + { + ImGuiNative.PathLineTo(self, pos); + } + public static void PathLineTo(this ref ImDrawList self, Vector2 pos) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathLineTo((ImDrawList*)pself, pos); + } + } + public static void PathLineToMergeDuplicate(this ImDrawListPtr self, Vector2 pos) + { + ImGuiNative.PathLineToMergeDuplicate(self, pos); + } + public static void PathLineToMergeDuplicate(this ref ImDrawList self, Vector2 pos) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathLineToMergeDuplicate((ImDrawList*)pself, pos); + } + } + public static void PathFillConvex(this ImDrawListPtr self, uint col) + { + ImGuiNative.PathFillConvex(self, col); + } + public static void PathFillConvex(this ref ImDrawList self, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathFillConvex((ImDrawList*)pself, col); + } + } + public static void PathStroke(this ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.PathStroke(self, col, flags, thickness); + } + public static void PathStroke(this ImDrawListPtr self, uint col, ImDrawFlags flags) + { + ImGuiNative.PathStroke(self, col, flags, (float)(1.0f)); + } + public static void PathStroke(this ImDrawListPtr self, uint col) + { + ImGuiNative.PathStroke(self, col, (ImDrawFlags)(0), (float)(1.0f)); + } + public static void PathStroke(this ImDrawListPtr self, uint col, float thickness) + { + ImGuiNative.PathStroke(self, col, (ImDrawFlags)(0), thickness); + } + public static void PathStroke(this ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathStroke((ImDrawList*)pself, col, flags, thickness); + } + } + public static void PathStroke(this ref ImDrawList self, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathStroke((ImDrawList*)pself, col, flags, (float)(1.0f)); + } + } + public static void PathStroke(this ref ImDrawList self, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathStroke((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); + } + } + public static void PathStroke(this ref ImDrawList self, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathStroke((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); + } + } + public static void PathArcTo(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGuiNative.PathArcTo(self, center, radius, aMin, aMax, numSegments); + } + public static void PathArcTo(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) + { + ImGuiNative.PathArcTo(self, center, radius, aMin, aMax, (int)(0)); + } + public static void PathArcTo(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathArcTo((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); + } + } + public static void PathArcTo(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathArcTo((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); + } + } + public static void PathArcToFast(this ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + ImGuiNative.PathArcToFast(self, center, radius, aMinOf12, aMaxOf12); + } + public static void PathArcToFast(this ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathArcToFast((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); + } + } + public static void PathBezierCubicCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + ImGuiNative.PathBezierCubicCurveTo(self, p2, p3, p4, numSegments); + } + public static void PathBezierCubicCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGuiNative.PathBezierCubicCurveTo(self, p2, p3, p4, (int)(0)); + } + public static void PathBezierCubicCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathBezierCubicCurveTo((ImDrawList*)pself, p2, p3, p4, numSegments); + } + } + public static void PathBezierCubicCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathBezierCubicCurveTo((ImDrawList*)pself, p2, p3, p4, (int)(0)); + } + } + public static void PathBezierQuadraticCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) + { + ImGuiNative.PathBezierQuadraticCurveTo(self, p2, p3, numSegments); + } + public static void PathBezierQuadraticCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3) + { + ImGuiNative.PathBezierQuadraticCurveTo(self, p2, p3, (int)(0)); + } + public static void PathBezierQuadraticCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathBezierQuadraticCurveTo((ImDrawList*)pself, p2, p3, numSegments); + } + } + public static void PathBezierQuadraticCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathBezierQuadraticCurveTo((ImDrawList*)pself, p2, p3, (int)(0)); + } + } + public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + ImGuiNative.PathRect(self, rectMin, rectMax, rounding, flags); + } + public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) + { + ImGuiNative.PathRect(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) + { + ImGuiNative.PathRect(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + ImGuiNative.PathRect(self, rectMin, rectMax, (float)(0.0f), flags); + } + public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, rounding, flags); + } + } + public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + } + public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + } + public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); + } + } + public static void AddCallback(this ImDrawListPtr self, ImDrawCallback callback, void* callbackData) + { + ImGuiNative.AddCallback(self, callback, callbackData); + } + public static void AddCallback(this ref ImDrawList self, ImDrawCallback callback, void* callbackData) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddCallback((ImDrawList*)pself, callback, callbackData); + } + } + public static void AddDrawCmd(this ImDrawListPtr self) + { + ImGuiNative.AddDrawCmd(self); + } + public static void AddDrawCmd(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.AddDrawCmd((ImDrawList*)pself); + } + } + public static ImDrawListPtr CloneOutput(this ImDrawListPtr self) + { + ImDrawListPtr ret = ImGuiNative.CloneOutput(self); + return ret; + } + public static ImDrawListPtr CloneOutput(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImDrawListPtr ret = ImGuiNative.CloneOutput((ImDrawList*)pself); + return ret; + } + } + public static void ChannelsSplit(this ImDrawListPtr self, int count) + { + ImGuiNative.ChannelsSplit(self, count); + } + public static void ChannelsSplit(this ref ImDrawList self, int count) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.ChannelsSplit((ImDrawList*)pself, count); + } + } + public static void ChannelsMerge(this ImDrawListPtr self) + { + ImGuiNative.ChannelsMerge(self); + } + public static void ChannelsMerge(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.ChannelsMerge((ImDrawList*)pself); + } + } + public static void ChannelsSetCurrent(this ImDrawListPtr self, int n) + { + ImGuiNative.ChannelsSetCurrent(self, n); + } + public static void ChannelsSetCurrent(this ref ImDrawList self, int n) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.ChannelsSetCurrent((ImDrawList*)pself, n); + } + } + public static void PrimReserve(this ImDrawListPtr self, int idxCount, int vtxCount) + { + ImGuiNative.PrimReserve(self, idxCount, vtxCount); + } + public static void PrimReserve(this ref ImDrawList self, int idxCount, int vtxCount) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimReserve((ImDrawList*)pself, idxCount, vtxCount); + } + } + public static void PrimUnreserve(this ImDrawListPtr self, int idxCount, int vtxCount) + { + ImGuiNative.PrimUnreserve(self, idxCount, vtxCount); + } + public static void PrimUnreserve(this ref ImDrawList self, int idxCount, int vtxCount) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimUnreserve((ImDrawList*)pself, idxCount, vtxCount); + } + } + public static void PrimRect(this ImDrawListPtr self, Vector2 a, Vector2 b, uint col) + { + ImGuiNative.PrimRect(self, a, b, col); + } + public static void PrimRect(this ref ImDrawList self, Vector2 a, Vector2 b, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimRect((ImDrawList*)pself, a, b, col); + } + } + public static void PrimRectUV(this ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + ImGuiNative.PrimRectUV(self, a, b, uvA, uvB, col); + } + public static void PrimRectUV(this ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimRectUV((ImDrawList*)pself, a, b, uvA, uvB, col); + } + } + public static void PrimQuadUV(this ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + ImGuiNative.PrimQuadUV(self, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + public static void PrimQuadUV(this 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) + { + ImGuiNative.PrimQuadUV((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + } + public static void PrimWriteVtx(this ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) + { + ImGuiNative.PrimWriteVtx(self, pos, uv, col); + } + public static void PrimWriteVtx(this ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimWriteVtx((ImDrawList*)pself, pos, uv, col); + } + } + public static void PrimWriteIdx(this ImDrawListPtr self, ushort idx) + { + ImGuiNative.PrimWriteIdx(self, idx); + } + public static void PrimWriteIdx(this ref ImDrawList self, ushort idx) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimWriteIdx((ImDrawList*)pself, idx); + } + } + public static void PrimVtx(this ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) + { + ImGuiNative.PrimVtx(self, pos, uv, col); + } + public static void PrimVtx(this ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative.PrimVtx((ImDrawList*)pself, pos, uv, col); + } + } + public static void _ResetForNewFrame(this ImDrawListPtr self) + { + ImGuiNative._ResetForNewFrame(self); + } + public static void _ResetForNewFrame(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._ResetForNewFrame((ImDrawList*)pself); + } + } + public static void _ClearFreeMemory(this ImDrawListPtr self) + { + ImGuiNative._ClearFreeMemory(self); + } + public static void _ClearFreeMemory(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._ClearFreeMemory((ImDrawList*)pself); + } + } + public static void _PopUnusedDrawCmd(this ImDrawListPtr self) + { + ImGuiNative._PopUnusedDrawCmd(self); + } + public static void _PopUnusedDrawCmd(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._PopUnusedDrawCmd((ImDrawList*)pself); + } + } + public static void _TryMergeDrawCmds(this ImDrawListPtr self) + { + ImGuiNative._TryMergeDrawCmds(self); + } + public static void _TryMergeDrawCmds(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._TryMergeDrawCmds((ImDrawList*)pself); + } + } + public static void _OnChangedClipRect(this ImDrawListPtr self) + { + ImGuiNative._OnChangedClipRect(self); + } + public static void _OnChangedClipRect(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._OnChangedClipRect((ImDrawList*)pself); + } + } + public static void _OnChangedTextureID(this ImDrawListPtr self) + { + ImGuiNative._OnChangedTextureID(self); + } + public static void _OnChangedTextureID(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._OnChangedTextureID((ImDrawList*)pself); + } + } + public static void _OnChangedVtxOffset(this ImDrawListPtr self) + { + ImGuiNative._OnChangedVtxOffset(self); + } + public static void _OnChangedVtxOffset(this ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._OnChangedVtxOffset((ImDrawList*)pself); + } + } + public static int _CalcCircleAutoSegmentCount(this ImDrawListPtr self, float radius) + { + int ret = ImGuiNative._CalcCircleAutoSegmentCount(self, radius); + return ret; + } + public static int _CalcCircleAutoSegmentCount(this ref ImDrawList self, float radius) + { + fixed (ImDrawList* pself = &self) + { + int ret = ImGuiNative._CalcCircleAutoSegmentCount((ImDrawList*)pself, radius); + return ret; + } + } + public static void _PathArcToFastEx(this ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + ImGuiNative._PathArcToFastEx(self, center, radius, aMinSample, aMaxSample, aStep); + } + public static void _PathArcToFastEx(this ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._PathArcToFastEx((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); + } + } + public static void _PathArcToN(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGuiNative._PathArcToN(self, center, radius, aMin, aMax, numSegments); + } + public static void _PathArcToN(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + ImGuiNative._PathArcToN((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); + } + } + public static ImDrawDataPtr ImDrawData() + { + ImDrawDataPtr ret = ImGuiNative.ImDrawData(); + return ret; + } + public static void DeIndexAllBuffers(this ImDrawDataPtr self) + { + ImGuiNative.DeIndexAllBuffers(self); + } + public static void DeIndexAllBuffers(this ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + ImGuiNative.DeIndexAllBuffers((ImDrawData*)pself); + } + } + public static void ScaleClipRects(this ImDrawDataPtr self, Vector2 fbScale) + { + ImGuiNative.ScaleClipRects(self, fbScale); + } + public static void ScaleClipRects(this ref ImDrawData self, Vector2 fbScale) + { + fixed (ImDrawData* pself = &self) + { + ImGuiNative.ScaleClipRects((ImDrawData*)pself, fbScale); + } + } + public static ImFontConfigPtr ImFontConfig() + { + ImFontConfigPtr ret = ImGuiNative.ImFontConfig(); + return ret; + } + public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() + { + ImFontGlyphRangesBuilderPtr ret = ImGuiNative.ImFontGlyphRangesBuilder(); + return ret; + } + public static bool GetBit(this ImFontGlyphRangesBuilderPtr self, nuint n) + { + byte ret = ImGuiNative.GetBit(self, n); + return ret != 0; + } + public static bool GetBit(this scoped in ImFontGlyphRangesBuilder self, nuint n) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + byte ret = ImGuiNative.GetBit((ImFontGlyphRangesBuilder*)pself, n); + return ret != 0; + } + } + public static void SetBit(this ImFontGlyphRangesBuilderPtr self, nuint n) + { + ImGuiNative.SetBit(self, n); + } + public static void SetBit(this ref ImFontGlyphRangesBuilder self, nuint n) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.SetBit((ImFontGlyphRangesBuilder*)pself, n); + } + } + public static void AddChar(this ImFontGlyphRangesBuilderPtr self, ushort c) + { + ImGuiNative.AddChar(self, c); + } + public static void AddChar(this ref ImFontGlyphRangesBuilder self, ushort c) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.AddChar((ImFontGlyphRangesBuilder*)pself, c); + } + } + public static void AddRanges(this ImFontGlyphRangesBuilderPtr self, ushort* ranges) + { + ImGuiNative.AddRanges(self, ranges); + } + public static void AddRanges(this ref ImFontGlyphRangesBuilder self, ushort* ranges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.AddRanges((ImFontGlyphRangesBuilder*)pself, ranges); + } + } + public static void BuildRanges(this ImFontGlyphRangesBuilderPtr self, ImVector* outRanges) + { + ImGuiNative.BuildRanges(self, outRanges); + } + public static void BuildRanges(this ref ImFontGlyphRangesBuilder self, ImVector* outRanges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ImGuiNative.BuildRanges((ImFontGlyphRangesBuilder*)pself, outRanges); + } + } + public static void BuildRanges(this ImFontGlyphRangesBuilderPtr self, ref ImVector outRanges) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGuiNative.BuildRanges(self, (ImVector*)poutRanges); + } + } + public static void BuildRanges(this ref ImFontGlyphRangesBuilder self, ref ImVector outRanges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGuiNative.BuildRanges((ImFontGlyphRangesBuilder*)pself, (ImVector*)poutRanges); + } + } + } + public static ImFontAtlasCustomRectPtr ImFontAtlasCustomRect() + { + ImFontAtlasCustomRectPtr ret = ImGuiNative.ImFontAtlasCustomRect(); + return ret; + } + public static bool IsPacked(this ImFontAtlasCustomRectPtr self) + { + byte ret = ImGuiNative.IsPacked(self); + return ret != 0; + } + public static bool IsPacked(this ref ImFontAtlasCustomRect self) + { + fixed (ImFontAtlasCustomRect* pself = &self) + { + byte ret = ImGuiNative.IsPacked((ImFontAtlasCustomRect*)pself); + return ret != 0; + } + } + public static ImFontAtlasPtr ImFontAtlas() + { + ImFontAtlasPtr ret = ImGuiNative.ImFontAtlas(); + return ret; + } + public static ImFontPtr AddFont(this ImFontAtlasPtr self, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont(self, fontCfg); + return ret; + } + public static ImFontPtr AddFont(this ref ImFontAtlas self, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = ImGuiNative.AddFont((ImFontAtlas*)pself, fontCfg); + return ret; + } + } + public static ImFontPtr AddFont(this ImFontAtlasPtr self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + public static ImFontPtr AddFont(this ref ImFontAtlas self, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(self, fontCfg); + return ret; + } + public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(self, (ImFontConfig*)(default)); + return ret; + } + public static ImFontPtr AddFontDefault(this ref ImFontAtlas self, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, fontCfg); + return ret; + } + } + public static ImFontPtr AddFontDefault(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, (ImFontConfig*)(default)); + return ret; + } + } + public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + public static ImFontPtr AddFontDefault(this ref ImFontAtlas self, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + public static void ClearInputData(this ImFontAtlasPtr self) + { + ImGuiNative.ClearInputData(self); + } + public static void ClearInputData(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.ClearInputData((ImFontAtlas*)pself); + } + } + public static void ClearTexData(this ImFontAtlasPtr self) + { + ImGuiNative.ClearTexData(self); + } + public static void ClearTexData(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.ClearTexData((ImFontAtlas*)pself); + } + } + public static void ClearFonts(this ImFontAtlasPtr self) + { + ImGuiNative.ClearFonts(self); + } + public static void ClearFonts(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.ClearFonts((ImFontAtlas*)pself); + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this 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) + { + ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsAlpha8(this scoped in 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) + { + ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this 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) + { + ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public static void GetTexDataAsRGBA32(this scoped in 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) + { + ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + public static bool IsBuilt(this ImFontAtlasPtr self) + { + byte ret = ImGuiNative.IsBuilt(self); + return ret != 0; + } + public static bool IsBuilt(this ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + byte ret = ImGuiNative.IsBuilt((ImFontAtlas*)pself); + return ret != 0; + } + } + public static void SetTexID(this ImFontAtlasPtr self, int textureIndex, ImTextureID id) + { + ImGuiNative.SetTexID(self, textureIndex, id); + } + public static void SetTexID(this ref ImFontAtlas self, int textureIndex, ImTextureID id) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.SetTexID((ImFontAtlas*)pself, textureIndex, id); + } + } + public static void ClearTexID(this ImFontAtlasPtr self, ImTextureID nullId) + { + ImGuiNative.ClearTexID(self, nullId); + } + public static void ClearTexID(this ref ImFontAtlas self, ImTextureID nullId) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.ClearTexID((ImFontAtlas*)pself, nullId); + } + } + public static ushort* GetGlyphRangesDefault(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesDefault(self); + return ret; + } + public static ushort* GetGlyphRangesDefault(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesDefault((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesKorean(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesKorean(self); + return ret; + } + public static ushort* GetGlyphRangesKorean(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesKorean((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesJapanese(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesJapanese(self); + return ret; + } + public static ushort* GetGlyphRangesJapanese(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesJapanese((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesChineseFull(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(self); + return ret; + } + public static ushort* GetGlyphRangesChineseFull(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseFull((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesChineseSimplifiedCommon(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(self); + return ret; + } + public static ushort* GetGlyphRangesChineseSimplifiedCommon(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesCyrillic(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(self); + return ret; + } + public static ushort* GetGlyphRangesCyrillic(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesCyrillic((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesThai(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesThai(self); + return ret; + } + public static ushort* GetGlyphRangesThai(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesThai((ImFontAtlas*)pself); + return ret; + } + } + public static ushort* GetGlyphRangesVietnamese(this ImFontAtlasPtr self) + { + ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(self); + return ret; + } + public static ushort* GetGlyphRangesVietnamese(this scoped in ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = ImGuiNative.GetGlyphRangesVietnamese((ImFontAtlas*)pself); + return ret; + } + } + public static int AddCustomRectRegular(this ImFontAtlasPtr self, int width, int height) + { + int ret = ImGuiNative.AddCustomRectRegular(self, width, height); + return ret; + } + public static int AddCustomRectRegular(this ref ImFontAtlas self, int width, int height) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = ImGuiNative.AddCustomRectRegular((ImFontAtlas*)pself, width, height); + return ret; + } + } + public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(self, font, id, width, height, advanceX, offset); + return ret; + } + public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); + return ret; + } + } + public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(self, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + public static int AddCustomRectFontGlyph(this 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 = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + } + public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + } + public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(this ImFontAtlasPtr self, int index) + { + ImFontAtlasCustomRectPtr ret = ImGuiNative.GetCustomRectByIndex(self, index); + return ret; + } + public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(this scoped in ImFontAtlas self, int index) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontAtlasCustomRectPtr ret = ImGuiNative.GetCustomRectByIndex((ImFontAtlas*)pself, index); + return ret; + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) + { + ImGuiNative.CalcCustomRectUV(self, rect, outUvMin, outUvMax); + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, outUvMin, outUvMax); + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(self, rect, (Vector2*)poutUvMin, outUvMax); + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(self, rect, outUvMin, (Vector2*)poutUvMax); + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + public static void CalcCustomRectUV(this 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) + { + ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this 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 = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + public static bool GetMouseCursorTexData(this scoped in 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 = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + public static ImFontPtr ImFont() + { + ImFontPtr ret = ImGuiNative.ImFont(); + return ret; + } + public static ImFontGlyphPtr FindGlyph(this ImFontPtr self, ushort c) + { + ImFontGlyphPtr ret = ImGuiNative.FindGlyph(self, c); + return ret; + } + public static ImFontGlyphPtr FindGlyph(this ref ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + ImFontGlyphPtr ret = ImGuiNative.FindGlyph((ImFont*)pself, c); + return ret; + } + } + public static ImFontGlyphPtr FindGlyphNoFallback(this ImFontPtr self, ushort c) + { + ImFontGlyphPtr ret = ImGuiNative.FindGlyphNoFallback(self, c); + return ret; + } + public static ImFontGlyphPtr FindGlyphNoFallback(this ref ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + ImFontGlyphPtr ret = ImGuiNative.FindGlyphNoFallback((ImFont*)pself, c); + return ret; + } + } + public static float GetDistanceAdjustmentForPair(this ImFontPtr self, ushort leftC, ushort rightC) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPair(self, leftC, rightC); + return ret; + } + public static float GetDistanceAdjustmentForPair(this scoped in ImFont self, ushort leftC, ushort rightC) + { + fixed (ImFont* pself = &self) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPair((ImFont*)pself, leftC, rightC); + return ret; + } + } + public static float GetCharAdvance(this ImFontPtr self, ushort c) + { + float ret = ImGuiNative.GetCharAdvance(self, c); + return ret; + } + public static float GetCharAdvance(this scoped in ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + float ret = ImGuiNative.GetCharAdvance((ImFont*)pself, c); + return ret; + } + } + public static bool IsLoaded(this ImFontPtr self) + { + byte ret = ImGuiNative.IsLoaded(self); + return ret != 0; + } + public static bool IsLoaded(this ref ImFont self) + { + fixed (ImFont* pself = &self) + { + byte ret = ImGuiNative.IsLoaded((ImFont*)pself); + return ret != 0; + } + } + public static void RenderChar(this ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + ImGuiNative.RenderChar(self, drawList, size, pos, col, c); + } + public static void RenderChar(this ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.RenderChar((ImFont*)pself, drawList, size, pos, col, c); + } + } + public static void RenderChar(this ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.RenderChar(self, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + public static void RenderChar(this ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.RenderChar((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + } + public static void BuildLookupTable(this ImFontPtr self) + { + ImGuiNative.BuildLookupTable(self); + } + public static void BuildLookupTable(this ref ImFont self) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.BuildLookupTable((ImFont*)pself); + } + } + public static void ClearOutputData(this ImFontPtr self) + { + ImGuiNative.ClearOutputData(self); + } + public static void ClearOutputData(this ref ImFont self) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.ClearOutputData((ImFont*)pself); + } + } + public static void GrowIndex(this ImFontPtr self, int newSize) + { + ImGuiNative.GrowIndex(self, newSize); + } + public static void GrowIndex(this ref ImFont self, int newSize) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.GrowIndex((ImFont*)pself, newSize); + } + } + public static void AddGlyph(this 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) + { + ImGuiNative.AddGlyph(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + public static void AddGlyph(this 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) + { + ImGuiNative.AddGlyph((ImFont*)pself, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + public static void AddGlyph(this 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) + { + ImGuiNative.AddGlyph(self, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + public static void AddGlyph(this 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) + { + ImGuiNative.AddGlyph((ImFont*)pself, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + } + public static void AddRemapChar(this ImFontPtr self, ushort dst, ushort src, bool overwriteDst) + { + ImGuiNative.AddRemapChar(self, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + public static void AddRemapChar(this ImFontPtr self, ushort dst, ushort src) + { + ImGuiNative.AddRemapChar(self, dst, src, (byte)(1)); + } + public static void AddRemapChar(this ref ImFont self, ushort dst, ushort src, bool overwriteDst) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.AddRemapChar((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + } + public static void AddRemapChar(this ref ImFont self, ushort dst, ushort src) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.AddRemapChar((ImFont*)pself, dst, src, (byte)(1)); + } + } + public static void SetGlyphVisible(this ImFontPtr self, ushort c, bool visible) + { + ImGuiNative.SetGlyphVisible(self, c, visible ? (byte)1 : (byte)0); + } + public static void SetGlyphVisible(this ref ImFont self, ushort c, bool visible) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.SetGlyphVisible((ImFont*)pself, c, visible ? (byte)1 : (byte)0); + } + } + public static bool IsGlyphRangeUnused(this ImFontPtr self, uint cBegin, uint cLast) + { + byte ret = ImGuiNative.IsGlyphRangeUnused(self, cBegin, cLast); + return ret != 0; + } + public static bool IsGlyphRangeUnused(this ref ImFont self, uint cBegin, uint cLast) + { + fixed (ImFont* pself = &self) + { + byte ret = ImGuiNative.IsGlyphRangeUnused((ImFont*)pself, cBegin, cLast); + return ret != 0; + } + } + public static void AddKerningPair(this ImFontPtr self, ushort leftC, ushort rightC, float distanceAdjustment) + { + ImGuiNative.AddKerningPair(self, leftC, rightC, distanceAdjustment); + } + public static void AddKerningPair(this ref ImFont self, ushort leftC, ushort rightC, float distanceAdjustment) + { + fixed (ImFont* pself = &self) + { + ImGuiNative.AddKerningPair((ImFont*)pself, leftC, rightC, distanceAdjustment); + } + } + public static float GetDistanceAdjustmentForPairFromHotData(this ImFontPtr self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(self, leftC, rightCInfo); + return ret; + } + public static float GetDistanceAdjustmentForPairFromHotData(this scoped in ImFont self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) + { + fixed (ImFont* pself = &self) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData((ImFont*)pself, leftC, rightCInfo); + return ret; + } + } + public static float GetDistanceAdjustmentForPairFromHotData(this ImFontPtr self, ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(self, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + public static float GetDistanceAdjustmentForPairFromHotData(this scoped in ImFont self, ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFont* pself = &self) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData((ImFont*)pself, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + } + public static ImGuiViewportPtr ImGuiViewport() + { + ImGuiViewportPtr ret = ImGuiNative.ImGuiViewport(); + return ret; + } + public static Vector2 GetCenter(this ImGuiViewportPtr self) + { + Vector2 ret; + ImGuiNative.GetCenter(&ret, self); + return ret; + } + public static void GetCenter(Vector2* pOut, ImGuiViewportPtr self) + { + ImGuiNative.GetCenter(pOut, self); + } + public static void GetCenter(ref Vector2 pOut, ImGuiViewportPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetCenter((Vector2*)ppOut, self); + } + } + public static Vector2 GetCenter(this scoped in ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + Vector2 ret; + ImGuiNative.GetCenter(&ret, (ImGuiViewport*)pself); + return ret; + } + } + public static void GetCenter(Vector2* pOut, ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + ImGuiNative.GetCenter(pOut, (ImGuiViewport*)pself); + } + } + public static void GetCenter(ref Vector2 pOut, ref ImGuiViewport self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewport* pself = &self) + { + ImGuiNative.GetCenter((Vector2*)ppOut, (ImGuiViewport*)pself); + } + } + } + public static Vector2 GetWorkCenter(this ImGuiViewportPtr self) + { + Vector2 ret; + ImGuiNative.GetWorkCenter(&ret, self); + return ret; + } + public static void GetWorkCenter(Vector2* pOut, ImGuiViewportPtr self) + { + ImGuiNative.GetWorkCenter(pOut, self); + } + public static void GetWorkCenter(ref Vector2 pOut, ImGuiViewportPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiNative.GetWorkCenter((Vector2*)ppOut, self); + } + } + public static Vector2 GetWorkCenter(this scoped in ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + Vector2 ret; + ImGuiNative.GetWorkCenter(&ret, (ImGuiViewport*)pself); + return ret; + } + } + public static void GetWorkCenter(Vector2* pOut, ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + ImGuiNative.GetWorkCenter(pOut, (ImGuiViewport*)pself); + } + } + public static void GetWorkCenter(ref Vector2 pOut, ref ImGuiViewport self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewport* pself = &self) + { + ImGuiNative.GetWorkCenter((Vector2*)ppOut, (ImGuiViewport*)pself); + } + } + } + public static ImGuiPlatformIOPtr ImGuiPlatformIO() + { + ImGuiPlatformIOPtr ret = ImGuiNative.ImGuiPlatformIO(); + return ret; + } + public static ImGuiPlatformMonitorPtr ImGuiPlatformMonitor() + { + ImGuiPlatformMonitorPtr ret = ImGuiNative.ImGuiPlatformMonitor(); + return ret; + } + public static ImGuiPlatformImeDataPtr ImGuiPlatformImeData() + { + ImGuiPlatformImeDataPtr ret = ImGuiNative.ImGuiPlatformImeData(); + return ret; + } + public static int GetKeyIndex(ImGuiKey key) + { + int ret = ImGuiNative.GetKeyIndex(key); + return ret; + } + public static float GETFLTMAX() + { + float ret = ImGuiNative.GETFLTMAX(); + return ret; + } + public static float GETFLTMIN() + { + float ret = ImGuiNative.GETFLTMIN(); + return ret; + } + public static ImVector* ImVectorImWcharCreate() + { + ImVector* ret = ImGuiNative.ImVectorImWcharCreate(); + return ret; + } + public static void ImVectorImWcharDestroy(ImVector* self) + { + ImGuiNative.ImVectorImWcharDestroy(self); + } + public static void ImVectorImWcharDestroy(ref ImVector self) + { + fixed (ImVector* pself = &self) + { + ImGuiNative.ImVectorImWcharDestroy((ImVector*)pself); + } + } + public static void ImVectorImWcharInit(ImVector* p) + { + ImGuiNative.ImVectorImWcharInit(p); + } + public static void ImVectorImWcharInit(ref ImVector p) + { + fixed (ImVector* pp = &p) + { + ImGuiNative.ImVectorImWcharInit((ImVector*)pp); + } + } + public static void ImVectorImWcharUnInit(ImVector* p) + { + ImGuiNative.ImVectorImWcharUnInit(p); + } + public static void ImVectorImWcharUnInit(ref ImVector p) + { + fixed (ImVector* pp = &p) + { + ImGuiNative.ImVectorImWcharUnInit((ImVector*)pp); + } + } +} +// DISCARDED: internal static ImGuiPayload* AcceptDragDropPayloadNative(byte* type, ImGuiDragDropFlags flags) +// DISCARDED: internal static ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) +// DISCARDED: internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) +// DISCARDED: internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) +// DISCARDED: internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) +// DISCARDED: internal static void AddInputCharacterNative(ImGuiIO* self, uint c) +// DISCARDED: internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str) +// DISCARDED: internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c) +// DISCARDED: internal static void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) +// DISCARDED: internal static void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) +// DISCARDED: internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) +// DISCARDED: internal static void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd) +// DISCARDED: internal static void appendfNative(ImGuiTextBuffer* buffer, byte* fmt) +// DISCARDED: internal static void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args) +// DISCARDED: internal static byte ArrowButtonNative(byte* strId, ImGuiDir dir) +// DISCARDED: internal static byte* beginNative(ImGuiTextBuffer* self) +// DISCARDED: internal static byte BeginNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) +// DISCARDED: internal static void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight) +// DISCARDED: internal static byte BeginChildNative(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) +// DISCARDED: internal static byte BeginChildNative(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) +// DISCARDED: internal static byte BeginComboNative(byte* label, byte* previewValue, ImGuiComboFlags flags) +// DISCARDED: internal static byte BeginListBoxNative(byte* label, Vector2 size) +// DISCARDED: internal static byte BeginMenuNative(byte* label, byte enabled) +// DISCARDED: internal static byte BeginPopupNative(byte* strId, ImGuiWindowFlags flags) +// DISCARDED: internal static byte BeginPopupContextItemNative(byte* strId, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static byte BeginPopupContextVoidNative(byte* strId, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static byte BeginPopupContextWindowNative(byte* strId, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static byte BeginPopupModalNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) +// DISCARDED: beginS +// DISCARDED: internal static byte BeginTabBarNative(byte* strId, ImGuiTabBarFlags flags) +// DISCARDED: internal static byte BeginTabItemNative(byte* label, bool* pOpen, ImGuiTabItemFlags flags) +// DISCARDED: internal static byte BeginTableNative(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) +// DISCARDED: internal static void BulletTextNative(byte* fmt) +// DISCARDED: internal static void BulletTextVNative(byte* fmt, nuint args) +// DISCARDED: internal static byte ButtonNative(byte* label, Vector2 size) +// DISCARDED: internal static byte* c_strNative(ImGuiTextBuffer* self) +// DISCARDED: c_strS +// DISCARDED: internal static void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) +// DISCARDED: internal static void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) +// DISCARDED: internal static byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) +// DISCARDED: CalcWordWrapPositionAS +// DISCARDED: internal static byte CheckboxNative(byte* label, bool* v) +// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue) +// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue) +// DISCARDED: internal static byte CollapsingHeaderNative(byte* label, ImGuiTreeNodeFlags flags) +// DISCARDED: internal static byte CollapsingHeaderNative(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) +// DISCARDED: internal static byte ColorButtonNative(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) +// DISCARDED: internal static byte ColorEdit3Native(byte* label, float* col, ImGuiColorEditFlags flags) +// DISCARDED: internal static byte ColorEdit4Native(byte* label, float* col, ImGuiColorEditFlags flags) +// DISCARDED: internal static byte ColorPicker3Native(byte* label, float* col, ImGuiColorEditFlags flags) +// DISCARDED: internal static byte ColorPicker4Native(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) +// DISCARDED: internal static void ColumnsNative(int count, byte* id, byte border) +// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) +// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) +// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) +// DISCARDED: internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) +// DISCARDED: internal static void DebugTextEncodingNative(byte* text) +// DISCARDED: internal static byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragScalarNative(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DragScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width) +// DISCARDED: internal static byte* endNative(ImGuiTextBuffer* self) +// DISCARDED: endS +// DISCARDED: internal static bool* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal) +// DISCARDED: internal static byte* GetClipboardTextNative() +// DISCARDED: GetClipboardTextS +// DISCARDED: internal static byte* GetDebugNameNative(ImFont* self) +// DISCARDED: GetDebugNameS +// DISCARDED: internal static float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal) +// DISCARDED: internal static uint GetIDNative(byte* strId) +// DISCARDED: internal static uint GetIDNative(byte* strIdBegin, byte* strIdEnd) +// DISCARDED: internal static uint GetIDNative(void* ptrId) +// DISCARDED: internal static int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal) +// DISCARDED: internal static byte* GetKeyNameNative(ImGuiKey key) +// DISCARDED: GetKeyNameS +// DISCARDED: internal static byte* GetStyleColorNameNative(ImGuiCol idx) +// DISCARDED: GetStyleColorNameS +// DISCARDED: internal static byte* GetVersionNative() +// DISCARDED: GetVersionS +// DISCARDED: internal static void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal) +// DISCARDED: internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter) +// DISCARDED: internal static ImGuiTextRange* ImGuiTextRangeNative() +// DISCARDED: internal static ImGuiTextRange* ImGuiTextRangeNative(byte* b, byte* e) +// DISCARDED: internal static byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputFloat2Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputFloat3Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputFloat4Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputIntNative(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputInt2Native(byte* label, int* v, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputInt3Native(byte* label, int* v, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputInt4Native(byte* label, int* v, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static byte InputScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) +// DISCARDED: internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) +// DISCARDED: internal static byte InvisibleButtonNative(byte* strId, Vector2 size, ImGuiButtonFlags flags) +// DISCARDED: internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type) +// DISCARDED: internal static byte IsPopupOpenNative(byte* strId, ImGuiPopupFlags flags) +// DISCARDED: internal static void LabelTextNative(byte* label, byte* fmt) +// DISCARDED: internal static void LabelTextVNative(byte* label, byte* fmt, nuint args) +// DISCARDED: internal static byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) +// DISCARDED: internal static byte ListBoxNative(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) +// DISCARDED: internal static void LoadIniSettingsFromDiskNative(byte* iniFilename) +// DISCARDED: internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) +// DISCARDED: internal static void LogTextNative(byte* fmt) +// DISCARDED: internal static void LogTextVNative(byte* fmt, nuint args) +// DISCARDED: internal static void LogToFileNative(int autoOpenDepth, byte* filename) +// DISCARDED: internal static byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled) +// DISCARDED: internal static byte MenuItemNative(byte* label, byte* shortcut, bool* pSelected, byte enabled) +// DISCARDED: internal static void OpenPopupNative(byte* strId, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static void OpenPopupNative(uint id, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static void OpenPopupOnItemClickNative(byte* strId, ImGuiPopupFlags popupFlags) +// DISCARDED: internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd) +// DISCARDED: internal static void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) +// DISCARDED: internal static void PlotHistogramNative(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 graphSize) +// DISCARDED: internal static void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) +// DISCARDED: internal static void PlotLinesNative(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 graphSize) +// DISCARDED: internal static void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay) +// DISCARDED: internal static void PushIDNative(byte* strId) +// DISCARDED: internal static void PushIDNative(byte* strIdBegin, byte* strIdEnd) +// DISCARDED: internal static void PushIDNative(void* ptrId) +// DISCARDED: internal static void PushIDNative(int intId) +// DISCARDED: internal static byte RadioButtonNative(byte* label, byte active) +// DISCARDED: internal static byte RadioButtonNative(byte* label, int* v, int vButton) +// DISCARDED: internal static void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) +// DISCARDED: internal static void SaveIniSettingsToDiskNative(byte* iniFilename) +// DISCARDED: internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) +// DISCARDED: SaveIniSettingsToMemoryS +// DISCARDED: internal static byte SelectableNative(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) +// DISCARDED: internal static byte SelectableNative(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) +// DISCARDED: internal static void SetClipboardTextNative(byte* text) +// DISCARDED: internal static byte SetDragDropPayloadNative(byte* type, void* data, nuint sz, ImGuiCond cond) +// DISCARDED: internal static void SetTabItemClosedNative(byte* tabOrDockedWindowLabel) +// DISCARDED: internal static void SetTooltipNative(byte* fmt) +// DISCARDED: internal static void SetTooltipVNative(byte* fmt, nuint args) +// DISCARDED: internal static void SetWindowCollapsedNative(byte collapsed, ImGuiCond cond) +// DISCARDED: internal static void SetWindowCollapsedNative(byte* name, byte collapsed, ImGuiCond cond) +// DISCARDED: internal static void SetWindowFocusNative() +// DISCARDED: internal static void SetWindowFocusNative(byte* name) +// DISCARDED: internal static void SetWindowPosNative(Vector2 pos, ImGuiCond cond) +// DISCARDED: internal static void SetWindowPosNative(byte* name, Vector2 pos, ImGuiCond cond) +// DISCARDED: internal static void SetWindowSizeNative(Vector2 size, ImGuiCond cond) +// DISCARDED: internal static void SetWindowSizeNative(byte* name, Vector2 size, ImGuiCond cond) +// DISCARDED: internal static void ShowFontSelectorNative(byte* label) +// DISCARDED: internal static byte ShowStyleSelectorNative(byte* label) +// DISCARDED: internal static byte SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SliderScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte SmallButtonNative(byte* label) +// DISCARDED: internal static byte TabItemButtonNative(byte* label, ImGuiTabItemFlags flags) +// DISCARDED: internal static byte* TableGetColumnNameNative(int columnN) +// DISCARDED: TableGetColumnNameS +// DISCARDED: internal static void TableHeaderNative(byte* label) +// DISCARDED: internal static void TableSetupColumnNative(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) +// DISCARDED: internal static void TextNative(byte* fmt) +// DISCARDED: internal static void TextColoredNative(Vector4 col, byte* fmt) +// DISCARDED: internal static void TextColoredVNative(Vector4 col, byte* fmt, nuint args) +// DISCARDED: internal static void TextDisabledNative(byte* fmt) +// DISCARDED: internal static void TextDisabledVNative(byte* fmt, nuint args) +// DISCARDED: internal static void TextUnformattedNative(byte* text, byte* textEnd) +// DISCARDED: internal static void TextVNative(byte* fmt, nuint args) +// DISCARDED: internal static void TextWrappedNative(byte* fmt) +// DISCARDED: internal static void TextWrappedVNative(byte* fmt, nuint args) +// DISCARDED: internal static byte TreeNodeNative(byte* label) +// DISCARDED: internal static byte TreeNodeNative(byte* strId, byte* fmt) +// DISCARDED: internal static byte TreeNodeNative(void* ptrId, byte* fmt) +// DISCARDED: internal static byte TreeNodeExNative(byte* label, ImGuiTreeNodeFlags flags) +// DISCARDED: internal static byte TreeNodeExNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) +// DISCARDED: internal static byte TreeNodeExNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) +// DISCARDED: internal static byte TreeNodeExVNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) +// DISCARDED: internal static byte TreeNodeExVNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) +// DISCARDED: internal static byte TreeNodeVNative(byte* strId, byte* fmt, nuint args) +// DISCARDED: internal static byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args) +// DISCARDED: internal static void TreePushNative(byte* strId) +// DISCARDED: internal static void TreePushNative(void* ptrId) +// DISCARDED: internal static void ValueNative(byte* prefix, byte b) +// DISCARDED: internal static void ValueNative(byte* prefix, int v) +// DISCARDED: internal static void ValueNative(byte* prefix, uint v) +// DISCARDED: internal static void ValueNative(byte* prefix, float v, byte* floatFormat) +// DISCARDED: internal static byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static byte VSliderScalarNative(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs new file mode 100644 index 000000000..22386e992 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs @@ -0,0 +1,4831 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGuiNative +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2* ImVec2() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[0])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2* ImVec2(float x, float y) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[2])(x, y); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(Vector2* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[1])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(Vector4* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[4])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStyle* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[395])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiIO* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[412])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiInputTextCallbackData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[414])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiWindowClass* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[421])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPayload* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[423])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableColumnSortSpecs* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[429])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableSortSpecs* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[431])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiOnceUponAFrame* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[433])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTextFilter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[435])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTextRange* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[442])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTextBuffer* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[447])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStoragePair* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[458])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiListClipper* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[477])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImColor* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[483])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImDrawCmd* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[491])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImDrawListSplitter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[494])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[501])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImDrawData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[565])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImFontConfig* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[570])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImFontGlyphRangesBuilder* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[572])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImFontAtlasCustomRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[581])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImFontAtlas* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[584])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImFont* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[615])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiViewport* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[636])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPlatformIO* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[640])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPlatformMonitor* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[642])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPlatformImeData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[644])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImVec1* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[646])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImVec2Ih* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[647])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[648])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImDrawListSharedData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[649])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStyleMod* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[650])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiComboPreviewData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[651])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiMenuColumns* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[652])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[653])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPopupData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[654])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiNextWindowData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[655])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiNextItemData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[656])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiLastItemData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[657])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStackSizes* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[658])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiPtrOrIndex* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[659])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiInputEvent* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[660])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiListClipperData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[661])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiNavItemData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[662])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiOldColumnData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[663])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiOldColumns* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[664])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiDockContext* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[665])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiWindowSettings* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[666])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiSettingsHandler* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[667])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiMetricsConfig* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[668])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStackLevelInfo* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[669])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiStackTool* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[670])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiContextHook* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[671])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiContext* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[672])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTabItem* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[673])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTabBar* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[674])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableColumn* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[675])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableInstanceData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[676])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableTempData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[677])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableColumnSettings* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[678])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTableSettings* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[679])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector4* ImVec4() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[3])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector4* ImVec4(float x, float y, float z, float w) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[5])(x, y, z, w); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiContext* CreateContext(ImFontAtlas* sharedFontAtlas) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[6])(sharedFontAtlas); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DestroyContext(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[7])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiContext* GetCurrentContext() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[8])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCurrentContext(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[9])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiIO* GetIO() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[10])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStyle* GetStyle() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[11])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NewFrame() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[12])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndFrame() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[13])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Render() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[14])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawData* GetDrawData() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[15])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowDemoWindow(bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[16])(pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowMetricsWindow(bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[17])(pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowDebugLogWindow(bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[18])(pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowStackToolWindow(bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[19])(pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowAboutWindow(bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[20])(pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowStyleEditor(ImGuiStyle* reference) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[21])(reference); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ShowStyleSelector(byte* label) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[22])(label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowFontSelector(byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[23])(label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowUserGuide() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[24])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetVersion() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[25])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void StyleColorsDark(ImGuiStyle* dst) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[26])(dst); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void StyleColorsLight(ImGuiStyle* dst) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[27])(dst); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void StyleColorsClassic(ImGuiStyle* dst) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[28])(dst); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Begin(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[29])(name, pOpen, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Begin(ImGuiListClipper* self, int itemsCount, float itemsHeight) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[478])(self, itemsCount, itemsHeight); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void End() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[30])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void End(ImGuiListClipper* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[479])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginChild(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[31])(strId, size, border, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginChild(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[32])(id, size, border, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndChild() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[33])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowAppearing() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[34])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowCollapsed() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[35])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowFocused(ImGuiFocusedFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[36])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowHovered(ImGuiHoveredFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[37])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetWindowDrawList() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[38])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetWindowDpiScale() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[39])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWindowPos(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[40])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWindowSize(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[41])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetWindowWidth() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[42])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetWindowHeight() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[43])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewport* GetWindowViewport() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[44])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[45])(pos, cond, pivot); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[46])(size, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) + { + + ((delegate* unmanaged[Cdecl], void*, void>)ImGui.funcTable[47])(sizeMin, sizeMax, (delegate*)Utils.GetFunctionPointerForDelegate(customCallback), customCallbackData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowContentSize(Vector2 size) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[48])(size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowCollapsed(byte collapsed, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[49])(collapsed, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowFocus() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[50])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowBgAlpha(float alpha) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[51])(alpha); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowViewport(uint viewportId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[52])(viewportId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowPos(Vector2 pos, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[53])(pos, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowPos(byte* name, Vector2 pos, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[58])(name, pos, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowSize(Vector2 size, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[54])(size, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowSize(byte* name, Vector2 size, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[59])(name, size, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowCollapsed(byte collapsed, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[55])(collapsed, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowCollapsed(byte* name, byte collapsed, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[60])(name, collapsed, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowFocus() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[56])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowFocus(byte* name) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[61])(name); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowFontScale(float scale) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[57])(scale); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetContentRegionAvail(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[62])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetContentRegionMax(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[63])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWindowContentRegionMin(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[64])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWindowContentRegionMax(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[65])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetScrollX() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[66])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetScrollY() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[67])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollX(float scrollX) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[68])(scrollX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollY(float scrollY) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[69])(scrollY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetScrollMaxX() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[70])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetScrollMaxY() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[71])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollHereX(float centerXRatio) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[72])(centerXRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollHereY(float centerYRatio) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[73])(centerYRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollFromPosX(float localX, float centerXRatio) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[74])(localX, centerXRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollFromPosY(float localY, float centerYRatio) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[75])(localY, centerYRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushFont(ImFont* font) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[76])(font); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopFont() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[77])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushStyleColor(ImGuiCol idx, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[78])(idx, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushStyleColor(ImGuiCol idx, Vector4 col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[79])(idx, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopStyleColor(int count) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[80])(count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushStyleVar(ImGuiStyleVar idx, float val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[81])(idx, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[82])(idx, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopStyleVar(int count) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[83])(count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushAllowKeyboardFocus(byte allowKeyboardFocus) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[84])(allowKeyboardFocus); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopAllowKeyboardFocus() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[85])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushButtonRepeat(byte repeat) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[86])(repeat); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopButtonRepeat() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[87])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushItemWidth(float itemWidth) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[88])(itemWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopItemWidth() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[89])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextItemWidth(float itemWidth) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[90])(itemWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float CalcItemWidth() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[91])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushTextWrapPos(float wrapLocalPosX) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[92])(wrapLocalPosX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopTextWrapPos() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[93])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* GetFont() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[94])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetFontSize() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[95])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImTextureID GetFontTexIdWhitePixel() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[96])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetFontTexUvWhitePixel(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[97])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetColorU32(ImGuiCol idx, float alphaMul) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[98])(idx, alphaMul); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetColorU32(Vector4 col) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[99])(col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetColorU32(uint col) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[100])(col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector4* GetStyleColorVec4(ImGuiCol idx) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[101])(idx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Separator() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[102])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SameLine(float offsetFromStartX, float spacing) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[103])(offsetFromStartX, spacing); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NewLine() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[104])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Spacing() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[105])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Dummy(Vector2 size) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[106])(size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Indent(float indentW) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[107])(indentW); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Unindent(float indentW) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[108])(indentW); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginGroup() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[109])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndGroup() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[110])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetCursorPos(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[111])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetCursorPosX() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[112])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetCursorPosY() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[113])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCursorPos(Vector2 localPos) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[114])(localPos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCursorPosX(float localX) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[115])(localX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCursorPosY(float localY) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[116])(localY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetCursorStartPos(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[117])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetCursorScreenPos(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[118])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCursorScreenPos(Vector2 pos) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[119])(pos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AlignTextToFramePadding() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[120])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetTextLineHeight() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[121])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetTextLineHeightWithSpacing() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[122])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetFrameHeight() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[123])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetFrameHeightWithSpacing() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[124])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushID(byte* strId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[125])(strId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushID(byte* strIdBegin, byte* strIdEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[126])(strIdBegin, strIdEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushID(void* ptrId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[127])(ptrId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushID(int intId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[128])(intId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopID() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[129])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(byte* strId) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[130])(strId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(byte* strIdBegin, byte* strIdEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[131])(strIdBegin, strIdEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(void* ptrId) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[132])(ptrId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextUnformatted(byte* text, byte* textEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[133])(text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Text(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[134])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[135])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextColored(Vector4 col, byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[136])(col, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextColoredV(Vector4 col, byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[137])(col, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextDisabled(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[138])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextDisabledV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[139])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextWrapped(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[140])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextWrappedV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[141])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LabelText(byte* label, byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[142])(label, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LabelTextV(byte* label, byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[143])(label, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BulletText(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[144])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BulletTextV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[145])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Button(byte* label, Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[146])(label, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SmallButton(byte* label) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[147])(label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InvisibleButton(byte* strId, Vector2 size, ImGuiButtonFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[148])(strId, size, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ArrowButton(byte* strId, ImGuiDir dir) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[149])(strId, dir); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Checkbox(byte* label, bool* v) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[152])(label, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CheckboxFlags(byte* label, int* flags, int flagsValue) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[153])(label, flags, flagsValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CheckboxFlags(byte* label, uint* flags, uint flagsValue) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[154])(label, flags, flagsValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte RadioButton(byte* label, byte active) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[155])(label, active); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte RadioButton(byte* label, int* v, int vButton) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[156])(label, v, vButton); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ProgressBar(float fraction, Vector2 sizeArg, byte* overlay) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[157])(fraction, sizeArg, overlay); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Bullet() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[158])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginCombo(byte* label, byte* previewValue, ImGuiComboFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[159])(label, previewValue, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndCombo() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[160])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Combo(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[161])(label, currentItem, items, itemsCount, popupMaxHeightInItems); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[162])(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Combo(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + + return ((delegate* unmanaged[Cdecl], void*, int, int, bool>, void*, int, int, byte>)ImGui.funcTable[163])(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[164])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[165])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[166])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[167])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[168])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[169])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[170])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[171])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[172])(label, v, vSpeed, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[173])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[174])(label, dataType, pData, vSpeed, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[175])(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[176])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[177])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[178])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[179])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[180])(label, vRad, vDegreesMin, vDegreesMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[181])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[182])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[183])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[184])(label, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[185])(label, dataType, pData, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[186])(label, dataType, pData, components, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[187])(label, size, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[188])(label, size, v, vMin, vMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[189])(label, size, dataType, pData, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputFloat(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[190])(label, v, step, stepFast, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputFloat2(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[191])(label, v, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputFloat3(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[192])(label, v, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputFloat4(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[193])(label, v, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputInt(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[194])(label, v, step, stepFast, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputInt2(byte* label, int* v, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[195])(label, v, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputInt3(byte* label, int* v, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[196])(label, v, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputInt4(byte* label, int* v, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[197])(label, v, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputDouble(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[198])(label, v, step, stepFast, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[199])(label, dataType, pData, pStep, pStepFast, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[200])(label, dataType, pData, components, pStep, pStepFast, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ColorEdit3(byte* label, float* col, ImGuiColorEditFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[201])(label, col, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ColorEdit4(byte* label, float* col, ImGuiColorEditFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[202])(label, col, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ColorPicker3(byte* label, float* col, ImGuiColorEditFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[203])(label, col, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[204])(label, col, flags, refCol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[205])(descId, col, flags, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetColorEditOptions(ImGuiColorEditFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[206])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNode(byte* label) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[207])(label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNode(byte* strId, byte* fmt) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[208])(strId, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNode(void* ptrId, byte* fmt) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[209])(ptrId, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeV(byte* strId, byte* fmt, nuint args) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[210])(strId, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeV(void* ptrId, byte* fmt, nuint args) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[211])(ptrId, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeEx(byte* label, ImGuiTreeNodeFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[212])(label, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[213])(strId, flags, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[214])(ptrId, flags, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[215])(strId, flags, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[216])(ptrId, flags, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TreePush(byte* strId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[217])(strId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TreePush(void* ptrId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[218])(ptrId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TreePop() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[219])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetTreeNodeToLabelSpacing() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[220])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CollapsingHeader(byte* label, ImGuiTreeNodeFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[221])(label, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CollapsingHeader(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[222])(label, pVisible, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextItemOpen(byte isOpen, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[223])(isOpen, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Selectable(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[224])(label, selected, flags, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[225])(label, pSelected, flags, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginListBox(byte* label, Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[226])(label, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndListBox() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[227])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ListBox(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[228])(label, currentItem, items, itemsCount, heightInItems); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ListBox(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + + return ((delegate* unmanaged[Cdecl], void*, int, int, bool>, void*, int, int, byte>)ImGui.funcTable[229])(label, currentItem, itemsGetter, data, itemsCount, heightInItems); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[230])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PlotLines(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 graphSize) + { + + ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)ImGui.funcTable[231])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[232])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PlotHistogram(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 graphSize) + { + + ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)ImGui.funcTable[233])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Value(byte* prefix, byte b) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[234])(prefix, b); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Value(byte* prefix, int v) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[235])(prefix, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Value(byte* prefix, uint v) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[236])(prefix, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Value(byte* prefix, float v, byte* floatFormat) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[237])(prefix, v, floatFormat); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginMenuBar() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[238])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndMenuBar() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[239])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginMainMenuBar() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[240])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndMainMenuBar() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[241])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginMenu(byte* label, byte enabled) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[242])(label, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndMenu() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[243])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte MenuItem(byte* label, byte* shortcut, byte selected, byte enabled) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[244])(label, shortcut, selected, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte MenuItem(byte* label, byte* shortcut, bool* pSelected, byte enabled) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[245])(label, shortcut, pSelected, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginTooltip() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[246])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndTooltip() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[247])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetTooltip(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[248])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetTooltipV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[249])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopup(byte* strId, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[250])(strId, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopupModal(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[251])(name, pOpen, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndPopup() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[252])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void OpenPopup(byte* strId, ImGuiPopupFlags popupFlags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[253])(strId, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[254])(id, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void OpenPopupOnItemClick(byte* strId, ImGuiPopupFlags popupFlags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[255])(strId, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CloseCurrentPopup() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[256])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopupContextItem(byte* strId, ImGuiPopupFlags popupFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[257])(strId, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopupContextWindow(byte* strId, ImGuiPopupFlags popupFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[258])(strId, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopupContextVoid(byte* strId, ImGuiPopupFlags popupFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[259])(strId, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsPopupOpen(byte* strId, ImGuiPopupFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[260])(strId, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[261])(strId, column, flags, outerSize, innerWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndTable() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[262])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[263])(rowFlags, minRowHeight); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TableNextColumn() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[264])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TableSetColumnIndex(int columnN) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[265])(columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[266])(label, flags, initWidthOrWeight, userId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetupScrollFreeze(int cols, int rows) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[267])(cols, rows); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableHeadersRow() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[268])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableHeader(byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[269])(label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSortSpecs* TableGetSortSpecs() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[270])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int TableGetColumnCount() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[271])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int TableGetColumnIndex() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[272])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int TableGetRowIndex() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[273])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* TableGetColumnName(int columnN) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[274])(columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[275])(columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetColumnEnabled(int columnN, byte v) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[276])(columnN, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[277])(target, color, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Columns(int count, byte* id, byte border) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[278])(count, id, border); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NextColumn() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[279])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetColumnIndex() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[280])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetColumnWidth(int columnIndex) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[281])(columnIndex); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetColumnWidth(int columnIndex, float width) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[282])(columnIndex, width); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetColumnOffset(int columnIndex) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[283])(columnIndex); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetColumnOffset(int columnIndex, float offsetX) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[284])(columnIndex, offsetX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetColumnsCount() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[285])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginTabBar(byte* strId, ImGuiTabBarFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[286])(strId, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndTabBar() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[287])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginTabItem(byte* label, bool* pOpen, ImGuiTabItemFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[288])(label, pOpen, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndTabItem() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[289])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TabItemButton(byte* label, ImGuiTabItemFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[290])(label, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetTabItemClosed(byte* tabOrDockedWindowLabel) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[291])(tabOrDockedWindowLabel); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[292])(id, size, flags, windowClass); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockSpaceOverViewport(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[293])(viewport, flags, windowClass); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[294])(dockId, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowClass(ImGuiWindowClass* windowClass) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[295])(windowClass); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetWindowDockID() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[296])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowDocked() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[297])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogToTTY(int autoOpenDepth) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[298])(autoOpenDepth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogToFile(int autoOpenDepth, byte* filename) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[299])(autoOpenDepth, filename); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogToClipboard(int autoOpenDepth) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[300])(autoOpenDepth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogFinish() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[301])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogButtons() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[302])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogTextV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[303])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginDragDropSource(ImGuiDragDropFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[304])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SetDragDropPayload(byte* type, void* data, nuint sz, ImGuiCond cond) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[305])(type, data, sz, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndDragDropSource() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[306])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginDragDropTarget() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[307])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPayload* AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[308])(type, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndDragDropTarget() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[309])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPayload* GetDragDropPayload() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[310])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginDisabled(byte disabled) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[311])(disabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndDisabled() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[312])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushClipRect(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[502])(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopClipRect() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[314])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopClipRect(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[504])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetItemDefaultFocus() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[315])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetKeyboardFocusHere(int offset) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[316])(offset); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemHovered(ImGuiHoveredFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[317])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemActive() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[318])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemFocused() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[319])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemClicked(ImGuiMouseButton mouseButton) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[320])(mouseButton); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemVisible() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[321])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemEdited() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[322])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemActivated() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[323])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemDeactivated() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[324])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemDeactivatedAfterEdit() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[325])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemToggledOpen() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[326])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsAnyItemHovered() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[327])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsAnyItemActive() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[328])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsAnyItemFocused() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[329])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetItemRectMin(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[330])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetItemRectMax(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[331])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetItemRectSize(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[332])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetItemAllowOverlap() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[333])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewport* GetMainViewport() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[334])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetBackgroundDrawList() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[335])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[337])(viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetForegroundDrawList() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[336])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[338])(viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsRectVisible(Vector2 size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[339])(size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsRectVisible(Vector2 rectMin, Vector2 rectMax) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[340])(rectMin, rectMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double GetTime() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[341])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetFrameCount() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[342])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawListSharedData* GetDrawListSharedData() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[343])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetStyleColorName(ImGuiCol idx) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[344])(idx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetStateStorage(ImGuiStorage* storage) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[345])(storage); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStorage* GetStateStorage() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[346])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[347])(id, size, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndChildFrame() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[348])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[349])(pOut, text, textEnd, hideTextAfterDoubleHash, wrapWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[350])(pOut, input); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint ColorConvertFloat4ToU32(Vector4 input) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[351])(input); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[352])(r, g, b, outH, outS, outV); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[353])(h, s, v, outR, outG, outB); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsKeyDown(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[354])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsKeyPressed(ImGuiKey key, byte repeat) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[355])(key, repeat); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsKeyReleased(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[356])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[357])(key, repeatDelay, rate); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetKeyName(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[358])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextFrameWantCaptureKeyboard(byte wantCaptureKeyboard) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[359])(wantCaptureKeyboard); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseDown(ImGuiMouseButton button) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[360])(button); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseClicked(ImGuiMouseButton button, byte repeat) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[361])(button, repeat); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseReleased(ImGuiMouseButton button) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[362])(button); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseDoubleClicked(ImGuiMouseButton button) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[363])(button); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetMouseClickedCount(ImGuiMouseButton button) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[364])(button); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, byte clip) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[365])(rMin, rMax, clip); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMousePosValid(Vector2* mousePos) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[366])(mousePos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsAnyMouseDown() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[367])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetMousePos(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[368])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[369])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseDragging(ImGuiMouseButton button, float lockThreshold) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[370])(button, lockThreshold); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[371])(pOut, button, lockThreshold); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ResetMouseDragDelta(ImGuiMouseButton button) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[372])(button); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiMouseCursor GetMouseCursor() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[373])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetMouseCursor(ImGuiMouseCursor cursorType) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[374])(cursorType); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextFrameWantCaptureMouse(byte wantCaptureMouse) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[375])(wantCaptureMouse); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetClipboardText() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[376])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetClipboardText(byte* text) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[377])(text); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LoadIniSettingsFromDisk(byte* iniFilename) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[378])(iniFilename); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[379])(iniData, iniSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SaveIniSettingsToDisk(byte* iniFilename) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[380])(iniFilename); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* SaveIniSettingsToMemory(nuint* outIniSize) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[381])(outIniSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugTextEncoding(byte* text) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[382])(text); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) + { + + ((delegate* unmanaged[Cdecl], delegate*, void*, void>)ImGui.funcTable[384])((delegate*)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*)Utils.GetFunctionPointerForDelegate(freeFunc), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetAllocatorFunctions(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) + { + + ((delegate* unmanaged[Cdecl]*, delegate**, void**, void>)ImGui.funcTable[385])(pAllocFunc, pFreeFunc, pUserData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void* MemAlloc(nuint size) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[386])(size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void MemFree(void* ptr) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[387])(ptr); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPlatformIO* GetPlatformIO() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[388])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdatePlatformWindows() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[389])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[390])(platformRenderArg, rendererRenderArg); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DestroyPlatformWindows() + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[391])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewport* FindViewportByID(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[392])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewport* FindViewportByPlatformHandle(void* platformHandle) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[393])(platformHandle); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStyle* ImGuiStyle() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[394])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScaleAllSizes(ImGuiStyle* self, float scaleFactor) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[396])(self, scaleFactor); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddKeyEvent(ImGuiIO* self, ImGuiKey key, byte down) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[397])(self, key, down); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, byte down, float v) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[398])(self, key, down, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddMousePosEvent(ImGuiIO* self, float x, float y) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[399])(self, x, y); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddMouseButtonEvent(ImGuiIO* self, int button, byte down) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[400])(self, button, down); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddMouseWheelEvent(ImGuiIO* self, float whX, float whY) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[401])(self, whX, whY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddMouseViewportEvent(ImGuiIO* self, uint id) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[402])(self, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddFocusEvent(ImGuiIO* self, byte focused) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[403])(self, focused); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddInputCharacter(ImGuiIO* self, uint c) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[404])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddInputCharacterUTF16(ImGuiIO* self, ushort c) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[405])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddInputCharactersUTF8(ImGuiIO* self, byte* str) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[406])(self, str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetAppAcceptingEvents(ImGuiIO* self, byte acceptingEvents) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[408])(self, acceptingEvents); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearInputCharacters(ImGuiIO* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[409])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearInputKeys(ImGuiIO* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[410])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiIO* ImGuiIO() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[411])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiInputTextCallbackData* ImGuiInputTextCallbackData() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[413])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytesCount) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[415])(self, pos, bytesCount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void InsertChars(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[416])(self, pos, text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SelectAll(ImGuiInputTextCallbackData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[417])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearSelection(ImGuiInputTextCallbackData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[418])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte HasSelection(ImGuiInputTextCallbackData* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[419])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindowClass* ImGuiWindowClass() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[420])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPayload* ImGuiPayload() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[422])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImGuiPayload* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[424])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImGuiTextFilter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[439])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImGuiStorage* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[461])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImDrawListSplitter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[495])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImDrawData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[566])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImFontGlyphRangesBuilder* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[573])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImFontAtlas* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[594])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsDataType(ImGuiPayload* self, byte* type) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[425])(self, type); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsPreview(ImGuiPayload* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[426])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsDelivery(ImGuiPayload* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[427])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[428])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSortSpecs* ImGuiTableSortSpecs() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[430])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiOnceUponAFrame* ImGuiOnceUponAFrame() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[432])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTextFilter* ImGuiTextFilter(byte* defaultFilter) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[434])(defaultFilter); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Draw(ImGuiTextFilter* self, byte* label, float width) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[436])(self, label, width); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte PassFilter(ImGuiTextFilter* self, byte* text, byte* textEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[437])(self, text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Build(ImGuiTextFilter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[438])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Build(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[595])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsActive(ImGuiTextFilter* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[440])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTextRange* ImGuiTextRange() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[441])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTextRange* ImGuiTextRange(byte* b, byte* e) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[443])(b, e); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte empty(ImGuiTextRange* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[444])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte empty(ImGuiTextBuffer* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[451])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void split(ImGuiTextRange* self, byte separator, ImVector* output) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGui.funcTable[445])(self, separator, output); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTextBuffer* ImGuiTextBuffer() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[446])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* begin(ImGuiTextBuffer* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[448])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* end(ImGuiTextBuffer* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[449])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int size(ImGuiTextBuffer* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[450])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void clear(ImGuiTextBuffer* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[452])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void reserve(ImGuiTextBuffer* self, int capacity) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[453])(self, capacity); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* c_str(ImGuiTextBuffer* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[454])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void append(ImGuiTextBuffer* self, byte* str, byte* strEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[455])(self, str, strEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void appendfv(ImGuiTextBuffer* self, byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[456])(self, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStoragePair* ImGuiStoragePair(uint key, int valI) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[457])(key, valI); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStoragePair* ImGuiStoragePair(uint key, float valF) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[459])(key, valF); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStoragePair* ImGuiStoragePair(uint key, void* valP) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[460])(key, valP); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetInt(ImGuiStorage* self, uint key, int defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[462])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetInt(ImGuiStorage* self, uint key, int val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[463])(self, key, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetBool(ImGuiStorage* self, uint key, byte defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[464])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetBool(ImGuiStorage* self, uint key, byte val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[465])(self, key, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetFloat(ImGuiStorage* self, uint key, float defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[466])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetFloat(ImGuiStorage* self, uint key, float val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[467])(self, key, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void* GetVoidPtr(ImGuiStorage* self, uint key) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[468])(self, key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetVoidPtr(ImGuiStorage* self, uint key, void* val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[469])(self, key, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int* GetIntRef(ImGuiStorage* self, uint key, int defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[470])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool* GetBoolRef(ImGuiStorage* self, uint key, byte defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[471])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float* GetFloatRef(ImGuiStorage* self, uint key, float defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[472])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void** GetVoidPtrRef(ImGuiStorage* self, uint key, void* defaultVal) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[473])(self, key, defaultVal); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetAllInt(ImGuiStorage* self, int val) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[474])(self, val); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BuildSortByKey(ImGuiStorage* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[475])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiListClipper* ImGuiListClipper() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[476])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Step(ImGuiListClipper* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[480])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ForceDisplayRangeByIndices(ImGuiListClipper* self, int itemMin, int itemMax) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[481])(self, itemMin, itemMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImColor* ImColor() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[482])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImColor* ImColor(float r, float g, float b, float a) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[484])(r, g, b, a); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImColor* ImColor(Vector4 col) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[485])(col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImColor* ImColor(int r, int g, int b, int a) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[486])(r, g, b, a); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImColor* ImColor(uint rgba) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[487])(rgba); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetHSV(ImColor* self, float h, float s, float v, float a) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[488])(self, h, s, v, a); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void HSV(ImColor* pOut, float h, float s, float v, float a) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[489])(pOut, h, s, v, a); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawCmd* ImDrawCmd() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[490])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImTextureID GetTexID(ImDrawCmd* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[492])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawListSplitter* ImDrawListSplitter() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[493])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFreeMemory(ImDrawListSplitter* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[496])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Split(ImDrawListSplitter* self, ImDrawList* drawList, int count) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[497])(self, drawList, count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Merge(ImDrawListSplitter* self, ImDrawList* drawList) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[498])(self, drawList); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[499])(self, drawList, channelIdx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* ImDrawList(ImDrawListSharedData* sharedData) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[500])(sharedData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushClipRectFullScreen(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[503])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushTextureID(ImDrawList* self, ImTextureID textureId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[505])(self, textureId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopTextureID(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[506])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetClipRectMin(Vector2* pOut, ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[507])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetClipRectMax(Vector2* pOut, ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[508])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddLine(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[509])(self, p1, p2, col, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddRect(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[510])(self, pMin, pMax, col, rounding, flags, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddRectFilled(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[511])(self, pMin, pMax, col, rounding, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddRectFilledMultiColor(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[512])(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddQuad(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[513])(self, p1, p2, p3, p4, col, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddQuadFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[514])(self, p1, p2, p3, p4, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddTriangle(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[515])(self, p1, p2, p3, col, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddTriangleFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[516])(self, p1, p2, p3, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddCircle(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[517])(self, center, radius, col, numSegments, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddCircleFilled(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[518])(self, center, radius, col, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddNgon(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[519])(self, center, radius, col, numSegments, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddNgonFilled(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[520])(self, center, radius, col, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddText(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[521])(self, pos, col, textBegin, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddText(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[522])(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddText(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[577])(self, text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddPolyline(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[523])(self, points, numPoints, col, flags, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddConvexPolyFilled(ImDrawList* self, Vector2* points, int numPoints, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[524])(self, points, numPoints, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddBezierCubic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddBezierQuadratic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddImage(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddImageQuad(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddImageRounded(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathClear(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[530])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathLineTo(ImDrawList* self, Vector2 pos) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[531])(self, pos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathLineToMergeDuplicate(ImDrawList* self, Vector2 pos) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[532])(self, pos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathFillConvex(ImDrawList* self, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[533])(self, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathStroke(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[534])(self, col, flags, thickness); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathArcTo(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[535])(self, center, radius, aMin, aMax, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathArcToFast(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathBezierCubicCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[537])(self, p2, p3, p4, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathBezierQuadraticCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[538])(self, p2, p3, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PathRect(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[539])(self, rectMin, rectMax, rounding, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddCallback(ImDrawList* self, ImDrawCallback callback, void* callbackData) + { + + ((delegate* unmanaged[Cdecl], void*, void>)ImGui.funcTable[540])(self, (delegate*)Utils.GetFunctionPointerForDelegate(callback), callbackData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddDrawCmd(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[541])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* CloneOutput(ImDrawList* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[542])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ChannelsSplit(ImDrawList* self, int count) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[543])(self, count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ChannelsMerge(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[544])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ChannelsSetCurrent(ImDrawList* self, int n) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[545])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimReserve(ImDrawList* self, int idxCount, int vtxCount) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[546])(self, idxCount, vtxCount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimUnreserve(ImDrawList* self, int idxCount, int vtxCount) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[547])(self, idxCount, vtxCount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimRect(ImDrawList* self, Vector2 a, Vector2 b, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[548])(self, a, b, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimRectUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[549])(self, a, b, uvA, uvB, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimQuadUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimWriteVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[551])(self, pos, uv, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimWriteIdx(ImDrawList* self, ushort idx) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[552])(self, idx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PrimVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[553])(self, pos, uv, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _ResetForNewFrame(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[554])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _ClearFreeMemory(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[555])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _PopUnusedDrawCmd(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[556])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _TryMergeDrawCmds(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[557])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _OnChangedClipRect(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[558])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _OnChangedTextureID(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[559])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _OnChangedVtxOffset(ImDrawList* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[560])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int _CalcCircleAutoSegmentCount(ImDrawList* self, float radius) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[561])(self, radius); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _PathArcToFastEx(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void _PathArcToN(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[563])(self, center, radius, aMin, aMax, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawData* ImDrawData() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[564])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DeIndexAllBuffers(ImDrawData* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[567])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScaleClipRects(ImDrawData* self, Vector2 fbScale) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[568])(self, fbScale); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontConfig* ImFontConfig() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[569])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[571])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetBit(ImFontGlyphRangesBuilder* self, nuint n) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[574])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetBit(ImFontGlyphRangesBuilder* self, nuint n) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[575])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddChar(ImFontGlyphRangesBuilder* self, ushort c) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[576])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddRanges(ImFontGlyphRangesBuilder* self, ushort* ranges) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[578])(self, ranges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BuildRanges(ImFontGlyphRangesBuilder* self, ImVector* outRanges) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGui.funcTable[579])(self, outRanges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontAtlasCustomRect* ImFontAtlasCustomRect() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[580])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsPacked(ImFontAtlasCustomRect* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[582])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontAtlas* ImFontAtlas() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[583])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFont(ImFontAtlas* self, ImFontConfig* fontCfg) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[585])(self, fontCfg); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFontDefault(ImFontAtlas* self, ImFontConfig* fontCfg) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[586])(self, fontCfg); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFontFromFileTTF(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[587])(self, filename, sizePixels, fontCfg, glyphRanges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFontFromMemoryTTF(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[588])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFontFromMemoryCompressedTTF(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[589])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[590])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearInputData(ImFontAtlas* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[591])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearTexData(ImFontAtlas* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[592])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFonts(ImFontAtlas* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[593])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetTexDataAsAlpha8(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetTexDataAsRGBA32(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[597])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsBuilt(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[598])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetTexID(ImFontAtlas* self, int textureIndex, ImTextureID id) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[599])(self, textureIndex, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearTexID(ImFontAtlas* self, ImTextureID nullId) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[600])(self, nullId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesDefault(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[601])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesKorean(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[602])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesJapanese(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[603])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesChineseFull(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[604])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[605])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesCyrillic(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[606])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesThai(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[607])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* GetGlyphRangesVietnamese(ImFontAtlas* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[608])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int AddCustomRectRegular(ImFontAtlas* self, int width, int height) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[609])(self, width, height); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[610])(self, font, id, width, height, advanceX, offset); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontAtlasCustomRect* GetCustomRectByIndex(ImFontAtlas* self, int index) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[611])(self, index); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcCustomRectUV(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[612])(self, rect, outUvMin, outUvMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[613])(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* ImFont() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[614])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontGlyph* FindGlyph(ImFont* self, ushort c) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[616])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontGlyph* FindGlyphNoFallback(ImFont* self, ushort c) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[617])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetDistanceAdjustmentForPair(ImFont* self, ushort leftC, ushort rightC) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[618])(self, leftC, rightC); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetCharAdvance(ImFont* self, ushort c) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[619])(self, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsLoaded(ImFont* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[620])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetDebugName(ImFont* self) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[621])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcTextSizeA(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[622])(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* CalcWordWrapPositionA(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[623])(self, scale, text, textEnd, wrapWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderChar(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, ushort c) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[624])(self, drawList, size, pos, col, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderText(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[625])(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BuildLookupTable(ImFont* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[626])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearOutputData(ImFont* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[627])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GrowIndex(ImFont* self, int newSize) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[628])(self, newSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddGlyph(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) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[629])(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddRemapChar(ImFont* self, ushort dst, ushort src, byte overwriteDst) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[630])(self, dst, src, overwriteDst); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetGlyphVisible(ImFont* self, ushort c, byte visible) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[631])(self, c, visible); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsGlyphRangeUnused(ImFont* self, uint cBegin, uint cLast) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[632])(self, cBegin, cLast); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddKerningPair(ImFont* self, ushort leftC, ushort rightC, float distanceAdjustment) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[633])(self, leftC, rightC, distanceAdjustment); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetDistanceAdjustmentForPairFromHotData(ImFont* self, ushort leftC, ImFontGlyphHotData* rightCInfo) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[634])(self, leftC, rightCInfo); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewport* ImGuiViewport() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[635])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetCenter(Vector2* pOut, ImGuiViewport* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[637])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWorkCenter(Vector2* pOut, ImGuiViewport* self) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[638])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPlatformIO* ImGuiPlatformIO() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[639])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPlatformMonitor* ImGuiPlatformMonitor() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[641])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPlatformImeData* ImGuiPlatformImeData() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[643])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetKeyIndex(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[645])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogText(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[680])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void appendf(ImGuiTextBuffer* buffer, byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGui.funcTable[681])(buffer, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GETFLTMAX() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[682])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GETFLTMIN() + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[683])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVector* ImVectorImWcharCreate() + { + + return ((delegate* unmanaged[Cdecl]*>)ImGui.funcTable[684])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImVectorImWcharDestroy(ImVector* self) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGui.funcTable[685])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImVectorImWcharInit(ImVector* p) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGui.funcTable[686])(p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImVectorImWcharUnInit(ImVector* p) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGui.funcTable[687])(p); + + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs new file mode 100644 index 000000000..f853f5402 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs @@ -0,0 +1,20333 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +/* ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN + { + public uint Storage_0; + public uint Storage_1; + public uint Storage_2; + public uint Storage_3; + public uint Storage_4; + public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) + { + if (storage != default(uint*)) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span storage = default) + { + if (storage != default(Span)) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + } +} +/* ImBitVector.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitVector + { + public ImVector Storage; + public unsafe ImBitVector(ImVector storage = default) + { + Storage = storage; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImBitVectorPtr : IEquatable + { + public ImBitVectorPtr(ImBitVector* handle) { Handle = handle; } + public ImBitVector* Handle; + public bool IsNull => Handle == null; + public static ImBitVectorPtr Null => new ImBitVectorPtr(null); + public ImBitVector this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImBitVectorPtr(ImBitVector* handle) => new ImBitVectorPtr(handle); + public static implicit operator ImBitVector*(ImBitVectorPtr handle) => handle.Handle; + public static bool operator ==(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImBitVectorPtr left, ImBitVector* right) => left.Handle == right; + public static bool operator !=(ImBitVectorPtr left, ImBitVector* right) => left.Handle != right; + public bool Equals(ImBitVectorPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImBitVectorPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImBitVectorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector Storage => ref Unsafe.AsRef>(&Handle->Storage); + } +} +/* ImChunkStreamImGuiTableSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiTableSettings + { + public ImVector Buf; + public unsafe ImChunkStreamImGuiTableSettings(ImVector buf = default) + { + Buf = buf; + } + } +} +/* ImChunkStreamImGuiWindowSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiWindowSettings + { + public ImVector Buf; + public unsafe ImChunkStreamImGuiWindowSettings(ImVector buf = default) + { + Buf = buf; + } + } +} +/* ImColor.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImColor + { + public Vector4 Value; + public unsafe ImColor(Vector4 value = default) + { + Value = value; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImColorPtr : IEquatable + { + public ImColorPtr(ImColor* handle) { Handle = handle; } + public ImColor* Handle; + public bool IsNull => Handle == null; + public static ImColorPtr Null => new ImColorPtr(null); + public ImColor this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImColorPtr(ImColor* handle) => new ImColorPtr(handle); + public static implicit operator ImColor*(ImColorPtr handle) => handle.Handle; + public static bool operator ==(ImColorPtr left, ImColorPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImColorPtr left, ImColorPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImColorPtr left, ImColor* right) => left.Handle == right; + public static bool operator !=(ImColorPtr left, ImColor* right) => left.Handle != right; + public bool Equals(ImColorPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImColorPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImColorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref Vector4 Value => ref Unsafe.AsRef(&Handle->Value); + } +} +/* ImDrawChannel.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + public ImVector CmdBuffer; + public ImVector IdxBuffer; + public unsafe ImDrawChannel(ImVector cmdBuffer = default, ImVector idxBuffer = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawChannelPtr : IEquatable + { + public ImDrawChannelPtr(ImDrawChannel* handle) { Handle = handle; } + public ImDrawChannel* Handle; + public bool IsNull => Handle == null; + public static ImDrawChannelPtr Null => new ImDrawChannelPtr(null); + public ImDrawChannel this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawChannelPtr(ImDrawChannel* handle) => new ImDrawChannelPtr(handle); + public static implicit operator ImDrawChannel*(ImDrawChannelPtr handle) => handle.Handle; + public static bool operator ==(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle == right; + public static bool operator !=(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle != right; + public bool Equals(ImDrawChannelPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawChannelPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawChannelPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector CmdBuffer => ref Unsafe.AsRef>(&Handle->CmdBuffer); + public ref ImVector IdxBuffer => ref Unsafe.AsRef>(&Handle->IdxBuffer); + } +} +/* ImDrawCmd.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmd + { + public Vector4 ClipRect; + public ImTextureID TextureId; + public uint VtxOffset; + public uint IdxOffset; + public uint ElemCount; + public unsafe void* UserCallback; + public unsafe void* UserCallbackData; + public unsafe ImDrawCmd(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, ImDrawCallback userCallback = default, void* userCallbackData = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + IdxOffset = idxOffset; + ElemCount = elemCount; + UserCallback = (void*)Marshal.GetFunctionPointerForDelegate(userCallback); + UserCallbackData = userCallbackData; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawCmdPtr : IEquatable + { + public ImDrawCmdPtr(ImDrawCmd* handle) { Handle = handle; } + public ImDrawCmd* Handle; + public bool IsNull => Handle == null; + public static ImDrawCmdPtr Null => new ImDrawCmdPtr(null); + public ImDrawCmd this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawCmdPtr(ImDrawCmd* handle) => new ImDrawCmdPtr(handle); + public static implicit operator ImDrawCmd*(ImDrawCmdPtr handle) => handle.Handle; + public static bool operator ==(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle == right; + public static bool operator !=(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle != right; + public bool Equals(ImDrawCmdPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawCmdPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawCmdPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref Vector4 ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + public ref ImTextureID TextureId => ref Unsafe.AsRef(&Handle->TextureId); + public ref uint VtxOffset => ref Unsafe.AsRef(&Handle->VtxOffset); + public ref uint IdxOffset => ref Unsafe.AsRef(&Handle->IdxOffset); + public ref uint ElemCount => ref Unsafe.AsRef(&Handle->ElemCount); + public void* UserCallback { get => Handle->UserCallback; set => Handle->UserCallback = value; } + public void* UserCallbackData { get => Handle->UserCallbackData; set => Handle->UserCallbackData = value; } + } +} +/* ImDrawCmdHeader.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmdHeader + { + public Vector4 ClipRect; + public ImTextureID TextureId; + public uint VtxOffset; + public unsafe ImDrawCmdHeader(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + } + } +} +/* ImDrawData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawData + { + public byte Valid; + public int CmdListsCount; + public int TotalIdxCount; + public int TotalVtxCount; + public unsafe ImDrawList** CmdLists; + public Vector2 DisplayPos; + public Vector2 DisplaySize; + public Vector2 FramebufferScale; + public unsafe ImGuiViewport* OwnerViewport; + public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImDrawListPtrPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) + { + Valid = valid ? (byte)1 : (byte)0; + CmdListsCount = cmdListsCount; + TotalIdxCount = totalIdxCount; + TotalVtxCount = totalVtxCount; + CmdLists = cmdLists; + DisplayPos = displayPos; + DisplaySize = displaySize; + FramebufferScale = framebufferScale; + OwnerViewport = ownerViewport; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawDataPtr : IEquatable + { + public ImDrawDataPtr(ImDrawData* handle) { Handle = handle; } + public ImDrawData* Handle; + public bool IsNull => Handle == null; + public static ImDrawDataPtr Null => new ImDrawDataPtr(null); + public ImDrawData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawDataPtr(ImDrawData* handle) => new ImDrawDataPtr(handle); + public static implicit operator ImDrawData*(ImDrawDataPtr handle) => handle.Handle; + public static bool operator ==(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawDataPtr left, ImDrawData* right) => left.Handle == right; + public static bool operator !=(ImDrawDataPtr left, ImDrawData* right) => left.Handle != right; + public bool Equals(ImDrawDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref bool Valid => ref Unsafe.AsRef(&Handle->Valid); + public ref int CmdListsCount => ref Unsafe.AsRef(&Handle->CmdListsCount); + public ref int TotalIdxCount => ref Unsafe.AsRef(&Handle->TotalIdxCount); + public ref int TotalVtxCount => ref Unsafe.AsRef(&Handle->TotalVtxCount); + public ref ImDrawListPtrPtr CmdLists => ref Unsafe.AsRef(&Handle->CmdLists); + public ref Vector2 DisplayPos => ref Unsafe.AsRef(&Handle->DisplayPos); + public ref Vector2 DisplaySize => ref Unsafe.AsRef(&Handle->DisplaySize); + public ref Vector2 FramebufferScale => ref Unsafe.AsRef(&Handle->FramebufferScale); + public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef(&Handle->OwnerViewport); + } +} +/* ImDrawDataBuilder.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawDataBuilder + { + public ImVector Layers_0; + public ImVector Layers_1; + public unsafe ImDrawDataBuilder(ImVector* layers = default) + { + if (layers != default(ImVector*)) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + } + public unsafe ImDrawDataBuilder(Span> layers = default) + { + if (layers != default(Span>)) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + } + public unsafe Span> Layers + { + get + { + fixed (ImVector* p = &this.Layers_0) + { + return new Span>(p, 2); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawDataBuilderPtr : IEquatable + { + public ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) { Handle = handle; } + public ImDrawDataBuilder* Handle; + public bool IsNull => Handle == null; + public static ImDrawDataBuilderPtr Null => new ImDrawDataBuilderPtr(null); + public ImDrawDataBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) => new ImDrawDataBuilderPtr(handle); + public static implicit operator ImDrawDataBuilder*(ImDrawDataBuilderPtr handle) => handle.Handle; + public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle == right; + public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle != right; + public bool Equals(ImDrawDataBuilderPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawDataBuilderPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawDataBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public unsafe Span> Layers + { + get + { + return new Span>(&Handle->Layers_0, 2); + } + } + } +} +/* ImDrawList.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawList + { + public ImVector CmdBuffer; + public ImVector IdxBuffer; + public ImVector VtxBuffer; + public ImDrawListFlags Flags; + public uint VtxCurrentIdx; + public unsafe ImDrawListSharedData* Data; + public unsafe byte* OwnerName; + public unsafe ImDrawVert* VtxWritePtr; + public unsafe ushort* IdxWritePtr; + public ImVector ClipRectStack; + public ImVector TextureIdStack; + public ImVector Path; + public ImDrawCmdHeader CmdHeader; + public ImDrawListSplitter Splitter; + public float FringeScale; + public unsafe ImDrawList(ImVector cmdBuffer = default, ImVector idxBuffer = default, ImVector vtxBuffer = default, ImDrawListFlags flags = default, uint vtxCurrentIdx = default, ImDrawListSharedData* data = default, byte* ownerName = default, ImDrawVert* vtxWritePtr = default, ushort* idxWritePtr = default, ImVector clipRectStack = default, ImVector textureIdStack = default, ImVector path = default, ImDrawCmdHeader cmdHeader = default, ImDrawListSplitter splitter = default, float fringeScale = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + VtxBuffer = vtxBuffer; + Flags = flags; + VtxCurrentIdx = vtxCurrentIdx; + Data = data; + OwnerName = ownerName; + VtxWritePtr = vtxWritePtr; + IdxWritePtr = idxWritePtr; + ClipRectStack = clipRectStack; + TextureIdStack = textureIdStack; + Path = path; + CmdHeader = cmdHeader; + Splitter = splitter; + FringeScale = fringeScale; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawListPtr : IEquatable + { + public ImDrawListPtr(ImDrawList* handle) { Handle = handle; } + public ImDrawList* Handle; + public bool IsNull => Handle == null; + public static ImDrawListPtr Null => new ImDrawListPtr(null); + public ImDrawList this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawListPtr(ImDrawList* handle) => new ImDrawListPtr(handle); + public static implicit operator ImDrawList*(ImDrawListPtr handle) => handle.Handle; + public static bool operator ==(ImDrawListPtr left, ImDrawListPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawListPtr left, ImDrawListPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawListPtr left, ImDrawList* right) => left.Handle == right; + public static bool operator !=(ImDrawListPtr left, ImDrawList* right) => left.Handle != right; + public bool Equals(ImDrawListPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawListPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawListPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector CmdBuffer => ref Unsafe.AsRef>(&Handle->CmdBuffer); + public ref ImVector IdxBuffer => ref Unsafe.AsRef>(&Handle->IdxBuffer); + public ref ImVector VtxBuffer => ref Unsafe.AsRef>(&Handle->VtxBuffer); + public ref ImDrawListFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref uint VtxCurrentIdx => ref Unsafe.AsRef(&Handle->VtxCurrentIdx); + public ref ImDrawListSharedDataPtr Data => ref Unsafe.AsRef(&Handle->Data); + public byte* OwnerName { get => Handle->OwnerName; set => Handle->OwnerName = value; } + public ref ImDrawVertPtr VtxWritePtr => ref Unsafe.AsRef(&Handle->VtxWritePtr); + public ushort* IdxWritePtr { get => Handle->IdxWritePtr; set => Handle->IdxWritePtr = value; } + public ref ImVector ClipRectStack => ref Unsafe.AsRef>(&Handle->ClipRectStack); + public ref ImVector TextureIdStack => ref Unsafe.AsRef>(&Handle->TextureIdStack); + public ref ImVector Path => ref Unsafe.AsRef>(&Handle->Path); + public ref ImDrawCmdHeader CmdHeader => ref Unsafe.AsRef(&Handle->CmdHeader); + public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef(&Handle->Splitter); + public ref float FringeScale => ref Unsafe.AsRef(&Handle->FringeScale); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawListPtrPtr : IEquatable + { + public ImDrawListPtrPtr(ImDrawList** handle) { Handle = handle; } + public ImDrawList** Handle; + public bool IsNull => Handle == null; + public static ImDrawListPtrPtr Null => new ImDrawListPtrPtr(null); + public ImDrawList* this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawListPtrPtr(ImDrawList** handle) => new ImDrawListPtrPtr(handle); + public static implicit operator ImDrawList**(ImDrawListPtrPtr handle) => handle.Handle; + public static bool operator ==(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle == right; + public static bool operator !=(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle != right; + public bool Equals(ImDrawListPtrPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawListPtrPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawListPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImDrawListSharedData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSharedData + { + public ImTextureID TexIdCommon; + public Vector2 TexUvWhitePixel; + public unsafe ImFont* Font; + public float FontSize; + public float CurveTessellationTol; + public float CircleSegmentMaxError; + public Vector4 ClipRectFullscreen; + public ImDrawListFlags InitialFlags; + public Vector2 ArcFastVtx_0; + public Vector2 ArcFastVtx_1; + public Vector2 ArcFastVtx_2; + public Vector2 ArcFastVtx_3; + public Vector2 ArcFastVtx_4; + public Vector2 ArcFastVtx_5; + public Vector2 ArcFastVtx_6; + public Vector2 ArcFastVtx_7; + public Vector2 ArcFastVtx_8; + public Vector2 ArcFastVtx_9; + public Vector2 ArcFastVtx_10; + public Vector2 ArcFastVtx_11; + public Vector2 ArcFastVtx_12; + public Vector2 ArcFastVtx_13; + public Vector2 ArcFastVtx_14; + public Vector2 ArcFastVtx_15; + public Vector2 ArcFastVtx_16; + public Vector2 ArcFastVtx_17; + public Vector2 ArcFastVtx_18; + public Vector2 ArcFastVtx_19; + public Vector2 ArcFastVtx_20; + public Vector2 ArcFastVtx_21; + public Vector2 ArcFastVtx_22; + public Vector2 ArcFastVtx_23; + public Vector2 ArcFastVtx_24; + public Vector2 ArcFastVtx_25; + public Vector2 ArcFastVtx_26; + public Vector2 ArcFastVtx_27; + public Vector2 ArcFastVtx_28; + public Vector2 ArcFastVtx_29; + public Vector2 ArcFastVtx_30; + public Vector2 ArcFastVtx_31; + public Vector2 ArcFastVtx_32; + public Vector2 ArcFastVtx_33; + public Vector2 ArcFastVtx_34; + public Vector2 ArcFastVtx_35; + public Vector2 ArcFastVtx_36; + public Vector2 ArcFastVtx_37; + public Vector2 ArcFastVtx_38; + public Vector2 ArcFastVtx_39; + public Vector2 ArcFastVtx_40; + public Vector2 ArcFastVtx_41; + public Vector2 ArcFastVtx_42; + public Vector2 ArcFastVtx_43; + public Vector2 ArcFastVtx_44; + public Vector2 ArcFastVtx_45; + public Vector2 ArcFastVtx_46; + public Vector2 ArcFastVtx_47; + public float ArcFastRadiusCutoff; + public byte CircleSegmentCounts_0; + public byte CircleSegmentCounts_1; + public byte CircleSegmentCounts_2; + public byte CircleSegmentCounts_3; + public byte CircleSegmentCounts_4; + public byte CircleSegmentCounts_5; + public byte CircleSegmentCounts_6; + public byte CircleSegmentCounts_7; + public byte CircleSegmentCounts_8; + public byte CircleSegmentCounts_9; + public byte CircleSegmentCounts_10; + public byte CircleSegmentCounts_11; + public byte CircleSegmentCounts_12; + public byte CircleSegmentCounts_13; + public byte CircleSegmentCounts_14; + public byte CircleSegmentCounts_15; + public byte CircleSegmentCounts_16; + public byte CircleSegmentCounts_17; + public byte CircleSegmentCounts_18; + public byte CircleSegmentCounts_19; + public byte CircleSegmentCounts_20; + public byte CircleSegmentCounts_21; + public byte CircleSegmentCounts_22; + public byte CircleSegmentCounts_23; + public byte CircleSegmentCounts_24; + public byte CircleSegmentCounts_25; + public byte CircleSegmentCounts_26; + public byte CircleSegmentCounts_27; + public byte CircleSegmentCounts_28; + public byte CircleSegmentCounts_29; + public byte CircleSegmentCounts_30; + public byte CircleSegmentCounts_31; + public byte CircleSegmentCounts_32; + public byte CircleSegmentCounts_33; + public byte CircleSegmentCounts_34; + public byte CircleSegmentCounts_35; + public byte CircleSegmentCounts_36; + public byte CircleSegmentCounts_37; + public byte CircleSegmentCounts_38; + public byte CircleSegmentCounts_39; + public byte CircleSegmentCounts_40; + public byte CircleSegmentCounts_41; + public byte CircleSegmentCounts_42; + public byte CircleSegmentCounts_43; + public byte CircleSegmentCounts_44; + public byte CircleSegmentCounts_45; + public byte CircleSegmentCounts_46; + public byte CircleSegmentCounts_47; + public byte CircleSegmentCounts_48; + public byte CircleSegmentCounts_49; + public byte CircleSegmentCounts_50; + public byte CircleSegmentCounts_51; + public byte CircleSegmentCounts_52; + public byte CircleSegmentCounts_53; + public byte CircleSegmentCounts_54; + public byte CircleSegmentCounts_55; + public byte CircleSegmentCounts_56; + public byte CircleSegmentCounts_57; + public byte CircleSegmentCounts_58; + public byte CircleSegmentCounts_59; + public byte CircleSegmentCounts_60; + public byte CircleSegmentCounts_61; + public byte CircleSegmentCounts_62; + public byte CircleSegmentCounts_63; + public unsafe Vector4* TexUvLines; + public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexIdCommon = texIdCommon; + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + if (arcFastVtx != default(Vector2*)) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default(byte*)) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Span arcFastVtx = default, float arcFastRadiusCutoff = default, Span circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexIdCommon = texIdCommon; + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + if (arcFastVtx != default(Span)) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default(Span)) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + public unsafe Span ArcFastVtx + { + get + { + fixed (Vector2* p = &this.ArcFastVtx_0) + { + return new Span(p, 48); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawListSharedDataPtr : IEquatable + { + public ImDrawListSharedDataPtr(ImDrawListSharedData* handle) { Handle = handle; } + public ImDrawListSharedData* Handle; + public bool IsNull => Handle == null; + public static ImDrawListSharedDataPtr Null => new ImDrawListSharedDataPtr(null); + public ImDrawListSharedData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawListSharedDataPtr(ImDrawListSharedData* handle) => new ImDrawListSharedDataPtr(handle); + public static implicit operator ImDrawListSharedData*(ImDrawListSharedDataPtr handle) => handle.Handle; + public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle == right; + public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle != right; + public bool Equals(ImDrawListSharedDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawListSharedDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawListSharedDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImTextureID TexIdCommon => ref Unsafe.AsRef(&Handle->TexIdCommon); + public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef(&Handle->TexUvWhitePixel); + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + public ref float CurveTessellationTol => ref Unsafe.AsRef(&Handle->CurveTessellationTol); + public ref float CircleSegmentMaxError => ref Unsafe.AsRef(&Handle->CircleSegmentMaxError); + public ref Vector4 ClipRectFullscreen => ref Unsafe.AsRef(&Handle->ClipRectFullscreen); + public ref ImDrawListFlags InitialFlags => ref Unsafe.AsRef(&Handle->InitialFlags); + public unsafe Span ArcFastVtx + { + get + { + return new Span(&Handle->ArcFastVtx_0, 48); + } + } + public ref float ArcFastRadiusCutoff => ref Unsafe.AsRef(&Handle->ArcFastRadiusCutoff); + public unsafe Span CircleSegmentCounts + { + get + { + return new Span(&Handle->CircleSegmentCounts_0, 64); + } + } + public Vector4* TexUvLines { get => Handle->TexUvLines; set => Handle->TexUvLines = value; } + } +} +/* ImDrawListSplitter.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSplitter + { + public int Current; + public int Count; + public ImVector Channels; + public unsafe ImDrawListSplitter(int current = default, int count = default, ImVector channels = default) + { + Current = current; + Count = count; + Channels = channels; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawListSplitterPtr : IEquatable + { + public ImDrawListSplitterPtr(ImDrawListSplitter* handle) { Handle = handle; } + public ImDrawListSplitter* Handle; + public bool IsNull => Handle == null; + public static ImDrawListSplitterPtr Null => new ImDrawListSplitterPtr(null); + public ImDrawListSplitter this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* handle) => new ImDrawListSplitterPtr(handle); + public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr handle) => handle.Handle; + public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle == right; + public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle != right; + public bool Equals(ImDrawListSplitterPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawListSplitterPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawListSplitterPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int Current => ref Unsafe.AsRef(&Handle->Current); + public ref int Count => ref Unsafe.AsRef(&Handle->Count); + public ref ImVector Channels => ref Unsafe.AsRef>(&Handle->Channels); + } +} +/* ImDrawVert.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawVert + { + public Vector2 Pos; + public Vector2 Uv; + public uint Col; + public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) + { + Pos = pos; + Uv = uv; + Col = col; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImDrawVertPtr : IEquatable + { + public ImDrawVertPtr(ImDrawVert* handle) { Handle = handle; } + public ImDrawVert* Handle; + public bool IsNull => Handle == null; + public static ImDrawVertPtr Null => new ImDrawVertPtr(null); + public ImDrawVert this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImDrawVertPtr(ImDrawVert* handle) => new ImDrawVertPtr(handle); + public static implicit operator ImDrawVert*(ImDrawVertPtr handle) => handle.Handle; + public static bool operator ==(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImDrawVertPtr left, ImDrawVert* right) => left.Handle == right; + public static bool operator !=(ImDrawVertPtr left, ImDrawVert* right) => left.Handle != right; + public bool Equals(ImDrawVertPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImDrawVertPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImDrawVertPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + public ref Vector2 Uv => ref Unsafe.AsRef(&Handle->Uv); + public ref uint Col => ref Unsafe.AsRef(&Handle->Col); + } +} +/* ImFont.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFont + { + public ImVector IndexedHotData; + public ImVector FrequentKerningPairs; + public float FontSize; + public ImVector IndexLookup; + public ImVector Glyphs; + public unsafe ImFontGlyph* FallbackGlyph; + public unsafe ImFontGlyphHotData* FallbackHotData; + public ImVector KerningPairs; + public unsafe ImFontAtlas* ContainerAtlas; + public unsafe ImFontConfig* ConfigData; + public short ConfigDataCount; + public ushort FallbackChar; + public ushort EllipsisChar; + public ushort DotChar; + public byte DirtyLookupTables; + public float Scale; + public float Ascent; + public float Descent; + public int MetricsTotalSurface; + public byte Used4kPagesMap_0; + public byte Used4kPagesMap_1; + public unsafe ImFont(ImVector indexedHotData = default, ImVector frequentKerningPairs = default, float fontSize = default, ImVector indexLookup = default, ImVector glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) + { + IndexedHotData = indexedHotData; + FrequentKerningPairs = frequentKerningPairs; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + FallbackHotData = fallbackHotData; + KerningPairs = kerningPairs; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + DotChar = dotChar; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default(byte*)) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + public unsafe ImFont(ImVector indexedHotData = default, ImVector frequentKerningPairs = default, float fontSize = default, ImVector indexLookup = default, ImVector glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span used4KPagesMap = default) + { + IndexedHotData = indexedHotData; + FrequentKerningPairs = frequentKerningPairs; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + FallbackHotData = fallbackHotData; + KerningPairs = kerningPairs; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + DotChar = dotChar; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default(Span)) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontPtr : IEquatable + { + public ImFontPtr(ImFont* handle) { Handle = handle; } + public ImFont* Handle; + public bool IsNull => Handle == null; + public static ImFontPtr Null => new ImFontPtr(null); + public ImFont this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontPtr(ImFont* handle) => new ImFontPtr(handle); + public static implicit operator ImFont*(ImFontPtr handle) => handle.Handle; + public static bool operator ==(ImFontPtr left, ImFontPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontPtr left, ImFontPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontPtr left, ImFont* right) => left.Handle == right; + public static bool operator !=(ImFontPtr left, ImFont* right) => left.Handle != right; + public bool Equals(ImFontPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector IndexedHotData => ref Unsafe.AsRef>(&Handle->IndexedHotData); + public ref ImVector FrequentKerningPairs => ref Unsafe.AsRef>(&Handle->FrequentKerningPairs); + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + public ref ImVector IndexLookup => ref Unsafe.AsRef>(&Handle->IndexLookup); + public ref ImVector Glyphs => ref Unsafe.AsRef>(&Handle->Glyphs); + public ref ImFontGlyphPtr FallbackGlyph => ref Unsafe.AsRef(&Handle->FallbackGlyph); + public ref ImFontGlyphHotDataPtr FallbackHotData => ref Unsafe.AsRef(&Handle->FallbackHotData); + public ref ImVector KerningPairs => ref Unsafe.AsRef>(&Handle->KerningPairs); + public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef(&Handle->ContainerAtlas); + public ref ImFontConfigPtr ConfigData => ref Unsafe.AsRef(&Handle->ConfigData); + public ref short ConfigDataCount => ref Unsafe.AsRef(&Handle->ConfigDataCount); + public ref ushort FallbackChar => ref Unsafe.AsRef(&Handle->FallbackChar); + public ref ushort EllipsisChar => ref Unsafe.AsRef(&Handle->EllipsisChar); + public ref ushort DotChar => ref Unsafe.AsRef(&Handle->DotChar); + public ref bool DirtyLookupTables => ref Unsafe.AsRef(&Handle->DirtyLookupTables); + public ref float Scale => ref Unsafe.AsRef(&Handle->Scale); + public ref float Ascent => ref Unsafe.AsRef(&Handle->Ascent); + public ref float Descent => ref Unsafe.AsRef(&Handle->Descent); + public ref int MetricsTotalSurface => ref Unsafe.AsRef(&Handle->MetricsTotalSurface); + public unsafe Span Used4kPagesMap + { + get + { + return new Span(&Handle->Used4kPagesMap_0, 2); + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontPtrPtr : IEquatable + { + public ImFontPtrPtr(ImFont** handle) { Handle = handle; } + public ImFont** Handle; + public bool IsNull => Handle == null; + public static ImFontPtrPtr Null => new ImFontPtrPtr(null); + public ImFont* this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontPtrPtr(ImFont** handle) => new ImFontPtrPtr(handle); + public static implicit operator ImFont**(ImFontPtrPtr handle) => handle.Handle; + public static bool operator ==(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontPtrPtr left, ImFont** right) => left.Handle == right; + public static bool operator !=(ImFontPtrPtr left, ImFont** right) => left.Handle != right; + public bool Equals(ImFontPtrPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontPtrPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImFontAtlas.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlas + { + public ImFontAtlasFlags Flags; + public ImVector Textures; + public int TexDesiredWidth; + public int TexDesiredHeight; + public int TexGlyphPadding; + public byte Locked; + public byte TexReady; + public byte TexPixelsUseColors; + public int TexWidth; + public int TexHeight; + public Vector2 TexUvScale; + public Vector2 TexUvWhitePixel; + public ImVector Fonts; + public ImVector CustomRects; + public ImVector ConfigData; + public Vector4 TexUvLines_0; + public Vector4 TexUvLines_1; + public Vector4 TexUvLines_2; + public Vector4 TexUvLines_3; + public Vector4 TexUvLines_4; + public Vector4 TexUvLines_5; + public Vector4 TexUvLines_6; + public Vector4 TexUvLines_7; + public Vector4 TexUvLines_8; + public Vector4 TexUvLines_9; + public Vector4 TexUvLines_10; + public Vector4 TexUvLines_11; + public Vector4 TexUvLines_12; + public Vector4 TexUvLines_13; + public Vector4 TexUvLines_14; + public Vector4 TexUvLines_15; + public Vector4 TexUvLines_16; + public Vector4 TexUvLines_17; + public Vector4 TexUvLines_18; + public Vector4 TexUvLines_19; + public Vector4 TexUvLines_20; + public Vector4 TexUvLines_21; + public Vector4 TexUvLines_22; + public Vector4 TexUvLines_23; + public Vector4 TexUvLines_24; + public Vector4 TexUvLines_25; + public Vector4 TexUvLines_26; + public Vector4 TexUvLines_27; + public Vector4 TexUvLines_28; + public Vector4 TexUvLines_29; + public Vector4 TexUvLines_30; + public Vector4 TexUvLines_31; + public Vector4 TexUvLines_32; + public Vector4 TexUvLines_33; + public Vector4 TexUvLines_34; + public Vector4 TexUvLines_35; + public Vector4 TexUvLines_36; + public Vector4 TexUvLines_37; + public Vector4 TexUvLines_38; + public Vector4 TexUvLines_39; + public Vector4 TexUvLines_40; + public Vector4 TexUvLines_41; + public Vector4 TexUvLines_42; + public Vector4 TexUvLines_43; + public Vector4 TexUvLines_44; + public Vector4 TexUvLines_45; + public Vector4 TexUvLines_46; + public Vector4 TexUvLines_47; + public Vector4 TexUvLines_48; + public Vector4 TexUvLines_49; + public Vector4 TexUvLines_50; + public Vector4 TexUvLines_51; + public Vector4 TexUvLines_52; + public Vector4 TexUvLines_53; + public Vector4 TexUvLines_54; + public Vector4 TexUvLines_55; + public Vector4 TexUvLines_56; + public Vector4 TexUvLines_57; + public Vector4 TexUvLines_58; + public Vector4 TexUvLines_59; + public Vector4 TexUvLines_60; + public Vector4 TexUvLines_61; + public Vector4 TexUvLines_62; + public Vector4 TexUvLines_63; + public unsafe ImFontBuilderIO* FontBuilderIO; + public uint FontBuilderFlags; + public int TextureIndexCommon; + public int PackIdCommon; + public ImFontAtlasCustomRect RectMouseCursors; + public ImFontAtlasCustomRect RectLines; + public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector fonts = default, ImVector customRects = default, ImVector configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) + { + Flags = flags; + Textures = textures; + TexDesiredWidth = texDesiredWidth; + TexDesiredHeight = texDesiredHeight; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default(Vector4*)) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + TextureIndexCommon = textureIndexCommon; + PackIdCommon = packIdCommon; + RectMouseCursors = rectMouseCursors; + RectLines = rectLines; + } + public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector fonts = default, ImVector customRects = default, ImVector configData = default, Span texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) + { + Flags = flags; + Textures = textures; + TexDesiredWidth = texDesiredWidth; + TexDesiredHeight = texDesiredHeight; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default(Span)) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + TextureIndexCommon = textureIndexCommon; + PackIdCommon = packIdCommon; + RectMouseCursors = rectMouseCursors; + RectLines = rectLines; + } + public unsafe Span TexUvLines + { + get + { + fixed (Vector4* p = &this.TexUvLines_0) + { + return new Span(p, 64); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontAtlasPtr : IEquatable + { + public ImFontAtlasPtr(ImFontAtlas* handle) { Handle = handle; } + public ImFontAtlas* Handle; + public bool IsNull => Handle == null; + public static ImFontAtlasPtr Null => new ImFontAtlasPtr(null); + public ImFontAtlas this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontAtlasPtr(ImFontAtlas* handle) => new ImFontAtlasPtr(handle); + public static implicit operator ImFontAtlas*(ImFontAtlasPtr handle) => handle.Handle; + public static bool operator ==(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle == right; + public static bool operator !=(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle != right; + public bool Equals(ImFontAtlasPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontAtlasPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontAtlasPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref ImVector Textures => ref Unsafe.AsRef>(&Handle->Textures); + public ref int TexDesiredWidth => ref Unsafe.AsRef(&Handle->TexDesiredWidth); + public ref int TexDesiredHeight => ref Unsafe.AsRef(&Handle->TexDesiredHeight); + public ref int TexGlyphPadding => ref Unsafe.AsRef(&Handle->TexGlyphPadding); + public ref bool Locked => ref Unsafe.AsRef(&Handle->Locked); + public ref bool TexReady => ref Unsafe.AsRef(&Handle->TexReady); + public ref bool TexPixelsUseColors => ref Unsafe.AsRef(&Handle->TexPixelsUseColors); + public ref int TexWidth => ref Unsafe.AsRef(&Handle->TexWidth); + public ref int TexHeight => ref Unsafe.AsRef(&Handle->TexHeight); + public ref Vector2 TexUvScale => ref Unsafe.AsRef(&Handle->TexUvScale); + public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef(&Handle->TexUvWhitePixel); + public ref ImVector Fonts => ref Unsafe.AsRef>(&Handle->Fonts); + public ref ImVector CustomRects => ref Unsafe.AsRef>(&Handle->CustomRects); + public ref ImVector ConfigData => ref Unsafe.AsRef>(&Handle->ConfigData); + public unsafe Span TexUvLines + { + get + { + return new Span(&Handle->TexUvLines_0, 64); + } + } + public ref ImFontBuilderIOPtr FontBuilderIO => ref Unsafe.AsRef(&Handle->FontBuilderIO); + public ref uint FontBuilderFlags => ref Unsafe.AsRef(&Handle->FontBuilderFlags); + public ref int TextureIndexCommon => ref Unsafe.AsRef(&Handle->TextureIndexCommon); + public ref int PackIdCommon => ref Unsafe.AsRef(&Handle->PackIdCommon); + public ref ImFontAtlasCustomRect RectMouseCursors => ref Unsafe.AsRef(&Handle->RectMouseCursors); + public ref ImFontAtlasCustomRect RectLines => ref Unsafe.AsRef(&Handle->RectLines); + } +} +/* ImFontAtlasCustomRect.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlasCustomRect + { + public ushort Width; + public ushort Height; + public ushort X; + public ushort Y; + public uint RawBits0; + public float GlyphAdvanceX; + public Vector2 GlyphOffset; + public unsafe ImFont* Font; + public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint reserved = default, uint textureIndex = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFontPtr font = default) + { + Width = width; + Height = height; + X = x; + Y = y; + Reserved = reserved; + TextureIndex = textureIndex; + GlyphID = glyphId; + GlyphAdvanceX = glyphAdvanceX; + GlyphOffset = glyphOffset; + Font = font; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontAtlasCustomRectPtr : IEquatable + { + public ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) { Handle = handle; } + public ImFontAtlasCustomRect* Handle; + public bool IsNull => Handle == null; + public static ImFontAtlasCustomRectPtr Null => new ImFontAtlasCustomRectPtr(null); + public ImFontAtlasCustomRect this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) => new ImFontAtlasCustomRectPtr(handle); + public static implicit operator ImFontAtlasCustomRect*(ImFontAtlasCustomRectPtr handle) => handle.Handle; + public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle == right; + public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle != right; + public bool Equals(ImFontAtlasCustomRectPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontAtlasCustomRectPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontAtlasCustomRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ushort Width => ref Unsafe.AsRef(&Handle->Width); + public ref ushort Height => ref Unsafe.AsRef(&Handle->Height); + public ref ushort X => ref Unsafe.AsRef(&Handle->X); + public ref ushort Y => ref Unsafe.AsRef(&Handle->Y); + public uint Reserved { get => Handle->Reserved; set => Handle->Reserved = value; } + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } + public uint GlyphID { get => Handle->GlyphID; set => Handle->GlyphID = value; } + public ref float GlyphAdvanceX => ref Unsafe.AsRef(&Handle->GlyphAdvanceX); + public ref Vector2 GlyphOffset => ref Unsafe.AsRef(&Handle->GlyphOffset); + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + } +} +/* ImFontAtlasTexture.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlasTexture + { + public ImTextureID TexID; + public unsafe byte* TexPixelsAlpha8; + public unsafe uint* TexPixelsRGBA32; + public unsafe ImFontAtlasTexture(ImTextureID texId = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default) + { + TexID = texId; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontAtlasTexturePtr : IEquatable + { + public ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) { Handle = handle; } + public ImFontAtlasTexture* Handle; + public bool IsNull => Handle == null; + public static ImFontAtlasTexturePtr Null => new ImFontAtlasTexturePtr(null); + public ImFontAtlasTexture this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) => new ImFontAtlasTexturePtr(handle); + public static implicit operator ImFontAtlasTexture*(ImFontAtlasTexturePtr handle) => handle.Handle; + public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle == right; + public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle != right; + public bool Equals(ImFontAtlasTexturePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontAtlasTexturePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontAtlasTexturePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImTextureID TexID => ref Unsafe.AsRef(&Handle->TexID); + public byte* TexPixelsAlpha8 { get => Handle->TexPixelsAlpha8; set => Handle->TexPixelsAlpha8 = value; } + public uint* TexPixelsRGBA32 { get => Handle->TexPixelsRGBA32; set => Handle->TexPixelsRGBA32 = value; } + } +} +/* ImFontBuilderIO.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontBuilderIO + { + public unsafe void* FontBuilderBuild; + public unsafe ImFontBuilderIO(delegate* fontbuilderBuild = default) + { + FontBuilderBuild = (void*)fontbuilderBuild; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontBuilderIOPtr : IEquatable + { + public ImFontBuilderIOPtr(ImFontBuilderIO* handle) { Handle = handle; } + public ImFontBuilderIO* Handle; + public bool IsNull => Handle == null; + public static ImFontBuilderIOPtr Null => new ImFontBuilderIOPtr(null); + public ImFontBuilderIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontBuilderIOPtr(ImFontBuilderIO* handle) => new ImFontBuilderIOPtr(handle); + public static implicit operator ImFontBuilderIO*(ImFontBuilderIOPtr handle) => handle.Handle; + public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle == right; + public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle != right; + public bool Equals(ImFontBuilderIOPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontBuilderIOPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontBuilderIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public void* FontBuilderBuild { get => Handle->FontBuilderBuild; set => Handle->FontBuilderBuild = value; } + } +} +/* ImFontConfig.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontConfig + { + public unsafe void* FontData; + public int FontDataSize; + public byte FontDataOwnedByAtlas; + public int FontNo; + public float SizePixels; + public int OversampleH; + public int OversampleV; + public byte PixelSnapH; + public Vector2 GlyphExtraSpacing; + public Vector2 GlyphOffset; + public unsafe ushort* GlyphRanges; + public float GlyphMinAdvanceX; + public float GlyphMaxAdvanceX; + public byte MergeMode; + public uint FontBuilderFlags; + public float RasterizerMultiply; + public float RasterizerGamma; + public ushort EllipsisChar; + public byte Name_0; + public byte Name_1; + public byte Name_2; + public byte Name_3; + public byte Name_4; + public byte Name_5; + public byte Name_6; + public byte Name_7; + public byte Name_8; + public byte Name_9; + public byte Name_10; + public byte Name_11; + public byte Name_12; + public byte Name_13; + public byte Name_14; + public byte Name_15; + public byte Name_16; + public byte Name_17; + public byte Name_18; + public byte Name_19; + public byte Name_20; + public byte Name_21; + public byte Name_22; + public byte Name_23; + public byte Name_24; + public byte Name_25; + public byte Name_26; + public byte Name_27; + public byte Name_28; + public byte Name_29; + public byte Name_30; + public byte Name_31; + public byte Name_32; + public byte Name_33; + public byte Name_34; + public byte Name_35; + public byte Name_36; + public byte Name_37; + public byte Name_38; + public byte Name_39; + public unsafe ImFont* DstFont; + public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, byte* name = default, ImFontPtr dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + RasterizerGamma = rasterizerGamma; + EllipsisChar = ellipsisChar; + if (name != default(byte*)) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, Span name = default, ImFontPtr dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + RasterizerGamma = rasterizerGamma; + EllipsisChar = ellipsisChar; + if (name != default(Span)) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontConfigPtr : IEquatable + { + public ImFontConfigPtr(ImFontConfig* handle) { Handle = handle; } + public ImFontConfig* Handle; + public bool IsNull => Handle == null; + public static ImFontConfigPtr Null => new ImFontConfigPtr(null); + public ImFontConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontConfigPtr(ImFontConfig* handle) => new ImFontConfigPtr(handle); + public static implicit operator ImFontConfig*(ImFontConfigPtr handle) => handle.Handle; + public static bool operator ==(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontConfigPtr left, ImFontConfig* right) => left.Handle == right; + public static bool operator !=(ImFontConfigPtr left, ImFontConfig* right) => left.Handle != right; + public bool Equals(ImFontConfigPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontConfigPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public void* FontData { get => Handle->FontData; set => Handle->FontData = value; } + public ref int FontDataSize => ref Unsafe.AsRef(&Handle->FontDataSize); + public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef(&Handle->FontDataOwnedByAtlas); + public ref int FontNo => ref Unsafe.AsRef(&Handle->FontNo); + public ref float SizePixels => ref Unsafe.AsRef(&Handle->SizePixels); + public ref int OversampleH => ref Unsafe.AsRef(&Handle->OversampleH); + public ref int OversampleV => ref Unsafe.AsRef(&Handle->OversampleV); + public ref bool PixelSnapH => ref Unsafe.AsRef(&Handle->PixelSnapH); + public ref Vector2 GlyphExtraSpacing => ref Unsafe.AsRef(&Handle->GlyphExtraSpacing); + public ref Vector2 GlyphOffset => ref Unsafe.AsRef(&Handle->GlyphOffset); + public ushort* GlyphRanges { get => Handle->GlyphRanges; set => Handle->GlyphRanges = value; } + public ref float GlyphMinAdvanceX => ref Unsafe.AsRef(&Handle->GlyphMinAdvanceX); + public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef(&Handle->GlyphMaxAdvanceX); + public ref bool MergeMode => ref Unsafe.AsRef(&Handle->MergeMode); + public ref uint FontBuilderFlags => ref Unsafe.AsRef(&Handle->FontBuilderFlags); + public ref float RasterizerMultiply => ref Unsafe.AsRef(&Handle->RasterizerMultiply); + public ref float RasterizerGamma => ref Unsafe.AsRef(&Handle->RasterizerGamma); + public ref ushort EllipsisChar => ref Unsafe.AsRef(&Handle->EllipsisChar); + public unsafe Span Name + { + get + { + return new Span(&Handle->Name_0, 40); + } + } + public ref ImFontPtr DstFont => ref Unsafe.AsRef(&Handle->DstFont); + } +} +/* ImFontGlyph.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyph + { + public uint RawBits0; + public float AdvanceX; + public float X0; + public float Y0; + public float X1; + public float Y1; + public float U0; + public float V0; + public float U1; + public float V1; + public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint textureIndex = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) + { + Colored = colored; + Visible = visible; + TextureIndex = textureIndex; + Codepoint = codepoint; + AdvanceX = advanceX; + X0 = x0; + Y0 = y0; + X1 = x1; + Y1 = y1; + U0 = u0; + V0 = v0; + U1 = u1; + V1 = v1; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontGlyphPtr : IEquatable + { + public ImFontGlyphPtr(ImFontGlyph* handle) { Handle = handle; } + public ImFontGlyph* Handle; + public bool IsNull => Handle == null; + public static ImFontGlyphPtr Null => new ImFontGlyphPtr(null); + public ImFontGlyph this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontGlyphPtr(ImFontGlyph* handle) => new ImFontGlyphPtr(handle); + public static implicit operator ImFontGlyph*(ImFontGlyphPtr handle) => handle.Handle; + public static bool operator ==(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle == right; + public static bool operator !=(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle != right; + public bool Equals(ImFontGlyphPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontGlyphPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontGlyphPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public uint Colored { get => Handle->Colored; set => Handle->Colored = value; } + public uint Visible { get => Handle->Visible; set => Handle->Visible = value; } + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } + public uint Codepoint { get => Handle->Codepoint; set => Handle->Codepoint = value; } + public ref float AdvanceX => ref Unsafe.AsRef(&Handle->AdvanceX); + public ref float X0 => ref Unsafe.AsRef(&Handle->X0); + public ref float Y0 => ref Unsafe.AsRef(&Handle->Y0); + public ref float X1 => ref Unsafe.AsRef(&Handle->X1); + public ref float Y1 => ref Unsafe.AsRef(&Handle->Y1); + public ref float U0 => ref Unsafe.AsRef(&Handle->U0); + public ref float V0 => ref Unsafe.AsRef(&Handle->V0); + public ref float U1 => ref Unsafe.AsRef(&Handle->U1); + public ref float V1 => ref Unsafe.AsRef(&Handle->V1); + } +} +/* ImFontGlyphHotData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyphHotData + { + public float AdvanceX; + public float OccupiedWidth; + public uint RawBits0; + public unsafe ImFontGlyphHotData(float advanceX = default, float occupiedWidth = default, uint kerningPairUseBisect = default, uint kerningPairOffset = default, uint kerningPairCount = default) + { + AdvanceX = advanceX; + OccupiedWidth = occupiedWidth; + KerningPairUseBisect = kerningPairUseBisect; + KerningPairOffset = kerningPairOffset; + KerningPairCount = kerningPairCount; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontGlyphHotDataPtr : IEquatable + { + public ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) { Handle = handle; } + public ImFontGlyphHotData* Handle; + public bool IsNull => Handle == null; + public static ImFontGlyphHotDataPtr Null => new ImFontGlyphHotDataPtr(null); + public ImFontGlyphHotData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) => new ImFontGlyphHotDataPtr(handle); + public static implicit operator ImFontGlyphHotData*(ImFontGlyphHotDataPtr handle) => handle.Handle; + public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle == right; + public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle != right; + public bool Equals(ImFontGlyphHotDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontGlyphHotDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontGlyphHotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float AdvanceX => ref Unsafe.AsRef(&Handle->AdvanceX); + public ref float OccupiedWidth => ref Unsafe.AsRef(&Handle->OccupiedWidth); + public uint KerningPairUseBisect { get => Handle->KerningPairUseBisect; set => Handle->KerningPairUseBisect = value; } + public uint KerningPairOffset { get => Handle->KerningPairOffset; set => Handle->KerningPairOffset = value; } + public uint KerningPairCount { get => Handle->KerningPairCount; set => Handle->KerningPairCount = value; } + } +} +/* ImFontGlyphRangesBuilder.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyphRangesBuilder + { + public ImVector UsedChars; + public unsafe ImFontGlyphRangesBuilder(ImVector usedChars = default) + { + UsedChars = usedChars; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontGlyphRangesBuilderPtr : IEquatable + { + public ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) { Handle = handle; } + public ImFontGlyphRangesBuilder* Handle; + public bool IsNull => Handle == null; + public static ImFontGlyphRangesBuilderPtr Null => new ImFontGlyphRangesBuilderPtr(null); + public ImFontGlyphRangesBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) => new ImFontGlyphRangesBuilderPtr(handle); + public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr handle) => handle.Handle; + public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle == right; + public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle != right; + public bool Equals(ImFontGlyphRangesBuilderPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontGlyphRangesBuilderPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontGlyphRangesBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector UsedChars => ref Unsafe.AsRef>(&Handle->UsedChars); + } +} +/* ImFontKerningPair.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontKerningPair + { + public ushort Left; + public ushort Right; + public float AdvanceXAdjustment; + public unsafe ImFontKerningPair(ushort left = default, ushort right = default, float advanceXAdjustment = default) + { + Left = left; + Right = right; + AdvanceXAdjustment = advanceXAdjustment; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImFontKerningPairPtr : IEquatable + { + public ImFontKerningPairPtr(ImFontKerningPair* handle) { Handle = handle; } + public ImFontKerningPair* Handle; + public bool IsNull => Handle == null; + public static ImFontKerningPairPtr Null => new ImFontKerningPairPtr(null); + public ImFontKerningPair this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImFontKerningPairPtr(ImFontKerningPair* handle) => new ImFontKerningPairPtr(handle); + public static implicit operator ImFontKerningPair*(ImFontKerningPairPtr handle) => handle.Handle; + public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle == right; + public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle != right; + public bool Equals(ImFontKerningPairPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImFontKerningPairPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImFontKerningPairPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ushort Left => ref Unsafe.AsRef(&Handle->Left); + public ref ushort Right => ref Unsafe.AsRef(&Handle->Right); + public ref float AdvanceXAdjustment => ref Unsafe.AsRef(&Handle->AdvanceXAdjustment); + } +} +/* ImGuiColorMod.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiColorMod + { + public ImGuiCol Col; + public Vector4 BackupValue; + public unsafe ImGuiColorMod(ImGuiCol col = default, Vector4 backupValue = default) + { + Col = col; + BackupValue = backupValue; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiColorModPtr : IEquatable + { + public ImGuiColorModPtr(ImGuiColorMod* handle) { Handle = handle; } + public ImGuiColorMod* Handle; + public bool IsNull => Handle == null; + public static ImGuiColorModPtr Null => new ImGuiColorModPtr(null); + public ImGuiColorMod this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiColorModPtr(ImGuiColorMod* handle) => new ImGuiColorModPtr(handle); + public static implicit operator ImGuiColorMod*(ImGuiColorModPtr handle) => handle.Handle; + public static bool operator ==(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle == right; + public static bool operator !=(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle != right; + public bool Equals(ImGuiColorModPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiColorModPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiColorModPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiCol Col => ref Unsafe.AsRef(&Handle->Col); + public ref Vector4 BackupValue => ref Unsafe.AsRef(&Handle->BackupValue); + } +} +/* ImGuiComboPreviewData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiComboPreviewData + { + public ImRect PreviewRect; + public Vector2 BackupCursorPos; + public Vector2 BackupCursorMaxPos; + public Vector2 BackupCursorPosPrevLine; + public float BackupPrevLineTextBaseOffset; + public ImGuiLayoutType BackupLayout; + public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, ImGuiLayoutType backupLayout = default) + { + PreviewRect = previewRect; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; + BackupLayout = backupLayout; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiComboPreviewDataPtr : IEquatable + { + public ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) { Handle = handle; } + public ImGuiComboPreviewData* Handle; + public bool IsNull => Handle == null; + public static ImGuiComboPreviewDataPtr Null => new ImGuiComboPreviewDataPtr(null); + public ImGuiComboPreviewData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) => new ImGuiComboPreviewDataPtr(handle); + public static implicit operator ImGuiComboPreviewData*(ImGuiComboPreviewDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle == right; + public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle != right; + public bool Equals(ImGuiComboPreviewDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiComboPreviewDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiComboPreviewDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImRect PreviewRect => ref Unsafe.AsRef(&Handle->PreviewRect); + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef(&Handle->BackupCursorMaxPos); + public ref Vector2 BackupCursorPosPrevLine => ref Unsafe.AsRef(&Handle->BackupCursorPosPrevLine); + public ref float BackupPrevLineTextBaseOffset => ref Unsafe.AsRef(&Handle->BackupPrevLineTextBaseOffset); + public ref ImGuiLayoutType BackupLayout => ref Unsafe.AsRef(&Handle->BackupLayout); + } +} +/* ImGuiContext.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContext + { + public byte Initialized; + public byte FontAtlasOwnedByContext; + public ImGuiIO IO; + public ImGuiPlatformIO PlatformIO; + public ImVector InputEventsQueue; + public ImVector InputEventsTrail; + public ImGuiStyle Style; + public ImGuiConfigFlags ConfigFlagsCurrFrame; + public ImGuiConfigFlags ConfigFlagsLastFrame; + public unsafe ImFont* Font; + public float FontSize; + public float FontBaseSize; + public ImDrawListSharedData DrawListSharedData; + public double Time; + public int FrameCount; + public int FrameCountEnded; + public int FrameCountPlatformEnded; + public int FrameCountRendered; + public byte WithinFrameScope; + public byte WithinFrameScopeWithImplicitWindow; + public byte WithinEndChild; + public byte GcCompactAll; + public byte TestEngineHookItems; + public unsafe void* TestEngine; + public ImVector Windows; + public ImVector WindowsFocusOrder; + public ImVector WindowsTempSortBuffer; + public ImVector CurrentWindowStack; + public ImGuiStorage WindowsById; + public int WindowsActiveCount; + public Vector2 WindowsHoverPadding; + public unsafe ImGuiWindow* CurrentWindow; + public unsafe ImGuiWindow* HoveredWindow; + public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; + public unsafe ImGuiDockNode* HoveredDockNode; + public unsafe ImGuiWindow* MovingWindow; + public unsafe ImGuiWindow* WheelingWindow; + public Vector2 WheelingWindowRefMousePos; + public float WheelingWindowTimer; + public uint DebugHookIdInfo; + public uint HoveredId; + public uint HoveredIdPreviousFrame; + public byte HoveredIdAllowOverlap; + public byte HoveredIdUsingMouseWheel; + public byte HoveredIdPreviousFrameUsingMouseWheel; + public byte HoveredIdDisabled; + public float HoveredIdTimer; + public float HoveredIdNotActiveTimer; + public uint ActiveId; + public uint ActiveIdIsAlive; + public float ActiveIdTimer; + public byte ActiveIdIsJustActivated; + public byte ActiveIdAllowOverlap; + public byte ActiveIdNoClearOnFocusLoss; + public byte ActiveIdHasBeenPressedBefore; + public byte ActiveIdHasBeenEditedBefore; + public byte ActiveIdHasBeenEditedThisFrame; + public Vector2 ActiveIdClickOffset; + public unsafe ImGuiWindow* ActiveIdWindow; + public ImGuiInputSource ActiveIdSource; + public int ActiveIdMouseButton; + public uint ActiveIdPreviousFrame; + public byte ActiveIdPreviousFrameIsAlive; + public byte ActiveIdPreviousFrameHasBeenEditedBefore; + public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; + public uint LastActiveId; + public float LastActiveIdTimer; + public byte ActiveIdUsingMouseWheel; + public uint ActiveIdUsingNavDirMask; + public uint ActiveIdUsingNavInputMask; + public nuint ActiveIdUsingKeyInputMask; + public ImGuiItemFlags CurrentItemFlags; + public ImGuiNextItemData NextItemData; + public ImGuiLastItemData LastItemData; + public ImGuiNextWindowData NextWindowData; + public ImVector ColorStack; + public ImVector StyleVarStack; + public ImVector FontStack; + public ImVector FocusScopeStack; + public ImVector ItemFlagsStack; + public ImVector GroupStack; + public ImVector OpenPopupStack; + public ImVector BeginPopupStack; + public int BeginMenuCount; + public ImVector Viewports; + public float CurrentDpiScale; + public unsafe ImGuiViewportP* CurrentViewport; + public unsafe ImGuiViewportP* MouseViewport; + public unsafe ImGuiViewportP* MouseLastHoveredViewport; + public uint PlatformLastFocusedViewportId; + public ImGuiPlatformMonitor FallbackMonitor; + public int ViewportFrontMostStampCount; + public unsafe ImGuiWindow* NavWindow; + public uint NavId; + public uint NavFocusScopeId; + public uint NavActivateId; + public uint NavActivateDownId; + public uint NavActivatePressedId; + public uint NavActivateInputId; + public ImGuiActivateFlags NavActivateFlags; + public uint NavJustMovedToId; + public uint NavJustMovedToFocusScopeId; + public ImGuiModFlags NavJustMovedToKeyMods; + public uint NavNextActivateId; + public ImGuiActivateFlags NavNextActivateFlags; + public ImGuiInputSource NavInputSource; + public ImGuiNavLayer NavLayer; + public byte NavIdIsAlive; + public byte NavMousePosDirty; + public byte NavDisableHighlight; + public byte NavDisableMouseHover; + public byte NavAnyRequest; + public byte NavInitRequest; + public byte NavInitRequestFromMove; + public uint NavInitResultId; + public ImRect NavInitResultRectRel; + public byte NavMoveSubmitted; + public byte NavMoveScoringItems; + public byte NavMoveForwardToNextFrame; + public ImGuiNavMoveFlags NavMoveFlags; + public ImGuiScrollFlags NavMoveScrollFlags; + public ImGuiModFlags NavMoveKeyMods; + public ImGuiDir NavMoveDir; + public ImGuiDir NavMoveDirForDebug; + public ImGuiDir NavMoveClipDir; + public ImRect NavScoringRect; + public ImRect NavScoringNoClipRect; + public int NavScoringDebugCount; + public int NavTabbingDir; + public int NavTabbingCounter; + public ImGuiNavItemData NavMoveResultLocal; + public ImGuiNavItemData NavMoveResultLocalVisible; + public ImGuiNavItemData NavMoveResultOther; + public ImGuiNavItemData NavTabbingResultFirst; + public unsafe ImGuiWindow* NavWindowingTarget; + public unsafe ImGuiWindow* NavWindowingTargetAnim; + public unsafe ImGuiWindow* NavWindowingListWindow; + public float NavWindowingTimer; + public float NavWindowingHighlightAlpha; + public byte NavWindowingToggleLayer; + public float DimBgRatio; + public ImGuiMouseCursor MouseCursor; + public byte DragDropActive; + public byte DragDropWithinSource; + public byte DragDropWithinTarget; + public ImGuiDragDropFlags DragDropSourceFlags; + public int DragDropSourceFrameCount; + public int DragDropMouseButton; + public ImGuiPayload DragDropPayload; + public ImRect DragDropTargetRect; + public uint DragDropTargetId; + public ImGuiDragDropFlags DragDropAcceptFlags; + public float DragDropAcceptIdCurrRectSurface; + public uint DragDropAcceptIdCurr; + public uint DragDropAcceptIdPrev; + public int DragDropAcceptFrameCount; + public uint DragDropHoldJustPressedId; + public ImVector DragDropPayloadBufHeap; + public byte DragDropPayloadBufLocal_0; + public byte DragDropPayloadBufLocal_1; + public byte DragDropPayloadBufLocal_2; + public byte DragDropPayloadBufLocal_3; + public byte DragDropPayloadBufLocal_4; + public byte DragDropPayloadBufLocal_5; + public byte DragDropPayloadBufLocal_6; + public byte DragDropPayloadBufLocal_7; + public byte DragDropPayloadBufLocal_8; + public byte DragDropPayloadBufLocal_9; + public byte DragDropPayloadBufLocal_10; + public byte DragDropPayloadBufLocal_11; + public byte DragDropPayloadBufLocal_12; + public byte DragDropPayloadBufLocal_13; + public byte DragDropPayloadBufLocal_14; + public byte DragDropPayloadBufLocal_15; + public int ClipperTempDataStacked; + public ImVector ClipperTempData; + public unsafe ImGuiTable* CurrentTable; + public int TablesTempDataStacked; + public ImVector TablesTempData; + public ImPoolImGuiTable Tables; + public ImVector TablesLastTimeActive; + public ImVector DrawChannelsTempMergeBuffer; + public unsafe ImGuiTabBar* CurrentTabBar; + public ImPoolImGuiTabBar TabBars; + public ImVector CurrentTabBarStack; + public ImVector ShrinkWidthBuffer; + public Vector2 MouseLastValidPos; + public ImGuiInputTextState InputTextState; + public ImFont InputTextPasswordFont; + public uint TempInputId; + public ImGuiColorEditFlags ColorEditOptions; + public float ColorEditLastHue; + public float ColorEditLastSat; + public uint ColorEditLastColor; + public Vector4 ColorPickerRef; + public ImGuiComboPreviewData ComboPreviewData; + public float SliderGrabClickOffset; + public float SliderCurrentAccum; + public byte SliderCurrentAccumDirty; + public byte DragCurrentAccumDirty; + public float DragCurrentAccum; + public float DragSpeedDefaultRatio; + public float ScrollbarClickDeltaToGrabCenter; + public float DisabledAlphaBackup; + public short DisabledStackSize; + public short TooltipOverrideCount; + public float TooltipSlowDelay; + public ImVector ClipboardHandlerData; + public ImVector MenusIdSubmittedThisFrame; + public ImGuiPlatformImeData PlatformImeData; + public ImGuiPlatformImeData PlatformImeDataPrev; + public uint PlatformImeViewport; + public byte PlatformLocaleDecimalPoint; + public ImGuiDockContext DockContext; + public byte SettingsLoaded; + public float SettingsDirtyTimer; + public ImGuiTextBuffer SettingsIniData; + public ImVector SettingsHandlers; + public ImChunkStreamImGuiWindowSettings SettingsWindows; + public ImChunkStreamImGuiTableSettings SettingsTables; + public ImVector Hooks; + public uint HookIdNext; + public byte LogEnabled; + public ImGuiLogType LogType; + public ImFileHandle LogFile; + public ImGuiTextBuffer LogBuffer; + public unsafe byte* LogNextPrefix; + public unsafe byte* LogNextSuffix; + public float LogLinePosY; + public byte LogLineFirstItem; + public int LogDepthRef; + public int LogDepthToExpand; + public int LogDepthToExpandDefault; + public ImGuiDebugLogFlags DebugLogFlags; + public ImGuiTextBuffer DebugLogBuf; + public byte DebugItemPickerActive; + public uint DebugItemPickerBreakId; + public ImGuiMetricsConfig DebugMetricsConfig; + public ImGuiStackTool DebugStackTool; + public float FramerateSecPerFrame_0; + public float FramerateSecPerFrame_1; + public float FramerateSecPerFrame_2; + public float FramerateSecPerFrame_3; + public float FramerateSecPerFrame_4; + public float FramerateSecPerFrame_5; + public float FramerateSecPerFrame_6; + public float FramerateSecPerFrame_7; + public float FramerateSecPerFrame_8; + public float FramerateSecPerFrame_9; + public float FramerateSecPerFrame_10; + public float FramerateSecPerFrame_11; + public float FramerateSecPerFrame_12; + public float FramerateSecPerFrame_13; + public float FramerateSecPerFrame_14; + public float FramerateSecPerFrame_15; + public float FramerateSecPerFrame_16; + public float FramerateSecPerFrame_17; + public float FramerateSecPerFrame_18; + public float FramerateSecPerFrame_19; + public float FramerateSecPerFrame_20; + public float FramerateSecPerFrame_21; + public float FramerateSecPerFrame_22; + public float FramerateSecPerFrame_23; + public float FramerateSecPerFrame_24; + public float FramerateSecPerFrame_25; + public float FramerateSecPerFrame_26; + public float FramerateSecPerFrame_27; + public float FramerateSecPerFrame_28; + public float FramerateSecPerFrame_29; + public float FramerateSecPerFrame_30; + public float FramerateSecPerFrame_31; + public float FramerateSecPerFrame_32; + public float FramerateSecPerFrame_33; + public float FramerateSecPerFrame_34; + public float FramerateSecPerFrame_35; + public float FramerateSecPerFrame_36; + public float FramerateSecPerFrame_37; + public float FramerateSecPerFrame_38; + public float FramerateSecPerFrame_39; + public float FramerateSecPerFrame_40; + public float FramerateSecPerFrame_41; + public float FramerateSecPerFrame_42; + public float FramerateSecPerFrame_43; + public float FramerateSecPerFrame_44; + public float FramerateSecPerFrame_45; + public float FramerateSecPerFrame_46; + public float FramerateSecPerFrame_47; + public float FramerateSecPerFrame_48; + public float FramerateSecPerFrame_49; + public float FramerateSecPerFrame_50; + public float FramerateSecPerFrame_51; + public float FramerateSecPerFrame_52; + public float FramerateSecPerFrame_53; + public float FramerateSecPerFrame_54; + public float FramerateSecPerFrame_55; + public float FramerateSecPerFrame_56; + public float FramerateSecPerFrame_57; + public float FramerateSecPerFrame_58; + public float FramerateSecPerFrame_59; + public float FramerateSecPerFrame_60; + public float FramerateSecPerFrame_61; + public float FramerateSecPerFrame_62; + public float FramerateSecPerFrame_63; + public float FramerateSecPerFrame_64; + public float FramerateSecPerFrame_65; + public float FramerateSecPerFrame_66; + public float FramerateSecPerFrame_67; + public float FramerateSecPerFrame_68; + public float FramerateSecPerFrame_69; + public float FramerateSecPerFrame_70; + public float FramerateSecPerFrame_71; + public float FramerateSecPerFrame_72; + public float FramerateSecPerFrame_73; + public float FramerateSecPerFrame_74; + public float FramerateSecPerFrame_75; + public float FramerateSecPerFrame_76; + public float FramerateSecPerFrame_77; + public float FramerateSecPerFrame_78; + public float FramerateSecPerFrame_79; + public float FramerateSecPerFrame_80; + public float FramerateSecPerFrame_81; + public float FramerateSecPerFrame_82; + public float FramerateSecPerFrame_83; + public float FramerateSecPerFrame_84; + public float FramerateSecPerFrame_85; + public float FramerateSecPerFrame_86; + public float FramerateSecPerFrame_87; + public float FramerateSecPerFrame_88; + public float FramerateSecPerFrame_89; + public float FramerateSecPerFrame_90; + public float FramerateSecPerFrame_91; + public float FramerateSecPerFrame_92; + public float FramerateSecPerFrame_93; + public float FramerateSecPerFrame_94; + public float FramerateSecPerFrame_95; + public float FramerateSecPerFrame_96; + public float FramerateSecPerFrame_97; + public float FramerateSecPerFrame_98; + public float FramerateSecPerFrame_99; + public float FramerateSecPerFrame_100; + public float FramerateSecPerFrame_101; + public float FramerateSecPerFrame_102; + public float FramerateSecPerFrame_103; + public float FramerateSecPerFrame_104; + public float FramerateSecPerFrame_105; + public float FramerateSecPerFrame_106; + public float FramerateSecPerFrame_107; + public float FramerateSecPerFrame_108; + public float FramerateSecPerFrame_109; + public float FramerateSecPerFrame_110; + public float FramerateSecPerFrame_111; + public float FramerateSecPerFrame_112; + public float FramerateSecPerFrame_113; + public float FramerateSecPerFrame_114; + public float FramerateSecPerFrame_115; + public float FramerateSecPerFrame_116; + public float FramerateSecPerFrame_117; + public float FramerateSecPerFrame_118; + public float FramerateSecPerFrame_119; + public int FramerateSecPerFrameIdx; + public int FramerateSecPerFrameCount; + public float FramerateSecPerFrameAccum; + public int WantCaptureMouseNextFrame; + public int WantCaptureKeyboardNextFrame; + public int WantTextInputNextFrame; + public ImVector TempBuffer; + 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; + IO = io; + PlatformIO = platformIo; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + HoveredDockNode = hoveredDockNode; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowTimer = wheelingWindowTimer; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; + CurrentItemFlags = currentItemFlags; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportFrontMostStampCount = viewportFrontMostStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateInputId = navActivateInputId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResultId = navInitResultId; + NavInitResultRectRel = navInitResultRectRel; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + DimBgRatio = dimBgRatio; + MouseCursor = mouseCursor; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default(byte*)) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditLastHue = colorEditLastHue; + ColorEditLastSat = colorEditLastSat; + ColorEditLastColor = colorEditLastColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + TooltipOverrideCount = tooltipOverrideCount; + TooltipSlowDelay = tooltipSlowDelay; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + DockContext = dockContext; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugStackTool = debugStackTool; + if (framerateSecPerFrame != default(float*)) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + FramerateSecPerFrame_60 = framerateSecPerFrame[60]; + FramerateSecPerFrame_61 = framerateSecPerFrame[61]; + FramerateSecPerFrame_62 = framerateSecPerFrame[62]; + FramerateSecPerFrame_63 = framerateSecPerFrame[63]; + FramerateSecPerFrame_64 = framerateSecPerFrame[64]; + FramerateSecPerFrame_65 = framerateSecPerFrame[65]; + FramerateSecPerFrame_66 = framerateSecPerFrame[66]; + FramerateSecPerFrame_67 = framerateSecPerFrame[67]; + FramerateSecPerFrame_68 = framerateSecPerFrame[68]; + FramerateSecPerFrame_69 = framerateSecPerFrame[69]; + FramerateSecPerFrame_70 = framerateSecPerFrame[70]; + FramerateSecPerFrame_71 = framerateSecPerFrame[71]; + FramerateSecPerFrame_72 = framerateSecPerFrame[72]; + FramerateSecPerFrame_73 = framerateSecPerFrame[73]; + FramerateSecPerFrame_74 = framerateSecPerFrame[74]; + FramerateSecPerFrame_75 = framerateSecPerFrame[75]; + FramerateSecPerFrame_76 = framerateSecPerFrame[76]; + FramerateSecPerFrame_77 = framerateSecPerFrame[77]; + FramerateSecPerFrame_78 = framerateSecPerFrame[78]; + FramerateSecPerFrame_79 = framerateSecPerFrame[79]; + FramerateSecPerFrame_80 = framerateSecPerFrame[80]; + FramerateSecPerFrame_81 = framerateSecPerFrame[81]; + FramerateSecPerFrame_82 = framerateSecPerFrame[82]; + FramerateSecPerFrame_83 = framerateSecPerFrame[83]; + FramerateSecPerFrame_84 = framerateSecPerFrame[84]; + FramerateSecPerFrame_85 = framerateSecPerFrame[85]; + FramerateSecPerFrame_86 = framerateSecPerFrame[86]; + FramerateSecPerFrame_87 = framerateSecPerFrame[87]; + FramerateSecPerFrame_88 = framerateSecPerFrame[88]; + FramerateSecPerFrame_89 = framerateSecPerFrame[89]; + FramerateSecPerFrame_90 = framerateSecPerFrame[90]; + FramerateSecPerFrame_91 = framerateSecPerFrame[91]; + FramerateSecPerFrame_92 = framerateSecPerFrame[92]; + FramerateSecPerFrame_93 = framerateSecPerFrame[93]; + FramerateSecPerFrame_94 = framerateSecPerFrame[94]; + FramerateSecPerFrame_95 = framerateSecPerFrame[95]; + FramerateSecPerFrame_96 = framerateSecPerFrame[96]; + FramerateSecPerFrame_97 = framerateSecPerFrame[97]; + FramerateSecPerFrame_98 = framerateSecPerFrame[98]; + FramerateSecPerFrame_99 = framerateSecPerFrame[99]; + FramerateSecPerFrame_100 = framerateSecPerFrame[100]; + FramerateSecPerFrame_101 = framerateSecPerFrame[101]; + FramerateSecPerFrame_102 = framerateSecPerFrame[102]; + FramerateSecPerFrame_103 = framerateSecPerFrame[103]; + FramerateSecPerFrame_104 = framerateSecPerFrame[104]; + FramerateSecPerFrame_105 = framerateSecPerFrame[105]; + FramerateSecPerFrame_106 = framerateSecPerFrame[106]; + FramerateSecPerFrame_107 = framerateSecPerFrame[107]; + FramerateSecPerFrame_108 = framerateSecPerFrame[108]; + FramerateSecPerFrame_109 = framerateSecPerFrame[109]; + FramerateSecPerFrame_110 = framerateSecPerFrame[110]; + FramerateSecPerFrame_111 = framerateSecPerFrame[111]; + FramerateSecPerFrame_112 = framerateSecPerFrame[112]; + FramerateSecPerFrame_113 = framerateSecPerFrame[113]; + FramerateSecPerFrame_114 = framerateSecPerFrame[114]; + FramerateSecPerFrame_115 = framerateSecPerFrame[115]; + FramerateSecPerFrame_116 = framerateSecPerFrame[116]; + FramerateSecPerFrame_117 = framerateSecPerFrame[117]; + FramerateSecPerFrame_118 = framerateSecPerFrame[118]; + FramerateSecPerFrame_119 = framerateSecPerFrame[119]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + 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; + IO = io; + PlatformIO = platformIo; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + HoveredDockNode = hoveredDockNode; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowTimer = wheelingWindowTimer; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; + CurrentItemFlags = currentItemFlags; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportFrontMostStampCount = viewportFrontMostStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateInputId = navActivateInputId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResultId = navInitResultId; + NavInitResultRectRel = navInitResultRectRel; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + DimBgRatio = dimBgRatio; + MouseCursor = mouseCursor; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default(Span)) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditLastHue = colorEditLastHue; + ColorEditLastSat = colorEditLastSat; + ColorEditLastColor = colorEditLastColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + TooltipOverrideCount = tooltipOverrideCount; + TooltipSlowDelay = tooltipSlowDelay; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + DockContext = dockContext; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugStackTool = debugStackTool; + if (framerateSecPerFrame != default(Span)) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + FramerateSecPerFrame_60 = framerateSecPerFrame[60]; + FramerateSecPerFrame_61 = framerateSecPerFrame[61]; + FramerateSecPerFrame_62 = framerateSecPerFrame[62]; + FramerateSecPerFrame_63 = framerateSecPerFrame[63]; + FramerateSecPerFrame_64 = framerateSecPerFrame[64]; + FramerateSecPerFrame_65 = framerateSecPerFrame[65]; + FramerateSecPerFrame_66 = framerateSecPerFrame[66]; + FramerateSecPerFrame_67 = framerateSecPerFrame[67]; + FramerateSecPerFrame_68 = framerateSecPerFrame[68]; + FramerateSecPerFrame_69 = framerateSecPerFrame[69]; + FramerateSecPerFrame_70 = framerateSecPerFrame[70]; + FramerateSecPerFrame_71 = framerateSecPerFrame[71]; + FramerateSecPerFrame_72 = framerateSecPerFrame[72]; + FramerateSecPerFrame_73 = framerateSecPerFrame[73]; + FramerateSecPerFrame_74 = framerateSecPerFrame[74]; + FramerateSecPerFrame_75 = framerateSecPerFrame[75]; + FramerateSecPerFrame_76 = framerateSecPerFrame[76]; + FramerateSecPerFrame_77 = framerateSecPerFrame[77]; + FramerateSecPerFrame_78 = framerateSecPerFrame[78]; + FramerateSecPerFrame_79 = framerateSecPerFrame[79]; + FramerateSecPerFrame_80 = framerateSecPerFrame[80]; + FramerateSecPerFrame_81 = framerateSecPerFrame[81]; + FramerateSecPerFrame_82 = framerateSecPerFrame[82]; + FramerateSecPerFrame_83 = framerateSecPerFrame[83]; + FramerateSecPerFrame_84 = framerateSecPerFrame[84]; + FramerateSecPerFrame_85 = framerateSecPerFrame[85]; + FramerateSecPerFrame_86 = framerateSecPerFrame[86]; + FramerateSecPerFrame_87 = framerateSecPerFrame[87]; + FramerateSecPerFrame_88 = framerateSecPerFrame[88]; + FramerateSecPerFrame_89 = framerateSecPerFrame[89]; + FramerateSecPerFrame_90 = framerateSecPerFrame[90]; + FramerateSecPerFrame_91 = framerateSecPerFrame[91]; + FramerateSecPerFrame_92 = framerateSecPerFrame[92]; + FramerateSecPerFrame_93 = framerateSecPerFrame[93]; + FramerateSecPerFrame_94 = framerateSecPerFrame[94]; + FramerateSecPerFrame_95 = framerateSecPerFrame[95]; + FramerateSecPerFrame_96 = framerateSecPerFrame[96]; + FramerateSecPerFrame_97 = framerateSecPerFrame[97]; + FramerateSecPerFrame_98 = framerateSecPerFrame[98]; + FramerateSecPerFrame_99 = framerateSecPerFrame[99]; + FramerateSecPerFrame_100 = framerateSecPerFrame[100]; + FramerateSecPerFrame_101 = framerateSecPerFrame[101]; + FramerateSecPerFrame_102 = framerateSecPerFrame[102]; + FramerateSecPerFrame_103 = framerateSecPerFrame[103]; + FramerateSecPerFrame_104 = framerateSecPerFrame[104]; + FramerateSecPerFrame_105 = framerateSecPerFrame[105]; + FramerateSecPerFrame_106 = framerateSecPerFrame[106]; + FramerateSecPerFrame_107 = framerateSecPerFrame[107]; + FramerateSecPerFrame_108 = framerateSecPerFrame[108]; + FramerateSecPerFrame_109 = framerateSecPerFrame[109]; + FramerateSecPerFrame_110 = framerateSecPerFrame[110]; + FramerateSecPerFrame_111 = framerateSecPerFrame[111]; + FramerateSecPerFrame_112 = framerateSecPerFrame[112]; + FramerateSecPerFrame_113 = framerateSecPerFrame[113]; + FramerateSecPerFrame_114 = framerateSecPerFrame[114]; + FramerateSecPerFrame_115 = framerateSecPerFrame[115]; + FramerateSecPerFrame_116 = framerateSecPerFrame[116]; + FramerateSecPerFrame_117 = framerateSecPerFrame[117]; + FramerateSecPerFrame_118 = framerateSecPerFrame[118]; + FramerateSecPerFrame_119 = framerateSecPerFrame[119]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiContextPtr : IEquatable + { + public ImGuiContextPtr(ImGuiContext* handle) { Handle = handle; } + public ImGuiContext* Handle; + public bool IsNull => Handle == null; + public static ImGuiContextPtr Null => new ImGuiContextPtr(null); + public ImGuiContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiContextPtr(ImGuiContext* handle) => new ImGuiContextPtr(handle); + public static implicit operator ImGuiContext*(ImGuiContextPtr handle) => handle.Handle; + public static bool operator ==(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiContextPtr left, ImGuiContext* right) => left.Handle == right; + public static bool operator !=(ImGuiContextPtr left, ImGuiContext* right) => left.Handle != right; + public bool Equals(ImGuiContextPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiContextPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref bool Initialized => ref Unsafe.AsRef(&Handle->Initialized); + public ref bool FontAtlasOwnedByContext => ref Unsafe.AsRef(&Handle->FontAtlasOwnedByContext); + public ref ImGuiIO IO => ref Unsafe.AsRef(&Handle->IO); + public ref ImGuiPlatformIO PlatformIO => ref Unsafe.AsRef(&Handle->PlatformIO); + public ref ImVector InputEventsQueue => ref Unsafe.AsRef>(&Handle->InputEventsQueue); + public ref ImVector InputEventsTrail => ref Unsafe.AsRef>(&Handle->InputEventsTrail); + public ref ImGuiStyle Style => ref Unsafe.AsRef(&Handle->Style); + public ref ImGuiConfigFlags ConfigFlagsCurrFrame => ref Unsafe.AsRef(&Handle->ConfigFlagsCurrFrame); + public ref ImGuiConfigFlags ConfigFlagsLastFrame => ref Unsafe.AsRef(&Handle->ConfigFlagsLastFrame); + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + public ref float FontBaseSize => ref Unsafe.AsRef(&Handle->FontBaseSize); + public ref ImDrawListSharedData DrawListSharedData => ref Unsafe.AsRef(&Handle->DrawListSharedData); + public ref double Time => ref Unsafe.AsRef(&Handle->Time); + public ref int FrameCount => ref Unsafe.AsRef(&Handle->FrameCount); + public ref int FrameCountEnded => ref Unsafe.AsRef(&Handle->FrameCountEnded); + public ref int FrameCountPlatformEnded => ref Unsafe.AsRef(&Handle->FrameCountPlatformEnded); + public ref int FrameCountRendered => ref Unsafe.AsRef(&Handle->FrameCountRendered); + public ref bool WithinFrameScope => ref Unsafe.AsRef(&Handle->WithinFrameScope); + public ref bool WithinFrameScopeWithImplicitWindow => ref Unsafe.AsRef(&Handle->WithinFrameScopeWithImplicitWindow); + public ref bool WithinEndChild => ref Unsafe.AsRef(&Handle->WithinEndChild); + public ref bool GcCompactAll => ref Unsafe.AsRef(&Handle->GcCompactAll); + public ref bool TestEngineHookItems => ref Unsafe.AsRef(&Handle->TestEngineHookItems); + public void* TestEngine { get => Handle->TestEngine; set => Handle->TestEngine = value; } + public ref ImVector Windows => ref Unsafe.AsRef>(&Handle->Windows); + public ref ImVector WindowsFocusOrder => ref Unsafe.AsRef>(&Handle->WindowsFocusOrder); + public ref ImVector WindowsTempSortBuffer => ref Unsafe.AsRef>(&Handle->WindowsTempSortBuffer); + public ref ImVector CurrentWindowStack => ref Unsafe.AsRef>(&Handle->CurrentWindowStack); + public ref ImGuiStorage WindowsById => ref Unsafe.AsRef(&Handle->WindowsById); + public ref int WindowsActiveCount => ref Unsafe.AsRef(&Handle->WindowsActiveCount); + public ref Vector2 WindowsHoverPadding => ref Unsafe.AsRef(&Handle->WindowsHoverPadding); + public ref ImGuiWindowPtr CurrentWindow => ref Unsafe.AsRef(&Handle->CurrentWindow); + public ref ImGuiWindowPtr HoveredWindow => ref Unsafe.AsRef(&Handle->HoveredWindow); + public ref ImGuiWindowPtr HoveredWindowUnderMovingWindow => ref Unsafe.AsRef(&Handle->HoveredWindowUnderMovingWindow); + public ref ImGuiDockNodePtr HoveredDockNode => ref Unsafe.AsRef(&Handle->HoveredDockNode); + public ref ImGuiWindowPtr MovingWindow => ref Unsafe.AsRef(&Handle->MovingWindow); + public ref ImGuiWindowPtr WheelingWindow => ref Unsafe.AsRef(&Handle->WheelingWindow); + public ref Vector2 WheelingWindowRefMousePos => ref Unsafe.AsRef(&Handle->WheelingWindowRefMousePos); + public ref float WheelingWindowTimer => ref Unsafe.AsRef(&Handle->WheelingWindowTimer); + public ref uint DebugHookIdInfo => ref Unsafe.AsRef(&Handle->DebugHookIdInfo); + public ref uint HoveredId => ref Unsafe.AsRef(&Handle->HoveredId); + public ref uint HoveredIdPreviousFrame => ref Unsafe.AsRef(&Handle->HoveredIdPreviousFrame); + public ref bool HoveredIdAllowOverlap => ref Unsafe.AsRef(&Handle->HoveredIdAllowOverlap); + public ref bool HoveredIdUsingMouseWheel => ref Unsafe.AsRef(&Handle->HoveredIdUsingMouseWheel); + public ref bool HoveredIdPreviousFrameUsingMouseWheel => ref Unsafe.AsRef(&Handle->HoveredIdPreviousFrameUsingMouseWheel); + public ref bool HoveredIdDisabled => ref Unsafe.AsRef(&Handle->HoveredIdDisabled); + public ref float HoveredIdTimer => ref Unsafe.AsRef(&Handle->HoveredIdTimer); + public ref float HoveredIdNotActiveTimer => ref Unsafe.AsRef(&Handle->HoveredIdNotActiveTimer); + public ref uint ActiveId => ref Unsafe.AsRef(&Handle->ActiveId); + public ref uint ActiveIdIsAlive => ref Unsafe.AsRef(&Handle->ActiveIdIsAlive); + public ref float ActiveIdTimer => ref Unsafe.AsRef(&Handle->ActiveIdTimer); + public ref bool ActiveIdIsJustActivated => ref Unsafe.AsRef(&Handle->ActiveIdIsJustActivated); + public ref bool ActiveIdAllowOverlap => ref Unsafe.AsRef(&Handle->ActiveIdAllowOverlap); + public ref bool ActiveIdNoClearOnFocusLoss => ref Unsafe.AsRef(&Handle->ActiveIdNoClearOnFocusLoss); + public ref bool ActiveIdHasBeenPressedBefore => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenPressedBefore); + public ref bool ActiveIdHasBeenEditedBefore => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenEditedBefore); + public ref bool ActiveIdHasBeenEditedThisFrame => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenEditedThisFrame); + public ref Vector2 ActiveIdClickOffset => ref Unsafe.AsRef(&Handle->ActiveIdClickOffset); + public ref ImGuiWindowPtr ActiveIdWindow => ref Unsafe.AsRef(&Handle->ActiveIdWindow); + public ref ImGuiInputSource ActiveIdSource => ref Unsafe.AsRef(&Handle->ActiveIdSource); + public ref int ActiveIdMouseButton => ref Unsafe.AsRef(&Handle->ActiveIdMouseButton); + public ref uint ActiveIdPreviousFrame => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrame); + public ref bool ActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameIsAlive); + public ref bool ActiveIdPreviousFrameHasBeenEditedBefore => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameHasBeenEditedBefore); + public ref ImGuiWindowPtr ActiveIdPreviousFrameWindow => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameWindow); + public ref uint LastActiveId => ref Unsafe.AsRef(&Handle->LastActiveId); + public ref float LastActiveIdTimer => ref Unsafe.AsRef(&Handle->LastActiveIdTimer); + public ref bool ActiveIdUsingMouseWheel => ref Unsafe.AsRef(&Handle->ActiveIdUsingMouseWheel); + public ref uint ActiveIdUsingNavDirMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingNavDirMask); + public ref uint ActiveIdUsingNavInputMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingNavInputMask); + public ref nuint ActiveIdUsingKeyInputMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingKeyInputMask); + public ref ImGuiItemFlags CurrentItemFlags => ref Unsafe.AsRef(&Handle->CurrentItemFlags); + public ref ImGuiNextItemData NextItemData => ref Unsafe.AsRef(&Handle->NextItemData); + public ref ImGuiLastItemData LastItemData => ref Unsafe.AsRef(&Handle->LastItemData); + public ref ImGuiNextWindowData NextWindowData => ref Unsafe.AsRef(&Handle->NextWindowData); + public ref ImVector ColorStack => ref Unsafe.AsRef>(&Handle->ColorStack); + public ref ImVector StyleVarStack => ref Unsafe.AsRef>(&Handle->StyleVarStack); + public ref ImVector FontStack => ref Unsafe.AsRef>(&Handle->FontStack); + public ref ImVector FocusScopeStack => ref Unsafe.AsRef>(&Handle->FocusScopeStack); + public ref ImVector ItemFlagsStack => ref Unsafe.AsRef>(&Handle->ItemFlagsStack); + public ref ImVector GroupStack => ref Unsafe.AsRef>(&Handle->GroupStack); + public ref ImVector OpenPopupStack => ref Unsafe.AsRef>(&Handle->OpenPopupStack); + public ref ImVector BeginPopupStack => ref Unsafe.AsRef>(&Handle->BeginPopupStack); + public ref int BeginMenuCount => ref Unsafe.AsRef(&Handle->BeginMenuCount); + public ref ImVector Viewports => ref Unsafe.AsRef>(&Handle->Viewports); + public ref float CurrentDpiScale => ref Unsafe.AsRef(&Handle->CurrentDpiScale); + public ref ImGuiViewportPPtr CurrentViewport => ref Unsafe.AsRef(&Handle->CurrentViewport); + public ref ImGuiViewportPPtr MouseViewport => ref Unsafe.AsRef(&Handle->MouseViewport); + public ref ImGuiViewportPPtr MouseLastHoveredViewport => ref Unsafe.AsRef(&Handle->MouseLastHoveredViewport); + public ref uint PlatformLastFocusedViewportId => ref Unsafe.AsRef(&Handle->PlatformLastFocusedViewportId); + public ref ImGuiPlatformMonitor FallbackMonitor => ref Unsafe.AsRef(&Handle->FallbackMonitor); + public ref int ViewportFrontMostStampCount => ref Unsafe.AsRef(&Handle->ViewportFrontMostStampCount); + public ref ImGuiWindowPtr NavWindow => ref Unsafe.AsRef(&Handle->NavWindow); + public ref uint NavId => ref Unsafe.AsRef(&Handle->NavId); + public ref uint NavFocusScopeId => ref Unsafe.AsRef(&Handle->NavFocusScopeId); + public ref uint NavActivateId => ref Unsafe.AsRef(&Handle->NavActivateId); + public ref uint NavActivateDownId => ref Unsafe.AsRef(&Handle->NavActivateDownId); + public ref uint NavActivatePressedId => ref Unsafe.AsRef(&Handle->NavActivatePressedId); + public ref uint NavActivateInputId => ref Unsafe.AsRef(&Handle->NavActivateInputId); + public ref ImGuiActivateFlags NavActivateFlags => ref Unsafe.AsRef(&Handle->NavActivateFlags); + public ref uint NavJustMovedToId => ref Unsafe.AsRef(&Handle->NavJustMovedToId); + public ref uint NavJustMovedToFocusScopeId => ref Unsafe.AsRef(&Handle->NavJustMovedToFocusScopeId); + public ref ImGuiModFlags NavJustMovedToKeyMods => ref Unsafe.AsRef(&Handle->NavJustMovedToKeyMods); + public ref uint NavNextActivateId => ref Unsafe.AsRef(&Handle->NavNextActivateId); + public ref ImGuiActivateFlags NavNextActivateFlags => ref Unsafe.AsRef(&Handle->NavNextActivateFlags); + public ref ImGuiInputSource NavInputSource => ref Unsafe.AsRef(&Handle->NavInputSource); + public ref ImGuiNavLayer NavLayer => ref Unsafe.AsRef(&Handle->NavLayer); + public ref bool NavIdIsAlive => ref Unsafe.AsRef(&Handle->NavIdIsAlive); + public ref bool NavMousePosDirty => ref Unsafe.AsRef(&Handle->NavMousePosDirty); + public ref bool NavDisableHighlight => ref Unsafe.AsRef(&Handle->NavDisableHighlight); + public ref bool NavDisableMouseHover => ref Unsafe.AsRef(&Handle->NavDisableMouseHover); + public ref bool NavAnyRequest => ref Unsafe.AsRef(&Handle->NavAnyRequest); + public ref bool NavInitRequest => ref Unsafe.AsRef(&Handle->NavInitRequest); + public ref bool NavInitRequestFromMove => ref Unsafe.AsRef(&Handle->NavInitRequestFromMove); + public ref uint NavInitResultId => ref Unsafe.AsRef(&Handle->NavInitResultId); + public ref ImRect NavInitResultRectRel => ref Unsafe.AsRef(&Handle->NavInitResultRectRel); + public ref bool NavMoveSubmitted => ref Unsafe.AsRef(&Handle->NavMoveSubmitted); + public ref bool NavMoveScoringItems => ref Unsafe.AsRef(&Handle->NavMoveScoringItems); + public ref bool NavMoveForwardToNextFrame => ref Unsafe.AsRef(&Handle->NavMoveForwardToNextFrame); + public ref ImGuiNavMoveFlags NavMoveFlags => ref Unsafe.AsRef(&Handle->NavMoveFlags); + public ref ImGuiScrollFlags NavMoveScrollFlags => ref Unsafe.AsRef(&Handle->NavMoveScrollFlags); + public ref ImGuiModFlags NavMoveKeyMods => ref Unsafe.AsRef(&Handle->NavMoveKeyMods); + public ref ImGuiDir NavMoveDir => ref Unsafe.AsRef(&Handle->NavMoveDir); + public ref ImGuiDir NavMoveDirForDebug => ref Unsafe.AsRef(&Handle->NavMoveDirForDebug); + public ref ImGuiDir NavMoveClipDir => ref Unsafe.AsRef(&Handle->NavMoveClipDir); + public ref ImRect NavScoringRect => ref Unsafe.AsRef(&Handle->NavScoringRect); + public ref ImRect NavScoringNoClipRect => ref Unsafe.AsRef(&Handle->NavScoringNoClipRect); + public ref int NavScoringDebugCount => ref Unsafe.AsRef(&Handle->NavScoringDebugCount); + public ref int NavTabbingDir => ref Unsafe.AsRef(&Handle->NavTabbingDir); + public ref int NavTabbingCounter => ref Unsafe.AsRef(&Handle->NavTabbingCounter); + public ref ImGuiNavItemData NavMoveResultLocal => ref Unsafe.AsRef(&Handle->NavMoveResultLocal); + public ref ImGuiNavItemData NavMoveResultLocalVisible => ref Unsafe.AsRef(&Handle->NavMoveResultLocalVisible); + public ref ImGuiNavItemData NavMoveResultOther => ref Unsafe.AsRef(&Handle->NavMoveResultOther); + public ref ImGuiNavItemData NavTabbingResultFirst => ref Unsafe.AsRef(&Handle->NavTabbingResultFirst); + public ref ImGuiWindowPtr NavWindowingTarget => ref Unsafe.AsRef(&Handle->NavWindowingTarget); + public ref ImGuiWindowPtr NavWindowingTargetAnim => ref Unsafe.AsRef(&Handle->NavWindowingTargetAnim); + public ref ImGuiWindowPtr NavWindowingListWindow => ref Unsafe.AsRef(&Handle->NavWindowingListWindow); + public ref float NavWindowingTimer => ref Unsafe.AsRef(&Handle->NavWindowingTimer); + public ref float NavWindowingHighlightAlpha => ref Unsafe.AsRef(&Handle->NavWindowingHighlightAlpha); + public ref bool NavWindowingToggleLayer => ref Unsafe.AsRef(&Handle->NavWindowingToggleLayer); + public ref float DimBgRatio => ref Unsafe.AsRef(&Handle->DimBgRatio); + public ref ImGuiMouseCursor MouseCursor => ref Unsafe.AsRef(&Handle->MouseCursor); + public ref bool DragDropActive => ref Unsafe.AsRef(&Handle->DragDropActive); + public ref bool DragDropWithinSource => ref Unsafe.AsRef(&Handle->DragDropWithinSource); + public ref bool DragDropWithinTarget => ref Unsafe.AsRef(&Handle->DragDropWithinTarget); + public ref ImGuiDragDropFlags DragDropSourceFlags => ref Unsafe.AsRef(&Handle->DragDropSourceFlags); + public ref int DragDropSourceFrameCount => ref Unsafe.AsRef(&Handle->DragDropSourceFrameCount); + public ref int DragDropMouseButton => ref Unsafe.AsRef(&Handle->DragDropMouseButton); + public ref ImGuiPayload DragDropPayload => ref Unsafe.AsRef(&Handle->DragDropPayload); + public ref ImRect DragDropTargetRect => ref Unsafe.AsRef(&Handle->DragDropTargetRect); + public ref uint DragDropTargetId => ref Unsafe.AsRef(&Handle->DragDropTargetId); + public ref ImGuiDragDropFlags DragDropAcceptFlags => ref Unsafe.AsRef(&Handle->DragDropAcceptFlags); + public ref float DragDropAcceptIdCurrRectSurface => ref Unsafe.AsRef(&Handle->DragDropAcceptIdCurrRectSurface); + public ref uint DragDropAcceptIdCurr => ref Unsafe.AsRef(&Handle->DragDropAcceptIdCurr); + public ref uint DragDropAcceptIdPrev => ref Unsafe.AsRef(&Handle->DragDropAcceptIdPrev); + public ref int DragDropAcceptFrameCount => ref Unsafe.AsRef(&Handle->DragDropAcceptFrameCount); + public ref uint DragDropHoldJustPressedId => ref Unsafe.AsRef(&Handle->DragDropHoldJustPressedId); + public ref ImVector DragDropPayloadBufHeap => ref Unsafe.AsRef>(&Handle->DragDropPayloadBufHeap); + public unsafe Span DragDropPayloadBufLocal + { + get + { + return new Span(&Handle->DragDropPayloadBufLocal_0, 16); + } + } + public ref int ClipperTempDataStacked => ref Unsafe.AsRef(&Handle->ClipperTempDataStacked); + public ref ImVector ClipperTempData => ref Unsafe.AsRef>(&Handle->ClipperTempData); + public ref ImGuiTablePtr CurrentTable => ref Unsafe.AsRef(&Handle->CurrentTable); + public ref int TablesTempDataStacked => ref Unsafe.AsRef(&Handle->TablesTempDataStacked); + public ref ImVector TablesTempData => ref Unsafe.AsRef>(&Handle->TablesTempData); + public ref ImPoolImGuiTable Tables => ref Unsafe.AsRef(&Handle->Tables); + public ref ImVector TablesLastTimeActive => ref Unsafe.AsRef>(&Handle->TablesLastTimeActive); + public ref ImVector DrawChannelsTempMergeBuffer => ref Unsafe.AsRef>(&Handle->DrawChannelsTempMergeBuffer); + public ref ImGuiTabBarPtr CurrentTabBar => ref Unsafe.AsRef(&Handle->CurrentTabBar); + public ref ImPoolImGuiTabBar TabBars => ref Unsafe.AsRef(&Handle->TabBars); + public ref ImVector CurrentTabBarStack => ref Unsafe.AsRef>(&Handle->CurrentTabBarStack); + public ref ImVector ShrinkWidthBuffer => ref Unsafe.AsRef>(&Handle->ShrinkWidthBuffer); + public ref Vector2 MouseLastValidPos => ref Unsafe.AsRef(&Handle->MouseLastValidPos); + public ref ImGuiInputTextState InputTextState => ref Unsafe.AsRef(&Handle->InputTextState); + public ref ImFont InputTextPasswordFont => ref Unsafe.AsRef(&Handle->InputTextPasswordFont); + public ref uint TempInputId => ref Unsafe.AsRef(&Handle->TempInputId); + public ref ImGuiColorEditFlags ColorEditOptions => ref Unsafe.AsRef(&Handle->ColorEditOptions); + public ref float ColorEditLastHue => ref Unsafe.AsRef(&Handle->ColorEditLastHue); + public ref float ColorEditLastSat => ref Unsafe.AsRef(&Handle->ColorEditLastSat); + public ref uint ColorEditLastColor => ref Unsafe.AsRef(&Handle->ColorEditLastColor); + public ref Vector4 ColorPickerRef => ref Unsafe.AsRef(&Handle->ColorPickerRef); + public ref ImGuiComboPreviewData ComboPreviewData => ref Unsafe.AsRef(&Handle->ComboPreviewData); + public ref float SliderGrabClickOffset => ref Unsafe.AsRef(&Handle->SliderGrabClickOffset); + public ref float SliderCurrentAccum => ref Unsafe.AsRef(&Handle->SliderCurrentAccum); + public ref bool SliderCurrentAccumDirty => ref Unsafe.AsRef(&Handle->SliderCurrentAccumDirty); + public ref bool DragCurrentAccumDirty => ref Unsafe.AsRef(&Handle->DragCurrentAccumDirty); + public ref float DragCurrentAccum => ref Unsafe.AsRef(&Handle->DragCurrentAccum); + public ref float DragSpeedDefaultRatio => ref Unsafe.AsRef(&Handle->DragSpeedDefaultRatio); + public ref float ScrollbarClickDeltaToGrabCenter => ref Unsafe.AsRef(&Handle->ScrollbarClickDeltaToGrabCenter); + public ref float DisabledAlphaBackup => ref Unsafe.AsRef(&Handle->DisabledAlphaBackup); + public ref short DisabledStackSize => ref Unsafe.AsRef(&Handle->DisabledStackSize); + public ref short TooltipOverrideCount => ref Unsafe.AsRef(&Handle->TooltipOverrideCount); + public ref float TooltipSlowDelay => ref Unsafe.AsRef(&Handle->TooltipSlowDelay); + public ref ImVector ClipboardHandlerData => ref Unsafe.AsRef>(&Handle->ClipboardHandlerData); + public ref ImVector MenusIdSubmittedThisFrame => ref Unsafe.AsRef>(&Handle->MenusIdSubmittedThisFrame); + public ref ImGuiPlatformImeData PlatformImeData => ref Unsafe.AsRef(&Handle->PlatformImeData); + public ref ImGuiPlatformImeData PlatformImeDataPrev => ref Unsafe.AsRef(&Handle->PlatformImeDataPrev); + public ref uint PlatformImeViewport => ref Unsafe.AsRef(&Handle->PlatformImeViewport); + public ref byte PlatformLocaleDecimalPoint => ref Unsafe.AsRef(&Handle->PlatformLocaleDecimalPoint); + public ref ImGuiDockContext DockContext => ref Unsafe.AsRef(&Handle->DockContext); + public ref bool SettingsLoaded => ref Unsafe.AsRef(&Handle->SettingsLoaded); + public ref float SettingsDirtyTimer => ref Unsafe.AsRef(&Handle->SettingsDirtyTimer); + public ref ImGuiTextBuffer SettingsIniData => ref Unsafe.AsRef(&Handle->SettingsIniData); + public ref ImVector SettingsHandlers => ref Unsafe.AsRef>(&Handle->SettingsHandlers); + public ref ImChunkStreamImGuiWindowSettings SettingsWindows => ref Unsafe.AsRef(&Handle->SettingsWindows); + public ref ImChunkStreamImGuiTableSettings SettingsTables => ref Unsafe.AsRef(&Handle->SettingsTables); + public ref ImVector Hooks => ref Unsafe.AsRef>(&Handle->Hooks); + public ref uint HookIdNext => ref Unsafe.AsRef(&Handle->HookIdNext); + public ref bool LogEnabled => ref Unsafe.AsRef(&Handle->LogEnabled); + public ref ImGuiLogType LogType => ref Unsafe.AsRef(&Handle->LogType); + public ref ImFileHandle LogFile => ref Unsafe.AsRef(&Handle->LogFile); + public ref ImGuiTextBuffer LogBuffer => ref Unsafe.AsRef(&Handle->LogBuffer); + public byte* LogNextPrefix { get => Handle->LogNextPrefix; set => Handle->LogNextPrefix = value; } + public byte* LogNextSuffix { get => Handle->LogNextSuffix; set => Handle->LogNextSuffix = value; } + public ref float LogLinePosY => ref Unsafe.AsRef(&Handle->LogLinePosY); + public ref bool LogLineFirstItem => ref Unsafe.AsRef(&Handle->LogLineFirstItem); + public ref int LogDepthRef => ref Unsafe.AsRef(&Handle->LogDepthRef); + public ref int LogDepthToExpand => ref Unsafe.AsRef(&Handle->LogDepthToExpand); + public ref int LogDepthToExpandDefault => ref Unsafe.AsRef(&Handle->LogDepthToExpandDefault); + public ref ImGuiDebugLogFlags DebugLogFlags => ref Unsafe.AsRef(&Handle->DebugLogFlags); + public ref ImGuiTextBuffer DebugLogBuf => ref Unsafe.AsRef(&Handle->DebugLogBuf); + public ref bool DebugItemPickerActive => ref Unsafe.AsRef(&Handle->DebugItemPickerActive); + public ref uint DebugItemPickerBreakId => ref Unsafe.AsRef(&Handle->DebugItemPickerBreakId); + public ref ImGuiMetricsConfig DebugMetricsConfig => ref Unsafe.AsRef(&Handle->DebugMetricsConfig); + public ref ImGuiStackTool DebugStackTool => ref Unsafe.AsRef(&Handle->DebugStackTool); + public unsafe Span FramerateSecPerFrame + { + get + { + return new Span(&Handle->FramerateSecPerFrame_0, 120); + } + } + public ref int FramerateSecPerFrameIdx => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameIdx); + public ref int FramerateSecPerFrameCount => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameCount); + public ref float FramerateSecPerFrameAccum => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameAccum); + public ref int WantCaptureMouseNextFrame => ref Unsafe.AsRef(&Handle->WantCaptureMouseNextFrame); + public ref int WantCaptureKeyboardNextFrame => ref Unsafe.AsRef(&Handle->WantCaptureKeyboardNextFrame); + public ref int WantTextInputNextFrame => ref Unsafe.AsRef(&Handle->WantTextInputNextFrame); + public ref ImVector TempBuffer => ref Unsafe.AsRef>(&Handle->TempBuffer); + } +} +/* ImGuiContextHook.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContextHook + { + public uint HookId; + public ImGuiContextHookType Type; + public uint Owner; + public unsafe void* Callback; + public unsafe void* UserData; + public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, ImGuiContextHookCallback callback = default, void* userData = default) + { + HookId = hookId; + Type = type; + Owner = owner; + Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); + UserData = userData; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiContextHookPtr : IEquatable + { + public ImGuiContextHookPtr(ImGuiContextHook* handle) { Handle = handle; } + public ImGuiContextHook* Handle; + public bool IsNull => Handle == null; + public static ImGuiContextHookPtr Null => new ImGuiContextHookPtr(null); + public ImGuiContextHook this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiContextHookPtr(ImGuiContextHook* handle) => new ImGuiContextHookPtr(handle); + public static implicit operator ImGuiContextHook*(ImGuiContextHookPtr handle) => handle.Handle; + public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle == right; + public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle != right; + public bool Equals(ImGuiContextHookPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiContextHookPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiContextHookPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint HookId => ref Unsafe.AsRef(&Handle->HookId); + public ref ImGuiContextHookType Type => ref Unsafe.AsRef(&Handle->Type); + public ref uint Owner => ref Unsafe.AsRef(&Handle->Owner); + public void* Callback { get => Handle->Callback; set => Handle->Callback = value; } + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + } +} +/* ImGuiDataTypeInfo.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeInfo + { + public nuint Size; + public unsafe byte* Name; + public unsafe byte* PrintFmt; + public unsafe byte* ScanFmt; + public unsafe ImGuiDataTypeInfo(nuint size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) + { + Size = size; + Name = name; + PrintFmt = printFmt; + ScanFmt = scanFmt; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiDataTypeInfoPtr : IEquatable + { + public ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) { Handle = handle; } + public ImGuiDataTypeInfo* Handle; + public bool IsNull => Handle == null; + public static ImGuiDataTypeInfoPtr Null => new ImGuiDataTypeInfoPtr(null); + public ImGuiDataTypeInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) => new ImGuiDataTypeInfoPtr(handle); + public static implicit operator ImGuiDataTypeInfo*(ImGuiDataTypeInfoPtr handle) => handle.Handle; + public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle == right; + public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle != right; + public bool Equals(ImGuiDataTypeInfoPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiDataTypeInfoPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiDataTypeInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref nuint Size => ref Unsafe.AsRef(&Handle->Size); + public byte* Name { get => Handle->Name; set => Handle->Name = value; } + public byte* PrintFmt { get => Handle->PrintFmt; set => Handle->PrintFmt = value; } + public byte* ScanFmt { get => Handle->ScanFmt; set => Handle->ScanFmt = value; } + } +} +/* ImGuiDataTypeTempStorage.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeTempStorage + { + public byte Data_0; + public byte Data_1; + public byte Data_2; + public byte Data_3; + public byte Data_4; + public byte Data_5; + public byte Data_6; + public byte Data_7; + public unsafe ImGuiDataTypeTempStorage(byte* data = default) + { + if (data != default(byte*)) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + public unsafe ImGuiDataTypeTempStorage(Span data = default) + { + if (data != default(Span)) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + } +} +/* ImGuiDockContext.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockContext + { + public ImGuiStorage Nodes; + public ImVector Requests; + public ImVector NodesSettings; + public byte WantFullRebuild; + public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVector requests = default, ImVector nodesSettings = default, bool wantFullRebuild = default) + { + Nodes = nodes; + Requests = requests; + NodesSettings = nodesSettings; + WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiDockContextPtr : IEquatable + { + public ImGuiDockContextPtr(ImGuiDockContext* handle) { Handle = handle; } + public ImGuiDockContext* Handle; + public bool IsNull => Handle == null; + public static ImGuiDockContextPtr Null => new ImGuiDockContextPtr(null); + public ImGuiDockContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiDockContextPtr(ImGuiDockContext* handle) => new ImGuiDockContextPtr(handle); + public static implicit operator ImGuiDockContext*(ImGuiDockContextPtr handle) => handle.Handle; + public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle == right; + public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle != right; + public bool Equals(ImGuiDockContextPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiDockContextPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiDockContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiStorage Nodes => ref Unsafe.AsRef(&Handle->Nodes); + public ref ImVector Requests => ref Unsafe.AsRef>(&Handle->Requests); + public ref ImVector NodesSettings => ref Unsafe.AsRef>(&Handle->NodesSettings); + public ref bool WantFullRebuild => ref Unsafe.AsRef(&Handle->WantFullRebuild); + } +} +/* ImGuiDockNode.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNode + { + public uint ID; + public ImGuiDockNodeFlags SharedFlags; + public ImGuiDockNodeFlags LocalFlags; + public ImGuiDockNodeFlags LocalFlagsInWindows; + public ImGuiDockNodeFlags MergedFlags; + public ImGuiDockNodeState State; + public unsafe ImGuiDockNode* ParentNode; + public unsafe ImGuiDockNode* ChildNodes_0; + public unsafe ImGuiDockNode* ChildNodes_1; + public ImVector Windows; + public unsafe ImGuiTabBar* TabBar; + public Vector2 Pos; + public Vector2 Size; + public Vector2 SizeRef; + public ImGuiAxis SplitAxis; + public ImGuiWindowClass WindowClass; + public uint LastBgColor; + public unsafe ImGuiWindow* HostWindow; + public unsafe ImGuiWindow* VisibleWindow; + public unsafe ImGuiDockNode* CentralNode; + public unsafe ImGuiDockNode* OnlyNodeWithWindows; + public int CountNodeWithWindows; + public int LastFrameAlive; + public int LastFrameActive; + public int LastFrameFocused; + public uint LastFocusedNodeId; + public uint SelectedTabId; + public uint WantCloseTabId; + public ImGuiDataAuthority RawBits0; + public bool RawBits1; + public bool RawBits2; + public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVector windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default(ImGuiDockNode**)) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible; + IsFocused = isFocused; + IsBgDrawnThisFrame = isBgDrawnThisFrame; + HasCloseButton = hasCloseButton; + HasWindowMenuButton = hasWindowMenuButton; + HasCentralNodeChild = hasCentralNodeChild; + WantCloseAll = wantCloseAll; + WantLockSizeOnce = wantLockSizeOnce; + WantMouseMove = wantMouseMove; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; + WantHiddenTabBarToggle = wantHiddenTabBarToggle; + } + public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span> childNodes = default, ImVector windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default(Span>)) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + 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); } + public unsafe Span> ChildNodes + { + get + { + fixed (ImGuiDockNode** p = &this.ChildNodes_0) + { + return new Span>(p, 2); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiDockNodePtr : IEquatable + { + public ImGuiDockNodePtr(ImGuiDockNode* handle) { Handle = handle; } + public ImGuiDockNode* Handle; + public bool IsNull => Handle == null; + public static ImGuiDockNodePtr Null => new ImGuiDockNodePtr(null); + public ImGuiDockNode this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiDockNodePtr(ImGuiDockNode* handle) => new ImGuiDockNodePtr(handle); + public static implicit operator ImGuiDockNode*(ImGuiDockNodePtr handle) => handle.Handle; + public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle == right; + public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle != right; + public bool Equals(ImGuiDockNodePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiDockNodePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiDockNodePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiDockNodeFlags SharedFlags => ref Unsafe.AsRef(&Handle->SharedFlags); + public ref ImGuiDockNodeFlags LocalFlags => ref Unsafe.AsRef(&Handle->LocalFlags); + public ref ImGuiDockNodeFlags LocalFlagsInWindows => ref Unsafe.AsRef(&Handle->LocalFlagsInWindows); + public ref ImGuiDockNodeFlags MergedFlags => ref Unsafe.AsRef(&Handle->MergedFlags); + public ref ImGuiDockNodeState State => ref Unsafe.AsRef(&Handle->State); + public ref ImGuiDockNodePtr ParentNode => ref Unsafe.AsRef(&Handle->ParentNode); + public ref ImVector Windows => ref Unsafe.AsRef>(&Handle->Windows); + public ref ImGuiTabBarPtr TabBar => ref Unsafe.AsRef(&Handle->TabBar); + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + public ref Vector2 SizeRef => ref Unsafe.AsRef(&Handle->SizeRef); + public ref ImGuiAxis SplitAxis => ref Unsafe.AsRef(&Handle->SplitAxis); + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + public ref uint LastBgColor => ref Unsafe.AsRef(&Handle->LastBgColor); + public ref ImGuiWindowPtr HostWindow => ref Unsafe.AsRef(&Handle->HostWindow); + public ref ImGuiWindowPtr VisibleWindow => ref Unsafe.AsRef(&Handle->VisibleWindow); + public ref ImGuiDockNodePtr CentralNode => ref Unsafe.AsRef(&Handle->CentralNode); + public ref ImGuiDockNodePtr OnlyNodeWithWindows => ref Unsafe.AsRef(&Handle->OnlyNodeWithWindows); + public ref int CountNodeWithWindows => ref Unsafe.AsRef(&Handle->CountNodeWithWindows); + public ref int LastFrameAlive => ref Unsafe.AsRef(&Handle->LastFrameAlive); + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + public ref int LastFrameFocused => ref Unsafe.AsRef(&Handle->LastFrameFocused); + public ref uint LastFocusedNodeId => ref Unsafe.AsRef(&Handle->LastFocusedNodeId); + public ref uint SelectedTabId => ref Unsafe.AsRef(&Handle->SelectedTabId); + public ref uint WantCloseTabId => ref Unsafe.AsRef(&Handle->WantCloseTabId); + public ImGuiDataAuthority AuthorityForPos { get => Handle->AuthorityForPos; set => Handle->AuthorityForPos = value; } + public ImGuiDataAuthority AuthorityForSize { get => Handle->AuthorityForSize; set => Handle->AuthorityForSize = value; } + public ImGuiDataAuthority AuthorityForViewport { get => Handle->AuthorityForViewport; set => Handle->AuthorityForViewport = value; } + public bool IsVisible { get => Handle->IsVisible; set => Handle->IsVisible = value; } + public bool IsFocused { get => Handle->IsFocused; set => Handle->IsFocused = value; } + public bool IsBgDrawnThisFrame { get => Handle->IsBgDrawnThisFrame; set => Handle->IsBgDrawnThisFrame = value; } + public bool HasCloseButton { get => Handle->HasCloseButton; set => Handle->HasCloseButton = value; } + public bool HasWindowMenuButton { get => Handle->HasWindowMenuButton; set => Handle->HasWindowMenuButton = value; } + public bool HasCentralNodeChild { get => Handle->HasCentralNodeChild; set => Handle->HasCentralNodeChild = value; } + public bool WantCloseAll { get => Handle->WantCloseAll; set => Handle->WantCloseAll = value; } + public bool WantLockSizeOnce { get => Handle->WantLockSizeOnce; set => Handle->WantLockSizeOnce = value; } + public bool WantMouseMove { get => Handle->WantMouseMove; set => Handle->WantMouseMove = value; } + public bool WantHiddenTabBarUpdate { get => Handle->WantHiddenTabBarUpdate; set => Handle->WantHiddenTabBarUpdate = value; } + public bool WantHiddenTabBarToggle { get => Handle->WantHiddenTabBarToggle; set => Handle->WantHiddenTabBarToggle = value; } + } +} +/* ImGuiDockNodeSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNodeSettings + { + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiDockNodeSettingsPtr : IEquatable + { + public ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) { Handle = handle; } + public ImGuiDockNodeSettings* Handle; + public bool IsNull => Handle == null; + public static ImGuiDockNodeSettingsPtr Null => new ImGuiDockNodeSettingsPtr(null); + public ImGuiDockNodeSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) => new ImGuiDockNodeSettingsPtr(handle); + public static implicit operator ImGuiDockNodeSettings*(ImGuiDockNodeSettingsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle == right; + public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle != right; + public bool Equals(ImGuiDockNodeSettingsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiDockNodeSettingsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiDockNodeSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImGuiDockRequest.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockRequest + { + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiDockRequestPtr : IEquatable + { + public ImGuiDockRequestPtr(ImGuiDockRequest* handle) { Handle = handle; } + public ImGuiDockRequest* Handle; + public bool IsNull => Handle == null; + public static ImGuiDockRequestPtr Null => new ImGuiDockRequestPtr(null); + public ImGuiDockRequest this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiDockRequestPtr(ImGuiDockRequest* handle) => new ImGuiDockRequestPtr(handle); + public static implicit operator ImGuiDockRequest*(ImGuiDockRequestPtr handle) => handle.Handle; + public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle == right; + public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle != right; + public bool Equals(ImGuiDockRequestPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiDockRequestPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiDockRequestPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImGuiGroupData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiGroupData + { + public uint WindowID; + public Vector2 BackupCursorPos; + public Vector2 BackupCursorMaxPos; + public ImVec1 BackupIndent; + public ImVec1 BackupGroupOffset; + public Vector2 BackupCurrLineSize; + public float BackupCurrLineTextBaseOffset; + public uint BackupActiveIdIsAlive; + public byte BackupActiveIdPreviousFrameIsAlive; + public byte BackupHoveredIdIsAlive; + public byte EmitItem; + public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool emitItem = default) + { + WindowID = windowId; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupIndent = backupIndent; + BackupGroupOffset = backupGroupOffset; + BackupCurrLineSize = backupCurrLineSize; + BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; + BackupActiveIdIsAlive = backupActiveIdIsAlive; + BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; + EmitItem = emitItem ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiGroupDataPtr : IEquatable + { + public ImGuiGroupDataPtr(ImGuiGroupData* handle) { Handle = handle; } + public ImGuiGroupData* Handle; + public bool IsNull => Handle == null; + public static ImGuiGroupDataPtr Null => new ImGuiGroupDataPtr(null); + public ImGuiGroupData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiGroupDataPtr(ImGuiGroupData* handle) => new ImGuiGroupDataPtr(handle); + public static implicit operator ImGuiGroupData*(ImGuiGroupDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle == right; + public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle != right; + public bool Equals(ImGuiGroupDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiGroupDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiGroupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint WindowID => ref Unsafe.AsRef(&Handle->WindowID); + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef(&Handle->BackupCursorMaxPos); + public ref ImVec1 BackupIndent => ref Unsafe.AsRef(&Handle->BackupIndent); + public ref ImVec1 BackupGroupOffset => ref Unsafe.AsRef(&Handle->BackupGroupOffset); + public ref Vector2 BackupCurrLineSize => ref Unsafe.AsRef(&Handle->BackupCurrLineSize); + public ref float BackupCurrLineTextBaseOffset => ref Unsafe.AsRef(&Handle->BackupCurrLineTextBaseOffset); + public ref uint BackupActiveIdIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdIsAlive); + public ref bool BackupActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdPreviousFrameIsAlive); + public ref bool BackupHoveredIdIsAlive => ref Unsafe.AsRef(&Handle->BackupHoveredIdIsAlive); + public ref bool EmitItem => ref Unsafe.AsRef(&Handle->EmitItem); + } +} +/* ImGuiInputEvent.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEvent + { + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiInputEventUnion + { + [FieldOffset(0)] + public ImGuiInputEventMousePos MousePos; + [FieldOffset(0)] + public ImGuiInputEventMouseWheel MouseWheel; + [FieldOffset(0)] + public ImGuiInputEventMouseButton MouseButton; + [FieldOffset(0)] + public ImGuiInputEventMouseViewport MouseViewport; + [FieldOffset(0)] + public ImGuiInputEventKey Key; + [FieldOffset(0)] + public ImGuiInputEventText Text; + [FieldOffset(0)] + public ImGuiInputEventAppFocused AppFocused; + public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) + { + MousePos = mousePos; + MouseWheel = mouseWheel; + MouseButton = mouseButton; + MouseViewport = mouseViewport; + Key = key; + Text = text; + AppFocused = appFocused; + } + } + public ImGuiInputEventType Type; + public ImGuiInputSource Source; + public ImGuiInputEventUnion Union; + public byte AddedByTestEngine; + public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, ImGuiInputEventUnion union = default, bool addedByTestEngine = default) + { + Type = type; + Source = source; + Union = union; + AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiInputEventPtr : IEquatable + { + public ImGuiInputEventPtr(ImGuiInputEvent* handle) { Handle = handle; } + public ImGuiInputEvent* Handle; + public bool IsNull => Handle == null; + public static ImGuiInputEventPtr Null => new ImGuiInputEventPtr(null); + public ImGuiInputEvent this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiInputEventPtr(ImGuiInputEvent* handle) => new ImGuiInputEventPtr(handle); + public static implicit operator ImGuiInputEvent*(ImGuiInputEventPtr handle) => handle.Handle; + public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle == right; + public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle != right; + public bool Equals(ImGuiInputEventPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiInputEventPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiInputEventPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiInputEventType Type => ref Unsafe.AsRef(&Handle->Type); + public ref ImGuiInputSource Source => ref Unsafe.AsRef(&Handle->Source); + public ref ImGuiInputEvent.ImGuiInputEventUnion Union => ref Unsafe.AsRef(&Handle->Union); + public ref bool AddedByTestEngine => ref Unsafe.AsRef(&Handle->AddedByTestEngine); + } +} +/* ImGuiInputEventAppFocused.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventAppFocused + { + public byte Focused; + public unsafe ImGuiInputEventAppFocused(bool focused = default) + { + Focused = focused ? (byte)1 : (byte)0; + } + } +} +/* ImGuiInputEventKey.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventKey + { + public ImGuiKey Key; + public byte Down; + public float AnalogValue; + public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) + { + Key = key; + Down = down ? (byte)1 : (byte)0; + AnalogValue = analogValue; + } + } +} +/* ImGuiInputEventMouseButton.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseButton + { + public int Button; + public byte Down; + public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default) + { + Button = button; + Down = down ? (byte)1 : (byte)0; + } + } +} +/* ImGuiInputEventMousePos.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMousePos + { + public float PosX; + public float PosY; + public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default) + { + PosX = posX; + PosY = posY; + } + } +} +/* ImGuiInputEventMouseViewport.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseViewport + { + public uint HoveredViewportID; + public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) + { + HoveredViewportID = hoveredViewportId; + } + } +} +/* ImGuiInputEventMouseWheel.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseWheel + { + public float WheelX; + public float WheelY; + public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default) + { + WheelX = wheelX; + WheelY = wheelY; + } + } +} +/* ImGuiInputEventText.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventText + { + public uint Char; + public unsafe ImGuiInputEventText(uint @char = default) + { + Char = @char; + } + } +} +/* ImGuiInputTextCallbackData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextCallbackData + { + public ImGuiInputTextFlags EventFlag; + public ImGuiInputTextFlags Flags; + public unsafe void* UserData; + public ushort EventChar; + public ImGuiKey EventKey; + public unsafe byte* Buf; + public int BufTextLen; + public int BufSize; + public byte BufDirty; + public int CursorPos; + public int SelectionStart; + public int SelectionEnd; + public unsafe ImGuiInputTextCallbackData(ImGuiInputTextFlags eventFlag = default, ImGuiInputTextFlags flags = default, void* userData = default, ushort eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) + { + EventFlag = eventFlag; + Flags = flags; + UserData = userData; + EventChar = eventChar; + EventKey = eventKey; + Buf = buf; + BufTextLen = bufTextLen; + BufSize = bufSize; + BufDirty = bufDirty ? (byte)1 : (byte)0; + CursorPos = cursorPos; + SelectionStart = selectionStart; + SelectionEnd = selectionEnd; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiInputTextCallbackDataPtr : IEquatable + { + public ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) { Handle = handle; } + public ImGuiInputTextCallbackData* Handle; + public bool IsNull => Handle == null; + public static ImGuiInputTextCallbackDataPtr Null => new ImGuiInputTextCallbackDataPtr(null); + public ImGuiInputTextCallbackData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) => new ImGuiInputTextCallbackDataPtr(handle); + public static implicit operator ImGuiInputTextCallbackData*(ImGuiInputTextCallbackDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle == right; + public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle != right; + public bool Equals(ImGuiInputTextCallbackDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiInputTextCallbackDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiInputTextCallbackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiInputTextFlags EventFlag => ref Unsafe.AsRef(&Handle->EventFlag); + public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + public ref ushort EventChar => ref Unsafe.AsRef(&Handle->EventChar); + public ref ImGuiKey EventKey => ref Unsafe.AsRef(&Handle->EventKey); + public byte* Buf { get => Handle->Buf; set => Handle->Buf = value; } + public ref int BufTextLen => ref Unsafe.AsRef(&Handle->BufTextLen); + public ref int BufSize => ref Unsafe.AsRef(&Handle->BufSize); + public ref bool BufDirty => ref Unsafe.AsRef(&Handle->BufDirty); + public ref int CursorPos => ref Unsafe.AsRef(&Handle->CursorPos); + public ref int SelectionStart => ref Unsafe.AsRef(&Handle->SelectionStart); + public ref int SelectionEnd => ref Unsafe.AsRef(&Handle->SelectionEnd); + } +} +/* ImGuiInputTextState.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextState + { + public uint ID; + public int CurLenW; + public int CurLenA; + public ImVector TextW; + public ImVector TextA; + public ImVector InitialTextA; + public byte TextAIsValid; + public int BufCapacityA; + public float ScrollX; + public STBTexteditState Stb; + public float CursorAnim; + public byte CursorFollow; + public byte SelectedAllMouseLock; + public byte Edited; + public ImGuiInputTextFlags Flags; + public unsafe ImGuiInputTextState(uint id = default, int curLenW = default, int curLenA = default, ImVector textW = default, ImVector textA = default, ImVector initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, ImGuiInputTextFlags flags = default) + { + ID = id; + CurLenW = curLenW; + CurLenA = curLenA; + TextW = textW; + TextA = textA; + InitialTextA = initialTextA; + TextAIsValid = textAIsValid ? (byte)1 : (byte)0; + BufCapacityA = bufCapacityA; + ScrollX = scrollX; + Stb = stb; + CursorAnim = cursorAnim; + CursorFollow = cursorFollow ? (byte)1 : (byte)0; + SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; + Edited = edited ? (byte)1 : (byte)0; + Flags = flags; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiInputTextStatePtr : IEquatable + { + public ImGuiInputTextStatePtr(ImGuiInputTextState* handle) { Handle = handle; } + public ImGuiInputTextState* Handle; + public bool IsNull => Handle == null; + public static ImGuiInputTextStatePtr Null => new ImGuiInputTextStatePtr(null); + public ImGuiInputTextState this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiInputTextStatePtr(ImGuiInputTextState* handle) => new ImGuiInputTextStatePtr(handle); + public static implicit operator ImGuiInputTextState*(ImGuiInputTextStatePtr handle) => handle.Handle; + public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle == right; + public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle != right; + public bool Equals(ImGuiInputTextStatePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiInputTextStatePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiInputTextStatePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref int CurLenW => ref Unsafe.AsRef(&Handle->CurLenW); + public ref int CurLenA => ref Unsafe.AsRef(&Handle->CurLenA); + public ref ImVector TextW => ref Unsafe.AsRef>(&Handle->TextW); + public ref ImVector TextA => ref Unsafe.AsRef>(&Handle->TextA); + public ref ImVector InitialTextA => ref Unsafe.AsRef>(&Handle->InitialTextA); + public ref bool TextAIsValid => ref Unsafe.AsRef(&Handle->TextAIsValid); + public ref int BufCapacityA => ref Unsafe.AsRef(&Handle->BufCapacityA); + public ref float ScrollX => ref Unsafe.AsRef(&Handle->ScrollX); + public ref STBTexteditState Stb => ref Unsafe.AsRef(&Handle->Stb); + public ref float CursorAnim => ref Unsafe.AsRef(&Handle->CursorAnim); + public ref bool CursorFollow => ref Unsafe.AsRef(&Handle->CursorFollow); + public ref bool SelectedAllMouseLock => ref Unsafe.AsRef(&Handle->SelectedAllMouseLock); + public ref bool Edited => ref Unsafe.AsRef(&Handle->Edited); + public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + } +} +/* ImGuiIO.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiIO + { + public ImGuiConfigFlags ConfigFlags; + public ImGuiBackendFlags BackendFlags; + public Vector2 DisplaySize; + public float DeltaTime; + public float IniSavingRate; + public unsafe byte* IniFilename; + public unsafe byte* LogFilename; + public float MouseDoubleClickTime; + public float MouseDoubleClickMaxDist; + public float MouseDragThreshold; + public float KeyRepeatDelay; + public float KeyRepeatRate; + public unsafe void* UserData; + public unsafe ImFontAtlas* Fonts; + public float FontGlobalScale; + public byte FontAllowUserScaling; + public unsafe ImFont* FontDefault; + public Vector2 DisplayFramebufferScale; + public byte ConfigDockingNoSplit; + public byte ConfigDockingWithShift; + public byte ConfigDockingAlwaysTabBar; + public byte ConfigDockingTransparentPayload; + public byte ConfigViewportsNoAutoMerge; + public byte ConfigViewportsNoTaskBarIcon; + public byte ConfigViewportsNoDecoration; + public byte ConfigViewportsNoDefaultParent; + public byte MouseDrawCursor; + public byte ConfigMacOSXBehaviors; + public byte ConfigInputTrickleEventQueue; + public byte ConfigInputTextCursorBlink; + public byte ConfigDragClickToInputText; + public byte ConfigWindowsResizeFromEdges; + public byte ConfigWindowsMoveFromTitleBarOnly; + public float ConfigMemoryCompactTimer; + public unsafe byte* BackendPlatformName; + public unsafe byte* BackendRendererName; + public unsafe void* BackendPlatformUserData; + public unsafe void* BackendRendererUserData; + public unsafe void* BackendLanguageUserData; + public unsafe void* GetClipboardTextFn; + public unsafe void* SetClipboardTextFn; + public unsafe void* ClipboardUserData; + public unsafe void* SetPlatformImeDataFn; + public unsafe void* UnusedPadding; + public byte WantCaptureMouse; + public byte WantCaptureKeyboard; + public byte WantTextInput; + public byte WantSetMousePos; + public byte WantSaveIniSettings; + public byte NavActive; + public byte NavVisible; + public float Framerate; + public int MetricsRenderVertices; + public int MetricsRenderIndices; + public int MetricsRenderWindows; + public int MetricsActiveWindows; + public int MetricsActiveAllocations; + public Vector2 MouseDelta; + public int KeyMap_0; + public int KeyMap_1; + public int KeyMap_2; + public int KeyMap_3; + public int KeyMap_4; + public int KeyMap_5; + public int KeyMap_6; + public int KeyMap_7; + public int KeyMap_8; + public int KeyMap_9; + public int KeyMap_10; + public int KeyMap_11; + public int KeyMap_12; + public int KeyMap_13; + public int KeyMap_14; + public int KeyMap_15; + public int KeyMap_16; + public int KeyMap_17; + public int KeyMap_18; + public int KeyMap_19; + public int KeyMap_20; + public int KeyMap_21; + public int KeyMap_22; + public int KeyMap_23; + public int KeyMap_24; + public int KeyMap_25; + public int KeyMap_26; + public int KeyMap_27; + public int KeyMap_28; + public int KeyMap_29; + public int KeyMap_30; + public int KeyMap_31; + public int KeyMap_32; + public int KeyMap_33; + public int KeyMap_34; + public int KeyMap_35; + public int KeyMap_36; + public int KeyMap_37; + public int KeyMap_38; + public int KeyMap_39; + public int KeyMap_40; + public int KeyMap_41; + public int KeyMap_42; + public int KeyMap_43; + public int KeyMap_44; + public int KeyMap_45; + public int KeyMap_46; + public int KeyMap_47; + public int KeyMap_48; + public int KeyMap_49; + public int KeyMap_50; + public int KeyMap_51; + public int KeyMap_52; + public int KeyMap_53; + public int KeyMap_54; + public int KeyMap_55; + public int KeyMap_56; + public int KeyMap_57; + public int KeyMap_58; + public int KeyMap_59; + public int KeyMap_60; + public int KeyMap_61; + public int KeyMap_62; + public int KeyMap_63; + public int KeyMap_64; + public int KeyMap_65; + public int KeyMap_66; + public int KeyMap_67; + public int KeyMap_68; + public int KeyMap_69; + public int KeyMap_70; + public int KeyMap_71; + public int KeyMap_72; + public int KeyMap_73; + public int KeyMap_74; + public int KeyMap_75; + public int KeyMap_76; + public int KeyMap_77; + public int KeyMap_78; + public int KeyMap_79; + public int KeyMap_80; + public int KeyMap_81; + public int KeyMap_82; + public int KeyMap_83; + public int KeyMap_84; + public int KeyMap_85; + public int KeyMap_86; + public int KeyMap_87; + public int KeyMap_88; + public int KeyMap_89; + public int KeyMap_90; + public int KeyMap_91; + public int KeyMap_92; + public int KeyMap_93; + public int KeyMap_94; + public int KeyMap_95; + public int KeyMap_96; + public int KeyMap_97; + public int KeyMap_98; + public int KeyMap_99; + public int KeyMap_100; + public int KeyMap_101; + public int KeyMap_102; + public int KeyMap_103; + public int KeyMap_104; + public int KeyMap_105; + public int KeyMap_106; + public int KeyMap_107; + public int KeyMap_108; + public int KeyMap_109; + public int KeyMap_110; + public int KeyMap_111; + public int KeyMap_112; + public int KeyMap_113; + public int KeyMap_114; + public int KeyMap_115; + public int KeyMap_116; + public int KeyMap_117; + public int KeyMap_118; + public int KeyMap_119; + public int KeyMap_120; + public int KeyMap_121; + public int KeyMap_122; + public int KeyMap_123; + public int KeyMap_124; + public int KeyMap_125; + public int KeyMap_126; + public int KeyMap_127; + public int KeyMap_128; + public int KeyMap_129; + public int KeyMap_130; + public int KeyMap_131; + public int KeyMap_132; + public int KeyMap_133; + public int KeyMap_134; + public int KeyMap_135; + public int KeyMap_136; + public int KeyMap_137; + public int KeyMap_138; + public int KeyMap_139; + public int KeyMap_140; + public int KeyMap_141; + public int KeyMap_142; + public int KeyMap_143; + public int KeyMap_144; + public int KeyMap_145; + public int KeyMap_146; + public int KeyMap_147; + public int KeyMap_148; + public int KeyMap_149; + public int KeyMap_150; + public int KeyMap_151; + public int KeyMap_152; + public int KeyMap_153; + public int KeyMap_154; + public int KeyMap_155; + public int KeyMap_156; + public int KeyMap_157; + public int KeyMap_158; + public int KeyMap_159; + public int KeyMap_160; + public int KeyMap_161; + public int KeyMap_162; + public int KeyMap_163; + public int KeyMap_164; + public int KeyMap_165; + public int KeyMap_166; + public int KeyMap_167; + public int KeyMap_168; + public int KeyMap_169; + public int KeyMap_170; + public int KeyMap_171; + public int KeyMap_172; + public int KeyMap_173; + public int KeyMap_174; + public int KeyMap_175; + public int KeyMap_176; + public int KeyMap_177; + public int KeyMap_178; + public int KeyMap_179; + public int KeyMap_180; + public int KeyMap_181; + public int KeyMap_182; + public int KeyMap_183; + public int KeyMap_184; + public int KeyMap_185; + public int KeyMap_186; + public int KeyMap_187; + public int KeyMap_188; + public int KeyMap_189; + public int KeyMap_190; + public int KeyMap_191; + public int KeyMap_192; + public int KeyMap_193; + public int KeyMap_194; + public int KeyMap_195; + public int KeyMap_196; + public int KeyMap_197; + public int KeyMap_198; + public int KeyMap_199; + public int KeyMap_200; + public int KeyMap_201; + public int KeyMap_202; + public int KeyMap_203; + public int KeyMap_204; + public int KeyMap_205; + public int KeyMap_206; + public int KeyMap_207; + public int KeyMap_208; + public int KeyMap_209; + public int KeyMap_210; + public int KeyMap_211; + public int KeyMap_212; + public int KeyMap_213; + public int KeyMap_214; + public int KeyMap_215; + public int KeyMap_216; + public int KeyMap_217; + public int KeyMap_218; + public int KeyMap_219; + public int KeyMap_220; + public int KeyMap_221; + public int KeyMap_222; + public int KeyMap_223; + public int KeyMap_224; + public int KeyMap_225; + public int KeyMap_226; + public int KeyMap_227; + public int KeyMap_228; + public int KeyMap_229; + public int KeyMap_230; + public int KeyMap_231; + public int KeyMap_232; + public int KeyMap_233; + public int KeyMap_234; + public int KeyMap_235; + public int KeyMap_236; + public int KeyMap_237; + public int KeyMap_238; + public int KeyMap_239; + public int KeyMap_240; + public int KeyMap_241; + public int KeyMap_242; + public int KeyMap_243; + public int KeyMap_244; + public int KeyMap_245; + public int KeyMap_246; + public int KeyMap_247; + public int KeyMap_248; + public int KeyMap_249; + public int KeyMap_250; + public int KeyMap_251; + public int KeyMap_252; + public int KeyMap_253; + public int KeyMap_254; + public int KeyMap_255; + public int KeyMap_256; + public int KeyMap_257; + public int KeyMap_258; + public int KeyMap_259; + public int KeyMap_260; + public int KeyMap_261; + public int KeyMap_262; + public int KeyMap_263; + public int KeyMap_264; + public int KeyMap_265; + public int KeyMap_266; + public int KeyMap_267; + public int KeyMap_268; + public int KeyMap_269; + public int KeyMap_270; + public int KeyMap_271; + public int KeyMap_272; + public int KeyMap_273; + public int KeyMap_274; + public int KeyMap_275; + public int KeyMap_276; + public int KeyMap_277; + public int KeyMap_278; + public int KeyMap_279; + public int KeyMap_280; + public int KeyMap_281; + public int KeyMap_282; + public int KeyMap_283; + public int KeyMap_284; + public int KeyMap_285; + public int KeyMap_286; + public int KeyMap_287; + public int KeyMap_288; + public int KeyMap_289; + public int KeyMap_290; + public int KeyMap_291; + public int KeyMap_292; + public int KeyMap_293; + public int KeyMap_294; + public int KeyMap_295; + public int KeyMap_296; + public int KeyMap_297; + public int KeyMap_298; + public int KeyMap_299; + public int KeyMap_300; + public int KeyMap_301; + public int KeyMap_302; + public int KeyMap_303; + public int KeyMap_304; + public int KeyMap_305; + public int KeyMap_306; + public int KeyMap_307; + public int KeyMap_308; + public int KeyMap_309; + public int KeyMap_310; + public int KeyMap_311; + public int KeyMap_312; + public int KeyMap_313; + public int KeyMap_314; + public int KeyMap_315; + public int KeyMap_316; + public int KeyMap_317; + public int KeyMap_318; + public int KeyMap_319; + public int KeyMap_320; + public int KeyMap_321; + public int KeyMap_322; + public int KeyMap_323; + public int KeyMap_324; + public int KeyMap_325; + public int KeyMap_326; + public int KeyMap_327; + public int KeyMap_328; + public int KeyMap_329; + public int KeyMap_330; + public int KeyMap_331; + public int KeyMap_332; + public int KeyMap_333; + public int KeyMap_334; + public int KeyMap_335; + public int KeyMap_336; + public int KeyMap_337; + public int KeyMap_338; + public int KeyMap_339; + public int KeyMap_340; + public int KeyMap_341; + public int KeyMap_342; + public int KeyMap_343; + public int KeyMap_344; + public int KeyMap_345; + public int KeyMap_346; + public int KeyMap_347; + public int KeyMap_348; + public int KeyMap_349; + public int KeyMap_350; + public int KeyMap_351; + public int KeyMap_352; + public int KeyMap_353; + public int KeyMap_354; + public int KeyMap_355; + public int KeyMap_356; + public int KeyMap_357; + public int KeyMap_358; + public int KeyMap_359; + public int KeyMap_360; + public int KeyMap_361; + public int KeyMap_362; + public int KeyMap_363; + public int KeyMap_364; + public int KeyMap_365; + public int KeyMap_366; + public int KeyMap_367; + public int KeyMap_368; + public int KeyMap_369; + public int KeyMap_370; + public int KeyMap_371; + public int KeyMap_372; + public int KeyMap_373; + public int KeyMap_374; + public int KeyMap_375; + public int KeyMap_376; + public int KeyMap_377; + public int KeyMap_378; + public int KeyMap_379; + public int KeyMap_380; + public int KeyMap_381; + public int KeyMap_382; + public int KeyMap_383; + public int KeyMap_384; + public int KeyMap_385; + public int KeyMap_386; + public int KeyMap_387; + public int KeyMap_388; + public int KeyMap_389; + public int KeyMap_390; + public int KeyMap_391; + public int KeyMap_392; + public int KeyMap_393; + public int KeyMap_394; + public int KeyMap_395; + public int KeyMap_396; + public int KeyMap_397; + public int KeyMap_398; + public int KeyMap_399; + public int KeyMap_400; + public int KeyMap_401; + public int KeyMap_402; + public int KeyMap_403; + public int KeyMap_404; + public int KeyMap_405; + public int KeyMap_406; + public int KeyMap_407; + public int KeyMap_408; + public int KeyMap_409; + public int KeyMap_410; + public int KeyMap_411; + public int KeyMap_412; + public int KeyMap_413; + public int KeyMap_414; + public int KeyMap_415; + public int KeyMap_416; + public int KeyMap_417; + public int KeyMap_418; + public int KeyMap_419; + public int KeyMap_420; + public int KeyMap_421; + public int KeyMap_422; + public int KeyMap_423; + public int KeyMap_424; + public int KeyMap_425; + public int KeyMap_426; + public int KeyMap_427; + public int KeyMap_428; + public int KeyMap_429; + public int KeyMap_430; + public int KeyMap_431; + public int KeyMap_432; + public int KeyMap_433; + public int KeyMap_434; + public int KeyMap_435; + public int KeyMap_436; + public int KeyMap_437; + public int KeyMap_438; + public int KeyMap_439; + public int KeyMap_440; + public int KeyMap_441; + public int KeyMap_442; + public int KeyMap_443; + public int KeyMap_444; + public int KeyMap_445; + public int KeyMap_446; + public int KeyMap_447; + public int KeyMap_448; + public int KeyMap_449; + public int KeyMap_450; + public int KeyMap_451; + public int KeyMap_452; + public int KeyMap_453; + public int KeyMap_454; + public int KeyMap_455; + public int KeyMap_456; + public int KeyMap_457; + public int KeyMap_458; + public int KeyMap_459; + public int KeyMap_460; + public int KeyMap_461; + public int KeyMap_462; + public int KeyMap_463; + public int KeyMap_464; + public int KeyMap_465; + public int KeyMap_466; + public int KeyMap_467; + public int KeyMap_468; + public int KeyMap_469; + public int KeyMap_470; + public int KeyMap_471; + public int KeyMap_472; + public int KeyMap_473; + public int KeyMap_474; + public int KeyMap_475; + public int KeyMap_476; + public int KeyMap_477; + public int KeyMap_478; + public int KeyMap_479; + public int KeyMap_480; + public int KeyMap_481; + public int KeyMap_482; + public int KeyMap_483; + public int KeyMap_484; + public int KeyMap_485; + public int KeyMap_486; + public int KeyMap_487; + public int KeyMap_488; + public int KeyMap_489; + public int KeyMap_490; + public int KeyMap_491; + public int KeyMap_492; + public int KeyMap_493; + public int KeyMap_494; + public int KeyMap_495; + public int KeyMap_496; + public int KeyMap_497; + public int KeyMap_498; + public int KeyMap_499; + public int KeyMap_500; + public int KeyMap_501; + public int KeyMap_502; + public int KeyMap_503; + public int KeyMap_504; + public int KeyMap_505; + public int KeyMap_506; + public int KeyMap_507; + public int KeyMap_508; + public int KeyMap_509; + public int KeyMap_510; + public int KeyMap_511; + public int KeyMap_512; + public int KeyMap_513; + public int KeyMap_514; + public int KeyMap_515; + public int KeyMap_516; + public int KeyMap_517; + public int KeyMap_518; + public int KeyMap_519; + public int KeyMap_520; + public int KeyMap_521; + public int KeyMap_522; + public int KeyMap_523; + public int KeyMap_524; + public int KeyMap_525; + public int KeyMap_526; + public int KeyMap_527; + public int KeyMap_528; + public int KeyMap_529; + public int KeyMap_530; + public int KeyMap_531; + public int KeyMap_532; + public int KeyMap_533; + public int KeyMap_534; + public int KeyMap_535; + public int KeyMap_536; + public int KeyMap_537; + public int KeyMap_538; + public int KeyMap_539; + public int KeyMap_540; + public int KeyMap_541; + public int KeyMap_542; + public int KeyMap_543; + public int KeyMap_544; + public int KeyMap_545; + public int KeyMap_546; + public int KeyMap_547; + public int KeyMap_548; + public int KeyMap_549; + public int KeyMap_550; + public int KeyMap_551; + public int KeyMap_552; + public int KeyMap_553; + public int KeyMap_554; + public int KeyMap_555; + public int KeyMap_556; + public int KeyMap_557; + public int KeyMap_558; + public int KeyMap_559; + public int KeyMap_560; + public int KeyMap_561; + public int KeyMap_562; + public int KeyMap_563; + public int KeyMap_564; + public int KeyMap_565; + public int KeyMap_566; + public int KeyMap_567; + public int KeyMap_568; + public int KeyMap_569; + public int KeyMap_570; + public int KeyMap_571; + public int KeyMap_572; + public int KeyMap_573; + public int KeyMap_574; + public int KeyMap_575; + public int KeyMap_576; + public int KeyMap_577; + public int KeyMap_578; + public int KeyMap_579; + public int KeyMap_580; + public int KeyMap_581; + public int KeyMap_582; + public int KeyMap_583; + public int KeyMap_584; + public int KeyMap_585; + public int KeyMap_586; + public int KeyMap_587; + public int KeyMap_588; + public int KeyMap_589; + public int KeyMap_590; + public int KeyMap_591; + public int KeyMap_592; + public int KeyMap_593; + public int KeyMap_594; + public int KeyMap_595; + public int KeyMap_596; + public int KeyMap_597; + public int KeyMap_598; + public int KeyMap_599; + public int KeyMap_600; + public int KeyMap_601; + public int KeyMap_602; + public int KeyMap_603; + public int KeyMap_604; + public int KeyMap_605; + public int KeyMap_606; + public int KeyMap_607; + public int KeyMap_608; + public int KeyMap_609; + public int KeyMap_610; + public int KeyMap_611; + public int KeyMap_612; + public int KeyMap_613; + public int KeyMap_614; + public int KeyMap_615; + public int KeyMap_616; + public int KeyMap_617; + public int KeyMap_618; + public int KeyMap_619; + public int KeyMap_620; + public int KeyMap_621; + public int KeyMap_622; + public int KeyMap_623; + public int KeyMap_624; + public int KeyMap_625; + public int KeyMap_626; + public int KeyMap_627; + public int KeyMap_628; + public int KeyMap_629; + public int KeyMap_630; + public int KeyMap_631; + public int KeyMap_632; + public int KeyMap_633; + public int KeyMap_634; + public int KeyMap_635; + public int KeyMap_636; + public int KeyMap_637; + public int KeyMap_638; + public int KeyMap_639; + public int KeyMap_640; + public int KeyMap_641; + public int KeyMap_642; + public int KeyMap_643; + public int KeyMap_644; + public bool KeysDown_0; + public bool KeysDown_1; + public bool KeysDown_2; + public bool KeysDown_3; + public bool KeysDown_4; + public bool KeysDown_5; + public bool KeysDown_6; + public bool KeysDown_7; + public bool KeysDown_8; + public bool KeysDown_9; + public bool KeysDown_10; + public bool KeysDown_11; + public bool KeysDown_12; + public bool KeysDown_13; + public bool KeysDown_14; + public bool KeysDown_15; + public bool KeysDown_16; + public bool KeysDown_17; + public bool KeysDown_18; + public bool KeysDown_19; + public bool KeysDown_20; + public bool KeysDown_21; + public bool KeysDown_22; + public bool KeysDown_23; + public bool KeysDown_24; + public bool KeysDown_25; + public bool KeysDown_26; + public bool KeysDown_27; + public bool KeysDown_28; + public bool KeysDown_29; + public bool KeysDown_30; + public bool KeysDown_31; + public bool KeysDown_32; + public bool KeysDown_33; + public bool KeysDown_34; + public bool KeysDown_35; + public bool KeysDown_36; + public bool KeysDown_37; + public bool KeysDown_38; + public bool KeysDown_39; + public bool KeysDown_40; + public bool KeysDown_41; + public bool KeysDown_42; + public bool KeysDown_43; + public bool KeysDown_44; + public bool KeysDown_45; + public bool KeysDown_46; + public bool KeysDown_47; + public bool KeysDown_48; + public bool KeysDown_49; + public bool KeysDown_50; + public bool KeysDown_51; + public bool KeysDown_52; + public bool KeysDown_53; + public bool KeysDown_54; + public bool KeysDown_55; + public bool KeysDown_56; + public bool KeysDown_57; + public bool KeysDown_58; + public bool KeysDown_59; + public bool KeysDown_60; + public bool KeysDown_61; + public bool KeysDown_62; + public bool KeysDown_63; + public bool KeysDown_64; + public bool KeysDown_65; + public bool KeysDown_66; + public bool KeysDown_67; + public bool KeysDown_68; + public bool KeysDown_69; + public bool KeysDown_70; + public bool KeysDown_71; + public bool KeysDown_72; + public bool KeysDown_73; + public bool KeysDown_74; + public bool KeysDown_75; + public bool KeysDown_76; + public bool KeysDown_77; + public bool KeysDown_78; + public bool KeysDown_79; + public bool KeysDown_80; + public bool KeysDown_81; + public bool KeysDown_82; + public bool KeysDown_83; + public bool KeysDown_84; + public bool KeysDown_85; + public bool KeysDown_86; + public bool KeysDown_87; + public bool KeysDown_88; + public bool KeysDown_89; + public bool KeysDown_90; + public bool KeysDown_91; + public bool KeysDown_92; + public bool KeysDown_93; + public bool KeysDown_94; + public bool KeysDown_95; + public bool KeysDown_96; + public bool KeysDown_97; + public bool KeysDown_98; + public bool KeysDown_99; + public bool KeysDown_100; + public bool KeysDown_101; + public bool KeysDown_102; + public bool KeysDown_103; + public bool KeysDown_104; + public bool KeysDown_105; + public bool KeysDown_106; + public bool KeysDown_107; + public bool KeysDown_108; + public bool KeysDown_109; + public bool KeysDown_110; + public bool KeysDown_111; + public bool KeysDown_112; + public bool KeysDown_113; + public bool KeysDown_114; + public bool KeysDown_115; + public bool KeysDown_116; + public bool KeysDown_117; + public bool KeysDown_118; + public bool KeysDown_119; + public bool KeysDown_120; + public bool KeysDown_121; + public bool KeysDown_122; + public bool KeysDown_123; + public bool KeysDown_124; + public bool KeysDown_125; + public bool KeysDown_126; + public bool KeysDown_127; + public bool KeysDown_128; + public bool KeysDown_129; + public bool KeysDown_130; + public bool KeysDown_131; + public bool KeysDown_132; + public bool KeysDown_133; + public bool KeysDown_134; + public bool KeysDown_135; + public bool KeysDown_136; + public bool KeysDown_137; + public bool KeysDown_138; + public bool KeysDown_139; + public bool KeysDown_140; + public bool KeysDown_141; + public bool KeysDown_142; + public bool KeysDown_143; + public bool KeysDown_144; + public bool KeysDown_145; + public bool KeysDown_146; + public bool KeysDown_147; + public bool KeysDown_148; + public bool KeysDown_149; + public bool KeysDown_150; + public bool KeysDown_151; + public bool KeysDown_152; + public bool KeysDown_153; + public bool KeysDown_154; + public bool KeysDown_155; + public bool KeysDown_156; + public bool KeysDown_157; + public bool KeysDown_158; + public bool KeysDown_159; + public bool KeysDown_160; + public bool KeysDown_161; + public bool KeysDown_162; + public bool KeysDown_163; + public bool KeysDown_164; + public bool KeysDown_165; + public bool KeysDown_166; + public bool KeysDown_167; + public bool KeysDown_168; + public bool KeysDown_169; + public bool KeysDown_170; + public bool KeysDown_171; + public bool KeysDown_172; + public bool KeysDown_173; + public bool KeysDown_174; + public bool KeysDown_175; + public bool KeysDown_176; + public bool KeysDown_177; + public bool KeysDown_178; + public bool KeysDown_179; + public bool KeysDown_180; + public bool KeysDown_181; + public bool KeysDown_182; + public bool KeysDown_183; + public bool KeysDown_184; + public bool KeysDown_185; + public bool KeysDown_186; + public bool KeysDown_187; + public bool KeysDown_188; + public bool KeysDown_189; + public bool KeysDown_190; + public bool KeysDown_191; + public bool KeysDown_192; + public bool KeysDown_193; + public bool KeysDown_194; + public bool KeysDown_195; + public bool KeysDown_196; + public bool KeysDown_197; + public bool KeysDown_198; + public bool KeysDown_199; + public bool KeysDown_200; + public bool KeysDown_201; + public bool KeysDown_202; + public bool KeysDown_203; + public bool KeysDown_204; + public bool KeysDown_205; + public bool KeysDown_206; + public bool KeysDown_207; + public bool KeysDown_208; + public bool KeysDown_209; + public bool KeysDown_210; + public bool KeysDown_211; + public bool KeysDown_212; + public bool KeysDown_213; + public bool KeysDown_214; + public bool KeysDown_215; + public bool KeysDown_216; + public bool KeysDown_217; + public bool KeysDown_218; + public bool KeysDown_219; + public bool KeysDown_220; + public bool KeysDown_221; + public bool KeysDown_222; + public bool KeysDown_223; + public bool KeysDown_224; + public bool KeysDown_225; + public bool KeysDown_226; + public bool KeysDown_227; + public bool KeysDown_228; + public bool KeysDown_229; + public bool KeysDown_230; + public bool KeysDown_231; + public bool KeysDown_232; + public bool KeysDown_233; + public bool KeysDown_234; + public bool KeysDown_235; + public bool KeysDown_236; + public bool KeysDown_237; + public bool KeysDown_238; + public bool KeysDown_239; + public bool KeysDown_240; + public bool KeysDown_241; + public bool KeysDown_242; + public bool KeysDown_243; + public bool KeysDown_244; + public bool KeysDown_245; + public bool KeysDown_246; + public bool KeysDown_247; + public bool KeysDown_248; + public bool KeysDown_249; + public bool KeysDown_250; + public bool KeysDown_251; + public bool KeysDown_252; + public bool KeysDown_253; + public bool KeysDown_254; + public bool KeysDown_255; + public bool KeysDown_256; + public bool KeysDown_257; + public bool KeysDown_258; + public bool KeysDown_259; + public bool KeysDown_260; + public bool KeysDown_261; + public bool KeysDown_262; + public bool KeysDown_263; + public bool KeysDown_264; + public bool KeysDown_265; + public bool KeysDown_266; + public bool KeysDown_267; + public bool KeysDown_268; + public bool KeysDown_269; + public bool KeysDown_270; + public bool KeysDown_271; + public bool KeysDown_272; + public bool KeysDown_273; + public bool KeysDown_274; + public bool KeysDown_275; + public bool KeysDown_276; + public bool KeysDown_277; + public bool KeysDown_278; + public bool KeysDown_279; + public bool KeysDown_280; + public bool KeysDown_281; + public bool KeysDown_282; + public bool KeysDown_283; + public bool KeysDown_284; + public bool KeysDown_285; + public bool KeysDown_286; + public bool KeysDown_287; + public bool KeysDown_288; + public bool KeysDown_289; + public bool KeysDown_290; + public bool KeysDown_291; + public bool KeysDown_292; + public bool KeysDown_293; + public bool KeysDown_294; + public bool KeysDown_295; + public bool KeysDown_296; + public bool KeysDown_297; + public bool KeysDown_298; + public bool KeysDown_299; + public bool KeysDown_300; + public bool KeysDown_301; + public bool KeysDown_302; + public bool KeysDown_303; + public bool KeysDown_304; + public bool KeysDown_305; + public bool KeysDown_306; + public bool KeysDown_307; + public bool KeysDown_308; + public bool KeysDown_309; + public bool KeysDown_310; + public bool KeysDown_311; + public bool KeysDown_312; + public bool KeysDown_313; + public bool KeysDown_314; + public bool KeysDown_315; + public bool KeysDown_316; + public bool KeysDown_317; + public bool KeysDown_318; + public bool KeysDown_319; + public bool KeysDown_320; + public bool KeysDown_321; + public bool KeysDown_322; + public bool KeysDown_323; + public bool KeysDown_324; + public bool KeysDown_325; + public bool KeysDown_326; + public bool KeysDown_327; + public bool KeysDown_328; + public bool KeysDown_329; + public bool KeysDown_330; + public bool KeysDown_331; + public bool KeysDown_332; + public bool KeysDown_333; + public bool KeysDown_334; + public bool KeysDown_335; + public bool KeysDown_336; + public bool KeysDown_337; + public bool KeysDown_338; + public bool KeysDown_339; + public bool KeysDown_340; + public bool KeysDown_341; + public bool KeysDown_342; + public bool KeysDown_343; + public bool KeysDown_344; + public bool KeysDown_345; + public bool KeysDown_346; + public bool KeysDown_347; + public bool KeysDown_348; + public bool KeysDown_349; + public bool KeysDown_350; + public bool KeysDown_351; + public bool KeysDown_352; + public bool KeysDown_353; + public bool KeysDown_354; + public bool KeysDown_355; + public bool KeysDown_356; + public bool KeysDown_357; + public bool KeysDown_358; + public bool KeysDown_359; + public bool KeysDown_360; + public bool KeysDown_361; + public bool KeysDown_362; + public bool KeysDown_363; + public bool KeysDown_364; + public bool KeysDown_365; + public bool KeysDown_366; + public bool KeysDown_367; + public bool KeysDown_368; + public bool KeysDown_369; + public bool KeysDown_370; + public bool KeysDown_371; + public bool KeysDown_372; + public bool KeysDown_373; + public bool KeysDown_374; + public bool KeysDown_375; + public bool KeysDown_376; + public bool KeysDown_377; + public bool KeysDown_378; + public bool KeysDown_379; + public bool KeysDown_380; + public bool KeysDown_381; + public bool KeysDown_382; + public bool KeysDown_383; + public bool KeysDown_384; + public bool KeysDown_385; + public bool KeysDown_386; + public bool KeysDown_387; + public bool KeysDown_388; + public bool KeysDown_389; + public bool KeysDown_390; + public bool KeysDown_391; + public bool KeysDown_392; + public bool KeysDown_393; + public bool KeysDown_394; + public bool KeysDown_395; + public bool KeysDown_396; + public bool KeysDown_397; + public bool KeysDown_398; + public bool KeysDown_399; + public bool KeysDown_400; + public bool KeysDown_401; + public bool KeysDown_402; + public bool KeysDown_403; + public bool KeysDown_404; + public bool KeysDown_405; + public bool KeysDown_406; + public bool KeysDown_407; + public bool KeysDown_408; + public bool KeysDown_409; + public bool KeysDown_410; + public bool KeysDown_411; + public bool KeysDown_412; + public bool KeysDown_413; + public bool KeysDown_414; + public bool KeysDown_415; + public bool KeysDown_416; + public bool KeysDown_417; + public bool KeysDown_418; + public bool KeysDown_419; + public bool KeysDown_420; + public bool KeysDown_421; + public bool KeysDown_422; + public bool KeysDown_423; + public bool KeysDown_424; + public bool KeysDown_425; + public bool KeysDown_426; + public bool KeysDown_427; + public bool KeysDown_428; + public bool KeysDown_429; + public bool KeysDown_430; + public bool KeysDown_431; + public bool KeysDown_432; + public bool KeysDown_433; + public bool KeysDown_434; + public bool KeysDown_435; + public bool KeysDown_436; + public bool KeysDown_437; + public bool KeysDown_438; + public bool KeysDown_439; + public bool KeysDown_440; + public bool KeysDown_441; + public bool KeysDown_442; + public bool KeysDown_443; + public bool KeysDown_444; + public bool KeysDown_445; + public bool KeysDown_446; + public bool KeysDown_447; + public bool KeysDown_448; + public bool KeysDown_449; + public bool KeysDown_450; + public bool KeysDown_451; + public bool KeysDown_452; + public bool KeysDown_453; + public bool KeysDown_454; + public bool KeysDown_455; + public bool KeysDown_456; + public bool KeysDown_457; + public bool KeysDown_458; + public bool KeysDown_459; + public bool KeysDown_460; + public bool KeysDown_461; + public bool KeysDown_462; + public bool KeysDown_463; + public bool KeysDown_464; + public bool KeysDown_465; + public bool KeysDown_466; + public bool KeysDown_467; + public bool KeysDown_468; + public bool KeysDown_469; + public bool KeysDown_470; + public bool KeysDown_471; + public bool KeysDown_472; + public bool KeysDown_473; + public bool KeysDown_474; + public bool KeysDown_475; + public bool KeysDown_476; + public bool KeysDown_477; + public bool KeysDown_478; + public bool KeysDown_479; + public bool KeysDown_480; + public bool KeysDown_481; + public bool KeysDown_482; + public bool KeysDown_483; + public bool KeysDown_484; + public bool KeysDown_485; + public bool KeysDown_486; + public bool KeysDown_487; + public bool KeysDown_488; + public bool KeysDown_489; + public bool KeysDown_490; + public bool KeysDown_491; + public bool KeysDown_492; + public bool KeysDown_493; + public bool KeysDown_494; + public bool KeysDown_495; + public bool KeysDown_496; + public bool KeysDown_497; + public bool KeysDown_498; + public bool KeysDown_499; + public bool KeysDown_500; + public bool KeysDown_501; + public bool KeysDown_502; + public bool KeysDown_503; + public bool KeysDown_504; + public bool KeysDown_505; + public bool KeysDown_506; + public bool KeysDown_507; + public bool KeysDown_508; + public bool KeysDown_509; + public bool KeysDown_510; + public bool KeysDown_511; + public bool KeysDown_512; + public bool KeysDown_513; + public bool KeysDown_514; + public bool KeysDown_515; + public bool KeysDown_516; + public bool KeysDown_517; + public bool KeysDown_518; + public bool KeysDown_519; + public bool KeysDown_520; + public bool KeysDown_521; + public bool KeysDown_522; + public bool KeysDown_523; + public bool KeysDown_524; + public bool KeysDown_525; + public bool KeysDown_526; + public bool KeysDown_527; + public bool KeysDown_528; + public bool KeysDown_529; + public bool KeysDown_530; + public bool KeysDown_531; + public bool KeysDown_532; + public bool KeysDown_533; + public bool KeysDown_534; + public bool KeysDown_535; + public bool KeysDown_536; + public bool KeysDown_537; + public bool KeysDown_538; + public bool KeysDown_539; + public bool KeysDown_540; + public bool KeysDown_541; + public bool KeysDown_542; + public bool KeysDown_543; + public bool KeysDown_544; + public bool KeysDown_545; + public bool KeysDown_546; + public bool KeysDown_547; + public bool KeysDown_548; + public bool KeysDown_549; + public bool KeysDown_550; + public bool KeysDown_551; + public bool KeysDown_552; + public bool KeysDown_553; + public bool KeysDown_554; + public bool KeysDown_555; + public bool KeysDown_556; + public bool KeysDown_557; + public bool KeysDown_558; + public bool KeysDown_559; + public bool KeysDown_560; + public bool KeysDown_561; + public bool KeysDown_562; + public bool KeysDown_563; + public bool KeysDown_564; + public bool KeysDown_565; + public bool KeysDown_566; + public bool KeysDown_567; + public bool KeysDown_568; + public bool KeysDown_569; + public bool KeysDown_570; + public bool KeysDown_571; + public bool KeysDown_572; + public bool KeysDown_573; + public bool KeysDown_574; + public bool KeysDown_575; + public bool KeysDown_576; + public bool KeysDown_577; + public bool KeysDown_578; + public bool KeysDown_579; + public bool KeysDown_580; + public bool KeysDown_581; + public bool KeysDown_582; + public bool KeysDown_583; + public bool KeysDown_584; + public bool KeysDown_585; + public bool KeysDown_586; + public bool KeysDown_587; + public bool KeysDown_588; + public bool KeysDown_589; + public bool KeysDown_590; + public bool KeysDown_591; + public bool KeysDown_592; + public bool KeysDown_593; + public bool KeysDown_594; + public bool KeysDown_595; + public bool KeysDown_596; + public bool KeysDown_597; + public bool KeysDown_598; + public bool KeysDown_599; + public bool KeysDown_600; + public bool KeysDown_601; + public bool KeysDown_602; + public bool KeysDown_603; + public bool KeysDown_604; + public bool KeysDown_605; + public bool KeysDown_606; + public bool KeysDown_607; + public bool KeysDown_608; + public bool KeysDown_609; + public bool KeysDown_610; + public bool KeysDown_611; + public bool KeysDown_612; + public bool KeysDown_613; + public bool KeysDown_614; + public bool KeysDown_615; + public bool KeysDown_616; + public bool KeysDown_617; + public bool KeysDown_618; + public bool KeysDown_619; + public bool KeysDown_620; + public bool KeysDown_621; + public bool KeysDown_622; + public bool KeysDown_623; + public bool KeysDown_624; + public bool KeysDown_625; + public bool KeysDown_626; + public bool KeysDown_627; + public bool KeysDown_628; + public bool KeysDown_629; + public bool KeysDown_630; + public bool KeysDown_631; + public bool KeysDown_632; + public bool KeysDown_633; + public bool KeysDown_634; + public bool KeysDown_635; + public bool KeysDown_636; + public bool KeysDown_637; + public bool KeysDown_638; + public bool KeysDown_639; + public bool KeysDown_640; + public bool KeysDown_641; + public bool KeysDown_642; + public bool KeysDown_643; + public bool KeysDown_644; + public Vector2 MousePos; + public bool MouseDown_0; + public bool MouseDown_1; + public bool MouseDown_2; + public bool MouseDown_3; + public bool MouseDown_4; + public float MouseWheel; + public float MouseWheelH; + public uint MouseHoveredViewport; + public byte KeyCtrl; + public byte KeyShift; + public byte KeyAlt; + public byte KeySuper; + public float NavInputs_0; + public float NavInputs_1; + public float NavInputs_2; + public float NavInputs_3; + public float NavInputs_4; + public float NavInputs_5; + public float NavInputs_6; + public float NavInputs_7; + public float NavInputs_8; + public float NavInputs_9; + public float NavInputs_10; + public float NavInputs_11; + public float NavInputs_12; + public float NavInputs_13; + public float NavInputs_14; + public float NavInputs_15; + public float NavInputs_16; + public float NavInputs_17; + public float NavInputs_18; + public float NavInputs_19; + public float NavInputs_20; + public ImGuiModFlags KeyMods; + public ImGuiKeyData KeysData_0; + public ImGuiKeyData KeysData_1; + public ImGuiKeyData KeysData_2; + public ImGuiKeyData KeysData_3; + public ImGuiKeyData KeysData_4; + public ImGuiKeyData KeysData_5; + public ImGuiKeyData KeysData_6; + public ImGuiKeyData KeysData_7; + public ImGuiKeyData KeysData_8; + public ImGuiKeyData KeysData_9; + public ImGuiKeyData KeysData_10; + public ImGuiKeyData KeysData_11; + public ImGuiKeyData KeysData_12; + public ImGuiKeyData KeysData_13; + public ImGuiKeyData KeysData_14; + public ImGuiKeyData KeysData_15; + public ImGuiKeyData KeysData_16; + public ImGuiKeyData KeysData_17; + public ImGuiKeyData KeysData_18; + public ImGuiKeyData KeysData_19; + public ImGuiKeyData KeysData_20; + public ImGuiKeyData KeysData_21; + public ImGuiKeyData KeysData_22; + public ImGuiKeyData KeysData_23; + public ImGuiKeyData KeysData_24; + public ImGuiKeyData KeysData_25; + public ImGuiKeyData KeysData_26; + public ImGuiKeyData KeysData_27; + public ImGuiKeyData KeysData_28; + public ImGuiKeyData KeysData_29; + public ImGuiKeyData KeysData_30; + public ImGuiKeyData KeysData_31; + public ImGuiKeyData KeysData_32; + public ImGuiKeyData KeysData_33; + public ImGuiKeyData KeysData_34; + public ImGuiKeyData KeysData_35; + public ImGuiKeyData KeysData_36; + public ImGuiKeyData KeysData_37; + public ImGuiKeyData KeysData_38; + public ImGuiKeyData KeysData_39; + public ImGuiKeyData KeysData_40; + public ImGuiKeyData KeysData_41; + public ImGuiKeyData KeysData_42; + public ImGuiKeyData KeysData_43; + public ImGuiKeyData KeysData_44; + public ImGuiKeyData KeysData_45; + public ImGuiKeyData KeysData_46; + public ImGuiKeyData KeysData_47; + public ImGuiKeyData KeysData_48; + public ImGuiKeyData KeysData_49; + public ImGuiKeyData KeysData_50; + public ImGuiKeyData KeysData_51; + public ImGuiKeyData KeysData_52; + public ImGuiKeyData KeysData_53; + public ImGuiKeyData KeysData_54; + public ImGuiKeyData KeysData_55; + public ImGuiKeyData KeysData_56; + public ImGuiKeyData KeysData_57; + public ImGuiKeyData KeysData_58; + public ImGuiKeyData KeysData_59; + public ImGuiKeyData KeysData_60; + public ImGuiKeyData KeysData_61; + public ImGuiKeyData KeysData_62; + public ImGuiKeyData KeysData_63; + public ImGuiKeyData KeysData_64; + public ImGuiKeyData KeysData_65; + public ImGuiKeyData KeysData_66; + public ImGuiKeyData KeysData_67; + public ImGuiKeyData KeysData_68; + public ImGuiKeyData KeysData_69; + public ImGuiKeyData KeysData_70; + public ImGuiKeyData KeysData_71; + public ImGuiKeyData KeysData_72; + public ImGuiKeyData KeysData_73; + public ImGuiKeyData KeysData_74; + public ImGuiKeyData KeysData_75; + public ImGuiKeyData KeysData_76; + public ImGuiKeyData KeysData_77; + public ImGuiKeyData KeysData_78; + public ImGuiKeyData KeysData_79; + public ImGuiKeyData KeysData_80; + public ImGuiKeyData KeysData_81; + public ImGuiKeyData KeysData_82; + public ImGuiKeyData KeysData_83; + public ImGuiKeyData KeysData_84; + public ImGuiKeyData KeysData_85; + public ImGuiKeyData KeysData_86; + public ImGuiKeyData KeysData_87; + public ImGuiKeyData KeysData_88; + public ImGuiKeyData KeysData_89; + public ImGuiKeyData KeysData_90; + public ImGuiKeyData KeysData_91; + public ImGuiKeyData KeysData_92; + public ImGuiKeyData KeysData_93; + public ImGuiKeyData KeysData_94; + public ImGuiKeyData KeysData_95; + public ImGuiKeyData KeysData_96; + public ImGuiKeyData KeysData_97; + public ImGuiKeyData KeysData_98; + public ImGuiKeyData KeysData_99; + public ImGuiKeyData KeysData_100; + public ImGuiKeyData KeysData_101; + public ImGuiKeyData KeysData_102; + public ImGuiKeyData KeysData_103; + public ImGuiKeyData KeysData_104; + public ImGuiKeyData KeysData_105; + public ImGuiKeyData KeysData_106; + public ImGuiKeyData KeysData_107; + public ImGuiKeyData KeysData_108; + public ImGuiKeyData KeysData_109; + public ImGuiKeyData KeysData_110; + public ImGuiKeyData KeysData_111; + public ImGuiKeyData KeysData_112; + public ImGuiKeyData KeysData_113; + public ImGuiKeyData KeysData_114; + public ImGuiKeyData KeysData_115; + public ImGuiKeyData KeysData_116; + public ImGuiKeyData KeysData_117; + public ImGuiKeyData KeysData_118; + public ImGuiKeyData KeysData_119; + public ImGuiKeyData KeysData_120; + public ImGuiKeyData KeysData_121; + public ImGuiKeyData KeysData_122; + public ImGuiKeyData KeysData_123; + public ImGuiKeyData KeysData_124; + public ImGuiKeyData KeysData_125; + public ImGuiKeyData KeysData_126; + public ImGuiKeyData KeysData_127; + public ImGuiKeyData KeysData_128; + public ImGuiKeyData KeysData_129; + public ImGuiKeyData KeysData_130; + public ImGuiKeyData KeysData_131; + public ImGuiKeyData KeysData_132; + public ImGuiKeyData KeysData_133; + public ImGuiKeyData KeysData_134; + public ImGuiKeyData KeysData_135; + public ImGuiKeyData KeysData_136; + public ImGuiKeyData KeysData_137; + public ImGuiKeyData KeysData_138; + public ImGuiKeyData KeysData_139; + public ImGuiKeyData KeysData_140; + public ImGuiKeyData KeysData_141; + public ImGuiKeyData KeysData_142; + public ImGuiKeyData KeysData_143; + public ImGuiKeyData KeysData_144; + public ImGuiKeyData KeysData_145; + public ImGuiKeyData KeysData_146; + public ImGuiKeyData KeysData_147; + public ImGuiKeyData KeysData_148; + public ImGuiKeyData KeysData_149; + public ImGuiKeyData KeysData_150; + public ImGuiKeyData KeysData_151; + public ImGuiKeyData KeysData_152; + public ImGuiKeyData KeysData_153; + public ImGuiKeyData KeysData_154; + public ImGuiKeyData KeysData_155; + public ImGuiKeyData KeysData_156; + public ImGuiKeyData KeysData_157; + public ImGuiKeyData KeysData_158; + public ImGuiKeyData KeysData_159; + public ImGuiKeyData KeysData_160; + public ImGuiKeyData KeysData_161; + public ImGuiKeyData KeysData_162; + public ImGuiKeyData KeysData_163; + public ImGuiKeyData KeysData_164; + public ImGuiKeyData KeysData_165; + public ImGuiKeyData KeysData_166; + public ImGuiKeyData KeysData_167; + public ImGuiKeyData KeysData_168; + public ImGuiKeyData KeysData_169; + public ImGuiKeyData KeysData_170; + public ImGuiKeyData KeysData_171; + public ImGuiKeyData KeysData_172; + public ImGuiKeyData KeysData_173; + public ImGuiKeyData KeysData_174; + public ImGuiKeyData KeysData_175; + public ImGuiKeyData KeysData_176; + public ImGuiKeyData KeysData_177; + public ImGuiKeyData KeysData_178; + public ImGuiKeyData KeysData_179; + public ImGuiKeyData KeysData_180; + public ImGuiKeyData KeysData_181; + public ImGuiKeyData KeysData_182; + public ImGuiKeyData KeysData_183; + public ImGuiKeyData KeysData_184; + public ImGuiKeyData KeysData_185; + public ImGuiKeyData KeysData_186; + public ImGuiKeyData KeysData_187; + public ImGuiKeyData KeysData_188; + public ImGuiKeyData KeysData_189; + public ImGuiKeyData KeysData_190; + public ImGuiKeyData KeysData_191; + public ImGuiKeyData KeysData_192; + public ImGuiKeyData KeysData_193; + public ImGuiKeyData KeysData_194; + public ImGuiKeyData KeysData_195; + public ImGuiKeyData KeysData_196; + public ImGuiKeyData KeysData_197; + public ImGuiKeyData KeysData_198; + public ImGuiKeyData KeysData_199; + public ImGuiKeyData KeysData_200; + public ImGuiKeyData KeysData_201; + public ImGuiKeyData KeysData_202; + public ImGuiKeyData KeysData_203; + public ImGuiKeyData KeysData_204; + public ImGuiKeyData KeysData_205; + public ImGuiKeyData KeysData_206; + public ImGuiKeyData KeysData_207; + public ImGuiKeyData KeysData_208; + public ImGuiKeyData KeysData_209; + public ImGuiKeyData KeysData_210; + public ImGuiKeyData KeysData_211; + public ImGuiKeyData KeysData_212; + public ImGuiKeyData KeysData_213; + public ImGuiKeyData KeysData_214; + public ImGuiKeyData KeysData_215; + public ImGuiKeyData KeysData_216; + public ImGuiKeyData KeysData_217; + public ImGuiKeyData KeysData_218; + public ImGuiKeyData KeysData_219; + public ImGuiKeyData KeysData_220; + public ImGuiKeyData KeysData_221; + public ImGuiKeyData KeysData_222; + public ImGuiKeyData KeysData_223; + public ImGuiKeyData KeysData_224; + public ImGuiKeyData KeysData_225; + public ImGuiKeyData KeysData_226; + public ImGuiKeyData KeysData_227; + public ImGuiKeyData KeysData_228; + public ImGuiKeyData KeysData_229; + public ImGuiKeyData KeysData_230; + public ImGuiKeyData KeysData_231; + public ImGuiKeyData KeysData_232; + public ImGuiKeyData KeysData_233; + public ImGuiKeyData KeysData_234; + public ImGuiKeyData KeysData_235; + public ImGuiKeyData KeysData_236; + public ImGuiKeyData KeysData_237; + public ImGuiKeyData KeysData_238; + public ImGuiKeyData KeysData_239; + public ImGuiKeyData KeysData_240; + public ImGuiKeyData KeysData_241; + public ImGuiKeyData KeysData_242; + public ImGuiKeyData KeysData_243; + public ImGuiKeyData KeysData_244; + public ImGuiKeyData KeysData_245; + public ImGuiKeyData KeysData_246; + public ImGuiKeyData KeysData_247; + public ImGuiKeyData KeysData_248; + public ImGuiKeyData KeysData_249; + public ImGuiKeyData KeysData_250; + public ImGuiKeyData KeysData_251; + public ImGuiKeyData KeysData_252; + public ImGuiKeyData KeysData_253; + public ImGuiKeyData KeysData_254; + public ImGuiKeyData KeysData_255; + public ImGuiKeyData KeysData_256; + public ImGuiKeyData KeysData_257; + public ImGuiKeyData KeysData_258; + public ImGuiKeyData KeysData_259; + public ImGuiKeyData KeysData_260; + public ImGuiKeyData KeysData_261; + public ImGuiKeyData KeysData_262; + public ImGuiKeyData KeysData_263; + public ImGuiKeyData KeysData_264; + public ImGuiKeyData KeysData_265; + public ImGuiKeyData KeysData_266; + public ImGuiKeyData KeysData_267; + public ImGuiKeyData KeysData_268; + public ImGuiKeyData KeysData_269; + public ImGuiKeyData KeysData_270; + public ImGuiKeyData KeysData_271; + public ImGuiKeyData KeysData_272; + public ImGuiKeyData KeysData_273; + public ImGuiKeyData KeysData_274; + public ImGuiKeyData KeysData_275; + public ImGuiKeyData KeysData_276; + public ImGuiKeyData KeysData_277; + public ImGuiKeyData KeysData_278; + public ImGuiKeyData KeysData_279; + public ImGuiKeyData KeysData_280; + public ImGuiKeyData KeysData_281; + public ImGuiKeyData KeysData_282; + public ImGuiKeyData KeysData_283; + public ImGuiKeyData KeysData_284; + public ImGuiKeyData KeysData_285; + public ImGuiKeyData KeysData_286; + public ImGuiKeyData KeysData_287; + public ImGuiKeyData KeysData_288; + public ImGuiKeyData KeysData_289; + public ImGuiKeyData KeysData_290; + public ImGuiKeyData KeysData_291; + public ImGuiKeyData KeysData_292; + public ImGuiKeyData KeysData_293; + public ImGuiKeyData KeysData_294; + public ImGuiKeyData KeysData_295; + public ImGuiKeyData KeysData_296; + public ImGuiKeyData KeysData_297; + public ImGuiKeyData KeysData_298; + public ImGuiKeyData KeysData_299; + public ImGuiKeyData KeysData_300; + public ImGuiKeyData KeysData_301; + public ImGuiKeyData KeysData_302; + public ImGuiKeyData KeysData_303; + public ImGuiKeyData KeysData_304; + public ImGuiKeyData KeysData_305; + public ImGuiKeyData KeysData_306; + public ImGuiKeyData KeysData_307; + public ImGuiKeyData KeysData_308; + public ImGuiKeyData KeysData_309; + public ImGuiKeyData KeysData_310; + public ImGuiKeyData KeysData_311; + public ImGuiKeyData KeysData_312; + public ImGuiKeyData KeysData_313; + public ImGuiKeyData KeysData_314; + public ImGuiKeyData KeysData_315; + public ImGuiKeyData KeysData_316; + public ImGuiKeyData KeysData_317; + public ImGuiKeyData KeysData_318; + public ImGuiKeyData KeysData_319; + public ImGuiKeyData KeysData_320; + public ImGuiKeyData KeysData_321; + public ImGuiKeyData KeysData_322; + public ImGuiKeyData KeysData_323; + public ImGuiKeyData KeysData_324; + public ImGuiKeyData KeysData_325; + public ImGuiKeyData KeysData_326; + public ImGuiKeyData KeysData_327; + public ImGuiKeyData KeysData_328; + public ImGuiKeyData KeysData_329; + public ImGuiKeyData KeysData_330; + public ImGuiKeyData KeysData_331; + public ImGuiKeyData KeysData_332; + public ImGuiKeyData KeysData_333; + public ImGuiKeyData KeysData_334; + public ImGuiKeyData KeysData_335; + public ImGuiKeyData KeysData_336; + public ImGuiKeyData KeysData_337; + public ImGuiKeyData KeysData_338; + public ImGuiKeyData KeysData_339; + public ImGuiKeyData KeysData_340; + public ImGuiKeyData KeysData_341; + public ImGuiKeyData KeysData_342; + public ImGuiKeyData KeysData_343; + public ImGuiKeyData KeysData_344; + public ImGuiKeyData KeysData_345; + public ImGuiKeyData KeysData_346; + public ImGuiKeyData KeysData_347; + public ImGuiKeyData KeysData_348; + public ImGuiKeyData KeysData_349; + public ImGuiKeyData KeysData_350; + public ImGuiKeyData KeysData_351; + public ImGuiKeyData KeysData_352; + public ImGuiKeyData KeysData_353; + public ImGuiKeyData KeysData_354; + public ImGuiKeyData KeysData_355; + public ImGuiKeyData KeysData_356; + public ImGuiKeyData KeysData_357; + public ImGuiKeyData KeysData_358; + public ImGuiKeyData KeysData_359; + public ImGuiKeyData KeysData_360; + public ImGuiKeyData KeysData_361; + public ImGuiKeyData KeysData_362; + public ImGuiKeyData KeysData_363; + public ImGuiKeyData KeysData_364; + public ImGuiKeyData KeysData_365; + public ImGuiKeyData KeysData_366; + public ImGuiKeyData KeysData_367; + public ImGuiKeyData KeysData_368; + public ImGuiKeyData KeysData_369; + public ImGuiKeyData KeysData_370; + public ImGuiKeyData KeysData_371; + public ImGuiKeyData KeysData_372; + public ImGuiKeyData KeysData_373; + public ImGuiKeyData KeysData_374; + public ImGuiKeyData KeysData_375; + public ImGuiKeyData KeysData_376; + public ImGuiKeyData KeysData_377; + public ImGuiKeyData KeysData_378; + public ImGuiKeyData KeysData_379; + public ImGuiKeyData KeysData_380; + public ImGuiKeyData KeysData_381; + public ImGuiKeyData KeysData_382; + public ImGuiKeyData KeysData_383; + public ImGuiKeyData KeysData_384; + public ImGuiKeyData KeysData_385; + public ImGuiKeyData KeysData_386; + public ImGuiKeyData KeysData_387; + public ImGuiKeyData KeysData_388; + public ImGuiKeyData KeysData_389; + public ImGuiKeyData KeysData_390; + public ImGuiKeyData KeysData_391; + public ImGuiKeyData KeysData_392; + public ImGuiKeyData KeysData_393; + public ImGuiKeyData KeysData_394; + public ImGuiKeyData KeysData_395; + public ImGuiKeyData KeysData_396; + public ImGuiKeyData KeysData_397; + public ImGuiKeyData KeysData_398; + public ImGuiKeyData KeysData_399; + public ImGuiKeyData KeysData_400; + public ImGuiKeyData KeysData_401; + public ImGuiKeyData KeysData_402; + public ImGuiKeyData KeysData_403; + public ImGuiKeyData KeysData_404; + public ImGuiKeyData KeysData_405; + public ImGuiKeyData KeysData_406; + public ImGuiKeyData KeysData_407; + public ImGuiKeyData KeysData_408; + public ImGuiKeyData KeysData_409; + public ImGuiKeyData KeysData_410; + public ImGuiKeyData KeysData_411; + public ImGuiKeyData KeysData_412; + public ImGuiKeyData KeysData_413; + public ImGuiKeyData KeysData_414; + public ImGuiKeyData KeysData_415; + public ImGuiKeyData KeysData_416; + public ImGuiKeyData KeysData_417; + public ImGuiKeyData KeysData_418; + public ImGuiKeyData KeysData_419; + public ImGuiKeyData KeysData_420; + public ImGuiKeyData KeysData_421; + public ImGuiKeyData KeysData_422; + public ImGuiKeyData KeysData_423; + public ImGuiKeyData KeysData_424; + public ImGuiKeyData KeysData_425; + public ImGuiKeyData KeysData_426; + public ImGuiKeyData KeysData_427; + public ImGuiKeyData KeysData_428; + public ImGuiKeyData KeysData_429; + public ImGuiKeyData KeysData_430; + public ImGuiKeyData KeysData_431; + public ImGuiKeyData KeysData_432; + public ImGuiKeyData KeysData_433; + public ImGuiKeyData KeysData_434; + public ImGuiKeyData KeysData_435; + public ImGuiKeyData KeysData_436; + public ImGuiKeyData KeysData_437; + public ImGuiKeyData KeysData_438; + public ImGuiKeyData KeysData_439; + public ImGuiKeyData KeysData_440; + public ImGuiKeyData KeysData_441; + public ImGuiKeyData KeysData_442; + public ImGuiKeyData KeysData_443; + public ImGuiKeyData KeysData_444; + public ImGuiKeyData KeysData_445; + public ImGuiKeyData KeysData_446; + public ImGuiKeyData KeysData_447; + public ImGuiKeyData KeysData_448; + public ImGuiKeyData KeysData_449; + public ImGuiKeyData KeysData_450; + public ImGuiKeyData KeysData_451; + public ImGuiKeyData KeysData_452; + public ImGuiKeyData KeysData_453; + public ImGuiKeyData KeysData_454; + public ImGuiKeyData KeysData_455; + public ImGuiKeyData KeysData_456; + public ImGuiKeyData KeysData_457; + public ImGuiKeyData KeysData_458; + public ImGuiKeyData KeysData_459; + public ImGuiKeyData KeysData_460; + public ImGuiKeyData KeysData_461; + public ImGuiKeyData KeysData_462; + public ImGuiKeyData KeysData_463; + public ImGuiKeyData KeysData_464; + public ImGuiKeyData KeysData_465; + public ImGuiKeyData KeysData_466; + public ImGuiKeyData KeysData_467; + public ImGuiKeyData KeysData_468; + public ImGuiKeyData KeysData_469; + public ImGuiKeyData KeysData_470; + public ImGuiKeyData KeysData_471; + public ImGuiKeyData KeysData_472; + public ImGuiKeyData KeysData_473; + public ImGuiKeyData KeysData_474; + public ImGuiKeyData KeysData_475; + public ImGuiKeyData KeysData_476; + public ImGuiKeyData KeysData_477; + public ImGuiKeyData KeysData_478; + public ImGuiKeyData KeysData_479; + public ImGuiKeyData KeysData_480; + public ImGuiKeyData KeysData_481; + public ImGuiKeyData KeysData_482; + public ImGuiKeyData KeysData_483; + public ImGuiKeyData KeysData_484; + public ImGuiKeyData KeysData_485; + public ImGuiKeyData KeysData_486; + public ImGuiKeyData KeysData_487; + public ImGuiKeyData KeysData_488; + public ImGuiKeyData KeysData_489; + public ImGuiKeyData KeysData_490; + public ImGuiKeyData KeysData_491; + public ImGuiKeyData KeysData_492; + public ImGuiKeyData KeysData_493; + public ImGuiKeyData KeysData_494; + public ImGuiKeyData KeysData_495; + public ImGuiKeyData KeysData_496; + public ImGuiKeyData KeysData_497; + public ImGuiKeyData KeysData_498; + public ImGuiKeyData KeysData_499; + public ImGuiKeyData KeysData_500; + public ImGuiKeyData KeysData_501; + public ImGuiKeyData KeysData_502; + public ImGuiKeyData KeysData_503; + public ImGuiKeyData KeysData_504; + public ImGuiKeyData KeysData_505; + public ImGuiKeyData KeysData_506; + public ImGuiKeyData KeysData_507; + public ImGuiKeyData KeysData_508; + public ImGuiKeyData KeysData_509; + public ImGuiKeyData KeysData_510; + public ImGuiKeyData KeysData_511; + public ImGuiKeyData KeysData_512; + public ImGuiKeyData KeysData_513; + public ImGuiKeyData KeysData_514; + public ImGuiKeyData KeysData_515; + public ImGuiKeyData KeysData_516; + public ImGuiKeyData KeysData_517; + public ImGuiKeyData KeysData_518; + public ImGuiKeyData KeysData_519; + public ImGuiKeyData KeysData_520; + public ImGuiKeyData KeysData_521; + public ImGuiKeyData KeysData_522; + public ImGuiKeyData KeysData_523; + public ImGuiKeyData KeysData_524; + public ImGuiKeyData KeysData_525; + public ImGuiKeyData KeysData_526; + public ImGuiKeyData KeysData_527; + public ImGuiKeyData KeysData_528; + public ImGuiKeyData KeysData_529; + public ImGuiKeyData KeysData_530; + public ImGuiKeyData KeysData_531; + public ImGuiKeyData KeysData_532; + public ImGuiKeyData KeysData_533; + public ImGuiKeyData KeysData_534; + public ImGuiKeyData KeysData_535; + public ImGuiKeyData KeysData_536; + public ImGuiKeyData KeysData_537; + public ImGuiKeyData KeysData_538; + public ImGuiKeyData KeysData_539; + public ImGuiKeyData KeysData_540; + public ImGuiKeyData KeysData_541; + public ImGuiKeyData KeysData_542; + public ImGuiKeyData KeysData_543; + public ImGuiKeyData KeysData_544; + public ImGuiKeyData KeysData_545; + public ImGuiKeyData KeysData_546; + public ImGuiKeyData KeysData_547; + public ImGuiKeyData KeysData_548; + public ImGuiKeyData KeysData_549; + public ImGuiKeyData KeysData_550; + public ImGuiKeyData KeysData_551; + public ImGuiKeyData KeysData_552; + public ImGuiKeyData KeysData_553; + public ImGuiKeyData KeysData_554; + public ImGuiKeyData KeysData_555; + public ImGuiKeyData KeysData_556; + public ImGuiKeyData KeysData_557; + public ImGuiKeyData KeysData_558; + public ImGuiKeyData KeysData_559; + public ImGuiKeyData KeysData_560; + public ImGuiKeyData KeysData_561; + public ImGuiKeyData KeysData_562; + public ImGuiKeyData KeysData_563; + public ImGuiKeyData KeysData_564; + public ImGuiKeyData KeysData_565; + public ImGuiKeyData KeysData_566; + public ImGuiKeyData KeysData_567; + public ImGuiKeyData KeysData_568; + public ImGuiKeyData KeysData_569; + public ImGuiKeyData KeysData_570; + public ImGuiKeyData KeysData_571; + public ImGuiKeyData KeysData_572; + public ImGuiKeyData KeysData_573; + public ImGuiKeyData KeysData_574; + public ImGuiKeyData KeysData_575; + public ImGuiKeyData KeysData_576; + public ImGuiKeyData KeysData_577; + public ImGuiKeyData KeysData_578; + public ImGuiKeyData KeysData_579; + public ImGuiKeyData KeysData_580; + public ImGuiKeyData KeysData_581; + public ImGuiKeyData KeysData_582; + public ImGuiKeyData KeysData_583; + public ImGuiKeyData KeysData_584; + public ImGuiKeyData KeysData_585; + public ImGuiKeyData KeysData_586; + public ImGuiKeyData KeysData_587; + public ImGuiKeyData KeysData_588; + public ImGuiKeyData KeysData_589; + public ImGuiKeyData KeysData_590; + public ImGuiKeyData KeysData_591; + public ImGuiKeyData KeysData_592; + public ImGuiKeyData KeysData_593; + public ImGuiKeyData KeysData_594; + public ImGuiKeyData KeysData_595; + public ImGuiKeyData KeysData_596; + public ImGuiKeyData KeysData_597; + public ImGuiKeyData KeysData_598; + public ImGuiKeyData KeysData_599; + public ImGuiKeyData KeysData_600; + public ImGuiKeyData KeysData_601; + public ImGuiKeyData KeysData_602; + public ImGuiKeyData KeysData_603; + public ImGuiKeyData KeysData_604; + public ImGuiKeyData KeysData_605; + public ImGuiKeyData KeysData_606; + public ImGuiKeyData KeysData_607; + public ImGuiKeyData KeysData_608; + public ImGuiKeyData KeysData_609; + public ImGuiKeyData KeysData_610; + public ImGuiKeyData KeysData_611; + public ImGuiKeyData KeysData_612; + public ImGuiKeyData KeysData_613; + public ImGuiKeyData KeysData_614; + public ImGuiKeyData KeysData_615; + public ImGuiKeyData KeysData_616; + public ImGuiKeyData KeysData_617; + public ImGuiKeyData KeysData_618; + public ImGuiKeyData KeysData_619; + public ImGuiKeyData KeysData_620; + public ImGuiKeyData KeysData_621; + public ImGuiKeyData KeysData_622; + public ImGuiKeyData KeysData_623; + public ImGuiKeyData KeysData_624; + public ImGuiKeyData KeysData_625; + public ImGuiKeyData KeysData_626; + public ImGuiKeyData KeysData_627; + public ImGuiKeyData KeysData_628; + public ImGuiKeyData KeysData_629; + public ImGuiKeyData KeysData_630; + public ImGuiKeyData KeysData_631; + public ImGuiKeyData KeysData_632; + public ImGuiKeyData KeysData_633; + public ImGuiKeyData KeysData_634; + public ImGuiKeyData KeysData_635; + public ImGuiKeyData KeysData_636; + public ImGuiKeyData KeysData_637; + public ImGuiKeyData KeysData_638; + public ImGuiKeyData KeysData_639; + public ImGuiKeyData KeysData_640; + public ImGuiKeyData KeysData_641; + public ImGuiKeyData KeysData_642; + public ImGuiKeyData KeysData_643; + public ImGuiKeyData KeysData_644; + public byte WantCaptureMouseUnlessPopupClose; + public Vector2 MousePosPrev; + public Vector2 MouseClickedPos_0; + public Vector2 MouseClickedPos_1; + public Vector2 MouseClickedPos_2; + public Vector2 MouseClickedPos_3; + public Vector2 MouseClickedPos_4; + public double MouseClickedTime_0; + public double MouseClickedTime_1; + public double MouseClickedTime_2; + public double MouseClickedTime_3; + public double MouseClickedTime_4; + public bool MouseClicked_0; + public bool MouseClicked_1; + public bool MouseClicked_2; + public bool MouseClicked_3; + public bool MouseClicked_4; + public bool MouseDoubleClicked_0; + public bool MouseDoubleClicked_1; + public bool MouseDoubleClicked_2; + public bool MouseDoubleClicked_3; + public bool MouseDoubleClicked_4; + public ushort MouseClickedCount_0; + public ushort MouseClickedCount_1; + public ushort MouseClickedCount_2; + public ushort MouseClickedCount_3; + public ushort MouseClickedCount_4; + public ushort MouseClickedLastCount_0; + public ushort MouseClickedLastCount_1; + public ushort MouseClickedLastCount_2; + public ushort MouseClickedLastCount_3; + public ushort MouseClickedLastCount_4; + public bool MouseReleased_0; + public bool MouseReleased_1; + public bool MouseReleased_2; + public bool MouseReleased_3; + public bool MouseReleased_4; + public bool MouseDownOwned_0; + public bool MouseDownOwned_1; + public bool MouseDownOwned_2; + public bool MouseDownOwned_3; + public bool MouseDownOwned_4; + public bool MouseDownOwnedUnlessPopupClose_0; + public bool MouseDownOwnedUnlessPopupClose_1; + public bool MouseDownOwnedUnlessPopupClose_2; + public bool MouseDownOwnedUnlessPopupClose_3; + public bool MouseDownOwnedUnlessPopupClose_4; + public float MouseDownDuration_0; + public float MouseDownDuration_1; + public float MouseDownDuration_2; + public float MouseDownDuration_3; + public float MouseDownDuration_4; + public float MouseDownDurationPrev_0; + public float MouseDownDurationPrev_1; + public float MouseDownDurationPrev_2; + public float MouseDownDurationPrev_3; + public float MouseDownDurationPrev_4; + public Vector2 MouseDragMaxDistanceAbs_0; + public Vector2 MouseDragMaxDistanceAbs_1; + public Vector2 MouseDragMaxDistanceAbs_2; + public Vector2 MouseDragMaxDistanceAbs_3; + public Vector2 MouseDragMaxDistanceAbs_4; + public float MouseDragMaxDistanceSqr_0; + public float MouseDragMaxDistanceSqr_1; + public float MouseDragMaxDistanceSqr_2; + public float MouseDragMaxDistanceSqr_3; + public float MouseDragMaxDistanceSqr_4; + public float NavInputsDownDuration_0; + public float NavInputsDownDuration_1; + public float NavInputsDownDuration_2; + public float NavInputsDownDuration_3; + public float NavInputsDownDuration_4; + public float NavInputsDownDuration_5; + public float NavInputsDownDuration_6; + public float NavInputsDownDuration_7; + public float NavInputsDownDuration_8; + public float NavInputsDownDuration_9; + public float NavInputsDownDuration_10; + public float NavInputsDownDuration_11; + public float NavInputsDownDuration_12; + public float NavInputsDownDuration_13; + public float NavInputsDownDuration_14; + public float NavInputsDownDuration_15; + public float NavInputsDownDuration_16; + public float NavInputsDownDuration_17; + public float NavInputsDownDuration_18; + public float NavInputsDownDuration_19; + public float NavInputsDownDuration_20; + public float NavInputsDownDurationPrev_0; + public float NavInputsDownDurationPrev_1; + public float NavInputsDownDurationPrev_2; + public float NavInputsDownDurationPrev_3; + public float NavInputsDownDurationPrev_4; + public float NavInputsDownDurationPrev_5; + public float NavInputsDownDurationPrev_6; + public float NavInputsDownDurationPrev_7; + public float NavInputsDownDurationPrev_8; + public float NavInputsDownDurationPrev_9; + public float NavInputsDownDurationPrev_10; + public float NavInputsDownDurationPrev_11; + public float NavInputsDownDurationPrev_12; + public float NavInputsDownDurationPrev_13; + public float NavInputsDownDurationPrev_14; + public float NavInputsDownDurationPrev_15; + public float NavInputsDownDurationPrev_16; + public float NavInputsDownDurationPrev_17; + public float NavInputsDownDurationPrev_18; + public float NavInputsDownDurationPrev_19; + public float NavInputsDownDurationPrev_20; + public float PenPressure; + public byte AppFocusLost; + public byte AppAcceptingEvents; + public sbyte BackendUsingLegacyKeyArrays; + public byte BackendUsingLegacyNavInputArray; + public ushort InputQueueSurrogate; + public ImVector InputQueueCharacters; + 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; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + UnusedPadding = unusedPadding; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MetricsActiveAllocations = metricsActiveAllocations; + MouseDelta = mouseDelta; + if (keyMap != default(int*)) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + } + if (keysDown != default(bool*)) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + } + MousePos = mousePos; + if (mouseDown != default(bool*)) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + if (navInputs != default(float*)) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + NavInputs_16 = navInputs[16]; + NavInputs_17 = navInputs[17]; + NavInputs_18 = navInputs[18]; + NavInputs_19 = navInputs[19]; + NavInputs_20 = navInputs[20]; + } + KeyMods = keyMods; + if (keysData != default(ImGuiKeyData*)) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default(Vector2*)) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default(double*)) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default(bool*)) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default(bool*)) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default(ushort*)) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default(ushort*)) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default(bool*)) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default(bool*)) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default(bool*)) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + if (mouseDownDuration != default(float*)) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default(float*)) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default(Vector2*)) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default(float*)) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + if (navInputsDownDuration != default(float*)) + { + NavInputsDownDuration_0 = navInputsDownDuration[0]; + NavInputsDownDuration_1 = navInputsDownDuration[1]; + NavInputsDownDuration_2 = navInputsDownDuration[2]; + NavInputsDownDuration_3 = navInputsDownDuration[3]; + NavInputsDownDuration_4 = navInputsDownDuration[4]; + NavInputsDownDuration_5 = navInputsDownDuration[5]; + NavInputsDownDuration_6 = navInputsDownDuration[6]; + NavInputsDownDuration_7 = navInputsDownDuration[7]; + NavInputsDownDuration_8 = navInputsDownDuration[8]; + NavInputsDownDuration_9 = navInputsDownDuration[9]; + NavInputsDownDuration_10 = navInputsDownDuration[10]; + NavInputsDownDuration_11 = navInputsDownDuration[11]; + NavInputsDownDuration_12 = navInputsDownDuration[12]; + NavInputsDownDuration_13 = navInputsDownDuration[13]; + NavInputsDownDuration_14 = navInputsDownDuration[14]; + NavInputsDownDuration_15 = navInputsDownDuration[15]; + NavInputsDownDuration_16 = navInputsDownDuration[16]; + NavInputsDownDuration_17 = navInputsDownDuration[17]; + NavInputsDownDuration_18 = navInputsDownDuration[18]; + NavInputsDownDuration_19 = navInputsDownDuration[19]; + NavInputsDownDuration_20 = navInputsDownDuration[20]; + } + if (navInputsDownDurationPrev != default(float*)) + { + NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; + NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; + NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; + NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; + NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; + NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; + NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; + NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; + NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; + NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; + NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; + NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; + NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; + NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; + NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; + NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; + NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; + NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; + NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; + NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; + NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + 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; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + UnusedPadding = unusedPadding; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MetricsActiveAllocations = metricsActiveAllocations; + MouseDelta = mouseDelta; + if (keyMap != default(Span)) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + } + if (keysDown != default(Span)) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + } + MousePos = mousePos; + if (mouseDown != default(Span)) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + if (navInputs != default(Span)) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + NavInputs_16 = navInputs[16]; + NavInputs_17 = navInputs[17]; + NavInputs_18 = navInputs[18]; + NavInputs_19 = navInputs[19]; + NavInputs_20 = navInputs[20]; + } + KeyMods = keyMods; + if (keysData != default(Span)) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default(Span)) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default(Span)) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default(Span)) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default(Span)) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default(Span)) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default(Span)) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default(Span)) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default(Span)) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default(Span)) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + if (mouseDownDuration != default(Span)) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default(Span)) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default(Span)) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default(Span)) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + if (navInputsDownDuration != default(Span)) + { + NavInputsDownDuration_0 = navInputsDownDuration[0]; + NavInputsDownDuration_1 = navInputsDownDuration[1]; + NavInputsDownDuration_2 = navInputsDownDuration[2]; + NavInputsDownDuration_3 = navInputsDownDuration[3]; + NavInputsDownDuration_4 = navInputsDownDuration[4]; + NavInputsDownDuration_5 = navInputsDownDuration[5]; + NavInputsDownDuration_6 = navInputsDownDuration[6]; + NavInputsDownDuration_7 = navInputsDownDuration[7]; + NavInputsDownDuration_8 = navInputsDownDuration[8]; + NavInputsDownDuration_9 = navInputsDownDuration[9]; + NavInputsDownDuration_10 = navInputsDownDuration[10]; + NavInputsDownDuration_11 = navInputsDownDuration[11]; + NavInputsDownDuration_12 = navInputsDownDuration[12]; + NavInputsDownDuration_13 = navInputsDownDuration[13]; + NavInputsDownDuration_14 = navInputsDownDuration[14]; + NavInputsDownDuration_15 = navInputsDownDuration[15]; + NavInputsDownDuration_16 = navInputsDownDuration[16]; + NavInputsDownDuration_17 = navInputsDownDuration[17]; + NavInputsDownDuration_18 = navInputsDownDuration[18]; + NavInputsDownDuration_19 = navInputsDownDuration[19]; + NavInputsDownDuration_20 = navInputsDownDuration[20]; + } + if (navInputsDownDurationPrev != default(Span)) + { + NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; + NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; + NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; + NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; + NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; + NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; + NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; + NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; + NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; + NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; + NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; + NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; + NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; + NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; + NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; + NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; + NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; + NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; + NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; + NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; + NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + public unsafe Span KeysData + { + get + { + fixed (ImGuiKeyData* p = &this.KeysData_0) + { + return new Span(p, 645); + } + } + } + public unsafe Span MouseClickedPos + { + get + { + fixed (Vector2* p = &this.MouseClickedPos_0) + { + return new Span(p, 5); + } + } + } + public unsafe Span MouseDragMaxDistanceAbs + { + get + { + fixed (Vector2* p = &this.MouseDragMaxDistanceAbs_0) + { + return new Span(p, 5); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiIOPtr : IEquatable + { + public ImGuiIOPtr(ImGuiIO* handle) { Handle = handle; } + public ImGuiIO* Handle; + public bool IsNull => Handle == null; + public static ImGuiIOPtr Null => new ImGuiIOPtr(null); + public ImGuiIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiIOPtr(ImGuiIO* handle) => new ImGuiIOPtr(handle); + public static implicit operator ImGuiIO*(ImGuiIOPtr handle) => handle.Handle; + public static bool operator ==(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiIOPtr left, ImGuiIO* right) => left.Handle == right; + public static bool operator !=(ImGuiIOPtr left, ImGuiIO* right) => left.Handle != right; + public bool Equals(ImGuiIOPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiIOPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiConfigFlags ConfigFlags => ref Unsafe.AsRef(&Handle->ConfigFlags); + public ref ImGuiBackendFlags BackendFlags => ref Unsafe.AsRef(&Handle->BackendFlags); + public ref Vector2 DisplaySize => ref Unsafe.AsRef(&Handle->DisplaySize); + public ref float DeltaTime => ref Unsafe.AsRef(&Handle->DeltaTime); + public ref float IniSavingRate => ref Unsafe.AsRef(&Handle->IniSavingRate); + public byte* IniFilename { get => Handle->IniFilename; set => Handle->IniFilename = value; } + public byte* LogFilename { get => Handle->LogFilename; set => Handle->LogFilename = value; } + public ref float MouseDoubleClickTime => ref Unsafe.AsRef(&Handle->MouseDoubleClickTime); + public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef(&Handle->MouseDoubleClickMaxDist); + public ref float MouseDragThreshold => ref Unsafe.AsRef(&Handle->MouseDragThreshold); + public ref float KeyRepeatDelay => ref Unsafe.AsRef(&Handle->KeyRepeatDelay); + public ref float KeyRepeatRate => ref Unsafe.AsRef(&Handle->KeyRepeatRate); + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + public ref ImFontAtlasPtr Fonts => ref Unsafe.AsRef(&Handle->Fonts); + public ref float FontGlobalScale => ref Unsafe.AsRef(&Handle->FontGlobalScale); + public ref bool FontAllowUserScaling => ref Unsafe.AsRef(&Handle->FontAllowUserScaling); + public ref ImFontPtr FontDefault => ref Unsafe.AsRef(&Handle->FontDefault); + public ref Vector2 DisplayFramebufferScale => ref Unsafe.AsRef(&Handle->DisplayFramebufferScale); + public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef(&Handle->ConfigDockingNoSplit); + public ref bool ConfigDockingWithShift => ref Unsafe.AsRef(&Handle->ConfigDockingWithShift); + public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef(&Handle->ConfigDockingAlwaysTabBar); + public ref bool ConfigDockingTransparentPayload => ref Unsafe.AsRef(&Handle->ConfigDockingTransparentPayload); + public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef(&Handle->ConfigViewportsNoAutoMerge); + public ref bool ConfigViewportsNoTaskBarIcon => ref Unsafe.AsRef(&Handle->ConfigViewportsNoTaskBarIcon); + public ref bool ConfigViewportsNoDecoration => ref Unsafe.AsRef(&Handle->ConfigViewportsNoDecoration); + public ref bool ConfigViewportsNoDefaultParent => ref Unsafe.AsRef(&Handle->ConfigViewportsNoDefaultParent); + public ref bool MouseDrawCursor => ref Unsafe.AsRef(&Handle->MouseDrawCursor); + public ref bool ConfigMacOSXBehaviors => ref Unsafe.AsRef(&Handle->ConfigMacOSXBehaviors); + public ref bool ConfigInputTrickleEventQueue => ref Unsafe.AsRef(&Handle->ConfigInputTrickleEventQueue); + public ref bool ConfigInputTextCursorBlink => ref Unsafe.AsRef(&Handle->ConfigInputTextCursorBlink); + public ref bool ConfigDragClickToInputText => ref Unsafe.AsRef(&Handle->ConfigDragClickToInputText); + public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef(&Handle->ConfigWindowsResizeFromEdges); + public ref bool ConfigWindowsMoveFromTitleBarOnly => ref Unsafe.AsRef(&Handle->ConfigWindowsMoveFromTitleBarOnly); + public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef(&Handle->ConfigMemoryCompactTimer); + public byte* BackendPlatformName { get => Handle->BackendPlatformName; set => Handle->BackendPlatformName = value; } + public byte* BackendRendererName { get => Handle->BackendRendererName; set => Handle->BackendRendererName = value; } + public void* BackendPlatformUserData { get => Handle->BackendPlatformUserData; set => Handle->BackendPlatformUserData = value; } + public void* BackendRendererUserData { get => Handle->BackendRendererUserData; set => Handle->BackendRendererUserData = value; } + public void* BackendLanguageUserData { get => Handle->BackendLanguageUserData; set => Handle->BackendLanguageUserData = value; } + public void* GetClipboardTextFn { get => Handle->GetClipboardTextFn; set => Handle->GetClipboardTextFn = value; } + public void* SetClipboardTextFn { get => Handle->SetClipboardTextFn; set => Handle->SetClipboardTextFn = value; } + public void* ClipboardUserData { get => Handle->ClipboardUserData; set => Handle->ClipboardUserData = value; } + public void* SetPlatformImeDataFn { get => Handle->SetPlatformImeDataFn; set => Handle->SetPlatformImeDataFn = value; } + public void* UnusedPadding { get => Handle->UnusedPadding; set => Handle->UnusedPadding = value; } + public ref bool WantCaptureMouse => ref Unsafe.AsRef(&Handle->WantCaptureMouse); + public ref bool WantCaptureKeyboard => ref Unsafe.AsRef(&Handle->WantCaptureKeyboard); + public ref bool WantTextInput => ref Unsafe.AsRef(&Handle->WantTextInput); + public ref bool WantSetMousePos => ref Unsafe.AsRef(&Handle->WantSetMousePos); + public ref bool WantSaveIniSettings => ref Unsafe.AsRef(&Handle->WantSaveIniSettings); + public ref bool NavActive => ref Unsafe.AsRef(&Handle->NavActive); + public ref bool NavVisible => ref Unsafe.AsRef(&Handle->NavVisible); + public ref float Framerate => ref Unsafe.AsRef(&Handle->Framerate); + public ref int MetricsRenderVertices => ref Unsafe.AsRef(&Handle->MetricsRenderVertices); + public ref int MetricsRenderIndices => ref Unsafe.AsRef(&Handle->MetricsRenderIndices); + public ref int MetricsRenderWindows => ref Unsafe.AsRef(&Handle->MetricsRenderWindows); + public ref int MetricsActiveWindows => ref Unsafe.AsRef(&Handle->MetricsActiveWindows); + public ref int MetricsActiveAllocations => ref Unsafe.AsRef(&Handle->MetricsActiveAllocations); + public ref Vector2 MouseDelta => ref Unsafe.AsRef(&Handle->MouseDelta); + public unsafe Span KeyMap + { + get + { + return new Span(&Handle->KeyMap_0, 645); + } + } + public unsafe Span KeysDown + { + get + { + return new Span(&Handle->KeysDown_0, 645); + } + } + public ref Vector2 MousePos => ref Unsafe.AsRef(&Handle->MousePos); + public unsafe Span MouseDown + { + get + { + return new Span(&Handle->MouseDown_0, 5); + } + } + public ref float MouseWheel => ref Unsafe.AsRef(&Handle->MouseWheel); + public ref float MouseWheelH => ref Unsafe.AsRef(&Handle->MouseWheelH); + public ref uint MouseHoveredViewport => ref Unsafe.AsRef(&Handle->MouseHoveredViewport); + public ref bool KeyCtrl => ref Unsafe.AsRef(&Handle->KeyCtrl); + public ref bool KeyShift => ref Unsafe.AsRef(&Handle->KeyShift); + public ref bool KeyAlt => ref Unsafe.AsRef(&Handle->KeyAlt); + public ref bool KeySuper => ref Unsafe.AsRef(&Handle->KeySuper); + public unsafe Span NavInputs + { + get + { + return new Span(&Handle->NavInputs_0, 21); + } + } + public ref ImGuiModFlags KeyMods => ref Unsafe.AsRef(&Handle->KeyMods); + public unsafe Span KeysData + { + get + { + return new Span(&Handle->KeysData_0, 645); + } + } + public ref bool WantCaptureMouseUnlessPopupClose => ref Unsafe.AsRef(&Handle->WantCaptureMouseUnlessPopupClose); + public ref Vector2 MousePosPrev => ref Unsafe.AsRef(&Handle->MousePosPrev); + public unsafe Span MouseClickedPos + { + get + { + return new Span(&Handle->MouseClickedPos_0, 5); + } + } + public unsafe Span MouseClickedTime + { + get + { + return new Span(&Handle->MouseClickedTime_0, 5); + } + } + public unsafe Span MouseClicked + { + get + { + return new Span(&Handle->MouseClicked_0, 5); + } + } + public unsafe Span MouseDoubleClicked + { + get + { + return new Span(&Handle->MouseDoubleClicked_0, 5); + } + } + public unsafe Span MouseClickedCount + { + get + { + return new Span(&Handle->MouseClickedCount_0, 5); + } + } + public unsafe Span MouseClickedLastCount + { + get + { + return new Span(&Handle->MouseClickedLastCount_0, 5); + } + } + public unsafe Span MouseReleased + { + get + { + return new Span(&Handle->MouseReleased_0, 5); + } + } + public unsafe Span MouseDownOwned + { + get + { + return new Span(&Handle->MouseDownOwned_0, 5); + } + } + public unsafe Span MouseDownOwnedUnlessPopupClose + { + get + { + return new Span(&Handle->MouseDownOwnedUnlessPopupClose_0, 5); + } + } + public unsafe Span MouseDownDuration + { + get + { + return new Span(&Handle->MouseDownDuration_0, 5); + } + } + public unsafe Span MouseDownDurationPrev + { + get + { + return new Span(&Handle->MouseDownDurationPrev_0, 5); + } + } + public unsafe Span MouseDragMaxDistanceAbs + { + get + { + return new Span(&Handle->MouseDragMaxDistanceAbs_0, 5); + } + } + public unsafe Span MouseDragMaxDistanceSqr + { + get + { + return new Span(&Handle->MouseDragMaxDistanceSqr_0, 5); + } + } + public unsafe Span NavInputsDownDuration + { + get + { + return new Span(&Handle->NavInputsDownDuration_0, 21); + } + } + public unsafe Span NavInputsDownDurationPrev + { + get + { + return new Span(&Handle->NavInputsDownDurationPrev_0, 21); + } + } + public ref float PenPressure => ref Unsafe.AsRef(&Handle->PenPressure); + public ref bool AppFocusLost => ref Unsafe.AsRef(&Handle->AppFocusLost); + public ref bool AppAcceptingEvents => ref Unsafe.AsRef(&Handle->AppAcceptingEvents); + public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef(&Handle->BackendUsingLegacyKeyArrays); + public ref bool BackendUsingLegacyNavInputArray => ref Unsafe.AsRef(&Handle->BackendUsingLegacyNavInputArray); + public ref ushort InputQueueSurrogate => ref Unsafe.AsRef(&Handle->InputQueueSurrogate); + public ref ImVector InputQueueCharacters => ref Unsafe.AsRef>(&Handle->InputQueueCharacters); + } +} +/* ImGuiKeyData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyData + { + public byte Down; + public float DownDuration; + public float DownDurationPrev; + public float AnalogValue; + public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) + { + Down = down ? (byte)1 : (byte)0; + DownDuration = downDuration; + DownDurationPrev = downDurationPrev; + AnalogValue = analogValue; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiKeyDataPtr : IEquatable + { + public ImGuiKeyDataPtr(ImGuiKeyData* handle) { Handle = handle; } + public ImGuiKeyData* Handle; + public bool IsNull => Handle == null; + public static ImGuiKeyDataPtr Null => new ImGuiKeyDataPtr(null); + public ImGuiKeyData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiKeyDataPtr(ImGuiKeyData* handle) => new ImGuiKeyDataPtr(handle); + public static implicit operator ImGuiKeyData*(ImGuiKeyDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle == right; + public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle != right; + public bool Equals(ImGuiKeyDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiKeyDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiKeyDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref bool Down => ref Unsafe.AsRef(&Handle->Down); + public ref float DownDuration => ref Unsafe.AsRef(&Handle->DownDuration); + public ref float DownDurationPrev => ref Unsafe.AsRef(&Handle->DownDurationPrev); + public ref float AnalogValue => ref Unsafe.AsRef(&Handle->AnalogValue); + } +} +/* ImGuiLastItemData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiLastItemData + { + public uint ID; + public ImGuiItemFlags InFlags; + public ImGuiItemStatusFlags StatusFlags; + public ImRect Rect; + public ImRect NavRect; + public ImRect DisplayRect; + public unsafe ImGuiLastItemData(uint id = default, ImGuiItemFlags inFlags = default, ImGuiItemStatusFlags statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) + { + ID = id; + InFlags = inFlags; + StatusFlags = statusFlags; + Rect = rect; + NavRect = navRect; + DisplayRect = displayRect; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiLastItemDataPtr : IEquatable + { + public ImGuiLastItemDataPtr(ImGuiLastItemData* handle) { Handle = handle; } + public ImGuiLastItemData* Handle; + public bool IsNull => Handle == null; + public static ImGuiLastItemDataPtr Null => new ImGuiLastItemDataPtr(null); + public ImGuiLastItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* handle) => new ImGuiLastItemDataPtr(handle); + public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle == right; + public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle != right; + public bool Equals(ImGuiLastItemDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiLastItemDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiLastItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef(&Handle->InFlags); + public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef(&Handle->StatusFlags); + public ref ImRect Rect => ref Unsafe.AsRef(&Handle->Rect); + public ref ImRect NavRect => ref Unsafe.AsRef(&Handle->NavRect); + public ref ImRect DisplayRect => ref Unsafe.AsRef(&Handle->DisplayRect); + } +} +/* ImGuiListClipper.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipper + { + public int DisplayStart; + public int DisplayEnd; + public int ItemsCount; + public float ItemsHeight; + public float StartPosY; + public unsafe void* TempData; + public unsafe ImGuiListClipper(int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) + { + DisplayStart = displayStart; + DisplayEnd = displayEnd; + ItemsCount = itemsCount; + ItemsHeight = itemsHeight; + StartPosY = startPosY; + TempData = tempData; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiListClipperPtr : IEquatable + { + public ImGuiListClipperPtr(ImGuiListClipper* handle) { Handle = handle; } + public ImGuiListClipper* Handle; + public bool IsNull => Handle == null; + public static ImGuiListClipperPtr Null => new ImGuiListClipperPtr(null); + public ImGuiListClipper this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* handle) => new ImGuiListClipperPtr(handle); + public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr handle) => handle.Handle; + public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle == right; + public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle != right; + public bool Equals(ImGuiListClipperPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiListClipperPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiListClipperPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int DisplayStart => ref Unsafe.AsRef(&Handle->DisplayStart); + public ref int DisplayEnd => ref Unsafe.AsRef(&Handle->DisplayEnd); + public ref int ItemsCount => ref Unsafe.AsRef(&Handle->ItemsCount); + public ref float ItemsHeight => ref Unsafe.AsRef(&Handle->ItemsHeight); + public ref float StartPosY => ref Unsafe.AsRef(&Handle->StartPosY); + public void* TempData { get => Handle->TempData; set => Handle->TempData = value; } + } +} +/* ImGuiListClipperData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperData + { + public unsafe ImGuiListClipper* ListClipper; + public float LossynessOffset; + public int StepNo; + public int ItemsFrozen; + public ImVector Ranges; + public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVector ranges = default) + { + ListClipper = listClipper; + LossynessOffset = lossynessOffset; + StepNo = stepNo; + ItemsFrozen = itemsFrozen; + Ranges = ranges; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiListClipperDataPtr : IEquatable + { + public ImGuiListClipperDataPtr(ImGuiListClipperData* handle) { Handle = handle; } + public ImGuiListClipperData* Handle; + public bool IsNull => Handle == null; + public static ImGuiListClipperDataPtr Null => new ImGuiListClipperDataPtr(null); + public ImGuiListClipperData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiListClipperDataPtr(ImGuiListClipperData* handle) => new ImGuiListClipperDataPtr(handle); + public static implicit operator ImGuiListClipperData*(ImGuiListClipperDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle == right; + public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle != right; + public bool Equals(ImGuiListClipperDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiListClipperDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiListClipperDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiListClipperPtr ListClipper => ref Unsafe.AsRef(&Handle->ListClipper); + public ref float LossynessOffset => ref Unsafe.AsRef(&Handle->LossynessOffset); + public ref int StepNo => ref Unsafe.AsRef(&Handle->StepNo); + public ref int ItemsFrozen => ref Unsafe.AsRef(&Handle->ItemsFrozen); + public ref ImVector Ranges => ref Unsafe.AsRef>(&Handle->Ranges); + } +} +/* ImGuiListClipperRange.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperRange + { + public int Min; + public int Max; + public byte PosToIndexConvert; + public sbyte PosToIndexOffsetMin; + public sbyte PosToIndexOffsetMax; + public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, sbyte posToIndexOffsetMin = default, sbyte posToIndexOffsetMax = default) + { + Min = min; + Max = max; + PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; + PosToIndexOffsetMin = posToIndexOffsetMin; + PosToIndexOffsetMax = posToIndexOffsetMax; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiListClipperRangePtr : IEquatable + { + public ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) { Handle = handle; } + public ImGuiListClipperRange* Handle; + public bool IsNull => Handle == null; + public static ImGuiListClipperRangePtr Null => new ImGuiListClipperRangePtr(null); + public ImGuiListClipperRange this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) => new ImGuiListClipperRangePtr(handle); + public static implicit operator ImGuiListClipperRange*(ImGuiListClipperRangePtr handle) => handle.Handle; + public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle == right; + public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle != right; + public bool Equals(ImGuiListClipperRangePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiListClipperRangePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiListClipperRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int Min => ref Unsafe.AsRef(&Handle->Min); + public ref int Max => ref Unsafe.AsRef(&Handle->Max); + public ref bool PosToIndexConvert => ref Unsafe.AsRef(&Handle->PosToIndexConvert); + public ref sbyte PosToIndexOffsetMin => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMin); + public ref sbyte PosToIndexOffsetMax => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMax); + } +} +/* ImGuiMenuColumns.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMenuColumns + { + public uint TotalWidth; + public uint NextTotalWidth; + public ushort Spacing; + public ushort OffsetIcon; + public ushort OffsetLabel; + public ushort OffsetShortcut; + public ushort OffsetMark; + public ushort Widths_0; + public ushort Widths_1; + public ushort Widths_2; + public ushort Widths_3; + public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default(ushort*)) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default(Span)) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiMenuColumnsPtr : IEquatable + { + public ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) { Handle = handle; } + public ImGuiMenuColumns* Handle; + public bool IsNull => Handle == null; + public static ImGuiMenuColumnsPtr Null => new ImGuiMenuColumnsPtr(null); + public ImGuiMenuColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) => new ImGuiMenuColumnsPtr(handle); + public static implicit operator ImGuiMenuColumns*(ImGuiMenuColumnsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle == right; + public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle != right; + public bool Equals(ImGuiMenuColumnsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiMenuColumnsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiMenuColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint TotalWidth => ref Unsafe.AsRef(&Handle->TotalWidth); + public ref uint NextTotalWidth => ref Unsafe.AsRef(&Handle->NextTotalWidth); + public ref ushort Spacing => ref Unsafe.AsRef(&Handle->Spacing); + public ref ushort OffsetIcon => ref Unsafe.AsRef(&Handle->OffsetIcon); + public ref ushort OffsetLabel => ref Unsafe.AsRef(&Handle->OffsetLabel); + public ref ushort OffsetShortcut => ref Unsafe.AsRef(&Handle->OffsetShortcut); + public ref ushort OffsetMark => ref Unsafe.AsRef(&Handle->OffsetMark); + public unsafe Span Widths + { + get + { + return new Span(&Handle->Widths_0, 4); + } + } + } +} +/* ImGuiMetricsConfig.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMetricsConfig + { + public byte ShowDebugLog; + public byte ShowStackTool; + public byte ShowWindowsRects; + public byte ShowWindowsBeginOrder; + public byte ShowTablesRects; + public byte ShowDrawCmdMesh; + public byte ShowDrawCmdBoundingBoxes; + public byte ShowDockingNodes; + public int ShowWindowsRectsType; + public int ShowTablesRectsType; + public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) + { + ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; + ShowStackTool = showStackTool ? (byte)1 : (byte)0; + ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; + ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; + ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; + ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; + ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; + ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; + ShowWindowsRectsType = showWindowsRectsType; + ShowTablesRectsType = showTablesRectsType; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiMetricsConfigPtr : IEquatable + { + public ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) { Handle = handle; } + public ImGuiMetricsConfig* Handle; + public bool IsNull => Handle == null; + public static ImGuiMetricsConfigPtr Null => new ImGuiMetricsConfigPtr(null); + public ImGuiMetricsConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) => new ImGuiMetricsConfigPtr(handle); + public static implicit operator ImGuiMetricsConfig*(ImGuiMetricsConfigPtr handle) => handle.Handle; + public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle == right; + public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle != right; + public bool Equals(ImGuiMetricsConfigPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiMetricsConfigPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiMetricsConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref bool ShowDebugLog => ref Unsafe.AsRef(&Handle->ShowDebugLog); + public ref bool ShowStackTool => ref Unsafe.AsRef(&Handle->ShowStackTool); + public ref bool ShowWindowsRects => ref Unsafe.AsRef(&Handle->ShowWindowsRects); + public ref bool ShowWindowsBeginOrder => ref Unsafe.AsRef(&Handle->ShowWindowsBeginOrder); + public ref bool ShowTablesRects => ref Unsafe.AsRef(&Handle->ShowTablesRects); + public ref bool ShowDrawCmdMesh => ref Unsafe.AsRef(&Handle->ShowDrawCmdMesh); + public ref bool ShowDrawCmdBoundingBoxes => ref Unsafe.AsRef(&Handle->ShowDrawCmdBoundingBoxes); + public ref bool ShowDockingNodes => ref Unsafe.AsRef(&Handle->ShowDockingNodes); + public ref int ShowWindowsRectsType => ref Unsafe.AsRef(&Handle->ShowWindowsRectsType); + public ref int ShowTablesRectsType => ref Unsafe.AsRef(&Handle->ShowTablesRectsType); + } +} +/* ImGuiNavItemData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNavItemData + { + public unsafe ImGuiWindow* Window; + public uint ID; + public uint FocusScopeId; + public ImRect RectRel; + public ImGuiItemFlags InFlags; + public float DistBox; + public float DistCenter; + public float DistAxial; + public unsafe ImGuiNavItemData(ImGuiWindowPtr window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, ImGuiItemFlags inFlags = default, float distBox = default, float distCenter = default, float distAxial = default) + { + Window = window; + ID = id; + FocusScopeId = focusScopeId; + RectRel = rectRel; + InFlags = inFlags; + DistBox = distBox; + DistCenter = distCenter; + DistAxial = distAxial; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiNavItemDataPtr : IEquatable + { + public ImGuiNavItemDataPtr(ImGuiNavItemData* handle) { Handle = handle; } + public ImGuiNavItemData* Handle; + public bool IsNull => Handle == null; + public static ImGuiNavItemDataPtr Null => new ImGuiNavItemDataPtr(null); + public ImGuiNavItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiNavItemDataPtr(ImGuiNavItemData* handle) => new ImGuiNavItemDataPtr(handle); + public static implicit operator ImGuiNavItemData*(ImGuiNavItemDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle == right; + public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle != right; + public bool Equals(ImGuiNavItemDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiNavItemDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiNavItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref uint FocusScopeId => ref Unsafe.AsRef(&Handle->FocusScopeId); + public ref ImRect RectRel => ref Unsafe.AsRef(&Handle->RectRel); + public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef(&Handle->InFlags); + public ref float DistBox => ref Unsafe.AsRef(&Handle->DistBox); + public ref float DistCenter => ref Unsafe.AsRef(&Handle->DistCenter); + public ref float DistAxial => ref Unsafe.AsRef(&Handle->DistAxial); + } +} +/* ImGuiNextItemData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextItemData + { + public ImGuiNextItemDataFlags Flags; + public float Width; + public uint FocusScopeId; + public ImGuiCond OpenCond; + public byte OpenVal; + public unsafe ImGuiNextItemData(ImGuiNextItemDataFlags flags = default, float width = default, uint focusScopeId = default, ImGuiCond openCond = default, bool openVal = default) + { + Flags = flags; + Width = width; + FocusScopeId = focusScopeId; + OpenCond = openCond; + OpenVal = openVal ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiNextItemDataPtr : IEquatable + { + public ImGuiNextItemDataPtr(ImGuiNextItemData* handle) { Handle = handle; } + public ImGuiNextItemData* Handle; + public bool IsNull => Handle == null; + public static ImGuiNextItemDataPtr Null => new ImGuiNextItemDataPtr(null); + public ImGuiNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiNextItemDataPtr(ImGuiNextItemData* handle) => new ImGuiNextItemDataPtr(handle); + public static implicit operator ImGuiNextItemData*(ImGuiNextItemDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle == right; + public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle != right; + public bool Equals(ImGuiNextItemDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiNextItemDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiNextItemDataFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + public ref uint FocusScopeId => ref Unsafe.AsRef(&Handle->FocusScopeId); + public ref ImGuiCond OpenCond => ref Unsafe.AsRef(&Handle->OpenCond); + public ref bool OpenVal => ref Unsafe.AsRef(&Handle->OpenVal); + } +} +/* ImGuiNextWindowData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextWindowData + { + public ImGuiNextWindowDataFlags Flags; + public ImGuiCond PosCond; + public ImGuiCond SizeCond; + public ImGuiCond CollapsedCond; + public ImGuiCond DockCond; + public Vector2 PosVal; + public Vector2 PosPivotVal; + public Vector2 SizeVal; + public Vector2 ContentSizeVal; + public Vector2 ScrollVal; + public byte PosUndock; + public byte CollapsedVal; + public ImRect SizeConstraintRect; + public unsafe void* SizeCallback; + public unsafe void* SizeCallbackUserData; + public float BgAlphaVal; + public uint ViewportId; + public uint DockId; + public ImGuiWindowClass WindowClass; + public Vector2 MenuBarOffsetMinVal; + public unsafe ImGuiNextWindowData(ImGuiNextWindowDataFlags flags = default, ImGuiCond posCond = default, ImGuiCond sizeCond = default, ImGuiCond collapsedCond = default, ImGuiCond dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, ImGuiSizeCallback sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) + { + Flags = flags; + PosCond = posCond; + SizeCond = sizeCond; + CollapsedCond = collapsedCond; + DockCond = dockCond; + PosVal = posVal; + PosPivotVal = posPivotVal; + SizeVal = sizeVal; + ContentSizeVal = contentSizeVal; + ScrollVal = scrollVal; + PosUndock = posUndock ? (byte)1 : (byte)0; + CollapsedVal = collapsedVal ? (byte)1 : (byte)0; + SizeConstraintRect = sizeConstraintRect; + SizeCallback = (void*)Marshal.GetFunctionPointerForDelegate(sizeCallback); + SizeCallbackUserData = sizeCallbackUserData; + BgAlphaVal = bgAlphaVal; + ViewportId = viewportId; + DockId = dockId; + WindowClass = windowClass; + MenuBarOffsetMinVal = menuBarOffsetMinVal; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiNextWindowDataPtr : IEquatable + { + public ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) { Handle = handle; } + public ImGuiNextWindowData* Handle; + public bool IsNull => Handle == null; + public static ImGuiNextWindowDataPtr Null => new ImGuiNextWindowDataPtr(null); + public ImGuiNextWindowData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) => new ImGuiNextWindowDataPtr(handle); + public static implicit operator ImGuiNextWindowData*(ImGuiNextWindowDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle == right; + public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle != right; + public bool Equals(ImGuiNextWindowDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiNextWindowDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiNextWindowDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiNextWindowDataFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref ImGuiCond PosCond => ref Unsafe.AsRef(&Handle->PosCond); + public ref ImGuiCond SizeCond => ref Unsafe.AsRef(&Handle->SizeCond); + public ref ImGuiCond CollapsedCond => ref Unsafe.AsRef(&Handle->CollapsedCond); + public ref ImGuiCond DockCond => ref Unsafe.AsRef(&Handle->DockCond); + public ref Vector2 PosVal => ref Unsafe.AsRef(&Handle->PosVal); + public ref Vector2 PosPivotVal => ref Unsafe.AsRef(&Handle->PosPivotVal); + public ref Vector2 SizeVal => ref Unsafe.AsRef(&Handle->SizeVal); + public ref Vector2 ContentSizeVal => ref Unsafe.AsRef(&Handle->ContentSizeVal); + public ref Vector2 ScrollVal => ref Unsafe.AsRef(&Handle->ScrollVal); + public ref bool PosUndock => ref Unsafe.AsRef(&Handle->PosUndock); + public ref bool CollapsedVal => ref Unsafe.AsRef(&Handle->CollapsedVal); + public ref ImRect SizeConstraintRect => ref Unsafe.AsRef(&Handle->SizeConstraintRect); + public void* SizeCallback { get => Handle->SizeCallback; set => Handle->SizeCallback = value; } + public void* SizeCallbackUserData { get => Handle->SizeCallbackUserData; set => Handle->SizeCallbackUserData = value; } + public ref float BgAlphaVal => ref Unsafe.AsRef(&Handle->BgAlphaVal); + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + public ref Vector2 MenuBarOffsetMinVal => ref Unsafe.AsRef(&Handle->MenuBarOffsetMinVal); + } +} +/* ImGuiOldColumnData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumnData + { + public float OffsetNorm; + public float OffsetNormBeforeResize; + public ImGuiOldColumnFlags Flags; + public ImRect ClipRect; + public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, ImGuiOldColumnFlags flags = default, ImRect clipRect = default) + { + OffsetNorm = offsetNorm; + OffsetNormBeforeResize = offsetNormBeforeResize; + Flags = flags; + ClipRect = clipRect; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiOldColumnDataPtr : IEquatable + { + public ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) { Handle = handle; } + public ImGuiOldColumnData* Handle; + public bool IsNull => Handle == null; + public static ImGuiOldColumnDataPtr Null => new ImGuiOldColumnDataPtr(null); + public ImGuiOldColumnData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) => new ImGuiOldColumnDataPtr(handle); + public static implicit operator ImGuiOldColumnData*(ImGuiOldColumnDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle == right; + public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle != right; + public bool Equals(ImGuiOldColumnDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiOldColumnDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiOldColumnDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float OffsetNorm => ref Unsafe.AsRef(&Handle->OffsetNorm); + public ref float OffsetNormBeforeResize => ref Unsafe.AsRef(&Handle->OffsetNormBeforeResize); + public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + } +} +/* ImGuiOldColumns.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumns + { + public uint ID; + public ImGuiOldColumnFlags Flags; + public byte IsFirstFrame; + public byte IsBeingResized; + public int Current; + public int Count; + public float OffMinX; + public float OffMaxX; + public float LineMinY; + public float LineMaxY; + public float HostCursorPosY; + public float HostCursorMaxPosX; + public ImRect HostInitialClipRect; + public ImRect HostBackupClipRect; + public ImRect HostBackupParentWorkRect; + public ImVector Columns; + public ImDrawListSplitter Splitter; + public unsafe ImGuiOldColumns(uint id = default, ImGuiOldColumnFlags flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVector columns = default, ImDrawListSplitter splitter = default) + { + ID = id; + Flags = flags; + IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; + IsBeingResized = isBeingResized ? (byte)1 : (byte)0; + Current = current; + Count = count; + OffMinX = offMinX; + OffMaxX = offMaxX; + LineMinY = lineMinY; + LineMaxY = lineMaxY; + HostCursorPosY = hostCursorPosY; + HostCursorMaxPosX = hostCursorMaxPosX; + HostInitialClipRect = hostInitialClipRect; + HostBackupClipRect = hostBackupClipRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + Columns = columns; + Splitter = splitter; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiOldColumnsPtr : IEquatable + { + public ImGuiOldColumnsPtr(ImGuiOldColumns* handle) { Handle = handle; } + public ImGuiOldColumns* Handle; + public bool IsNull => Handle == null; + public static ImGuiOldColumnsPtr Null => new ImGuiOldColumnsPtr(null); + public ImGuiOldColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiOldColumnsPtr(ImGuiOldColumns* handle) => new ImGuiOldColumnsPtr(handle); + public static implicit operator ImGuiOldColumns*(ImGuiOldColumnsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle == right; + public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle != right; + public bool Equals(ImGuiOldColumnsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiOldColumnsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiOldColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref bool IsFirstFrame => ref Unsafe.AsRef(&Handle->IsFirstFrame); + public ref bool IsBeingResized => ref Unsafe.AsRef(&Handle->IsBeingResized); + public ref int Current => ref Unsafe.AsRef(&Handle->Current); + public ref int Count => ref Unsafe.AsRef(&Handle->Count); + public ref float OffMinX => ref Unsafe.AsRef(&Handle->OffMinX); + public ref float OffMaxX => ref Unsafe.AsRef(&Handle->OffMaxX); + public ref float LineMinY => ref Unsafe.AsRef(&Handle->LineMinY); + public ref float LineMaxY => ref Unsafe.AsRef(&Handle->LineMaxY); + public ref float HostCursorPosY => ref Unsafe.AsRef(&Handle->HostCursorPosY); + public ref float HostCursorMaxPosX => ref Unsafe.AsRef(&Handle->HostCursorMaxPosX); + public ref ImRect HostInitialClipRect => ref Unsafe.AsRef(&Handle->HostInitialClipRect); + public ref ImRect HostBackupClipRect => ref Unsafe.AsRef(&Handle->HostBackupClipRect); + public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect); + public ref ImVector Columns => ref Unsafe.AsRef>(&Handle->Columns); + public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef(&Handle->Splitter); + } +} +/* ImGuiOnceUponAFrame.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOnceUponAFrame + { + public int RefFrame; + public unsafe ImGuiOnceUponAFrame(int refFrame = default) + { + RefFrame = refFrame; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiOnceUponAFramePtr : IEquatable + { + public ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) { Handle = handle; } + public ImGuiOnceUponAFrame* Handle; + public bool IsNull => Handle == null; + public static ImGuiOnceUponAFramePtr Null => new ImGuiOnceUponAFramePtr(null); + public ImGuiOnceUponAFrame this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) => new ImGuiOnceUponAFramePtr(handle); + public static implicit operator ImGuiOnceUponAFrame*(ImGuiOnceUponAFramePtr handle) => handle.Handle; + public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle == right; + public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle != right; + public bool Equals(ImGuiOnceUponAFramePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiOnceUponAFramePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiOnceUponAFramePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int RefFrame => ref Unsafe.AsRef(&Handle->RefFrame); + } +} +/* ImGuiPayload.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPayload + { + public unsafe void* Data; + public int DataSize; + public uint SourceId; + public uint SourceParentId; + public int DataFrameCount; + public byte DataType_0; + public byte DataType_1; + public byte DataType_2; + public byte DataType_3; + public byte DataType_4; + public byte DataType_5; + public byte DataType_6; + public byte DataType_7; + public byte DataType_8; + public byte DataType_9; + public byte DataType_10; + public byte DataType_11; + public byte DataType_12; + public byte DataType_13; + public byte DataType_14; + public byte DataType_15; + public byte DataType_16; + public byte DataType_17; + public byte DataType_18; + public byte DataType_19; + public byte DataType_20; + public byte DataType_21; + public byte DataType_22; + public byte DataType_23; + public byte DataType_24; + public byte DataType_25; + public byte DataType_26; + public byte DataType_27; + public byte DataType_28; + public byte DataType_29; + public byte DataType_30; + public byte DataType_31; + public byte DataType_32; + public byte Preview; + public byte Delivery; + public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default(byte*)) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default(Span)) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPayloadPtr : IEquatable + { + public ImGuiPayloadPtr(ImGuiPayload* handle) { Handle = handle; } + public ImGuiPayload* Handle; + public bool IsNull => Handle == null; + public static ImGuiPayloadPtr Null => new ImGuiPayloadPtr(null); + public ImGuiPayload this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPayloadPtr(ImGuiPayload* handle) => new ImGuiPayloadPtr(handle); + public static implicit operator ImGuiPayload*(ImGuiPayloadPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle == right; + public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle != right; + public bool Equals(ImGuiPayloadPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPayloadPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPayloadPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public void* Data { get => Handle->Data; set => Handle->Data = value; } + public ref int DataSize => ref Unsafe.AsRef(&Handle->DataSize); + public ref uint SourceId => ref Unsafe.AsRef(&Handle->SourceId); + public ref uint SourceParentId => ref Unsafe.AsRef(&Handle->SourceParentId); + public ref int DataFrameCount => ref Unsafe.AsRef(&Handle->DataFrameCount); + public unsafe Span DataType + { + get + { + return new Span(&Handle->DataType_0, 33); + } + } + public ref bool Preview => ref Unsafe.AsRef(&Handle->Preview); + public ref bool Delivery => ref Unsafe.AsRef(&Handle->Delivery); + } +} +/* ImGuiPlatformImeData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformImeData + { + public byte WantVisible; + public Vector2 InputPos; + public float InputLineHeight; + public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) + { + WantVisible = wantVisible ? (byte)1 : (byte)0; + InputPos = inputPos; + InputLineHeight = inputLineHeight; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPlatformImeDataPtr : IEquatable + { + public ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) { Handle = handle; } + public ImGuiPlatformImeData* Handle; + public bool IsNull => Handle == null; + public static ImGuiPlatformImeDataPtr Null => new ImGuiPlatformImeDataPtr(null); + public ImGuiPlatformImeData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) => new ImGuiPlatformImeDataPtr(handle); + public static implicit operator ImGuiPlatformImeData*(ImGuiPlatformImeDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle == right; + public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle != right; + public bool Equals(ImGuiPlatformImeDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPlatformImeDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPlatformImeDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref bool WantVisible => ref Unsafe.AsRef(&Handle->WantVisible); + public ref Vector2 InputPos => ref Unsafe.AsRef(&Handle->InputPos); + public ref float InputLineHeight => ref Unsafe.AsRef(&Handle->InputLineHeight); + } +} +/* ImGuiPlatformIO.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformIO + { + public unsafe void* PlatformCreateWindow; + public unsafe void* PlatformDestroyWindow; + public unsafe void* PlatformShowWindow; + public unsafe void* PlatformSetWindowPos; + public unsafe void* PlatformGetWindowPos; + public unsafe void* PlatformSetWindowSize; + public unsafe void* PlatformGetWindowSize; + public unsafe void* PlatformSetWindowFocus; + public unsafe void* PlatformGetWindowFocus; + public unsafe void* PlatformGetWindowMinimized; + public unsafe void* PlatformSetWindowTitle; + public unsafe void* PlatformSetWindowAlpha; + public unsafe void* PlatformUpdateWindow; + public unsafe void* PlatformRenderWindow; + public unsafe void* PlatformSwapBuffers; + public unsafe void* PlatformGetWindowDpiScale; + public unsafe void* PlatformOnChangedViewport; + public unsafe void* PlatformCreateVkSurface; + public unsafe void* RendererCreateWindow; + public unsafe void* RendererDestroyWindow; + public unsafe void* RendererSetWindowSize; + public unsafe void* RendererRenderWindow; + public unsafe void* RendererSwapBuffers; + public ImVector Monitors; + public ImVector Viewports; + public unsafe ImGuiPlatformIO(delegate* platformCreatewindow = default, delegate* platformDestroywindow = default, delegate* platformShowwindow = default, delegate* platformSetwindowpos = default, delegate* platformGetwindowpos = default, delegate* platformSetwindowsize = default, delegate* platformGetwindowsize = default, delegate* platformSetwindowfocus = default, delegate* platformGetwindowfocus = default, delegate* platformGetwindowminimized = default, delegate* platformSetwindowtitle = default, delegate* platformSetwindowalpha = default, delegate* platformUpdatewindow = default, delegate* platformRenderwindow = default, delegate* platformSwapbuffers = default, delegate* platformGetwindowdpiscale = default, delegate* platformOnchangedviewport = default, delegate* platformCreatevksurface = default, delegate* rendererCreatewindow = default, delegate* rendererDestroywindow = default, delegate* rendererSetwindowsize = default, delegate* rendererRenderwindow = default, delegate* rendererSwapbuffers = default, ImVector monitors = default, ImVector viewports = default) + { + PlatformCreateWindow = (void*)platformCreatewindow; + PlatformDestroyWindow = (void*)platformDestroywindow; + PlatformShowWindow = (void*)platformShowwindow; + PlatformSetWindowPos = (void*)platformSetwindowpos; + PlatformGetWindowPos = (void*)platformGetwindowpos; + PlatformSetWindowSize = (void*)platformSetwindowsize; + PlatformGetWindowSize = (void*)platformGetwindowsize; + PlatformSetWindowFocus = (void*)platformSetwindowfocus; + PlatformGetWindowFocus = (void*)platformGetwindowfocus; + PlatformGetWindowMinimized = (void*)platformGetwindowminimized; + PlatformSetWindowTitle = (void*)platformSetwindowtitle; + PlatformSetWindowAlpha = (void*)platformSetwindowalpha; + PlatformUpdateWindow = (void*)platformUpdatewindow; + PlatformRenderWindow = (void*)platformRenderwindow; + PlatformSwapBuffers = (void*)platformSwapbuffers; + PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; + PlatformOnChangedViewport = (void*)platformOnchangedviewport; + PlatformCreateVkSurface = (void*)platformCreatevksurface; + RendererCreateWindow = (void*)rendererCreatewindow; + RendererDestroyWindow = (void*)rendererDestroywindow; + RendererSetWindowSize = (void*)rendererSetwindowsize; + RendererRenderWindow = (void*)rendererRenderwindow; + RendererSwapBuffers = (void*)rendererSwapbuffers; + Monitors = monitors; + Viewports = viewports; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPlatformIOPtr : IEquatable + { + public ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) { Handle = handle; } + public ImGuiPlatformIO* Handle; + public bool IsNull => Handle == null; + public static ImGuiPlatformIOPtr Null => new ImGuiPlatformIOPtr(null); + public ImGuiPlatformIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) => new ImGuiPlatformIOPtr(handle); + public static implicit operator ImGuiPlatformIO*(ImGuiPlatformIOPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle == right; + public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle != right; + public bool Equals(ImGuiPlatformIOPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPlatformIOPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPlatformIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public void* PlatformCreateWindow { get => Handle->PlatformCreateWindow; set => Handle->PlatformCreateWindow = value; } + public void* PlatformDestroyWindow { get => Handle->PlatformDestroyWindow; set => Handle->PlatformDestroyWindow = value; } + public void* PlatformShowWindow { get => Handle->PlatformShowWindow; set => Handle->PlatformShowWindow = value; } + public void* PlatformSetWindowPos { get => Handle->PlatformSetWindowPos; set => Handle->PlatformSetWindowPos = value; } + public void* PlatformGetWindowPos { get => Handle->PlatformGetWindowPos; set => Handle->PlatformGetWindowPos = value; } + public void* PlatformSetWindowSize { get => Handle->PlatformSetWindowSize; set => Handle->PlatformSetWindowSize = value; } + public void* PlatformGetWindowSize { get => Handle->PlatformGetWindowSize; set => Handle->PlatformGetWindowSize = value; } + public void* PlatformSetWindowFocus { get => Handle->PlatformSetWindowFocus; set => Handle->PlatformSetWindowFocus = value; } + public void* PlatformGetWindowFocus { get => Handle->PlatformGetWindowFocus; set => Handle->PlatformGetWindowFocus = value; } + public void* PlatformGetWindowMinimized { get => Handle->PlatformGetWindowMinimized; set => Handle->PlatformGetWindowMinimized = value; } + public void* PlatformSetWindowTitle { get => Handle->PlatformSetWindowTitle; set => Handle->PlatformSetWindowTitle = value; } + public void* PlatformSetWindowAlpha { get => Handle->PlatformSetWindowAlpha; set => Handle->PlatformSetWindowAlpha = value; } + public void* PlatformUpdateWindow { get => Handle->PlatformUpdateWindow; set => Handle->PlatformUpdateWindow = value; } + public void* PlatformRenderWindow { get => Handle->PlatformRenderWindow; set => Handle->PlatformRenderWindow = value; } + public void* PlatformSwapBuffers { get => Handle->PlatformSwapBuffers; set => Handle->PlatformSwapBuffers = value; } + public void* PlatformGetWindowDpiScale { get => Handle->PlatformGetWindowDpiScale; set => Handle->PlatformGetWindowDpiScale = value; } + public void* PlatformOnChangedViewport { get => Handle->PlatformOnChangedViewport; set => Handle->PlatformOnChangedViewport = value; } + public void* PlatformCreateVkSurface { get => Handle->PlatformCreateVkSurface; set => Handle->PlatformCreateVkSurface = value; } + public void* RendererCreateWindow { get => Handle->RendererCreateWindow; set => Handle->RendererCreateWindow = value; } + public void* RendererDestroyWindow { get => Handle->RendererDestroyWindow; set => Handle->RendererDestroyWindow = value; } + public void* RendererSetWindowSize { get => Handle->RendererSetWindowSize; set => Handle->RendererSetWindowSize = value; } + public void* RendererRenderWindow { get => Handle->RendererRenderWindow; set => Handle->RendererRenderWindow = value; } + public void* RendererSwapBuffers { get => Handle->RendererSwapBuffers; set => Handle->RendererSwapBuffers = value; } + public ref ImVector Monitors => ref Unsafe.AsRef>(&Handle->Monitors); + public ref ImVector Viewports => ref Unsafe.AsRef>(&Handle->Viewports); + } +} +/* ImGuiPlatformMonitor.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformMonitor + { + public Vector2 MainPos; + public Vector2 MainSize; + public Vector2 WorkPos; + public Vector2 WorkSize; + public float DpiScale; + public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default) + { + MainPos = mainPos; + MainSize = mainSize; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPlatformMonitorPtr : IEquatable + { + public ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) { Handle = handle; } + public ImGuiPlatformMonitor* Handle; + public bool IsNull => Handle == null; + public static ImGuiPlatformMonitorPtr Null => new ImGuiPlatformMonitorPtr(null); + public ImGuiPlatformMonitor this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) => new ImGuiPlatformMonitorPtr(handle); + public static implicit operator ImGuiPlatformMonitor*(ImGuiPlatformMonitorPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle == right; + public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle != right; + public bool Equals(ImGuiPlatformMonitorPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPlatformMonitorPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPlatformMonitorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref Vector2 MainPos => ref Unsafe.AsRef(&Handle->MainPos); + public ref Vector2 MainSize => ref Unsafe.AsRef(&Handle->MainSize); + public ref Vector2 WorkPos => ref Unsafe.AsRef(&Handle->WorkPos); + public ref Vector2 WorkSize => ref Unsafe.AsRef(&Handle->WorkSize); + public ref float DpiScale => ref Unsafe.AsRef(&Handle->DpiScale); + } +} +/* ImGuiPopupData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPopupData + { + public uint PopupId; + public unsafe ImGuiWindow* Window; + public unsafe ImGuiWindow* SourceWindow; + public int ParentNavLayer; + public int OpenFrameCount; + public uint OpenParentId; + public Vector2 OpenPopupPos; + public Vector2 OpenMousePos; + public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindowPtr window = default, ImGuiWindowPtr sourceWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) + { + PopupId = popupId; + Window = window; + SourceWindow = sourceWindow; + ParentNavLayer = parentNavLayer; + OpenFrameCount = openFrameCount; + OpenParentId = openParentId; + OpenPopupPos = openPopupPos; + OpenMousePos = openMousePos; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPopupDataPtr : IEquatable + { + public ImGuiPopupDataPtr(ImGuiPopupData* handle) { Handle = handle; } + public ImGuiPopupData* Handle; + public bool IsNull => Handle == null; + public static ImGuiPopupDataPtr Null => new ImGuiPopupDataPtr(null); + public ImGuiPopupData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPopupDataPtr(ImGuiPopupData* handle) => new ImGuiPopupDataPtr(handle); + public static implicit operator ImGuiPopupData*(ImGuiPopupDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle == right; + public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle != right; + public bool Equals(ImGuiPopupDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPopupDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPopupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint PopupId => ref Unsafe.AsRef(&Handle->PopupId); + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + public ref ImGuiWindowPtr SourceWindow => ref Unsafe.AsRef(&Handle->SourceWindow); + public ref int ParentNavLayer => ref Unsafe.AsRef(&Handle->ParentNavLayer); + public ref int OpenFrameCount => ref Unsafe.AsRef(&Handle->OpenFrameCount); + public ref uint OpenParentId => ref Unsafe.AsRef(&Handle->OpenParentId); + public ref Vector2 OpenPopupPos => ref Unsafe.AsRef(&Handle->OpenPopupPos); + public ref Vector2 OpenMousePos => ref Unsafe.AsRef(&Handle->OpenMousePos); + } +} +/* ImGuiPtrOrIndex.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPtrOrIndex + { + public unsafe void* Ptr; + public int Index; + public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) + { + Ptr = ptr; + Index = index; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiPtrOrIndexPtr : IEquatable + { + public ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) { Handle = handle; } + public ImGuiPtrOrIndex* Handle; + public bool IsNull => Handle == null; + public static ImGuiPtrOrIndexPtr Null => new ImGuiPtrOrIndexPtr(null); + public ImGuiPtrOrIndex this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) => new ImGuiPtrOrIndexPtr(handle); + public static implicit operator ImGuiPtrOrIndex*(ImGuiPtrOrIndexPtr handle) => handle.Handle; + public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle == right; + public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle != right; + public bool Equals(ImGuiPtrOrIndexPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiPtrOrIndexPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiPtrOrIndexPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public void* Ptr { get => Handle->Ptr; set => Handle->Ptr = value; } + public ref int Index => ref Unsafe.AsRef(&Handle->Index); + } +} +/* ImGuiSettingsHandler.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSettingsHandler + { + public unsafe byte* TypeName; + public uint TypeHash; + public unsafe void* ClearAllFn; + public unsafe void* ReadInitFn; + public unsafe void* ReadOpenFn; + public unsafe void* ReadLineFn; + public unsafe void* ApplyAllFn; + public unsafe void* WriteAllFn; + public unsafe void* UserData; + public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate* clearAllFn = default, delegate* readInitFn = default, delegate* readOpenFn = default, delegate* readLineFn = default, delegate* applyAllFn = default, delegate* writeAllFn = default, void* userData = default) + { + TypeName = typeName; + TypeHash = typeHash; + ClearAllFn = (void*)clearAllFn; + ReadInitFn = (void*)readInitFn; + ReadOpenFn = (void*)readOpenFn; + ReadLineFn = (void*)readLineFn; + ApplyAllFn = (void*)applyAllFn; + WriteAllFn = (void*)writeAllFn; + UserData = userData; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiSettingsHandlerPtr : IEquatable + { + public ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) { Handle = handle; } + public ImGuiSettingsHandler* Handle; + public bool IsNull => Handle == null; + public static ImGuiSettingsHandlerPtr Null => new ImGuiSettingsHandlerPtr(null); + public ImGuiSettingsHandler this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) => new ImGuiSettingsHandlerPtr(handle); + public static implicit operator ImGuiSettingsHandler*(ImGuiSettingsHandlerPtr handle) => handle.Handle; + public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle == right; + public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle != right; + public bool Equals(ImGuiSettingsHandlerPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiSettingsHandlerPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiSettingsHandlerPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public byte* TypeName { get => Handle->TypeName; set => Handle->TypeName = value; } + public ref uint TypeHash => ref Unsafe.AsRef(&Handle->TypeHash); + public void* ClearAllFn { get => Handle->ClearAllFn; set => Handle->ClearAllFn = value; } + public void* ReadInitFn { get => Handle->ReadInitFn; set => Handle->ReadInitFn = value; } + public void* ReadOpenFn { get => Handle->ReadOpenFn; set => Handle->ReadOpenFn = value; } + public void* ReadLineFn { get => Handle->ReadLineFn; set => Handle->ReadLineFn = value; } + public void* ApplyAllFn { get => Handle->ApplyAllFn; set => Handle->ApplyAllFn = value; } + public void* WriteAllFn { get => Handle->WriteAllFn; set => Handle->WriteAllFn = value; } + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + } +} +/* ImGuiShrinkWidthItem.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiShrinkWidthItem + { + public int Index; + public float Width; + public float InitialWidth; + public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) + { + Index = index; + Width = width; + InitialWidth = initialWidth; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiShrinkWidthItemPtr : IEquatable + { + public ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) { Handle = handle; } + public ImGuiShrinkWidthItem* Handle; + public bool IsNull => Handle == null; + public static ImGuiShrinkWidthItemPtr Null => new ImGuiShrinkWidthItemPtr(null); + public ImGuiShrinkWidthItem this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) => new ImGuiShrinkWidthItemPtr(handle); + public static implicit operator ImGuiShrinkWidthItem*(ImGuiShrinkWidthItemPtr handle) => handle.Handle; + public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle == right; + public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle != right; + public bool Equals(ImGuiShrinkWidthItemPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiShrinkWidthItemPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiShrinkWidthItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int Index => ref Unsafe.AsRef(&Handle->Index); + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + public ref float InitialWidth => ref Unsafe.AsRef(&Handle->InitialWidth); + } +} +/* ImGuiSizeCallbackData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSizeCallbackData + { + public unsafe void* UserData; + public Vector2 Pos; + public Vector2 CurrentSize; + public Vector2 DesiredSize; + public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) + { + UserData = userData; + Pos = pos; + CurrentSize = currentSize; + DesiredSize = desiredSize; + } + } +} +/* ImGuiStackLevelInfo.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackLevelInfo + { + public uint ID; + public sbyte QueryFrameCount; + public byte QuerySuccess; + public ImGuiDataType RawBits0; + public byte Desc_0; + public byte Desc_1; + public byte Desc_2; + public byte Desc_3; + public byte Desc_4; + public byte Desc_5; + public byte Desc_6; + public byte Desc_7; + public byte Desc_8; + public byte Desc_9; + public byte Desc_10; + public byte Desc_11; + public byte Desc_12; + public byte Desc_13; + public byte Desc_14; + public byte Desc_15; + public byte Desc_16; + public byte Desc_17; + public byte Desc_18; + public byte Desc_19; + public byte Desc_20; + public byte Desc_21; + public byte Desc_22; + public byte Desc_23; + public byte Desc_24; + public byte Desc_25; + public byte Desc_26; + public byte Desc_27; + public byte Desc_28; + public byte Desc_29; + public byte Desc_30; + public byte Desc_31; + public byte Desc_32; + public byte Desc_33; + public byte Desc_34; + public byte Desc_35; + public byte Desc_36; + public byte Desc_37; + public byte Desc_38; + public byte Desc_39; + public byte Desc_40; + public byte Desc_41; + public byte Desc_42; + public byte Desc_43; + public byte Desc_44; + public byte Desc_45; + public byte Desc_46; + public byte Desc_47; + public byte Desc_48; + public byte Desc_49; + public byte Desc_50; + public byte Desc_51; + public byte Desc_52; + public byte Desc_53; + public byte Desc_54; + public byte Desc_55; + public byte Desc_56; + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default(byte*)) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default(Span)) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + public ImGuiDataType DataType { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStackLevelInfoPtr : IEquatable + { + public ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) { Handle = handle; } + public ImGuiStackLevelInfo* Handle; + public bool IsNull => Handle == null; + public static ImGuiStackLevelInfoPtr Null => new ImGuiStackLevelInfoPtr(null); + public ImGuiStackLevelInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) => new ImGuiStackLevelInfoPtr(handle); + public static implicit operator ImGuiStackLevelInfo*(ImGuiStackLevelInfoPtr handle) => handle.Handle; + public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle == right; + public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle != right; + public bool Equals(ImGuiStackLevelInfoPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStackLevelInfoPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStackLevelInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref sbyte QueryFrameCount => ref Unsafe.AsRef(&Handle->QueryFrameCount); + public ref bool QuerySuccess => ref Unsafe.AsRef(&Handle->QuerySuccess); + public ImGuiDataType DataType { get => Handle->DataType; set => Handle->DataType = value; } + public unsafe Span Desc + { + get + { + return new Span(&Handle->Desc_0, 57); + } + } + } +} +/* ImGuiStackSizes.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackSizes + { + public short SizeOfIDStack; + public short SizeOfColorStack; + public short SizeOfStyleVarStack; + public short SizeOfFontStack; + public short SizeOfFocusScopeStack; + public short SizeOfGroupStack; + public short SizeOfItemFlagsStack; + public short SizeOfBeginPopupStack; + public short SizeOfDisabledStack; + public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) + { + SizeOfIDStack = sizeOfIdStack; + SizeOfColorStack = sizeOfColorStack; + SizeOfStyleVarStack = sizeOfStyleVarStack; + SizeOfFontStack = sizeOfFontStack; + SizeOfFocusScopeStack = sizeOfFocusScopeStack; + SizeOfGroupStack = sizeOfGroupStack; + SizeOfItemFlagsStack = sizeOfItemFlagsStack; + SizeOfBeginPopupStack = sizeOfBeginPopupStack; + SizeOfDisabledStack = sizeOfDisabledStack; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStackSizesPtr : IEquatable + { + public ImGuiStackSizesPtr(ImGuiStackSizes* handle) { Handle = handle; } + public ImGuiStackSizes* Handle; + public bool IsNull => Handle == null; + public static ImGuiStackSizesPtr Null => new ImGuiStackSizesPtr(null); + public ImGuiStackSizes this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStackSizesPtr(ImGuiStackSizes* handle) => new ImGuiStackSizesPtr(handle); + public static implicit operator ImGuiStackSizes*(ImGuiStackSizesPtr handle) => handle.Handle; + public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle == right; + public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle != right; + public bool Equals(ImGuiStackSizesPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStackSizesPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStackSizesPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref short SizeOfIDStack => ref Unsafe.AsRef(&Handle->SizeOfIDStack); + public ref short SizeOfColorStack => ref Unsafe.AsRef(&Handle->SizeOfColorStack); + public ref short SizeOfStyleVarStack => ref Unsafe.AsRef(&Handle->SizeOfStyleVarStack); + public ref short SizeOfFontStack => ref Unsafe.AsRef(&Handle->SizeOfFontStack); + public ref short SizeOfFocusScopeStack => ref Unsafe.AsRef(&Handle->SizeOfFocusScopeStack); + public ref short SizeOfGroupStack => ref Unsafe.AsRef(&Handle->SizeOfGroupStack); + public ref short SizeOfItemFlagsStack => ref Unsafe.AsRef(&Handle->SizeOfItemFlagsStack); + public ref short SizeOfBeginPopupStack => ref Unsafe.AsRef(&Handle->SizeOfBeginPopupStack); + public ref short SizeOfDisabledStack => ref Unsafe.AsRef(&Handle->SizeOfDisabledStack); + } +} +/* ImGuiStackTool.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackTool + { + public int LastActiveFrame; + public int StackLevel; + public uint QueryId; + public ImVector Results; + public byte CopyToClipboardOnCtrlC; + public float CopyToClipboardLastTime; + public unsafe ImGuiStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVector results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) + { + LastActiveFrame = lastActiveFrame; + StackLevel = stackLevel; + QueryId = queryId; + Results = results; + CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; + CopyToClipboardLastTime = copyToClipboardLastTime; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStackToolPtr : IEquatable + { + public ImGuiStackToolPtr(ImGuiStackTool* handle) { Handle = handle; } + public ImGuiStackTool* Handle; + public bool IsNull => Handle == null; + public static ImGuiStackToolPtr Null => new ImGuiStackToolPtr(null); + public ImGuiStackTool this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStackToolPtr(ImGuiStackTool* handle) => new ImGuiStackToolPtr(handle); + public static implicit operator ImGuiStackTool*(ImGuiStackToolPtr handle) => handle.Handle; + public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle == right; + public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle != right; + public bool Equals(ImGuiStackToolPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStackToolPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStackToolPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int LastActiveFrame => ref Unsafe.AsRef(&Handle->LastActiveFrame); + public ref int StackLevel => ref Unsafe.AsRef(&Handle->StackLevel); + public ref uint QueryId => ref Unsafe.AsRef(&Handle->QueryId); + public ref ImVector Results => ref Unsafe.AsRef>(&Handle->Results); + public ref bool CopyToClipboardOnCtrlC => ref Unsafe.AsRef(&Handle->CopyToClipboardOnCtrlC); + public ref float CopyToClipboardLastTime => ref Unsafe.AsRef(&Handle->CopyToClipboardLastTime); + } +} +/* ImGuiStorage.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStorage + { + public ImVector Data; + public unsafe ImGuiStorage(ImVector data = default) + { + Data = data; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStoragePtr : IEquatable + { + public ImGuiStoragePtr(ImGuiStorage* handle) { Handle = handle; } + public ImGuiStorage* Handle; + public bool IsNull => Handle == null; + public static ImGuiStoragePtr Null => new ImGuiStoragePtr(null); + public ImGuiStorage this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStoragePtr(ImGuiStorage* handle) => new ImGuiStoragePtr(handle); + public static implicit operator ImGuiStorage*(ImGuiStoragePtr handle) => handle.Handle; + public static bool operator ==(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle == right; + public static bool operator !=(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle != right; + public bool Equals(ImGuiStoragePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStoragePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStoragePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector Data => ref Unsafe.AsRef>(&Handle->Data); + } +} +/* ImGuiStoragePair.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStoragePair + { + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStoragePairUnion + { + [FieldOffset(0)] + public int ValI; + [FieldOffset(0)] + public float ValF; + [FieldOffset(0)] + public unsafe void* ValP; + public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) + { + ValI = valI; + ValF = valF; + ValP = valP; + } + } + public uint Key; + public ImGuiStoragePairUnion Union; + public unsafe ImGuiStoragePair(uint key = default, ImGuiStoragePairUnion union = default) + { + Key = key; + Union = union; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStoragePairPtr : IEquatable + { + public ImGuiStoragePairPtr(ImGuiStoragePair* handle) { Handle = handle; } + public ImGuiStoragePair* Handle; + public bool IsNull => Handle == null; + public static ImGuiStoragePairPtr Null => new ImGuiStoragePairPtr(null); + public ImGuiStoragePair this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStoragePairPtr(ImGuiStoragePair* handle) => new ImGuiStoragePairPtr(handle); + public static implicit operator ImGuiStoragePair*(ImGuiStoragePairPtr handle) => handle.Handle; + public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle == right; + public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle != right; + public bool Equals(ImGuiStoragePairPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStoragePairPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStoragePairPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint Key => ref Unsafe.AsRef(&Handle->Key); + public ref ImGuiStoragePair.ImGuiStoragePairUnion Union => ref Unsafe.AsRef(&Handle->Union); + } +} +/* ImGuiStyle.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyle + { + public float Alpha; + public float DisabledAlpha; + public Vector2 WindowPadding; + public float WindowRounding; + public float WindowBorderSize; + public Vector2 WindowMinSize; + public Vector2 WindowTitleAlign; + public ImGuiDir WindowMenuButtonPosition; + public float ChildRounding; + public float ChildBorderSize; + public float PopupRounding; + public float PopupBorderSize; + public Vector2 FramePadding; + public float FrameRounding; + public float FrameBorderSize; + public Vector2 ItemSpacing; + public Vector2 ItemInnerSpacing; + public Vector2 CellPadding; + public Vector2 TouchExtraPadding; + public float IndentSpacing; + public float ColumnsMinSpacing; + public float ScrollbarSize; + public float ScrollbarRounding; + public float GrabMinSize; + public float GrabRounding; + public float LogSliderDeadzone; + public float TabRounding; + public float TabBorderSize; + public float TabMinWidthForCloseButton; + public ImGuiDir ColorButtonPosition; + public Vector2 ButtonTextAlign; + public Vector2 SelectableTextAlign; + public Vector2 DisplayWindowPadding; + public Vector2 DisplaySafeAreaPadding; + public float MouseCursorScale; + public byte AntiAliasedLines; + public byte AntiAliasedLinesUseTex; + public byte AntiAliasedFill; + public float CurveTessellationTol; + public float CircleTessellationMaxError; + public Vector4 Colors_0; + public Vector4 Colors_1; + public Vector4 Colors_2; + public Vector4 Colors_3; + public Vector4 Colors_4; + public Vector4 Colors_5; + public Vector4 Colors_6; + public Vector4 Colors_7; + public Vector4 Colors_8; + public Vector4 Colors_9; + public Vector4 Colors_10; + public Vector4 Colors_11; + public Vector4 Colors_12; + public Vector4 Colors_13; + public Vector4 Colors_14; + public Vector4 Colors_15; + public Vector4 Colors_16; + public Vector4 Colors_17; + public Vector4 Colors_18; + public Vector4 Colors_19; + public Vector4 Colors_20; + public Vector4 Colors_21; + public Vector4 Colors_22; + public Vector4 Colors_23; + public Vector4 Colors_24; + public Vector4 Colors_25; + public Vector4 Colors_26; + public Vector4 Colors_27; + public Vector4 Colors_28; + public Vector4 Colors_29; + public Vector4 Colors_30; + public Vector4 Colors_31; + public Vector4 Colors_32; + public Vector4 Colors_33; + public Vector4 Colors_34; + public Vector4 Colors_35; + public Vector4 Colors_36; + public Vector4 Colors_37; + public Vector4 Colors_38; + public Vector4 Colors_39; + public Vector4 Colors_40; + public Vector4 Colors_41; + public Vector4 Colors_42; + public Vector4 Colors_43; + public Vector4 Colors_44; + public Vector4 Colors_45; + public Vector4 Colors_46; + public Vector4 Colors_47; + public Vector4 Colors_48; + public Vector4 Colors_49; + public Vector4 Colors_50; + public Vector4 Colors_51; + public Vector4 Colors_52; + public Vector4 Colors_53; + public Vector4 Colors_54; + public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default(Vector4*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + } + public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span colors = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + } + public unsafe Span Colors + { + get + { + fixed (Vector4* p = &this.Colors_0) + { + return new Span(p, 55); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStylePtr : IEquatable + { + public ImGuiStylePtr(ImGuiStyle* handle) { Handle = handle; } + public ImGuiStyle* Handle; + public bool IsNull => Handle == null; + public static ImGuiStylePtr Null => new ImGuiStylePtr(null); + public ImGuiStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStylePtr(ImGuiStyle* handle) => new ImGuiStylePtr(handle); + public static implicit operator ImGuiStyle*(ImGuiStylePtr handle) => handle.Handle; + public static bool operator ==(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle == right; + public static bool operator !=(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle != right; + public bool Equals(ImGuiStylePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStylePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float Alpha => ref Unsafe.AsRef(&Handle->Alpha); + public ref float DisabledAlpha => ref Unsafe.AsRef(&Handle->DisabledAlpha); + public ref Vector2 WindowPadding => ref Unsafe.AsRef(&Handle->WindowPadding); + public ref float WindowRounding => ref Unsafe.AsRef(&Handle->WindowRounding); + public ref float WindowBorderSize => ref Unsafe.AsRef(&Handle->WindowBorderSize); + public ref Vector2 WindowMinSize => ref Unsafe.AsRef(&Handle->WindowMinSize); + public ref Vector2 WindowTitleAlign => ref Unsafe.AsRef(&Handle->WindowTitleAlign); + public ref ImGuiDir WindowMenuButtonPosition => ref Unsafe.AsRef(&Handle->WindowMenuButtonPosition); + public ref float ChildRounding => ref Unsafe.AsRef(&Handle->ChildRounding); + public ref float ChildBorderSize => ref Unsafe.AsRef(&Handle->ChildBorderSize); + public ref float PopupRounding => ref Unsafe.AsRef(&Handle->PopupRounding); + public ref float PopupBorderSize => ref Unsafe.AsRef(&Handle->PopupBorderSize); + public ref Vector2 FramePadding => ref Unsafe.AsRef(&Handle->FramePadding); + public ref float FrameRounding => ref Unsafe.AsRef(&Handle->FrameRounding); + public ref float FrameBorderSize => ref Unsafe.AsRef(&Handle->FrameBorderSize); + public ref Vector2 ItemSpacing => ref Unsafe.AsRef(&Handle->ItemSpacing); + public ref Vector2 ItemInnerSpacing => ref Unsafe.AsRef(&Handle->ItemInnerSpacing); + public ref Vector2 CellPadding => ref Unsafe.AsRef(&Handle->CellPadding); + public ref Vector2 TouchExtraPadding => ref Unsafe.AsRef(&Handle->TouchExtraPadding); + public ref float IndentSpacing => ref Unsafe.AsRef(&Handle->IndentSpacing); + public ref float ColumnsMinSpacing => ref Unsafe.AsRef(&Handle->ColumnsMinSpacing); + public ref float ScrollbarSize => ref Unsafe.AsRef(&Handle->ScrollbarSize); + public ref float ScrollbarRounding => ref Unsafe.AsRef(&Handle->ScrollbarRounding); + public ref float GrabMinSize => ref Unsafe.AsRef(&Handle->GrabMinSize); + public ref float GrabRounding => ref Unsafe.AsRef(&Handle->GrabRounding); + public ref float LogSliderDeadzone => ref Unsafe.AsRef(&Handle->LogSliderDeadzone); + public ref float TabRounding => ref Unsafe.AsRef(&Handle->TabRounding); + public ref float TabBorderSize => ref Unsafe.AsRef(&Handle->TabBorderSize); + public ref float TabMinWidthForCloseButton => ref Unsafe.AsRef(&Handle->TabMinWidthForCloseButton); + public ref ImGuiDir ColorButtonPosition => ref Unsafe.AsRef(&Handle->ColorButtonPosition); + public ref Vector2 ButtonTextAlign => ref Unsafe.AsRef(&Handle->ButtonTextAlign); + public ref Vector2 SelectableTextAlign => ref Unsafe.AsRef(&Handle->SelectableTextAlign); + public ref Vector2 DisplayWindowPadding => ref Unsafe.AsRef(&Handle->DisplayWindowPadding); + public ref Vector2 DisplaySafeAreaPadding => ref Unsafe.AsRef(&Handle->DisplaySafeAreaPadding); + public ref float MouseCursorScale => ref Unsafe.AsRef(&Handle->MouseCursorScale); + public ref bool AntiAliasedLines => ref Unsafe.AsRef(&Handle->AntiAliasedLines); + public ref bool AntiAliasedLinesUseTex => ref Unsafe.AsRef(&Handle->AntiAliasedLinesUseTex); + public ref bool AntiAliasedFill => ref Unsafe.AsRef(&Handle->AntiAliasedFill); + public ref float CurveTessellationTol => ref Unsafe.AsRef(&Handle->CurveTessellationTol); + public ref float CircleTessellationMaxError => ref Unsafe.AsRef(&Handle->CircleTessellationMaxError); + public unsafe Span Colors + { + get + { + return new Span(&Handle->Colors_0, 55); + } + } + } +} +/* ImGuiStyleMod.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyleMod + { + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStyleModUnion + { + [FieldOffset(0)] + public int BackupInt_0; + [FieldOffset(8)] + public int BackupInt_1; + [FieldOffset(0)] + public float BackupFloat_0; + [FieldOffset(8)] + public float BackupFloat_1; + public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) + { + if (backupInt != default(int*)) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default(float*)) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + public unsafe ImGuiStyleModUnion(Span backupInt = default, Span backupFloat = default) + { + if (backupInt != default(Span)) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default(Span)) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + } + public ImGuiStyleVar VarIdx; + public ImGuiStyleModUnion Union; + public unsafe ImGuiStyleMod(ImGuiStyleVar varIdx = default, ImGuiStyleModUnion union = default) + { + VarIdx = varIdx; + Union = union; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiStyleModPtr : IEquatable + { + public ImGuiStyleModPtr(ImGuiStyleMod* handle) { Handle = handle; } + public ImGuiStyleMod* Handle; + public bool IsNull => Handle == null; + public static ImGuiStyleModPtr Null => new ImGuiStyleModPtr(null); + public ImGuiStyleMod this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiStyleModPtr(ImGuiStyleMod* handle) => new ImGuiStyleModPtr(handle); + public static implicit operator ImGuiStyleMod*(ImGuiStyleModPtr handle) => handle.Handle; + public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle == right; + public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle != right; + public bool Equals(ImGuiStyleModPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiStyleModPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiStyleModPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiStyleVar VarIdx => ref Unsafe.AsRef(&Handle->VarIdx); + public ref ImGuiStyleMod.ImGuiStyleModUnion Union => ref Unsafe.AsRef(&Handle->Union); + } +} +/* ImGuiTabBar.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabBar + { + public ImVector Tabs; + public ImGuiTabBarFlags Flags; + public uint ID; + public uint SelectedTabId; + public uint NextSelectedTabId; + public uint VisibleTabId; + public int CurrFrameVisible; + public int PrevFrameVisible; + public ImRect BarRect; + public float CurrTabsContentsHeight; + public float PrevTabsContentsHeight; + public float WidthAllTabs; + public float WidthAllTabsIdeal; + public float ScrollingAnim; + public float ScrollingTarget; + public float ScrollingTargetDistToVisibility; + public float ScrollingSpeed; + public float ScrollingRectMinX; + public float ScrollingRectMaxX; + public uint ReorderRequestTabId; + public short ReorderRequestOffset; + public sbyte BeginCount; + public byte WantLayout; + public byte VisibleTabWasSubmitted; + public byte TabsAddedNew; + public short TabsActiveCount; + public short LastTabItemIdx; + public float ItemSpacingY; + public Vector2 FramePadding; + public Vector2 BackupCursorPos; + public ImGuiTextBuffer TabsNames; + 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; + ID = id; + SelectedTabId = selectedTabId; + NextSelectedTabId = nextSelectedTabId; + VisibleTabId = visibleTabId; + CurrFrameVisible = currFrameVisible; + PrevFrameVisible = prevFrameVisible; + BarRect = barRect; + CurrTabsContentsHeight = currTabsContentsHeight; + PrevTabsContentsHeight = prevTabsContentsHeight; + WidthAllTabs = widthAllTabs; + WidthAllTabsIdeal = widthAllTabsIdeal; + ScrollingAnim = scrollingAnim; + ScrollingTarget = scrollingTarget; + ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; + ScrollingSpeed = scrollingSpeed; + ScrollingRectMinX = scrollingRectMinX; + ScrollingRectMaxX = scrollingRectMaxX; + ReorderRequestTabId = reorderRequestTabId; + ReorderRequestOffset = reorderRequestOffset; + BeginCount = beginCount; + WantLayout = wantLayout ? (byte)1 : (byte)0; + VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; + TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; + TabsActiveCount = tabsActiveCount; + LastTabItemIdx = lastTabItemIdx; + ItemSpacingY = itemSpacingY; + FramePadding = framePadding; + BackupCursorPos = backupCursorPos; + TabsNames = tabsNames; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTabBarPtr : IEquatable + { + public ImGuiTabBarPtr(ImGuiTabBar* handle) { Handle = handle; } + public ImGuiTabBar* Handle; + public bool IsNull => Handle == null; + public static ImGuiTabBarPtr Null => new ImGuiTabBarPtr(null); + public ImGuiTabBar this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTabBarPtr(ImGuiTabBar* handle) => new ImGuiTabBarPtr(handle); + public static implicit operator ImGuiTabBar*(ImGuiTabBarPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle == right; + public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle != right; + public bool Equals(ImGuiTabBarPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTabBarPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTabBarPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector Tabs => ref Unsafe.AsRef>(&Handle->Tabs); + public ref ImGuiTabBarFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref uint SelectedTabId => ref Unsafe.AsRef(&Handle->SelectedTabId); + public ref uint NextSelectedTabId => ref Unsafe.AsRef(&Handle->NextSelectedTabId); + public ref uint VisibleTabId => ref Unsafe.AsRef(&Handle->VisibleTabId); + public ref int CurrFrameVisible => ref Unsafe.AsRef(&Handle->CurrFrameVisible); + public ref int PrevFrameVisible => ref Unsafe.AsRef(&Handle->PrevFrameVisible); + public ref ImRect BarRect => ref Unsafe.AsRef(&Handle->BarRect); + public ref float CurrTabsContentsHeight => ref Unsafe.AsRef(&Handle->CurrTabsContentsHeight); + public ref float PrevTabsContentsHeight => ref Unsafe.AsRef(&Handle->PrevTabsContentsHeight); + public ref float WidthAllTabs => ref Unsafe.AsRef(&Handle->WidthAllTabs); + public ref float WidthAllTabsIdeal => ref Unsafe.AsRef(&Handle->WidthAllTabsIdeal); + public ref float ScrollingAnim => ref Unsafe.AsRef(&Handle->ScrollingAnim); + public ref float ScrollingTarget => ref Unsafe.AsRef(&Handle->ScrollingTarget); + public ref float ScrollingTargetDistToVisibility => ref Unsafe.AsRef(&Handle->ScrollingTargetDistToVisibility); + public ref float ScrollingSpeed => ref Unsafe.AsRef(&Handle->ScrollingSpeed); + public ref float ScrollingRectMinX => ref Unsafe.AsRef(&Handle->ScrollingRectMinX); + public ref float ScrollingRectMaxX => ref Unsafe.AsRef(&Handle->ScrollingRectMaxX); + public ref uint ReorderRequestTabId => ref Unsafe.AsRef(&Handle->ReorderRequestTabId); + public ref short ReorderRequestOffset => ref Unsafe.AsRef(&Handle->ReorderRequestOffset); + public ref sbyte BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); + public ref bool WantLayout => ref Unsafe.AsRef(&Handle->WantLayout); + public ref bool VisibleTabWasSubmitted => ref Unsafe.AsRef(&Handle->VisibleTabWasSubmitted); + public ref bool TabsAddedNew => ref Unsafe.AsRef(&Handle->TabsAddedNew); + public ref short TabsActiveCount => ref Unsafe.AsRef(&Handle->TabsActiveCount); + public ref short LastTabItemIdx => ref Unsafe.AsRef(&Handle->LastTabItemIdx); + public ref float ItemSpacingY => ref Unsafe.AsRef(&Handle->ItemSpacingY); + public ref Vector2 FramePadding => ref Unsafe.AsRef(&Handle->FramePadding); + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + public ref ImGuiTextBuffer TabsNames => ref Unsafe.AsRef(&Handle->TabsNames); + } +} +/* ImGuiTabItem.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabItem + { + public uint ID; + public ImGuiTabItemFlags Flags; + public unsafe ImGuiWindow* Window; + public int LastFrameVisible; + public int LastFrameSelected; + public float Offset; + public float Width; + public float ContentWidth; + public float RequestedWidth; + public int NameOffset; + public short BeginOrder; + public short IndexDuringLayout; + public byte WantClose; + public unsafe ImGuiTabItem(uint id = default, ImGuiTabItemFlags flags = default, ImGuiWindowPtr window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) + { + ID = id; + Flags = flags; + Window = window; + LastFrameVisible = lastFrameVisible; + LastFrameSelected = lastFrameSelected; + Offset = offset; + Width = width; + ContentWidth = contentWidth; + RequestedWidth = requestedWidth; + NameOffset = nameOffset; + BeginOrder = beginOrder; + IndexDuringLayout = indexDuringLayout; + WantClose = wantClose ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTabItemPtr : IEquatable + { + public ImGuiTabItemPtr(ImGuiTabItem* handle) { Handle = handle; } + public ImGuiTabItem* Handle; + public bool IsNull => Handle == null; + public static ImGuiTabItemPtr Null => new ImGuiTabItemPtr(null); + public ImGuiTabItem this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTabItemPtr(ImGuiTabItem* handle) => new ImGuiTabItemPtr(handle); + public static implicit operator ImGuiTabItem*(ImGuiTabItemPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle == right; + public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle != right; + public bool Equals(ImGuiTabItemPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTabItemPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTabItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiTabItemFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + public ref int LastFrameVisible => ref Unsafe.AsRef(&Handle->LastFrameVisible); + public ref int LastFrameSelected => ref Unsafe.AsRef(&Handle->LastFrameSelected); + public ref float Offset => ref Unsafe.AsRef(&Handle->Offset); + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + public ref float ContentWidth => ref Unsafe.AsRef(&Handle->ContentWidth); + public ref float RequestedWidth => ref Unsafe.AsRef(&Handle->RequestedWidth); + public ref int NameOffset => ref Unsafe.AsRef(&Handle->NameOffset); + public ref short BeginOrder => ref Unsafe.AsRef(&Handle->BeginOrder); + public ref short IndexDuringLayout => ref Unsafe.AsRef(&Handle->IndexDuringLayout); + public ref bool WantClose => ref Unsafe.AsRef(&Handle->WantClose); + } +} +/* ImGuiTable.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTable + { + public uint ID; + public ImGuiTableFlags Flags; + public unsafe void* RawData; + public unsafe ImGuiTableTempData* TempData; + public ImSpanImGuiTableColumn Columns; + public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; + public ImSpanImGuiTableCellData RowCellData; + public ulong EnabledMaskByDisplayOrder; + public ulong EnabledMaskByIndex; + public ulong VisibleMaskByIndex; + public ulong RequestOutputMaskByIndex; + public ImGuiTableFlags SettingsLoadedFlags; + public int SettingsOffset; + public int LastFrameActive; + public int ColumnsCount; + public int CurrentRow; + public int CurrentColumn; + public short InstanceCurrent; + public short InstanceInteracted; + public float RowPosY1; + public float RowPosY2; + public float RowMinHeight; + public float RowTextBaseline; + public float RowIndentOffsetX; + public ImGuiTableRowFlags RawBits0; + public int RowBgColorCounter; + public uint RowBgColor_0; + public uint RowBgColor_1; + public uint BorderColorStrong; + public uint BorderColorLight; + public float BorderX1; + public float BorderX2; + public float HostIndentX; + public float MinColumnWidth; + public float OuterPaddingX; + public float CellPaddingX; + public float CellPaddingY; + public float CellSpacingX1; + public float CellSpacingX2; + public float InnerWidth; + public float ColumnsGivenWidth; + public float ColumnsAutoFitWidth; + public float ColumnsStretchSumWeights; + public float ResizedColumnNextWidth; + public float ResizeLockMinContentsX2; + public float RefScale; + public ImRect OuterRect; + public ImRect InnerRect; + public ImRect WorkRect; + public ImRect InnerClipRect; + public ImRect BgClipRect; + public ImRect Bg0ClipRectForDrawCmd; + public ImRect Bg2ClipRectForDrawCmd; + public ImRect HostClipRect; + public ImRect HostBackupInnerClipRect; + public unsafe ImGuiWindow* OuterWindow; + public unsafe ImGuiWindow* InnerWindow; + public ImGuiTextBuffer ColumnsNames; + public unsafe ImDrawListSplitter* DrawSplitter; + public ImGuiTableInstanceData InstanceDataFirst; + public ImVector InstanceDataExtra; + public ImGuiTableColumnSortSpecs SortSpecsSingle; + public ImVector SortSpecsMulti; + public ImGuiTableSortSpecs SortSpecs; + public sbyte SortSpecsCount; + public sbyte ColumnsEnabledCount; + public sbyte ColumnsEnabledFixedCount; + public sbyte DeclColumnsCount; + public sbyte HoveredColumnBody; + public sbyte HoveredColumnBorder; + public sbyte AutoFitSingleColumn; + public sbyte ResizedColumn; + public sbyte LastResizedColumn; + public sbyte HeldHeaderColumn; + public sbyte ReorderColumn; + public sbyte ReorderColumnDir; + public sbyte LeftMostEnabledColumn; + public sbyte RightMostEnabledColumn; + public sbyte LeftMostStretchedColumn; + public sbyte RightMostStretchedColumn; + public sbyte ContextPopupColumn; + public sbyte FreezeRowsRequest; + public sbyte FreezeRowsCount; + public sbyte FreezeColumnsRequest; + public sbyte FreezeColumnsCount; + public sbyte RowCellDataCurrent; + public byte DummyDrawChannel; + public byte Bg2DrawChannelCurrent; + public byte Bg2DrawChannelUnfrozen; + public byte IsLayoutLocked; + public byte IsInsideRow; + public byte IsInitializing; + public byte IsSortSpecsDirty; + public byte IsUsingHeaders; + public byte IsContextPopupOpen; + public byte IsSettingsRequestLoad; + public byte IsSettingsDirty; + public byte IsDefaultDisplayOrder; + public byte IsResetAllRequest; + public byte IsResetDisplayOrderRequest; + public byte IsUnfrozenRows; + public byte IsDefaultSizingPolicy; + public byte MemoryCompacted; + public byte HostSkipItems; + public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + RequestOutputMaskByIndex = requestOutputMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default(uint*)) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellPaddingY = cellPaddingY; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, Span rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + RequestOutputMaskByIndex = requestOutputMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default(Span)) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellPaddingY = cellPaddingY; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTablePtr : IEquatable + { + public ImGuiTablePtr(ImGuiTable* handle) { Handle = handle; } + public ImGuiTable* Handle; + public bool IsNull => Handle == null; + public static ImGuiTablePtr Null => new ImGuiTablePtr(null); + public ImGuiTable this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTablePtr(ImGuiTable* handle) => new ImGuiTablePtr(handle); + public static implicit operator ImGuiTable*(ImGuiTablePtr handle) => handle.Handle; + public static bool operator ==(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTablePtr left, ImGuiTable* right) => left.Handle == right; + public static bool operator !=(ImGuiTablePtr left, ImGuiTable* right) => left.Handle != right; + public bool Equals(ImGuiTablePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTablePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTablePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiTableFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public void* RawData { get => Handle->RawData; set => Handle->RawData = value; } + public ref ImGuiTableTempDataPtr TempData => ref Unsafe.AsRef(&Handle->TempData); + public ref ImSpanImGuiTableColumn Columns => ref Unsafe.AsRef(&Handle->Columns); + public ref ImSpanImGuiTableColumnIdx DisplayOrderToIndex => ref Unsafe.AsRef(&Handle->DisplayOrderToIndex); + public ref ImSpanImGuiTableCellData RowCellData => ref Unsafe.AsRef(&Handle->RowCellData); + public ref ulong EnabledMaskByDisplayOrder => ref Unsafe.AsRef(&Handle->EnabledMaskByDisplayOrder); + public ref ulong EnabledMaskByIndex => ref Unsafe.AsRef(&Handle->EnabledMaskByIndex); + public ref ulong VisibleMaskByIndex => ref Unsafe.AsRef(&Handle->VisibleMaskByIndex); + public ref ulong RequestOutputMaskByIndex => ref Unsafe.AsRef(&Handle->RequestOutputMaskByIndex); + public ref ImGuiTableFlags SettingsLoadedFlags => ref Unsafe.AsRef(&Handle->SettingsLoadedFlags); + public ref int SettingsOffset => ref Unsafe.AsRef(&Handle->SettingsOffset); + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + public ref int ColumnsCount => ref Unsafe.AsRef(&Handle->ColumnsCount); + public ref int CurrentRow => ref Unsafe.AsRef(&Handle->CurrentRow); + public ref int CurrentColumn => ref Unsafe.AsRef(&Handle->CurrentColumn); + public ref short InstanceCurrent => ref Unsafe.AsRef(&Handle->InstanceCurrent); + public ref short InstanceInteracted => ref Unsafe.AsRef(&Handle->InstanceInteracted); + public ref float RowPosY1 => ref Unsafe.AsRef(&Handle->RowPosY1); + public ref float RowPosY2 => ref Unsafe.AsRef(&Handle->RowPosY2); + public ref float RowMinHeight => ref Unsafe.AsRef(&Handle->RowMinHeight); + public ref float RowTextBaseline => ref Unsafe.AsRef(&Handle->RowTextBaseline); + public ref float RowIndentOffsetX => ref Unsafe.AsRef(&Handle->RowIndentOffsetX); + public ImGuiTableRowFlags RowFlags { get => Handle->RowFlags; set => Handle->RowFlags = value; } + public ImGuiTableRowFlags LastRowFlags { get => Handle->LastRowFlags; set => Handle->LastRowFlags = value; } + public ref int RowBgColorCounter => ref Unsafe.AsRef(&Handle->RowBgColorCounter); + public unsafe Span RowBgColor + { + get + { + return new Span(&Handle->RowBgColor_0, 2); + } + } + public ref uint BorderColorStrong => ref Unsafe.AsRef(&Handle->BorderColorStrong); + public ref uint BorderColorLight => ref Unsafe.AsRef(&Handle->BorderColorLight); + public ref float BorderX1 => ref Unsafe.AsRef(&Handle->BorderX1); + public ref float BorderX2 => ref Unsafe.AsRef(&Handle->BorderX2); + public ref float HostIndentX => ref Unsafe.AsRef(&Handle->HostIndentX); + public ref float MinColumnWidth => ref Unsafe.AsRef(&Handle->MinColumnWidth); + public ref float OuterPaddingX => ref Unsafe.AsRef(&Handle->OuterPaddingX); + public ref float CellPaddingX => ref Unsafe.AsRef(&Handle->CellPaddingX); + public ref float CellPaddingY => ref Unsafe.AsRef(&Handle->CellPaddingY); + public ref float CellSpacingX1 => ref Unsafe.AsRef(&Handle->CellSpacingX1); + public ref float CellSpacingX2 => ref Unsafe.AsRef(&Handle->CellSpacingX2); + public ref float InnerWidth => ref Unsafe.AsRef(&Handle->InnerWidth); + public ref float ColumnsGivenWidth => ref Unsafe.AsRef(&Handle->ColumnsGivenWidth); + public ref float ColumnsAutoFitWidth => ref Unsafe.AsRef(&Handle->ColumnsAutoFitWidth); + public ref float ColumnsStretchSumWeights => ref Unsafe.AsRef(&Handle->ColumnsStretchSumWeights); + public ref float ResizedColumnNextWidth => ref Unsafe.AsRef(&Handle->ResizedColumnNextWidth); + public ref float ResizeLockMinContentsX2 => ref Unsafe.AsRef(&Handle->ResizeLockMinContentsX2); + public ref float RefScale => ref Unsafe.AsRef(&Handle->RefScale); + public ref ImRect OuterRect => ref Unsafe.AsRef(&Handle->OuterRect); + public ref ImRect InnerRect => ref Unsafe.AsRef(&Handle->InnerRect); + public ref ImRect WorkRect => ref Unsafe.AsRef(&Handle->WorkRect); + public ref ImRect InnerClipRect => ref Unsafe.AsRef(&Handle->InnerClipRect); + public ref ImRect BgClipRect => ref Unsafe.AsRef(&Handle->BgClipRect); + public ref ImRect Bg0ClipRectForDrawCmd => ref Unsafe.AsRef(&Handle->Bg0ClipRectForDrawCmd); + public ref ImRect Bg2ClipRectForDrawCmd => ref Unsafe.AsRef(&Handle->Bg2ClipRectForDrawCmd); + public ref ImRect HostClipRect => ref Unsafe.AsRef(&Handle->HostClipRect); + public ref ImRect HostBackupInnerClipRect => ref Unsafe.AsRef(&Handle->HostBackupInnerClipRect); + public ref ImGuiWindowPtr OuterWindow => ref Unsafe.AsRef(&Handle->OuterWindow); + public ref ImGuiWindowPtr InnerWindow => ref Unsafe.AsRef(&Handle->InnerWindow); + public ref ImGuiTextBuffer ColumnsNames => ref Unsafe.AsRef(&Handle->ColumnsNames); + public ref ImDrawListSplitterPtr DrawSplitter => ref Unsafe.AsRef(&Handle->DrawSplitter); + public ref ImGuiTableInstanceData InstanceDataFirst => ref Unsafe.AsRef(&Handle->InstanceDataFirst); + public ref ImVector InstanceDataExtra => ref Unsafe.AsRef>(&Handle->InstanceDataExtra); + public ref ImGuiTableColumnSortSpecs SortSpecsSingle => ref Unsafe.AsRef(&Handle->SortSpecsSingle); + public ref ImVector SortSpecsMulti => ref Unsafe.AsRef>(&Handle->SortSpecsMulti); + public ref ImGuiTableSortSpecs SortSpecs => ref Unsafe.AsRef(&Handle->SortSpecs); + public ref sbyte SortSpecsCount => ref Unsafe.AsRef(&Handle->SortSpecsCount); + public ref sbyte ColumnsEnabledCount => ref Unsafe.AsRef(&Handle->ColumnsEnabledCount); + public ref sbyte ColumnsEnabledFixedCount => ref Unsafe.AsRef(&Handle->ColumnsEnabledFixedCount); + public ref sbyte DeclColumnsCount => ref Unsafe.AsRef(&Handle->DeclColumnsCount); + public ref sbyte HoveredColumnBody => ref Unsafe.AsRef(&Handle->HoveredColumnBody); + public ref sbyte HoveredColumnBorder => ref Unsafe.AsRef(&Handle->HoveredColumnBorder); + public ref sbyte AutoFitSingleColumn => ref Unsafe.AsRef(&Handle->AutoFitSingleColumn); + public ref sbyte ResizedColumn => ref Unsafe.AsRef(&Handle->ResizedColumn); + public ref sbyte LastResizedColumn => ref Unsafe.AsRef(&Handle->LastResizedColumn); + public ref sbyte HeldHeaderColumn => ref Unsafe.AsRef(&Handle->HeldHeaderColumn); + public ref sbyte ReorderColumn => ref Unsafe.AsRef(&Handle->ReorderColumn); + public ref sbyte ReorderColumnDir => ref Unsafe.AsRef(&Handle->ReorderColumnDir); + public ref sbyte LeftMostEnabledColumn => ref Unsafe.AsRef(&Handle->LeftMostEnabledColumn); + public ref sbyte RightMostEnabledColumn => ref Unsafe.AsRef(&Handle->RightMostEnabledColumn); + public ref sbyte LeftMostStretchedColumn => ref Unsafe.AsRef(&Handle->LeftMostStretchedColumn); + public ref sbyte RightMostStretchedColumn => ref Unsafe.AsRef(&Handle->RightMostStretchedColumn); + public ref sbyte ContextPopupColumn => ref Unsafe.AsRef(&Handle->ContextPopupColumn); + public ref sbyte FreezeRowsRequest => ref Unsafe.AsRef(&Handle->FreezeRowsRequest); + public ref sbyte FreezeRowsCount => ref Unsafe.AsRef(&Handle->FreezeRowsCount); + public ref sbyte FreezeColumnsRequest => ref Unsafe.AsRef(&Handle->FreezeColumnsRequest); + public ref sbyte FreezeColumnsCount => ref Unsafe.AsRef(&Handle->FreezeColumnsCount); + public ref sbyte RowCellDataCurrent => ref Unsafe.AsRef(&Handle->RowCellDataCurrent); + public ref byte DummyDrawChannel => ref Unsafe.AsRef(&Handle->DummyDrawChannel); + public ref byte Bg2DrawChannelCurrent => ref Unsafe.AsRef(&Handle->Bg2DrawChannelCurrent); + public ref byte Bg2DrawChannelUnfrozen => ref Unsafe.AsRef(&Handle->Bg2DrawChannelUnfrozen); + public ref bool IsLayoutLocked => ref Unsafe.AsRef(&Handle->IsLayoutLocked); + public ref bool IsInsideRow => ref Unsafe.AsRef(&Handle->IsInsideRow); + public ref bool IsInitializing => ref Unsafe.AsRef(&Handle->IsInitializing); + public ref bool IsSortSpecsDirty => ref Unsafe.AsRef(&Handle->IsSortSpecsDirty); + public ref bool IsUsingHeaders => ref Unsafe.AsRef(&Handle->IsUsingHeaders); + public ref bool IsContextPopupOpen => ref Unsafe.AsRef(&Handle->IsContextPopupOpen); + public ref bool IsSettingsRequestLoad => ref Unsafe.AsRef(&Handle->IsSettingsRequestLoad); + public ref bool IsSettingsDirty => ref Unsafe.AsRef(&Handle->IsSettingsDirty); + public ref bool IsDefaultDisplayOrder => ref Unsafe.AsRef(&Handle->IsDefaultDisplayOrder); + public ref bool IsResetAllRequest => ref Unsafe.AsRef(&Handle->IsResetAllRequest); + public ref bool IsResetDisplayOrderRequest => ref Unsafe.AsRef(&Handle->IsResetDisplayOrderRequest); + public ref bool IsUnfrozenRows => ref Unsafe.AsRef(&Handle->IsUnfrozenRows); + public ref bool IsDefaultSizingPolicy => ref Unsafe.AsRef(&Handle->IsDefaultSizingPolicy); + public ref bool MemoryCompacted => ref Unsafe.AsRef(&Handle->MemoryCompacted); + public ref bool HostSkipItems => ref Unsafe.AsRef(&Handle->HostSkipItems); + } +} +/* ImGuiTableCellData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableCellData + { + public uint BgColor; + public sbyte Column; + public unsafe ImGuiTableCellData(uint bgColor = default, sbyte column = default) + { + BgColor = bgColor; + Column = column; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableCellDataPtr : IEquatable + { + public ImGuiTableCellDataPtr(ImGuiTableCellData* handle) { Handle = handle; } + public ImGuiTableCellData* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableCellDataPtr Null => new ImGuiTableCellDataPtr(null); + public ImGuiTableCellData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableCellDataPtr(ImGuiTableCellData* handle) => new ImGuiTableCellDataPtr(handle); + public static implicit operator ImGuiTableCellData*(ImGuiTableCellDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle == right; + public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle != right; + public bool Equals(ImGuiTableCellDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableCellDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableCellDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint BgColor => ref Unsafe.AsRef(&Handle->BgColor); + public ref sbyte Column => ref Unsafe.AsRef(&Handle->Column); + } +} +/* ImGuiTableColumn.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumn + { + public ImGuiTableColumnFlags Flags; + public float WidthGiven; + public float MinX; + public float MaxX; + public float WidthRequest; + public float WidthAuto; + public float StretchWeight; + public float InitStretchWeightOrWidth; + public ImRect ClipRect; + public uint UserID; + public float WorkMinX; + public float WorkMaxX; + public float ItemWidth; + public float ContentMaxXFrozen; + public float ContentMaxXUnfrozen; + public float ContentMaxXHeadersUsed; + public float ContentMaxXHeadersIdeal; + public short NameOffset; + public sbyte DisplayOrder; + public sbyte IndexWithinEnabledSet; + public sbyte PrevEnabledColumn; + public sbyte NextEnabledColumn; + public sbyte SortOrder; + public byte DrawChannelCurrent; + public byte DrawChannelFrozen; + public byte DrawChannelUnfrozen; + public byte IsEnabled; + public byte IsUserEnabled; + public byte IsUserEnabledNextFrame; + public byte IsVisibleX; + public byte IsVisibleY; + public byte IsRequestOutput; + public byte IsSkipItems; + public byte IsPreserveWidthAuto; + public sbyte NavLayerCurrent; + public byte AutoFitQueue; + public byte CannotSkipItemsQueue; + public byte RawBits0; + public byte SortDirectionsAvailList; + 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; + MinX = minX; + MaxX = maxX; + WidthRequest = widthRequest; + WidthAuto = widthAuto; + StretchWeight = stretchWeight; + InitStretchWeightOrWidth = initStretchWeightOrWidth; + ClipRect = clipRect; + UserID = userId; + WorkMinX = workMinX; + WorkMaxX = workMaxX; + ItemWidth = itemWidth; + ContentMaxXFrozen = contentMaxXFrozen; + ContentMaxXUnfrozen = contentMaxXUnfrozen; + ContentMaxXHeadersUsed = contentMaxXHeadersUsed; + ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; + NameOffset = nameOffset; + DisplayOrder = displayOrder; + IndexWithinEnabledSet = indexWithinEnabledSet; + PrevEnabledColumn = prevEnabledColumn; + NextEnabledColumn = nextEnabledColumn; + SortOrder = sortOrder; + DrawChannelCurrent = drawChannelCurrent; + DrawChannelFrozen = drawChannelFrozen; + DrawChannelUnfrozen = drawChannelUnfrozen; + IsEnabled = isEnabled ? (byte)1 : (byte)0; + IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; + IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; + IsVisibleX = isVisibleX ? (byte)1 : (byte)0; + IsVisibleY = isVisibleY ? (byte)1 : (byte)0; + IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; + IsSkipItems = isSkipItems ? (byte)1 : (byte)0; + IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; + NavLayerCurrent = navLayerCurrent; + AutoFitQueue = autoFitQueue; + CannotSkipItemsQueue = cannotSkipItemsQueue; + SortDirection = sortDirection; + SortDirectionsAvailCount = sortDirectionsAvailCount; + SortDirectionsAvailMask = sortDirectionsAvailMask; + SortDirectionsAvailList = sortDirectionsAvailList; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableColumnPtr : IEquatable + { + public ImGuiTableColumnPtr(ImGuiTableColumn* handle) { Handle = handle; } + public ImGuiTableColumn* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableColumnPtr Null => new ImGuiTableColumnPtr(null); + public ImGuiTableColumn this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableColumnPtr(ImGuiTableColumn* handle) => new ImGuiTableColumnPtr(handle); + public static implicit operator ImGuiTableColumn*(ImGuiTableColumnPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle == right; + public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle != right; + public bool Equals(ImGuiTableColumnPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableColumnPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableColumnPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiTableColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref float WidthGiven => ref Unsafe.AsRef(&Handle->WidthGiven); + public ref float MinX => ref Unsafe.AsRef(&Handle->MinX); + public ref float MaxX => ref Unsafe.AsRef(&Handle->MaxX); + public ref float WidthRequest => ref Unsafe.AsRef(&Handle->WidthRequest); + public ref float WidthAuto => ref Unsafe.AsRef(&Handle->WidthAuto); + public ref float StretchWeight => ref Unsafe.AsRef(&Handle->StretchWeight); + public ref float InitStretchWeightOrWidth => ref Unsafe.AsRef(&Handle->InitStretchWeightOrWidth); + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + public ref uint UserID => ref Unsafe.AsRef(&Handle->UserID); + public ref float WorkMinX => ref Unsafe.AsRef(&Handle->WorkMinX); + public ref float WorkMaxX => ref Unsafe.AsRef(&Handle->WorkMaxX); + public ref float ItemWidth => ref Unsafe.AsRef(&Handle->ItemWidth); + public ref float ContentMaxXFrozen => ref Unsafe.AsRef(&Handle->ContentMaxXFrozen); + public ref float ContentMaxXUnfrozen => ref Unsafe.AsRef(&Handle->ContentMaxXUnfrozen); + public ref float ContentMaxXHeadersUsed => ref Unsafe.AsRef(&Handle->ContentMaxXHeadersUsed); + public ref float ContentMaxXHeadersIdeal => ref Unsafe.AsRef(&Handle->ContentMaxXHeadersIdeal); + public ref short NameOffset => ref Unsafe.AsRef(&Handle->NameOffset); + public ref sbyte DisplayOrder => ref Unsafe.AsRef(&Handle->DisplayOrder); + public ref sbyte IndexWithinEnabledSet => ref Unsafe.AsRef(&Handle->IndexWithinEnabledSet); + public ref sbyte PrevEnabledColumn => ref Unsafe.AsRef(&Handle->PrevEnabledColumn); + public ref sbyte NextEnabledColumn => ref Unsafe.AsRef(&Handle->NextEnabledColumn); + public ref sbyte SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + public ref byte DrawChannelCurrent => ref Unsafe.AsRef(&Handle->DrawChannelCurrent); + public ref byte DrawChannelFrozen => ref Unsafe.AsRef(&Handle->DrawChannelFrozen); + public ref byte DrawChannelUnfrozen => ref Unsafe.AsRef(&Handle->DrawChannelUnfrozen); + public ref bool IsEnabled => ref Unsafe.AsRef(&Handle->IsEnabled); + public ref bool IsUserEnabled => ref Unsafe.AsRef(&Handle->IsUserEnabled); + public ref bool IsUserEnabledNextFrame => ref Unsafe.AsRef(&Handle->IsUserEnabledNextFrame); + public ref bool IsVisibleX => ref Unsafe.AsRef(&Handle->IsVisibleX); + public ref bool IsVisibleY => ref Unsafe.AsRef(&Handle->IsVisibleY); + public ref bool IsRequestOutput => ref Unsafe.AsRef(&Handle->IsRequestOutput); + public ref bool IsSkipItems => ref Unsafe.AsRef(&Handle->IsSkipItems); + public ref bool IsPreserveWidthAuto => ref Unsafe.AsRef(&Handle->IsPreserveWidthAuto); + public ref sbyte NavLayerCurrent => ref Unsafe.AsRef(&Handle->NavLayerCurrent); + public ref byte AutoFitQueue => ref Unsafe.AsRef(&Handle->AutoFitQueue); + public ref byte CannotSkipItemsQueue => ref Unsafe.AsRef(&Handle->CannotSkipItemsQueue); + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + public byte SortDirectionsAvailCount { get => Handle->SortDirectionsAvailCount; set => Handle->SortDirectionsAvailCount = value; } + public byte SortDirectionsAvailMask { get => Handle->SortDirectionsAvailMask; set => Handle->SortDirectionsAvailMask = value; } + public ref byte SortDirectionsAvailList => ref Unsafe.AsRef(&Handle->SortDirectionsAvailList); + } +} +/* ImGuiTableColumnSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSettings + { + public float WidthOrWeight; + public uint UserID; + public sbyte Index; + public sbyte DisplayOrder; + public sbyte SortOrder; + public byte RawBits0; + public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) + { + WidthOrWeight = widthOrWeight; + UserID = userId; + Index = index; + DisplayOrder = displayOrder; + SortOrder = sortOrder; + SortDirection = sortDirection; + IsEnabled = isEnabled; + IsStretch = isStretch; + } + 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); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableColumnSettingsPtr : IEquatable + { + public ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) { Handle = handle; } + public ImGuiTableColumnSettings* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableColumnSettingsPtr Null => new ImGuiTableColumnSettingsPtr(null); + public ImGuiTableColumnSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) => new ImGuiTableColumnSettingsPtr(handle); + public static implicit operator ImGuiTableColumnSettings*(ImGuiTableColumnSettingsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle == right; + public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle != right; + public bool Equals(ImGuiTableColumnSettingsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableColumnSettingsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableColumnSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float WidthOrWeight => ref Unsafe.AsRef(&Handle->WidthOrWeight); + public ref uint UserID => ref Unsafe.AsRef(&Handle->UserID); + public ref sbyte Index => ref Unsafe.AsRef(&Handle->Index); + public ref sbyte DisplayOrder => ref Unsafe.AsRef(&Handle->DisplayOrder); + public ref sbyte SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + public byte IsEnabled { get => Handle->IsEnabled; set => Handle->IsEnabled = value; } + public byte IsStretch { get => Handle->IsStretch; set => Handle->IsStretch = value; } + } +} +/* ImGuiTableColumnSortSpecs.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSortSpecs + { + public uint ColumnUserID; + public short ColumnIndex; + public short SortOrder; + public ImGuiSortDirection RawBits0; + public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, ImGuiSortDirection sortDirection = default) + { + ColumnUserID = columnUserId; + ColumnIndex = columnIndex; + SortOrder = sortOrder; + SortDirection = sortDirection; + } + public ImGuiSortDirection SortDirection { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableColumnSortSpecsPtr : IEquatable + { + public ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) { Handle = handle; } + public ImGuiTableColumnSortSpecs* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableColumnSortSpecsPtr Null => new ImGuiTableColumnSortSpecsPtr(null); + public ImGuiTableColumnSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) => new ImGuiTableColumnSortSpecsPtr(handle); + public static implicit operator ImGuiTableColumnSortSpecs*(ImGuiTableColumnSortSpecsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle == right; + public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle != right; + public bool Equals(ImGuiTableColumnSortSpecsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableColumnSortSpecsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableColumnSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ColumnUserID => ref Unsafe.AsRef(&Handle->ColumnUserID); + public ref short ColumnIndex => ref Unsafe.AsRef(&Handle->ColumnIndex); + public ref short SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + public ImGuiSortDirection SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + } +} +/* ImGuiTableColumnsSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnsSettings + { + } +} +/* ImGuiTableInstanceData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableInstanceData + { + public float LastOuterHeight; + public float LastFirstRowHeight; + public unsafe ImGuiTableInstanceData(float lastOuterHeight = default, float lastFirstRowHeight = default) + { + LastOuterHeight = lastOuterHeight; + LastFirstRowHeight = lastFirstRowHeight; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableInstanceDataPtr : IEquatable + { + public ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) { Handle = handle; } + public ImGuiTableInstanceData* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableInstanceDataPtr Null => new ImGuiTableInstanceDataPtr(null); + public ImGuiTableInstanceData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) => new ImGuiTableInstanceDataPtr(handle); + public static implicit operator ImGuiTableInstanceData*(ImGuiTableInstanceDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle == right; + public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle != right; + public bool Equals(ImGuiTableInstanceDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableInstanceDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableInstanceDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float LastOuterHeight => ref Unsafe.AsRef(&Handle->LastOuterHeight); + public ref float LastFirstRowHeight => ref Unsafe.AsRef(&Handle->LastFirstRowHeight); + } +} +/* ImGuiTableSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSettings + { + public uint ID; + public ImGuiTableFlags SaveFlags; + public float RefScale; + public sbyte ColumnsCount; + public sbyte ColumnsCountMax; + public byte WantApply; + public unsafe ImGuiTableSettings(uint id = default, ImGuiTableFlags saveFlags = default, float refScale = default, sbyte columnsCount = default, sbyte columnsCountMax = default, bool wantApply = default) + { + ID = id; + SaveFlags = saveFlags; + RefScale = refScale; + ColumnsCount = columnsCount; + ColumnsCountMax = columnsCountMax; + WantApply = wantApply ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableSettingsPtr : IEquatable + { + public ImGuiTableSettingsPtr(ImGuiTableSettings* handle) { Handle = handle; } + public ImGuiTableSettings* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableSettingsPtr Null => new ImGuiTableSettingsPtr(null); + public ImGuiTableSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableSettingsPtr(ImGuiTableSettings* handle) => new ImGuiTableSettingsPtr(handle); + public static implicit operator ImGuiTableSettings*(ImGuiTableSettingsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle == right; + public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle != right; + public bool Equals(ImGuiTableSettingsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableSettingsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiTableFlags SaveFlags => ref Unsafe.AsRef(&Handle->SaveFlags); + public ref float RefScale => ref Unsafe.AsRef(&Handle->RefScale); + public ref sbyte ColumnsCount => ref Unsafe.AsRef(&Handle->ColumnsCount); + public ref sbyte ColumnsCountMax => ref Unsafe.AsRef(&Handle->ColumnsCountMax); + public ref bool WantApply => ref Unsafe.AsRef(&Handle->WantApply); + } +} +/* ImGuiTableSortSpecs.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSortSpecs + { + public unsafe ImGuiTableColumnSortSpecs* Specs; + public int SpecsCount; + public byte SpecsDirty; + public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecsPtr specs = default, int specsCount = default, bool specsDirty = default) + { + Specs = specs; + SpecsCount = specsCount; + SpecsDirty = specsDirty ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableSortSpecsPtr : IEquatable + { + public ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) { Handle = handle; } + public ImGuiTableSortSpecs* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableSortSpecsPtr Null => new ImGuiTableSortSpecsPtr(null); + public ImGuiTableSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) => new ImGuiTableSortSpecsPtr(handle); + public static implicit operator ImGuiTableSortSpecs*(ImGuiTableSortSpecsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle == right; + public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle != right; + public bool Equals(ImGuiTableSortSpecsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableSortSpecsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiTableColumnSortSpecsPtr Specs => ref Unsafe.AsRef(&Handle->Specs); + public ref int SpecsCount => ref Unsafe.AsRef(&Handle->SpecsCount); + public ref bool SpecsDirty => ref Unsafe.AsRef(&Handle->SpecsDirty); + } +} +/* ImGuiTableTempData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableTempData + { + public int TableIndex; + public float LastTimeActive; + public Vector2 UserOuterSize; + public ImDrawListSplitter DrawSplitter; + public ImRect HostBackupWorkRect; + public ImRect HostBackupParentWorkRect; + public Vector2 HostBackupPrevLineSize; + public Vector2 HostBackupCurrLineSize; + public Vector2 HostBackupCursorMaxPos; + public ImVec1 HostBackupColumnsOffset; + public float HostBackupItemWidth; + public int HostBackupItemWidthStackSize; + public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) + { + TableIndex = tableIndex; + LastTimeActive = lastTimeActive; + UserOuterSize = userOuterSize; + DrawSplitter = drawSplitter; + HostBackupWorkRect = hostBackupWorkRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + HostBackupPrevLineSize = hostBackupPrevLineSize; + HostBackupCurrLineSize = hostBackupCurrLineSize; + HostBackupCursorMaxPos = hostBackupCursorMaxPos; + HostBackupColumnsOffset = hostBackupColumnsOffset; + HostBackupItemWidth = hostBackupItemWidth; + HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTableTempDataPtr : IEquatable + { + public ImGuiTableTempDataPtr(ImGuiTableTempData* handle) { Handle = handle; } + public ImGuiTableTempData* Handle; + public bool IsNull => Handle == null; + public static ImGuiTableTempDataPtr Null => new ImGuiTableTempDataPtr(null); + public ImGuiTableTempData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTableTempDataPtr(ImGuiTableTempData* handle) => new ImGuiTableTempDataPtr(handle); + public static implicit operator ImGuiTableTempData*(ImGuiTableTempDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle == right; + public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle != right; + public bool Equals(ImGuiTableTempDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTableTempDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTableTempDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref int TableIndex => ref Unsafe.AsRef(&Handle->TableIndex); + public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive); + public ref Vector2 UserOuterSize => ref Unsafe.AsRef(&Handle->UserOuterSize); + public ref ImDrawListSplitter DrawSplitter => ref Unsafe.AsRef(&Handle->DrawSplitter); + public ref ImRect HostBackupWorkRect => ref Unsafe.AsRef(&Handle->HostBackupWorkRect); + public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect); + public ref Vector2 HostBackupPrevLineSize => ref Unsafe.AsRef(&Handle->HostBackupPrevLineSize); + public ref Vector2 HostBackupCurrLineSize => ref Unsafe.AsRef(&Handle->HostBackupCurrLineSize); + public ref Vector2 HostBackupCursorMaxPos => ref Unsafe.AsRef(&Handle->HostBackupCursorMaxPos); + public ref ImVec1 HostBackupColumnsOffset => ref Unsafe.AsRef(&Handle->HostBackupColumnsOffset); + public ref float HostBackupItemWidth => ref Unsafe.AsRef(&Handle->HostBackupItemWidth); + public ref int HostBackupItemWidthStackSize => ref Unsafe.AsRef(&Handle->HostBackupItemWidthStackSize); + } +} +/* ImGuiTextBuffer.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextBuffer + { + public ImVector Buf; + public unsafe ImGuiTextBuffer(ImVector buf = default) + { + Buf = buf; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTextBufferPtr : IEquatable + { + public ImGuiTextBufferPtr(ImGuiTextBuffer* handle) { Handle = handle; } + public ImGuiTextBuffer* Handle; + public bool IsNull => Handle == null; + public static ImGuiTextBufferPtr Null => new ImGuiTextBufferPtr(null); + public ImGuiTextBuffer this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTextBufferPtr(ImGuiTextBuffer* handle) => new ImGuiTextBufferPtr(handle); + public static implicit operator ImGuiTextBuffer*(ImGuiTextBufferPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle == right; + public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle != right; + public bool Equals(ImGuiTextBufferPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTextBufferPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTextBufferPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImVector Buf => ref Unsafe.AsRef>(&Handle->Buf); + } +} +/* ImGuiTextFilter.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextFilter + { + public byte InputBuf_0; + public byte InputBuf_1; + public byte InputBuf_2; + public byte InputBuf_3; + public byte InputBuf_4; + public byte InputBuf_5; + public byte InputBuf_6; + public byte InputBuf_7; + public byte InputBuf_8; + public byte InputBuf_9; + public byte InputBuf_10; + public byte InputBuf_11; + public byte InputBuf_12; + public byte InputBuf_13; + public byte InputBuf_14; + public byte InputBuf_15; + public byte InputBuf_16; + public byte InputBuf_17; + public byte InputBuf_18; + public byte InputBuf_19; + public byte InputBuf_20; + public byte InputBuf_21; + public byte InputBuf_22; + public byte InputBuf_23; + public byte InputBuf_24; + public byte InputBuf_25; + public byte InputBuf_26; + public byte InputBuf_27; + public byte InputBuf_28; + public byte InputBuf_29; + public byte InputBuf_30; + public byte InputBuf_31; + public byte InputBuf_32; + public byte InputBuf_33; + public byte InputBuf_34; + public byte InputBuf_35; + public byte InputBuf_36; + public byte InputBuf_37; + public byte InputBuf_38; + public byte InputBuf_39; + public byte InputBuf_40; + public byte InputBuf_41; + public byte InputBuf_42; + public byte InputBuf_43; + public byte InputBuf_44; + public byte InputBuf_45; + public byte InputBuf_46; + public byte InputBuf_47; + public byte InputBuf_48; + public byte InputBuf_49; + public byte InputBuf_50; + public byte InputBuf_51; + public byte InputBuf_52; + public byte InputBuf_53; + public byte InputBuf_54; + public byte InputBuf_55; + public byte InputBuf_56; + public byte InputBuf_57; + public byte InputBuf_58; + public byte InputBuf_59; + public byte InputBuf_60; + public byte InputBuf_61; + public byte InputBuf_62; + public byte InputBuf_63; + public byte InputBuf_64; + public byte InputBuf_65; + public byte InputBuf_66; + public byte InputBuf_67; + public byte InputBuf_68; + public byte InputBuf_69; + public byte InputBuf_70; + public byte InputBuf_71; + public byte InputBuf_72; + public byte InputBuf_73; + public byte InputBuf_74; + public byte InputBuf_75; + public byte InputBuf_76; + public byte InputBuf_77; + public byte InputBuf_78; + public byte InputBuf_79; + public byte InputBuf_80; + public byte InputBuf_81; + public byte InputBuf_82; + public byte InputBuf_83; + public byte InputBuf_84; + public byte InputBuf_85; + public byte InputBuf_86; + public byte InputBuf_87; + public byte InputBuf_88; + public byte InputBuf_89; + public byte InputBuf_90; + public byte InputBuf_91; + public byte InputBuf_92; + public byte InputBuf_93; + public byte InputBuf_94; + public byte InputBuf_95; + public byte InputBuf_96; + public byte InputBuf_97; + public byte InputBuf_98; + public byte InputBuf_99; + public byte InputBuf_100; + public byte InputBuf_101; + public byte InputBuf_102; + public byte InputBuf_103; + public byte InputBuf_104; + public byte InputBuf_105; + public byte InputBuf_106; + public byte InputBuf_107; + public byte InputBuf_108; + public byte InputBuf_109; + public byte InputBuf_110; + public byte InputBuf_111; + public byte InputBuf_112; + public byte InputBuf_113; + public byte InputBuf_114; + public byte InputBuf_115; + public byte InputBuf_116; + public byte InputBuf_117; + public byte InputBuf_118; + public byte InputBuf_119; + public byte InputBuf_120; + public byte InputBuf_121; + public byte InputBuf_122; + public byte InputBuf_123; + public byte InputBuf_124; + public byte InputBuf_125; + public byte InputBuf_126; + public byte InputBuf_127; + public byte InputBuf_128; + public byte InputBuf_129; + public byte InputBuf_130; + public byte InputBuf_131; + public byte InputBuf_132; + public byte InputBuf_133; + public byte InputBuf_134; + public byte InputBuf_135; + public byte InputBuf_136; + public byte InputBuf_137; + public byte InputBuf_138; + public byte InputBuf_139; + public byte InputBuf_140; + public byte InputBuf_141; + public byte InputBuf_142; + public byte InputBuf_143; + public byte InputBuf_144; + public byte InputBuf_145; + public byte InputBuf_146; + public byte InputBuf_147; + public byte InputBuf_148; + public byte InputBuf_149; + public byte InputBuf_150; + public byte InputBuf_151; + public byte InputBuf_152; + public byte InputBuf_153; + public byte InputBuf_154; + public byte InputBuf_155; + public byte InputBuf_156; + public byte InputBuf_157; + public byte InputBuf_158; + public byte InputBuf_159; + public byte InputBuf_160; + public byte InputBuf_161; + public byte InputBuf_162; + public byte InputBuf_163; + public byte InputBuf_164; + public byte InputBuf_165; + public byte InputBuf_166; + public byte InputBuf_167; + public byte InputBuf_168; + public byte InputBuf_169; + public byte InputBuf_170; + public byte InputBuf_171; + public byte InputBuf_172; + public byte InputBuf_173; + public byte InputBuf_174; + public byte InputBuf_175; + public byte InputBuf_176; + public byte InputBuf_177; + public byte InputBuf_178; + public byte InputBuf_179; + public byte InputBuf_180; + public byte InputBuf_181; + public byte InputBuf_182; + public byte InputBuf_183; + public byte InputBuf_184; + public byte InputBuf_185; + public byte InputBuf_186; + public byte InputBuf_187; + public byte InputBuf_188; + public byte InputBuf_189; + public byte InputBuf_190; + public byte InputBuf_191; + public byte InputBuf_192; + public byte InputBuf_193; + public byte InputBuf_194; + public byte InputBuf_195; + public byte InputBuf_196; + public byte InputBuf_197; + public byte InputBuf_198; + public byte InputBuf_199; + public byte InputBuf_200; + public byte InputBuf_201; + public byte InputBuf_202; + public byte InputBuf_203; + public byte InputBuf_204; + public byte InputBuf_205; + public byte InputBuf_206; + public byte InputBuf_207; + public byte InputBuf_208; + public byte InputBuf_209; + public byte InputBuf_210; + public byte InputBuf_211; + public byte InputBuf_212; + public byte InputBuf_213; + public byte InputBuf_214; + public byte InputBuf_215; + public byte InputBuf_216; + public byte InputBuf_217; + public byte InputBuf_218; + public byte InputBuf_219; + public byte InputBuf_220; + public byte InputBuf_221; + public byte InputBuf_222; + public byte InputBuf_223; + public byte InputBuf_224; + public byte InputBuf_225; + public byte InputBuf_226; + public byte InputBuf_227; + public byte InputBuf_228; + public byte InputBuf_229; + public byte InputBuf_230; + public byte InputBuf_231; + public byte InputBuf_232; + public byte InputBuf_233; + public byte InputBuf_234; + public byte InputBuf_235; + public byte InputBuf_236; + public byte InputBuf_237; + public byte InputBuf_238; + public byte InputBuf_239; + public byte InputBuf_240; + public byte InputBuf_241; + public byte InputBuf_242; + public byte InputBuf_243; + public byte InputBuf_244; + public byte InputBuf_245; + public byte InputBuf_246; + public byte InputBuf_247; + public byte InputBuf_248; + public byte InputBuf_249; + public byte InputBuf_250; + public byte InputBuf_251; + public byte InputBuf_252; + public byte InputBuf_253; + public byte InputBuf_254; + public byte InputBuf_255; + public ImVector Filters; + public int CountGrep; + public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVector filters = default, int countGrep = default) + { + if (inputBuf != default(byte*)) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + public unsafe ImGuiTextFilter(Span inputBuf = default, ImVector filters = default, int countGrep = default) + { + if (inputBuf != default(Span)) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTextFilterPtr : IEquatable + { + public ImGuiTextFilterPtr(ImGuiTextFilter* handle) { Handle = handle; } + public ImGuiTextFilter* Handle; + public bool IsNull => Handle == null; + public static ImGuiTextFilterPtr Null => new ImGuiTextFilterPtr(null); + public ImGuiTextFilter this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTextFilterPtr(ImGuiTextFilter* handle) => new ImGuiTextFilterPtr(handle); + public static implicit operator ImGuiTextFilter*(ImGuiTextFilterPtr handle) => handle.Handle; + public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle == right; + public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle != right; + public bool Equals(ImGuiTextFilterPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTextFilterPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTextFilterPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public unsafe Span InputBuf + { + get + { + return new Span(&Handle->InputBuf_0, 256); + } + } + public ref ImVector Filters => ref Unsafe.AsRef>(&Handle->Filters); + public ref int CountGrep => ref Unsafe.AsRef(&Handle->CountGrep); + } +} +/* ImGuiTextRange.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextRange + { + public unsafe byte* B; + public unsafe byte* E; + public unsafe ImGuiTextRange(byte* b = default, byte* e = default) + { + B = b; + E = e; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiTextRangePtr : IEquatable + { + public ImGuiTextRangePtr(ImGuiTextRange* handle) { Handle = handle; } + public ImGuiTextRange* Handle; + public bool IsNull => Handle == null; + public static ImGuiTextRangePtr Null => new ImGuiTextRangePtr(null); + public ImGuiTextRange this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiTextRangePtr(ImGuiTextRange* handle) => new ImGuiTextRangePtr(handle); + public static implicit operator ImGuiTextRange*(ImGuiTextRangePtr handle) => handle.Handle; + public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle == right; + public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle != right; + public bool Equals(ImGuiTextRangePtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiTextRangePtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiTextRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); + public byte* B { get => Handle->B; set => Handle->B = value; } + public byte* E { get => Handle->E; set => Handle->E = value; } + } +} +/* ImGuiViewport.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewport + { + public uint ID; + public ImGuiViewportFlags Flags; + public Vector2 Pos; + public Vector2 Size; + public Vector2 WorkPos; + public Vector2 WorkSize; + public float DpiScale; + public uint ParentViewportId; + public unsafe ImDrawData* DrawData; + public unsafe void* RendererUserData; + public unsafe void* PlatformUserData; + public unsafe void* PlatformHandle; + public unsafe void* PlatformHandleRaw; + public byte PlatformRequestMove; + public byte PlatformRequestResize; + public byte PlatformRequestClose; + public unsafe ImGuiViewport(uint id = default, ImGuiViewportFlags flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawDataPtr drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) + { + ID = id; + Flags = flags; + Pos = pos; + Size = size; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + ParentViewportId = parentViewportId; + DrawData = drawData; + RendererUserData = rendererUserData; + PlatformUserData = platformUserData; + PlatformHandle = platformHandle; + PlatformHandleRaw = platformHandleRaw; + PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; + PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; + PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiViewportPtr : IEquatable + { + public ImGuiViewportPtr(ImGuiViewport* handle) { Handle = handle; } + public ImGuiViewport* Handle; + public bool IsNull => Handle == null; + public static ImGuiViewportPtr Null => new ImGuiViewportPtr(null); + public ImGuiViewport this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiViewportPtr(ImGuiViewport* handle) => new ImGuiViewportPtr(handle); + public static implicit operator ImGuiViewport*(ImGuiViewportPtr handle) => handle.Handle; + public static bool operator ==(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle == right; + public static bool operator !=(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle != right; + public bool Equals(ImGuiViewportPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiViewportPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiViewportPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + public ref Vector2 WorkPos => ref Unsafe.AsRef(&Handle->WorkPos); + public ref Vector2 WorkSize => ref Unsafe.AsRef(&Handle->WorkSize); + public ref float DpiScale => ref Unsafe.AsRef(&Handle->DpiScale); + public ref uint ParentViewportId => ref Unsafe.AsRef(&Handle->ParentViewportId); + public ref ImDrawDataPtr DrawData => ref Unsafe.AsRef(&Handle->DrawData); + public void* RendererUserData { get => Handle->RendererUserData; set => Handle->RendererUserData = value; } + public void* PlatformUserData { get => Handle->PlatformUserData; set => Handle->PlatformUserData = value; } + public void* PlatformHandle { get => Handle->PlatformHandle; set => Handle->PlatformHandle = value; } + public void* PlatformHandleRaw { get => Handle->PlatformHandleRaw; set => Handle->PlatformHandleRaw = value; } + public ref bool PlatformRequestMove => ref Unsafe.AsRef(&Handle->PlatformRequestMove); + public ref bool PlatformRequestResize => ref Unsafe.AsRef(&Handle->PlatformRequestResize); + public ref bool PlatformRequestClose => ref Unsafe.AsRef(&Handle->PlatformRequestClose); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiViewportPtrPtr : IEquatable + { + public ImGuiViewportPtrPtr(ImGuiViewport** handle) { Handle = handle; } + public ImGuiViewport** Handle; + public bool IsNull => Handle == null; + public static ImGuiViewportPtrPtr Null => new ImGuiViewportPtrPtr(null); + public ImGuiViewport* this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiViewportPtrPtr(ImGuiViewport** handle) => new ImGuiViewportPtrPtr(handle); + public static implicit operator ImGuiViewport**(ImGuiViewportPtrPtr handle) => handle.Handle; + public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle == right; + public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle != right; + public bool Equals(ImGuiViewportPtrPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiViewportPtrPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiViewportPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImGuiViewportP.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewportP + { + public ImGuiViewport ImGuiViewport; + public int Idx; + public int LastFrameActive; + public int LastFrontMostStampCount; + public uint LastNameHash; + public Vector2 LastPos; + public float Alpha; + public float LastAlpha; + public short PlatformMonitor; + public byte PlatformWindowCreated; + public unsafe ImGuiWindow* Window; + public int DrawListsLastFrame_0; + public int DrawListsLastFrame_1; + public unsafe ImDrawList* DrawLists_0; + public unsafe ImDrawList* DrawLists_1; + public ImDrawData DrawDataP; + public ImDrawDataBuilder DrawDataBuilder; + public Vector2 LastPlatformPos; + public Vector2 LastPlatformSize; + public Vector2 LastRendererSize; + public Vector2 WorkOffsetMin; + public Vector2 WorkOffsetMax; + public Vector2 BuildWorkOffsetMin; + public Vector2 BuildWorkOffsetMax; + public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, int* drawListsLastFrame = default, ImDrawListPtrPtr drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = imGuiViewport; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFrontMostStampCount = lastFrontMostStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + PlatformMonitor = platformMonitor; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + Window = window; + if (drawListsLastFrame != default(int*)) + { + DrawListsLastFrame_0 = drawListsLastFrame[0]; + DrawListsLastFrame_1 = drawListsLastFrame[1]; + } + if (drawLists != default(ImDrawListPtrPtr)) + { + DrawLists_0 = drawLists[0]; + DrawLists_1 = drawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, Span drawListsLastFrame = default, Span> drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = imGuiViewport; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFrontMostStampCount = lastFrontMostStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + PlatformMonitor = platformMonitor; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + Window = window; + if (drawListsLastFrame != default(Span)) + { + DrawListsLastFrame_0 = drawListsLastFrame[0]; + DrawListsLastFrame_1 = drawListsLastFrame[1]; + } + if (drawLists != default(Span>)) + { + DrawLists_0 = drawLists[0]; + DrawLists_1 = drawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + public unsafe Span> DrawLists + { + get + { + fixed (ImDrawList** p = &this.DrawLists_0) + { + return new Span>(p, 2); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiViewportPPtr : IEquatable + { + public ImGuiViewportPPtr(ImGuiViewportP* handle) { Handle = handle; } + public ImGuiViewportP* Handle; + public bool IsNull => Handle == null; + public static ImGuiViewportPPtr Null => new ImGuiViewportPPtr(null); + public ImGuiViewportP this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiViewportPPtr(ImGuiViewportP* handle) => new ImGuiViewportPPtr(handle); + public static implicit operator ImGuiViewportP*(ImGuiViewportPPtr handle) => handle.Handle; + public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle == right; + public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle != right; + public bool Equals(ImGuiViewportPPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiViewportPPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiViewportPPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiViewport ImGuiViewport => ref Unsafe.AsRef(&Handle->ImGuiViewport); + public ref int Idx => ref Unsafe.AsRef(&Handle->Idx); + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + public ref int LastFrontMostStampCount => ref Unsafe.AsRef(&Handle->LastFrontMostStampCount); + public ref uint LastNameHash => ref Unsafe.AsRef(&Handle->LastNameHash); + public ref Vector2 LastPos => ref Unsafe.AsRef(&Handle->LastPos); + public ref float Alpha => ref Unsafe.AsRef(&Handle->Alpha); + public ref float LastAlpha => ref Unsafe.AsRef(&Handle->LastAlpha); + public ref short PlatformMonitor => ref Unsafe.AsRef(&Handle->PlatformMonitor); + public ref bool PlatformWindowCreated => ref Unsafe.AsRef(&Handle->PlatformWindowCreated); + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + public unsafe Span DrawListsLastFrame + { + get + { + return new Span(&Handle->DrawListsLastFrame_0, 2); + } + } + public ref ImDrawData DrawDataP => ref Unsafe.AsRef(&Handle->DrawDataP); + public ref ImDrawDataBuilder DrawDataBuilder => ref Unsafe.AsRef(&Handle->DrawDataBuilder); + public ref Vector2 LastPlatformPos => ref Unsafe.AsRef(&Handle->LastPlatformPos); + public ref Vector2 LastPlatformSize => ref Unsafe.AsRef(&Handle->LastPlatformSize); + public ref Vector2 LastRendererSize => ref Unsafe.AsRef(&Handle->LastRendererSize); + public ref Vector2 WorkOffsetMin => ref Unsafe.AsRef(&Handle->WorkOffsetMin); + public ref Vector2 WorkOffsetMax => ref Unsafe.AsRef(&Handle->WorkOffsetMax); + public ref Vector2 BuildWorkOffsetMin => ref Unsafe.AsRef(&Handle->BuildWorkOffsetMin); + public ref Vector2 BuildWorkOffsetMax => ref Unsafe.AsRef(&Handle->BuildWorkOffsetMax); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiViewportPPtrPtr : IEquatable + { + public ImGuiViewportPPtrPtr(ImGuiViewportP** handle) { Handle = handle; } + public ImGuiViewportP** Handle; + public bool IsNull => Handle == null; + public static ImGuiViewportPPtrPtr Null => new ImGuiViewportPPtrPtr(null); + public ImGuiViewportP* this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiViewportPPtrPtr(ImGuiViewportP** handle) => new ImGuiViewportPPtrPtr(handle); + public static implicit operator ImGuiViewportP**(ImGuiViewportPPtrPtr handle) => handle.Handle; + public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle == right; + public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle != right; + public bool Equals(ImGuiViewportPPtrPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiViewportPPtrPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiViewportPPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImGuiWindow.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindow + { + public unsafe byte* Name; + public uint ID; + public ImGuiWindowFlags Flags; + public ImGuiWindowFlags FlagsPreviousFrame; + public ImGuiWindowClass WindowClass; + public unsafe ImGuiViewportP* Viewport; + public uint ViewportId; + public Vector2 ViewportPos; + public int ViewportAllowPlatformMonitorExtend; + public Vector2 Pos; + public Vector2 Size; + public Vector2 SizeFull; + public Vector2 ContentSize; + public Vector2 ContentSizeIdeal; + public Vector2 ContentSizeExplicit; + public Vector2 WindowPadding; + public float WindowRounding; + public float WindowBorderSize; + public int NameBufLen; + public uint MoveId; + public uint TabId; + public uint ChildId; + public Vector2 Scroll; + public Vector2 ScrollMax; + public Vector2 ScrollTarget; + public Vector2 ScrollTargetCenterRatio; + public Vector2 ScrollTargetEdgeSnapDist; + public Vector2 ScrollbarSizes; + public byte ScrollbarX; + public byte ScrollbarY; + public byte ViewportOwned; + public byte Active; + public byte WasActive; + public byte WriteAccessed; + public byte Collapsed; + public byte WantCollapseToggle; + public byte SkipItems; + public byte Appearing; + public byte Hidden; + public byte IsFallbackWindow; + public byte IsExplicitChild; + public byte HasCloseButton; + public byte ResizeBorderHeld; + public short BeginCount; + public short BeginOrderWithinParent; + public short BeginOrderWithinContext; + public short FocusOrder; + public uint PopupId; + public sbyte AutoFitFramesX; + public sbyte AutoFitFramesY; + public sbyte AutoFitChildAxises; + public byte AutoFitOnlyGrows; + public ImGuiDir AutoPosLastDirection; + public sbyte HiddenFramesCanSkipItems; + public sbyte HiddenFramesCannotSkipItems; + public sbyte HiddenFramesForRenderOnly; + public sbyte DisableInputsFrames; + public ImGuiCond RawBits0; + public Vector2 SetWindowPosVal; + public Vector2 SetWindowPosPivot; + public ImVector IDStack; + public ImGuiWindowTempData DC; + public ImRect OuterRectClipped; + public ImRect InnerRect; + public ImRect InnerClipRect; + public ImRect WorkRect; + public ImRect ParentWorkRect; + public ImRect ClipRect; + public ImRect ContentRegionRect; + public ImVec2Ih HitTestHoleSize; + public ImVec2Ih HitTestHoleOffset; + public int LastFrameActive; + public int LastFrameJustFocused; + public float LastTimeActive; + public float ItemWidthDefault; + public ImGuiStorage StateStorage; + public ImVector ColumnsStorage; + public float FontWindowScale; + public float FontDpiScale; + public int SettingsOffset; + public unsafe ImDrawList* DrawList; + public ImDrawList DrawListInst; + public unsafe ImGuiWindow* ParentWindow; + public unsafe ImGuiWindow* ParentWindowInBeginStack; + public unsafe ImGuiWindow* RootWindow; + public unsafe ImGuiWindow* RootWindowPopupTree; + public unsafe ImGuiWindow* RootWindowDockTree; + public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; + public unsafe ImGuiWindow* RootWindowForNav; + public unsafe ImGuiWindow* NavLastChildNavWindow; + public uint NavLastIds_0; + public uint NavLastIds_1; + public ImRect NavRectRel_0; + public ImRect NavRectRel_1; + public int MemoryDrawListIdxCapacity; + public int MemoryDrawListVtxCapacity; + public byte MemoryCompacted; + public bool RawBits1; + public short DockOrder; + public ImGuiWindowDockStyle DockStyle; + public unsafe ImGuiDockNode* DockNode; + public unsafe ImGuiDockNode* DockNodeAsHost; + public uint DockId; + public ImGuiItemStatusFlags DockTabItemStatusFlags; + public ImRect DockTabItemRect; + public byte InheritNoInputs; + 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; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitChildAxises = autoFitChildAxises; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default(uint*)) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default(ImRect*)) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; + } + 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; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitChildAxises = autoFitChildAxises; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default(Span)) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default(Span)) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; + } + 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); } + public unsafe Span NavRectRel + { + get + { + fixed (ImRect* p = &this.NavRectRel_0) + { + return new Span(p, 2); + } + } + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiWindowPtr : IEquatable + { + public ImGuiWindowPtr(ImGuiWindow* handle) { Handle = handle; } + public ImGuiWindow* Handle; + public bool IsNull => Handle == null; + public static ImGuiWindowPtr Null => new ImGuiWindowPtr(null); + public ImGuiWindow this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiWindowPtr(ImGuiWindow* handle) => new ImGuiWindowPtr(handle); + public static implicit operator ImGuiWindow*(ImGuiWindowPtr handle) => handle.Handle; + public static bool operator ==(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle == right; + public static bool operator !=(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle != right; + public bool Equals(ImGuiWindowPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiWindowPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiWindowPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public byte* Name { get => Handle->Name; set => Handle->Name = value; } + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImGuiWindowFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + public ref ImGuiWindowFlags FlagsPreviousFrame => ref Unsafe.AsRef(&Handle->FlagsPreviousFrame); + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + public ref ImGuiViewportPPtr Viewport => ref Unsafe.AsRef(&Handle->Viewport); + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + public ref Vector2 ViewportPos => ref Unsafe.AsRef(&Handle->ViewportPos); + public ref int ViewportAllowPlatformMonitorExtend => ref Unsafe.AsRef(&Handle->ViewportAllowPlatformMonitorExtend); + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + public ref Vector2 SizeFull => ref Unsafe.AsRef(&Handle->SizeFull); + public ref Vector2 ContentSize => ref Unsafe.AsRef(&Handle->ContentSize); + public ref Vector2 ContentSizeIdeal => ref Unsafe.AsRef(&Handle->ContentSizeIdeal); + public ref Vector2 ContentSizeExplicit => ref Unsafe.AsRef(&Handle->ContentSizeExplicit); + public ref Vector2 WindowPadding => ref Unsafe.AsRef(&Handle->WindowPadding); + public ref float WindowRounding => ref Unsafe.AsRef(&Handle->WindowRounding); + public ref float WindowBorderSize => ref Unsafe.AsRef(&Handle->WindowBorderSize); + public ref int NameBufLen => ref Unsafe.AsRef(&Handle->NameBufLen); + public ref uint MoveId => ref Unsafe.AsRef(&Handle->MoveId); + public ref uint TabId => ref Unsafe.AsRef(&Handle->TabId); + public ref uint ChildId => ref Unsafe.AsRef(&Handle->ChildId); + public ref Vector2 Scroll => ref Unsafe.AsRef(&Handle->Scroll); + public ref Vector2 ScrollMax => ref Unsafe.AsRef(&Handle->ScrollMax); + public ref Vector2 ScrollTarget => ref Unsafe.AsRef(&Handle->ScrollTarget); + public ref Vector2 ScrollTargetCenterRatio => ref Unsafe.AsRef(&Handle->ScrollTargetCenterRatio); + public ref Vector2 ScrollTargetEdgeSnapDist => ref Unsafe.AsRef(&Handle->ScrollTargetEdgeSnapDist); + public ref Vector2 ScrollbarSizes => ref Unsafe.AsRef(&Handle->ScrollbarSizes); + public ref bool ScrollbarX => ref Unsafe.AsRef(&Handle->ScrollbarX); + public ref bool ScrollbarY => ref Unsafe.AsRef(&Handle->ScrollbarY); + public ref bool ViewportOwned => ref Unsafe.AsRef(&Handle->ViewportOwned); + public ref bool Active => ref Unsafe.AsRef(&Handle->Active); + public ref bool WasActive => ref Unsafe.AsRef(&Handle->WasActive); + public ref bool WriteAccessed => ref Unsafe.AsRef(&Handle->WriteAccessed); + public ref bool Collapsed => ref Unsafe.AsRef(&Handle->Collapsed); + public ref bool WantCollapseToggle => ref Unsafe.AsRef(&Handle->WantCollapseToggle); + public ref bool SkipItems => ref Unsafe.AsRef(&Handle->SkipItems); + public ref bool Appearing => ref Unsafe.AsRef(&Handle->Appearing); + public ref bool Hidden => ref Unsafe.AsRef(&Handle->Hidden); + public ref bool IsFallbackWindow => ref Unsafe.AsRef(&Handle->IsFallbackWindow); + public ref bool IsExplicitChild => ref Unsafe.AsRef(&Handle->IsExplicitChild); + public ref bool HasCloseButton => ref Unsafe.AsRef(&Handle->HasCloseButton); + public ref byte ResizeBorderHeld => ref Unsafe.AsRef(&Handle->ResizeBorderHeld); + public ref short BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); + public ref short BeginOrderWithinParent => ref Unsafe.AsRef(&Handle->BeginOrderWithinParent); + public ref short BeginOrderWithinContext => ref Unsafe.AsRef(&Handle->BeginOrderWithinContext); + public ref short FocusOrder => ref Unsafe.AsRef(&Handle->FocusOrder); + public ref uint PopupId => ref Unsafe.AsRef(&Handle->PopupId); + public ref sbyte AutoFitFramesX => ref Unsafe.AsRef(&Handle->AutoFitFramesX); + public ref sbyte AutoFitFramesY => ref Unsafe.AsRef(&Handle->AutoFitFramesY); + public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef(&Handle->AutoFitChildAxises); + public ref bool AutoFitOnlyGrows => ref Unsafe.AsRef(&Handle->AutoFitOnlyGrows); + public ref ImGuiDir AutoPosLastDirection => ref Unsafe.AsRef(&Handle->AutoPosLastDirection); + public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCanSkipItems); + public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCannotSkipItems); + public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef(&Handle->HiddenFramesForRenderOnly); + public ref sbyte DisableInputsFrames => ref Unsafe.AsRef(&Handle->DisableInputsFrames); + public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; } + public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; } + public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; } + public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; } + public ref Vector2 SetWindowPosVal => ref Unsafe.AsRef(&Handle->SetWindowPosVal); + public ref Vector2 SetWindowPosPivot => ref Unsafe.AsRef(&Handle->SetWindowPosPivot); + public ref ImVector IDStack => ref Unsafe.AsRef>(&Handle->IDStack); + public ref ImGuiWindowTempData DC => ref Unsafe.AsRef(&Handle->DC); + public ref ImRect OuterRectClipped => ref Unsafe.AsRef(&Handle->OuterRectClipped); + public ref ImRect InnerRect => ref Unsafe.AsRef(&Handle->InnerRect); + public ref ImRect InnerClipRect => ref Unsafe.AsRef(&Handle->InnerClipRect); + public ref ImRect WorkRect => ref Unsafe.AsRef(&Handle->WorkRect); + public ref ImRect ParentWorkRect => ref Unsafe.AsRef(&Handle->ParentWorkRect); + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + public ref ImRect ContentRegionRect => ref Unsafe.AsRef(&Handle->ContentRegionRect); + public ref ImVec2Ih HitTestHoleSize => ref Unsafe.AsRef(&Handle->HitTestHoleSize); + public ref ImVec2Ih HitTestHoleOffset => ref Unsafe.AsRef(&Handle->HitTestHoleOffset); + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + public ref int LastFrameJustFocused => ref Unsafe.AsRef(&Handle->LastFrameJustFocused); + public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive); + public ref float ItemWidthDefault => ref Unsafe.AsRef(&Handle->ItemWidthDefault); + public ref ImGuiStorage StateStorage => ref Unsafe.AsRef(&Handle->StateStorage); + public ref ImVector ColumnsStorage => ref Unsafe.AsRef>(&Handle->ColumnsStorage); + public ref float FontWindowScale => ref Unsafe.AsRef(&Handle->FontWindowScale); + public ref float FontDpiScale => ref Unsafe.AsRef(&Handle->FontDpiScale); + public ref int SettingsOffset => ref Unsafe.AsRef(&Handle->SettingsOffset); + public ref ImDrawListPtr DrawList => ref Unsafe.AsRef(&Handle->DrawList); + public ref ImDrawList DrawListInst => ref Unsafe.AsRef(&Handle->DrawListInst); + public ref ImGuiWindowPtr ParentWindow => ref Unsafe.AsRef(&Handle->ParentWindow); + public ref ImGuiWindowPtr ParentWindowInBeginStack => ref Unsafe.AsRef(&Handle->ParentWindowInBeginStack); + public ref ImGuiWindowPtr RootWindow => ref Unsafe.AsRef(&Handle->RootWindow); + public ref ImGuiWindowPtr RootWindowPopupTree => ref Unsafe.AsRef(&Handle->RootWindowPopupTree); + public ref ImGuiWindowPtr RootWindowDockTree => ref Unsafe.AsRef(&Handle->RootWindowDockTree); + public ref ImGuiWindowPtr RootWindowForTitleBarHighlight => ref Unsafe.AsRef(&Handle->RootWindowForTitleBarHighlight); + public ref ImGuiWindowPtr RootWindowForNav => ref Unsafe.AsRef(&Handle->RootWindowForNav); + public ref ImGuiWindowPtr NavLastChildNavWindow => ref Unsafe.AsRef(&Handle->NavLastChildNavWindow); + public unsafe Span NavLastIds + { + get + { + return new Span(&Handle->NavLastIds_0, 2); + } + } + public unsafe Span NavRectRel + { + get + { + return new Span(&Handle->NavRectRel_0, 2); + } + } + public ref int MemoryDrawListIdxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListIdxCapacity); + public ref int MemoryDrawListVtxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListVtxCapacity); + public ref bool MemoryCompacted => ref Unsafe.AsRef(&Handle->MemoryCompacted); + public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; } + public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; } + public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; } + public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; } + public ref short DockOrder => ref Unsafe.AsRef(&Handle->DockOrder); + public ref ImGuiWindowDockStyle DockStyle => ref Unsafe.AsRef(&Handle->DockStyle); + public ref ImGuiDockNodePtr DockNode => ref Unsafe.AsRef(&Handle->DockNode); + public ref ImGuiDockNodePtr DockNodeAsHost => ref Unsafe.AsRef(&Handle->DockNodeAsHost); + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + public ref ImGuiItemStatusFlags DockTabItemStatusFlags => ref Unsafe.AsRef(&Handle->DockTabItemStatusFlags); + public ref ImRect DockTabItemRect => ref Unsafe.AsRef(&Handle->DockTabItemRect); + public ref bool InheritNoInputs => ref Unsafe.AsRef(&Handle->InheritNoInputs); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiWindowPtrPtr : IEquatable + { + public ImGuiWindowPtrPtr(ImGuiWindow** handle) { Handle = handle; } + public ImGuiWindow** Handle; + public bool IsNull => Handle == null; + public static ImGuiWindowPtrPtr Null => new ImGuiWindowPtrPtr(null); + public ImGuiWindow* this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiWindowPtrPtr(ImGuiWindow** handle) => new ImGuiWindowPtrPtr(handle); + public static implicit operator ImGuiWindow**(ImGuiWindowPtrPtr handle) => handle.Handle; + public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle == right; + public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle != right; + public bool Equals(ImGuiWindowPtrPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiWindowPtrPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiWindowPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* ImGuiWindowClass.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowClass + { + public uint ClassId; + public uint ParentViewportId; + public ImGuiViewportFlags ViewportFlagsOverrideSet; + public ImGuiViewportFlags ViewportFlagsOverrideClear; + public ImGuiTabItemFlags TabItemFlagsOverrideSet; + public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; + public byte DockingAlwaysTabBar; + public byte DockingAllowUnclassed; + public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, ImGuiViewportFlags viewportFlagsOverrideSet = default, ImGuiViewportFlags viewportFlagsOverrideClear = default, ImGuiTabItemFlags tabItemFlagsOverrideSet = default, ImGuiDockNodeFlags dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) + { + ClassId = classId; + ParentViewportId = parentViewportId; + ViewportFlagsOverrideSet = viewportFlagsOverrideSet; + ViewportFlagsOverrideClear = viewportFlagsOverrideClear; + TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; + DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; + DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; + DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiWindowClassPtr : IEquatable + { + public ImGuiWindowClassPtr(ImGuiWindowClass* handle) { Handle = handle; } + public ImGuiWindowClass* Handle; + public bool IsNull => Handle == null; + public static ImGuiWindowClassPtr Null => new ImGuiWindowClassPtr(null); + public ImGuiWindowClass this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* handle) => new ImGuiWindowClassPtr(handle); + public static implicit operator ImGuiWindowClass*(ImGuiWindowClassPtr handle) => handle.Handle; + public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle == right; + public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle != right; + public bool Equals(ImGuiWindowClassPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiWindowClassPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiWindowClassPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ClassId => ref Unsafe.AsRef(&Handle->ClassId); + public ref uint ParentViewportId => ref Unsafe.AsRef(&Handle->ParentViewportId); + public ref ImGuiViewportFlags ViewportFlagsOverrideSet => ref Unsafe.AsRef(&Handle->ViewportFlagsOverrideSet); + public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef(&Handle->ViewportFlagsOverrideClear); + public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef(&Handle->TabItemFlagsOverrideSet); + public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef(&Handle->DockNodeFlagsOverrideSet); + public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef(&Handle->DockingAlwaysTabBar); + public ref bool DockingAllowUnclassed => ref Unsafe.AsRef(&Handle->DockingAllowUnclassed); + } +} +/* ImGuiWindowDockStyle.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowDockStyle + { + public uint Colors_0; + public uint Colors_1; + public uint Colors_2; + public uint Colors_3; + public uint Colors_4; + public uint Colors_5; + public unsafe ImGuiWindowDockStyle(uint* colors = default) + { + if (colors != default(uint*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + public unsafe ImGuiWindowDockStyle(Span colors = default) + { + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + } +} +/* ImGuiWindowSettings.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowSettings + { + public uint ID; + public ImVec2Ih Pos; + public ImVec2Ih Size; + public ImVec2Ih ViewportPos; + public uint ViewportId; + public uint DockId; + public uint ClassId; + public short DockOrder; + public byte Collapsed; + public byte WantApply; + public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default) + { + ID = id; + Pos = pos; + Size = size; + ViewportPos = viewportPos; + ViewportId = viewportId; + DockId = dockId; + ClassId = classId; + DockOrder = dockOrder; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantApply = wantApply ? (byte)1 : (byte)0; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiWindowSettingsPtr : IEquatable + { + public ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) { Handle = handle; } + public ImGuiWindowSettings* Handle; + public bool IsNull => Handle == null; + public static ImGuiWindowSettingsPtr Null => new ImGuiWindowSettingsPtr(null); + public ImGuiWindowSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) => new ImGuiWindowSettingsPtr(handle); + public static implicit operator ImGuiWindowSettings*(ImGuiWindowSettingsPtr handle) => handle.Handle; + public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle == right; + public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle != right; + public bool Equals(ImGuiWindowSettingsPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiWindowSettingsPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiWindowSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + public ref ImVec2Ih Pos => ref Unsafe.AsRef(&Handle->Pos); + public ref ImVec2Ih Size => ref Unsafe.AsRef(&Handle->Size); + public ref ImVec2Ih ViewportPos => ref Unsafe.AsRef(&Handle->ViewportPos); + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + public ref uint ClassId => ref Unsafe.AsRef(&Handle->ClassId); + public ref short DockOrder => ref Unsafe.AsRef(&Handle->DockOrder); + public ref bool Collapsed => ref Unsafe.AsRef(&Handle->Collapsed); + public ref bool WantApply => ref Unsafe.AsRef(&Handle->WantApply); + } +} +/* ImGuiWindowStackData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowStackData + { + public unsafe ImGuiWindow* Window; + public ImGuiLastItemData ParentLastItemDataBackup; + public ImGuiStackSizes StackSizesOnBegin; + public unsafe ImGuiWindowStackData(ImGuiWindowPtr window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) + { + Window = window; + ParentLastItemDataBackup = parentLastItemDataBackup; + StackSizesOnBegin = stackSizesOnBegin; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImGuiWindowStackDataPtr : IEquatable + { + public ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) { Handle = handle; } + public ImGuiWindowStackData* Handle; + public bool IsNull => Handle == null; + public static ImGuiWindowStackDataPtr Null => new ImGuiWindowStackDataPtr(null); + public ImGuiWindowStackData this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) => new ImGuiWindowStackDataPtr(handle); + public static implicit operator ImGuiWindowStackData*(ImGuiWindowStackDataPtr handle) => handle.Handle; + public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle == right; + public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle != right; + public bool Equals(ImGuiWindowStackDataPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImGuiWindowStackDataPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImGuiWindowStackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + public ref ImGuiLastItemData ParentLastItemDataBackup => ref Unsafe.AsRef(&Handle->ParentLastItemDataBackup); + public ref ImGuiStackSizes StackSizesOnBegin => ref Unsafe.AsRef(&Handle->StackSizesOnBegin); + } +} +/* ImGuiWindowTempData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowTempData + { + public Vector2 CursorPos; + public Vector2 CursorPosPrevLine; + public Vector2 CursorStartPos; + public Vector2 CursorMaxPos; + public Vector2 IdealMaxPos; + public Vector2 CurrLineSize; + public Vector2 PrevLineSize; + public float CurrLineTextBaseOffset; + public float PrevLineTextBaseOffset; + public byte IsSameLine; + public ImVec1 Indent; + public ImVec1 ColumnsOffset; + public ImVec1 GroupOffset; + public Vector2 CursorStartPosLossyness; + public ImGuiNavLayer NavLayerCurrent; + public short NavLayersActiveMask; + public short NavLayersActiveMaskNext; + public uint NavFocusScopeIdCurrent; + public byte NavHideHighlightOneFrame; + public byte NavHasScroll; + public byte MenuBarAppending; + public Vector2 MenuBarOffset; + public ImGuiMenuColumns MenuColumns; + public int TreeDepth; + public uint TreeJumpToParentOnPopMask; + public ImVector ChildWindows; + public unsafe ImGuiStorage* StateStorage; + public unsafe ImGuiOldColumns* CurrentColumns; + public int CurrentTableIdx; + public ImGuiLayoutType LayoutType; + public ImGuiLayoutType ParentLayoutType; + public float ItemWidth; + public float TextWrapPos; + public ImVector ItemWidthStack; + public ImVector TextWrapPosStack; + public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, uint navFocusScopeIdCurrent = default, bool navHideHighlightOneFrame = default, bool navHasScroll = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVector childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, ImGuiLayoutType layoutType = default, ImGuiLayoutType parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVector itemWidthStack = default, ImVector textWrapPosStack = default) + { + CursorPos = cursorPos; + CursorPosPrevLine = cursorPosPrevLine; + CursorStartPos = cursorStartPos; + CursorMaxPos = cursorMaxPos; + IdealMaxPos = idealMaxPos; + CurrLineSize = currLineSize; + PrevLineSize = prevLineSize; + CurrLineTextBaseOffset = currLineTextBaseOffset; + PrevLineTextBaseOffset = prevLineTextBaseOffset; + IsSameLine = isSameLine ? (byte)1 : (byte)0; + Indent = indent; + ColumnsOffset = columnsOffset; + GroupOffset = groupOffset; + CursorStartPosLossyness = cursorStartPosLossyness; + NavLayerCurrent = navLayerCurrent; + NavLayersActiveMask = navLayersActiveMask; + NavLayersActiveMaskNext = navLayersActiveMaskNext; + NavFocusScopeIdCurrent = navFocusScopeIdCurrent; + NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; + NavHasScroll = navHasScroll ? (byte)1 : (byte)0; + MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; + MenuBarOffset = menuBarOffset; + MenuColumns = menuColumns; + TreeDepth = treeDepth; + TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; + ChildWindows = childWindows; + StateStorage = stateStorage; + CurrentColumns = currentColumns; + CurrentTableIdx = currentTableIdx; + LayoutType = layoutType; + ParentLayoutType = parentLayoutType; + ItemWidth = itemWidth; + TextWrapPos = textWrapPos; + ItemWidthStack = itemWidthStack; + TextWrapPosStack = textWrapPosStack; + } + } +} +/* ImPoolImGuiTabBar.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTabBar + { + public ImVector Buf; + public ImGuiStorage Map; + public int FreeIdx; + public int AliveCount; + public unsafe ImPoolImGuiTabBar(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + } +} +/* ImPoolImGuiTable.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTable + { + public ImVector Buf; + public ImGuiStorage Map; + public int FreeIdx; + public int AliveCount; + public unsafe ImPoolImGuiTable(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + } +} +/* ImRect.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImRect + { + public Vector2 Min; + public Vector2 Max; + public unsafe ImRect(Vector2 min = default, Vector2 max = default) + { + Min = min; + Max = max; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImRectPtr : IEquatable + { + public ImRectPtr(ImRect* handle) { Handle = handle; } + public ImRect* Handle; + public bool IsNull => Handle == null; + public static ImRectPtr Null => new ImRectPtr(null); + public ImRect this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImRectPtr(ImRect* handle) => new ImRectPtr(handle); + public static implicit operator ImRect*(ImRectPtr handle) => handle.Handle; + public static bool operator ==(ImRectPtr left, ImRectPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImRectPtr left, ImRectPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImRectPtr left, ImRect* right) => left.Handle == right; + public static bool operator !=(ImRectPtr left, ImRect* right) => left.Handle != right; + public bool Equals(ImRectPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImRectPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref Vector2 Min => ref Unsafe.AsRef(&Handle->Min); + public ref Vector2 Max => ref Unsafe.AsRef(&Handle->Max); + } +} +/* ImSpanImGuiTableCellData.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableCellData + { + public unsafe ImGuiTableCellData* Data; + public unsafe ImGuiTableCellData* DataEnd; + public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } +} +/* ImSpanImGuiTableColumn.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumn + { + public unsafe ImGuiTableColumn* Data; + public unsafe ImGuiTableColumn* DataEnd; + public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } +} +/* ImSpanImGuiTableColumnIdx.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumnIdx + { + public unsafe sbyte* Data; + public unsafe sbyte* DataEnd; + public unsafe ImSpanImGuiTableColumnIdx(sbyte* data = default, sbyte* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } +} +/* ImVec1.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec1 + { + public float X; + public unsafe ImVec1(float x = default) + { + X = x; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImVec1Ptr : IEquatable + { + public ImVec1Ptr(ImVec1* handle) { Handle = handle; } + public ImVec1* Handle; + public bool IsNull => Handle == null; + public static ImVec1Ptr Null => new ImVec1Ptr(null); + public ImVec1 this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImVec1Ptr(ImVec1* handle) => new ImVec1Ptr(handle); + public static implicit operator ImVec1*(ImVec1Ptr handle) => handle.Handle; + public static bool operator ==(ImVec1Ptr left, ImVec1Ptr right) => left.Handle == right.Handle; + public static bool operator !=(ImVec1Ptr left, ImVec1Ptr right) => left.Handle != right.Handle; + public static bool operator ==(ImVec1Ptr left, ImVec1* right) => left.Handle == right; + public static bool operator !=(ImVec1Ptr left, ImVec1* right) => left.Handle != right; + public bool Equals(ImVec1Ptr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImVec1Ptr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImVec1Ptr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref float X => ref Unsafe.AsRef(&Handle->X); + } +} +/* ImVec2Ih.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec2Ih + { + public short X; + public short Y; + public unsafe ImVec2Ih(short x = default, short y = default) + { + X = x; + Y = y; + } + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct ImVec2IhPtr : IEquatable + { + public ImVec2IhPtr(ImVec2Ih* handle) { Handle = handle; } + public ImVec2Ih* Handle; + public bool IsNull => Handle == null; + public static ImVec2IhPtr Null => new ImVec2IhPtr(null); + public ImVec2Ih this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator ImVec2IhPtr(ImVec2Ih* handle) => new ImVec2IhPtr(handle); + public static implicit operator ImVec2Ih*(ImVec2IhPtr handle) => handle.Handle; + public static bool operator ==(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle == right; + public static bool operator !=(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle != right; + public bool Equals(ImVec2IhPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is ImVec2IhPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("ImVec2IhPtr [0x{0}]", ((nuint)Handle).ToString("X")); + public ref short X => ref Unsafe.AsRef(&Handle->X); + public ref short Y => ref Unsafe.AsRef(&Handle->Y); + } +} +/* StbTexteditRow.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct StbTexteditRow + { + public float X0; + public float X1; + public float BaselineYDelta; + public float Ymin; + public float Ymax; + public int NumChars; + public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) + { + X0 = x0; + X1 = x1; + BaselineYDelta = baselineYDelta; + Ymin = ymin; + Ymax = ymax; + NumChars = numChars; + } + } +} +/* STBTexteditState.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct STBTexteditState + { + public int Cursor; + public int SelectStart; + public int SelectEnd; + public byte InsertMode; + public int RowCountPerPage; + public byte CursorAtEndOfLine; + public byte Initialized; + public byte HasPreferredX; + public byte SingleLine; + public byte Padding1; + public byte Padding2; + public byte Padding3; + public float PreferredX; + public StbUndoState Undostate; + public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) + { + Cursor = cursor; + SelectStart = selectStart; + SelectEnd = selectEnd; + InsertMode = insertMode; + RowCountPerPage = rowCountPerPage; + CursorAtEndOfLine = cursorAtEndOfLine; + Initialized = initialized; + HasPreferredX = hasPreferredX; + SingleLine = singleLine; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + PreferredX = preferredX; + Undostate = undostate; + } + } +} +/* StbttPackContext.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct StbttPackContext + { + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + + public unsafe partial struct StbttPackContextPtr : IEquatable + { + public StbttPackContextPtr(StbttPackContext* handle) { Handle = handle; } + public StbttPackContext* Handle; + public bool IsNull => Handle == null; + public static StbttPackContextPtr Null => new StbttPackContextPtr(null); + public StbttPackContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + public static implicit operator StbttPackContextPtr(StbttPackContext* handle) => new StbttPackContextPtr(handle); + public static implicit operator StbttPackContext*(StbttPackContextPtr handle) => handle.Handle; + public static bool operator ==(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle == right.Handle; + public static bool operator !=(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle != right.Handle; + public static bool operator ==(StbttPackContextPtr left, StbttPackContext* right) => left.Handle == right; + public static bool operator !=(StbttPackContextPtr left, StbttPackContext* right) => left.Handle != right; + public bool Equals(StbttPackContextPtr other) => Handle == other.Handle; + public override bool Equals(object obj) => obj is StbttPackContextPtr handle && Equals(handle); + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + private string DebuggerDisplay => string.Format("StbttPackContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + + } +} +/* StbUndoRecord.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoRecord + { + public int Where; + public int InsertLength; + public int DeleteLength; + public int CharStorage; + public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) + { + Where = where; + InsertLength = insertLength; + DeleteLength = deleteLength; + CharStorage = charStorage; + } + } +} +/* StbUndoState.cs */ +namespace Dalamud.Bindings.ImGui +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoState + { + public StbUndoRecord UndoRec_0; + public StbUndoRecord UndoRec_1; + public StbUndoRecord UndoRec_2; + public StbUndoRecord UndoRec_3; + public StbUndoRecord UndoRec_4; + public StbUndoRecord UndoRec_5; + public StbUndoRecord UndoRec_6; + public StbUndoRecord UndoRec_7; + public StbUndoRecord UndoRec_8; + public StbUndoRecord UndoRec_9; + public StbUndoRecord UndoRec_10; + public StbUndoRecord UndoRec_11; + public StbUndoRecord UndoRec_12; + public StbUndoRecord UndoRec_13; + public StbUndoRecord UndoRec_14; + public StbUndoRecord UndoRec_15; + public StbUndoRecord UndoRec_16; + public StbUndoRecord UndoRec_17; + public StbUndoRecord UndoRec_18; + public StbUndoRecord UndoRec_19; + public StbUndoRecord UndoRec_20; + public StbUndoRecord UndoRec_21; + public StbUndoRecord UndoRec_22; + public StbUndoRecord UndoRec_23; + public StbUndoRecord UndoRec_24; + public StbUndoRecord UndoRec_25; + public StbUndoRecord UndoRec_26; + public StbUndoRecord UndoRec_27; + public StbUndoRecord UndoRec_28; + public StbUndoRecord UndoRec_29; + public StbUndoRecord UndoRec_30; + public StbUndoRecord UndoRec_31; + public StbUndoRecord UndoRec_32; + public StbUndoRecord UndoRec_33; + public StbUndoRecord UndoRec_34; + public StbUndoRecord UndoRec_35; + public StbUndoRecord UndoRec_36; + public StbUndoRecord UndoRec_37; + public StbUndoRecord UndoRec_38; + public StbUndoRecord UndoRec_39; + public StbUndoRecord UndoRec_40; + public StbUndoRecord UndoRec_41; + public StbUndoRecord UndoRec_42; + public StbUndoRecord UndoRec_43; + public StbUndoRecord UndoRec_44; + public StbUndoRecord UndoRec_45; + public StbUndoRecord UndoRec_46; + public StbUndoRecord UndoRec_47; + public StbUndoRecord UndoRec_48; + public StbUndoRecord UndoRec_49; + public StbUndoRecord UndoRec_50; + public StbUndoRecord UndoRec_51; + public StbUndoRecord UndoRec_52; + public StbUndoRecord UndoRec_53; + public StbUndoRecord UndoRec_54; + public StbUndoRecord UndoRec_55; + public StbUndoRecord UndoRec_56; + public StbUndoRecord UndoRec_57; + public StbUndoRecord UndoRec_58; + public StbUndoRecord UndoRec_59; + public StbUndoRecord UndoRec_60; + public StbUndoRecord UndoRec_61; + public StbUndoRecord UndoRec_62; + public StbUndoRecord UndoRec_63; + public StbUndoRecord UndoRec_64; + public StbUndoRecord UndoRec_65; + public StbUndoRecord UndoRec_66; + public StbUndoRecord UndoRec_67; + public StbUndoRecord UndoRec_68; + public StbUndoRecord UndoRec_69; + public StbUndoRecord UndoRec_70; + public StbUndoRecord UndoRec_71; + public StbUndoRecord UndoRec_72; + public StbUndoRecord UndoRec_73; + public StbUndoRecord UndoRec_74; + public StbUndoRecord UndoRec_75; + public StbUndoRecord UndoRec_76; + public StbUndoRecord UndoRec_77; + public StbUndoRecord UndoRec_78; + public StbUndoRecord UndoRec_79; + public StbUndoRecord UndoRec_80; + public StbUndoRecord UndoRec_81; + public StbUndoRecord UndoRec_82; + public StbUndoRecord UndoRec_83; + public StbUndoRecord UndoRec_84; + public StbUndoRecord UndoRec_85; + public StbUndoRecord UndoRec_86; + public StbUndoRecord UndoRec_87; + public StbUndoRecord UndoRec_88; + public StbUndoRecord UndoRec_89; + public StbUndoRecord UndoRec_90; + public StbUndoRecord UndoRec_91; + public StbUndoRecord UndoRec_92; + public StbUndoRecord UndoRec_93; + public StbUndoRecord UndoRec_94; + public StbUndoRecord UndoRec_95; + public StbUndoRecord UndoRec_96; + public StbUndoRecord UndoRec_97; + public StbUndoRecord UndoRec_98; + public ushort UndoChar_0; + public ushort UndoChar_1; + public ushort UndoChar_2; + public ushort UndoChar_3; + public ushort UndoChar_4; + public ushort UndoChar_5; + public ushort UndoChar_6; + public ushort UndoChar_7; + public ushort UndoChar_8; + public ushort UndoChar_9; + public ushort UndoChar_10; + public ushort UndoChar_11; + public ushort UndoChar_12; + public ushort UndoChar_13; + public ushort UndoChar_14; + public ushort UndoChar_15; + public ushort UndoChar_16; + public ushort UndoChar_17; + public ushort UndoChar_18; + public ushort UndoChar_19; + public ushort UndoChar_20; + public ushort UndoChar_21; + public ushort UndoChar_22; + public ushort UndoChar_23; + public ushort UndoChar_24; + public ushort UndoChar_25; + public ushort UndoChar_26; + public ushort UndoChar_27; + public ushort UndoChar_28; + public ushort UndoChar_29; + public ushort UndoChar_30; + public ushort UndoChar_31; + public ushort UndoChar_32; + public ushort UndoChar_33; + public ushort UndoChar_34; + public ushort UndoChar_35; + public ushort UndoChar_36; + public ushort UndoChar_37; + public ushort UndoChar_38; + public ushort UndoChar_39; + public ushort UndoChar_40; + public ushort UndoChar_41; + public ushort UndoChar_42; + public ushort UndoChar_43; + public ushort UndoChar_44; + public ushort UndoChar_45; + public ushort UndoChar_46; + public ushort UndoChar_47; + public ushort UndoChar_48; + public ushort UndoChar_49; + public ushort UndoChar_50; + public ushort UndoChar_51; + public ushort UndoChar_52; + public ushort UndoChar_53; + public ushort UndoChar_54; + public ushort UndoChar_55; + public ushort UndoChar_56; + public ushort UndoChar_57; + public ushort UndoChar_58; + public ushort UndoChar_59; + public ushort UndoChar_60; + public ushort UndoChar_61; + public ushort UndoChar_62; + public ushort UndoChar_63; + public ushort UndoChar_64; + public ushort UndoChar_65; + public ushort UndoChar_66; + public ushort UndoChar_67; + public ushort UndoChar_68; + public ushort UndoChar_69; + public ushort UndoChar_70; + public ushort UndoChar_71; + public ushort UndoChar_72; + public ushort UndoChar_73; + public ushort UndoChar_74; + public ushort UndoChar_75; + public ushort UndoChar_76; + public ushort UndoChar_77; + public ushort UndoChar_78; + public ushort UndoChar_79; + public ushort UndoChar_80; + public ushort UndoChar_81; + public ushort UndoChar_82; + public ushort UndoChar_83; + public ushort UndoChar_84; + public ushort UndoChar_85; + public ushort UndoChar_86; + public ushort UndoChar_87; + public ushort UndoChar_88; + public ushort UndoChar_89; + public ushort UndoChar_90; + public ushort UndoChar_91; + public ushort UndoChar_92; + public ushort UndoChar_93; + public ushort UndoChar_94; + public ushort UndoChar_95; + public ushort UndoChar_96; + public ushort UndoChar_97; + public ushort UndoChar_98; + public ushort UndoChar_99; + public ushort UndoChar_100; + public ushort UndoChar_101; + public ushort UndoChar_102; + public ushort UndoChar_103; + public ushort UndoChar_104; + public ushort UndoChar_105; + public ushort UndoChar_106; + public ushort UndoChar_107; + public ushort UndoChar_108; + public ushort UndoChar_109; + public ushort UndoChar_110; + public ushort UndoChar_111; + public ushort UndoChar_112; + public ushort UndoChar_113; + public ushort UndoChar_114; + public ushort UndoChar_115; + public ushort UndoChar_116; + public ushort UndoChar_117; + public ushort UndoChar_118; + public ushort UndoChar_119; + public ushort UndoChar_120; + public ushort UndoChar_121; + public ushort UndoChar_122; + public ushort UndoChar_123; + public ushort UndoChar_124; + public ushort UndoChar_125; + public ushort UndoChar_126; + public ushort UndoChar_127; + public ushort UndoChar_128; + public ushort UndoChar_129; + public ushort UndoChar_130; + public ushort UndoChar_131; + public ushort UndoChar_132; + public ushort UndoChar_133; + public ushort UndoChar_134; + public ushort UndoChar_135; + public ushort UndoChar_136; + public ushort UndoChar_137; + public ushort UndoChar_138; + public ushort UndoChar_139; + public ushort UndoChar_140; + public ushort UndoChar_141; + public ushort UndoChar_142; + public ushort UndoChar_143; + public ushort UndoChar_144; + public ushort UndoChar_145; + public ushort UndoChar_146; + public ushort UndoChar_147; + public ushort UndoChar_148; + public ushort UndoChar_149; + public ushort UndoChar_150; + public ushort UndoChar_151; + public ushort UndoChar_152; + public ushort UndoChar_153; + public ushort UndoChar_154; + public ushort UndoChar_155; + public ushort UndoChar_156; + public ushort UndoChar_157; + public ushort UndoChar_158; + public ushort UndoChar_159; + public ushort UndoChar_160; + public ushort UndoChar_161; + public ushort UndoChar_162; + public ushort UndoChar_163; + public ushort UndoChar_164; + public ushort UndoChar_165; + public ushort UndoChar_166; + public ushort UndoChar_167; + public ushort UndoChar_168; + public ushort UndoChar_169; + public ushort UndoChar_170; + public ushort UndoChar_171; + public ushort UndoChar_172; + public ushort UndoChar_173; + public ushort UndoChar_174; + public ushort UndoChar_175; + public ushort UndoChar_176; + public ushort UndoChar_177; + public ushort UndoChar_178; + public ushort UndoChar_179; + public ushort UndoChar_180; + public ushort UndoChar_181; + public ushort UndoChar_182; + public ushort UndoChar_183; + public ushort UndoChar_184; + public ushort UndoChar_185; + public ushort UndoChar_186; + public ushort UndoChar_187; + public ushort UndoChar_188; + public ushort UndoChar_189; + public ushort UndoChar_190; + public ushort UndoChar_191; + public ushort UndoChar_192; + public ushort UndoChar_193; + public ushort UndoChar_194; + public ushort UndoChar_195; + public ushort UndoChar_196; + public ushort UndoChar_197; + public ushort UndoChar_198; + public ushort UndoChar_199; + public ushort UndoChar_200; + public ushort UndoChar_201; + public ushort UndoChar_202; + public ushort UndoChar_203; + public ushort UndoChar_204; + public ushort UndoChar_205; + public ushort UndoChar_206; + public ushort UndoChar_207; + public ushort UndoChar_208; + public ushort UndoChar_209; + public ushort UndoChar_210; + public ushort UndoChar_211; + public ushort UndoChar_212; + public ushort UndoChar_213; + public ushort UndoChar_214; + public ushort UndoChar_215; + public ushort UndoChar_216; + public ushort UndoChar_217; + public ushort UndoChar_218; + public ushort UndoChar_219; + public ushort UndoChar_220; + public ushort UndoChar_221; + public ushort UndoChar_222; + public ushort UndoChar_223; + public ushort UndoChar_224; + public ushort UndoChar_225; + public ushort UndoChar_226; + public ushort UndoChar_227; + public ushort UndoChar_228; + public ushort UndoChar_229; + public ushort UndoChar_230; + public ushort UndoChar_231; + public ushort UndoChar_232; + public ushort UndoChar_233; + public ushort UndoChar_234; + public ushort UndoChar_235; + public ushort UndoChar_236; + public ushort UndoChar_237; + public ushort UndoChar_238; + public ushort UndoChar_239; + public ushort UndoChar_240; + public ushort UndoChar_241; + public ushort UndoChar_242; + public ushort UndoChar_243; + public ushort UndoChar_244; + public ushort UndoChar_245; + public ushort UndoChar_246; + public ushort UndoChar_247; + public ushort UndoChar_248; + public ushort UndoChar_249; + public ushort UndoChar_250; + public ushort UndoChar_251; + public ushort UndoChar_252; + public ushort UndoChar_253; + public ushort UndoChar_254; + public ushort UndoChar_255; + public ushort UndoChar_256; + public ushort UndoChar_257; + public ushort UndoChar_258; + public ushort UndoChar_259; + public ushort UndoChar_260; + public ushort UndoChar_261; + public ushort UndoChar_262; + public ushort UndoChar_263; + public ushort UndoChar_264; + public ushort UndoChar_265; + public ushort UndoChar_266; + public ushort UndoChar_267; + public ushort UndoChar_268; + public ushort UndoChar_269; + public ushort UndoChar_270; + public ushort UndoChar_271; + public ushort UndoChar_272; + public ushort UndoChar_273; + public ushort UndoChar_274; + public ushort UndoChar_275; + public ushort UndoChar_276; + public ushort UndoChar_277; + public ushort UndoChar_278; + public ushort UndoChar_279; + public ushort UndoChar_280; + public ushort UndoChar_281; + public ushort UndoChar_282; + public ushort UndoChar_283; + public ushort UndoChar_284; + public ushort UndoChar_285; + public ushort UndoChar_286; + public ushort UndoChar_287; + public ushort UndoChar_288; + public ushort UndoChar_289; + public ushort UndoChar_290; + public ushort UndoChar_291; + public ushort UndoChar_292; + public ushort UndoChar_293; + public ushort UndoChar_294; + public ushort UndoChar_295; + public ushort UndoChar_296; + public ushort UndoChar_297; + public ushort UndoChar_298; + public ushort UndoChar_299; + public ushort UndoChar_300; + public ushort UndoChar_301; + public ushort UndoChar_302; + public ushort UndoChar_303; + public ushort UndoChar_304; + public ushort UndoChar_305; + public ushort UndoChar_306; + public ushort UndoChar_307; + public ushort UndoChar_308; + public ushort UndoChar_309; + public ushort UndoChar_310; + public ushort UndoChar_311; + public ushort UndoChar_312; + public ushort UndoChar_313; + public ushort UndoChar_314; + public ushort UndoChar_315; + public ushort UndoChar_316; + public ushort UndoChar_317; + public ushort UndoChar_318; + public ushort UndoChar_319; + public ushort UndoChar_320; + public ushort UndoChar_321; + public ushort UndoChar_322; + public ushort UndoChar_323; + public ushort UndoChar_324; + public ushort UndoChar_325; + public ushort UndoChar_326; + public ushort UndoChar_327; + public ushort UndoChar_328; + public ushort UndoChar_329; + public ushort UndoChar_330; + public ushort UndoChar_331; + public ushort UndoChar_332; + public ushort UndoChar_333; + public ushort UndoChar_334; + public ushort UndoChar_335; + public ushort UndoChar_336; + public ushort UndoChar_337; + public ushort UndoChar_338; + public ushort UndoChar_339; + public ushort UndoChar_340; + public ushort UndoChar_341; + public ushort UndoChar_342; + public ushort UndoChar_343; + public ushort UndoChar_344; + public ushort UndoChar_345; + public ushort UndoChar_346; + public ushort UndoChar_347; + public ushort UndoChar_348; + public ushort UndoChar_349; + public ushort UndoChar_350; + public ushort UndoChar_351; + public ushort UndoChar_352; + public ushort UndoChar_353; + public ushort UndoChar_354; + public ushort UndoChar_355; + public ushort UndoChar_356; + public ushort UndoChar_357; + public ushort UndoChar_358; + public ushort UndoChar_359; + public ushort UndoChar_360; + public ushort UndoChar_361; + public ushort UndoChar_362; + public ushort UndoChar_363; + public ushort UndoChar_364; + public ushort UndoChar_365; + public ushort UndoChar_366; + public ushort UndoChar_367; + public ushort UndoChar_368; + public ushort UndoChar_369; + public ushort UndoChar_370; + public ushort UndoChar_371; + public ushort UndoChar_372; + public ushort UndoChar_373; + public ushort UndoChar_374; + public ushort UndoChar_375; + public ushort UndoChar_376; + public ushort UndoChar_377; + public ushort UndoChar_378; + public ushort UndoChar_379; + public ushort UndoChar_380; + public ushort UndoChar_381; + public ushort UndoChar_382; + public ushort UndoChar_383; + public ushort UndoChar_384; + public ushort UndoChar_385; + public ushort UndoChar_386; + public ushort UndoChar_387; + public ushort UndoChar_388; + public ushort UndoChar_389; + public ushort UndoChar_390; + public ushort UndoChar_391; + public ushort UndoChar_392; + public ushort UndoChar_393; + public ushort UndoChar_394; + public ushort UndoChar_395; + public ushort UndoChar_396; + public ushort UndoChar_397; + public ushort UndoChar_398; + public ushort UndoChar_399; + public ushort UndoChar_400; + public ushort UndoChar_401; + public ushort UndoChar_402; + public ushort UndoChar_403; + public ushort UndoChar_404; + public ushort UndoChar_405; + public ushort UndoChar_406; + public ushort UndoChar_407; + public ushort UndoChar_408; + public ushort UndoChar_409; + public ushort UndoChar_410; + public ushort UndoChar_411; + public ushort UndoChar_412; + public ushort UndoChar_413; + public ushort UndoChar_414; + public ushort UndoChar_415; + public ushort UndoChar_416; + public ushort UndoChar_417; + public ushort UndoChar_418; + public ushort UndoChar_419; + public ushort UndoChar_420; + public ushort UndoChar_421; + public ushort UndoChar_422; + public ushort UndoChar_423; + public ushort UndoChar_424; + public ushort UndoChar_425; + public ushort UndoChar_426; + public ushort UndoChar_427; + public ushort UndoChar_428; + public ushort UndoChar_429; + public ushort UndoChar_430; + public ushort UndoChar_431; + public ushort UndoChar_432; + public ushort UndoChar_433; + public ushort UndoChar_434; + public ushort UndoChar_435; + public ushort UndoChar_436; + public ushort UndoChar_437; + public ushort UndoChar_438; + public ushort UndoChar_439; + public ushort UndoChar_440; + public ushort UndoChar_441; + public ushort UndoChar_442; + public ushort UndoChar_443; + public ushort UndoChar_444; + public ushort UndoChar_445; + public ushort UndoChar_446; + public ushort UndoChar_447; + public ushort UndoChar_448; + public ushort UndoChar_449; + public ushort UndoChar_450; + public ushort UndoChar_451; + public ushort UndoChar_452; + public ushort UndoChar_453; + public ushort UndoChar_454; + public ushort UndoChar_455; + public ushort UndoChar_456; + public ushort UndoChar_457; + public ushort UndoChar_458; + public ushort UndoChar_459; + public ushort UndoChar_460; + public ushort UndoChar_461; + public ushort UndoChar_462; + public ushort UndoChar_463; + public ushort UndoChar_464; + public ushort UndoChar_465; + public ushort UndoChar_466; + public ushort UndoChar_467; + public ushort UndoChar_468; + public ushort UndoChar_469; + public ushort UndoChar_470; + public ushort UndoChar_471; + public ushort UndoChar_472; + public ushort UndoChar_473; + public ushort UndoChar_474; + public ushort UndoChar_475; + public ushort UndoChar_476; + public ushort UndoChar_477; + public ushort UndoChar_478; + public ushort UndoChar_479; + public ushort UndoChar_480; + public ushort UndoChar_481; + public ushort UndoChar_482; + public ushort UndoChar_483; + public ushort UndoChar_484; + public ushort UndoChar_485; + public ushort UndoChar_486; + public ushort UndoChar_487; + public ushort UndoChar_488; + public ushort UndoChar_489; + public ushort UndoChar_490; + public ushort UndoChar_491; + public ushort UndoChar_492; + public ushort UndoChar_493; + public ushort UndoChar_494; + public ushort UndoChar_495; + public ushort UndoChar_496; + public ushort UndoChar_497; + public ushort UndoChar_498; + public ushort UndoChar_499; + public ushort UndoChar_500; + public ushort UndoChar_501; + public ushort UndoChar_502; + public ushort UndoChar_503; + public ushort UndoChar_504; + public ushort UndoChar_505; + public ushort UndoChar_506; + public ushort UndoChar_507; + public ushort UndoChar_508; + public ushort UndoChar_509; + public ushort UndoChar_510; + public ushort UndoChar_511; + public ushort UndoChar_512; + public ushort UndoChar_513; + public ushort UndoChar_514; + public ushort UndoChar_515; + public ushort UndoChar_516; + public ushort UndoChar_517; + public ushort UndoChar_518; + public ushort UndoChar_519; + public ushort UndoChar_520; + public ushort UndoChar_521; + public ushort UndoChar_522; + public ushort UndoChar_523; + public ushort UndoChar_524; + public ushort UndoChar_525; + public ushort UndoChar_526; + public ushort UndoChar_527; + public ushort UndoChar_528; + public ushort UndoChar_529; + public ushort UndoChar_530; + public ushort UndoChar_531; + public ushort UndoChar_532; + public ushort UndoChar_533; + public ushort UndoChar_534; + public ushort UndoChar_535; + public ushort UndoChar_536; + public ushort UndoChar_537; + public ushort UndoChar_538; + public ushort UndoChar_539; + public ushort UndoChar_540; + public ushort UndoChar_541; + public ushort UndoChar_542; + public ushort UndoChar_543; + public ushort UndoChar_544; + public ushort UndoChar_545; + public ushort UndoChar_546; + public ushort UndoChar_547; + public ushort UndoChar_548; + public ushort UndoChar_549; + public ushort UndoChar_550; + public ushort UndoChar_551; + public ushort UndoChar_552; + public ushort UndoChar_553; + public ushort UndoChar_554; + public ushort UndoChar_555; + public ushort UndoChar_556; + public ushort UndoChar_557; + public ushort UndoChar_558; + public ushort UndoChar_559; + public ushort UndoChar_560; + public ushort UndoChar_561; + public ushort UndoChar_562; + public ushort UndoChar_563; + public ushort UndoChar_564; + public ushort UndoChar_565; + public ushort UndoChar_566; + public ushort UndoChar_567; + public ushort UndoChar_568; + public ushort UndoChar_569; + public ushort UndoChar_570; + public ushort UndoChar_571; + public ushort UndoChar_572; + public ushort UndoChar_573; + public ushort UndoChar_574; + public ushort UndoChar_575; + public ushort UndoChar_576; + public ushort UndoChar_577; + public ushort UndoChar_578; + public ushort UndoChar_579; + public ushort UndoChar_580; + public ushort UndoChar_581; + public ushort UndoChar_582; + public ushort UndoChar_583; + public ushort UndoChar_584; + public ushort UndoChar_585; + public ushort UndoChar_586; + public ushort UndoChar_587; + public ushort UndoChar_588; + public ushort UndoChar_589; + public ushort UndoChar_590; + public ushort UndoChar_591; + public ushort UndoChar_592; + public ushort UndoChar_593; + public ushort UndoChar_594; + public ushort UndoChar_595; + public ushort UndoChar_596; + public ushort UndoChar_597; + public ushort UndoChar_598; + public ushort UndoChar_599; + public ushort UndoChar_600; + public ushort UndoChar_601; + public ushort UndoChar_602; + public ushort UndoChar_603; + public ushort UndoChar_604; + public ushort UndoChar_605; + public ushort UndoChar_606; + public ushort UndoChar_607; + public ushort UndoChar_608; + public ushort UndoChar_609; + public ushort UndoChar_610; + public ushort UndoChar_611; + public ushort UndoChar_612; + public ushort UndoChar_613; + public ushort UndoChar_614; + public ushort UndoChar_615; + public ushort UndoChar_616; + public ushort UndoChar_617; + public ushort UndoChar_618; + public ushort UndoChar_619; + public ushort UndoChar_620; + public ushort UndoChar_621; + public ushort UndoChar_622; + public ushort UndoChar_623; + public ushort UndoChar_624; + public ushort UndoChar_625; + public ushort UndoChar_626; + public ushort UndoChar_627; + public ushort UndoChar_628; + public ushort UndoChar_629; + public ushort UndoChar_630; + public ushort UndoChar_631; + public ushort UndoChar_632; + public ushort UndoChar_633; + public ushort UndoChar_634; + public ushort UndoChar_635; + public ushort UndoChar_636; + public ushort UndoChar_637; + public ushort UndoChar_638; + public ushort UndoChar_639; + public ushort UndoChar_640; + public ushort UndoChar_641; + public ushort UndoChar_642; + public ushort UndoChar_643; + public ushort UndoChar_644; + public ushort UndoChar_645; + public ushort UndoChar_646; + public ushort UndoChar_647; + public ushort UndoChar_648; + public ushort UndoChar_649; + public ushort UndoChar_650; + public ushort UndoChar_651; + public ushort UndoChar_652; + public ushort UndoChar_653; + public ushort UndoChar_654; + public ushort UndoChar_655; + public ushort UndoChar_656; + public ushort UndoChar_657; + public ushort UndoChar_658; + public ushort UndoChar_659; + public ushort UndoChar_660; + public ushort UndoChar_661; + public ushort UndoChar_662; + public ushort UndoChar_663; + public ushort UndoChar_664; + public ushort UndoChar_665; + public ushort UndoChar_666; + public ushort UndoChar_667; + public ushort UndoChar_668; + public ushort UndoChar_669; + public ushort UndoChar_670; + public ushort UndoChar_671; + public ushort UndoChar_672; + public ushort UndoChar_673; + public ushort UndoChar_674; + public ushort UndoChar_675; + public ushort UndoChar_676; + public ushort UndoChar_677; + public ushort UndoChar_678; + public ushort UndoChar_679; + public ushort UndoChar_680; + public ushort UndoChar_681; + public ushort UndoChar_682; + public ushort UndoChar_683; + public ushort UndoChar_684; + public ushort UndoChar_685; + public ushort UndoChar_686; + public ushort UndoChar_687; + public ushort UndoChar_688; + public ushort UndoChar_689; + public ushort UndoChar_690; + public ushort UndoChar_691; + public ushort UndoChar_692; + public ushort UndoChar_693; + public ushort UndoChar_694; + public ushort UndoChar_695; + public ushort UndoChar_696; + public ushort UndoChar_697; + public ushort UndoChar_698; + public ushort UndoChar_699; + public ushort UndoChar_700; + public ushort UndoChar_701; + public ushort UndoChar_702; + public ushort UndoChar_703; + public ushort UndoChar_704; + public ushort UndoChar_705; + public ushort UndoChar_706; + public ushort UndoChar_707; + public ushort UndoChar_708; + public ushort UndoChar_709; + public ushort UndoChar_710; + public ushort UndoChar_711; + public ushort UndoChar_712; + public ushort UndoChar_713; + public ushort UndoChar_714; + public ushort UndoChar_715; + public ushort UndoChar_716; + public ushort UndoChar_717; + public ushort UndoChar_718; + public ushort UndoChar_719; + public ushort UndoChar_720; + public ushort UndoChar_721; + public ushort UndoChar_722; + public ushort UndoChar_723; + public ushort UndoChar_724; + public ushort UndoChar_725; + public ushort UndoChar_726; + public ushort UndoChar_727; + public ushort UndoChar_728; + public ushort UndoChar_729; + public ushort UndoChar_730; + public ushort UndoChar_731; + public ushort UndoChar_732; + public ushort UndoChar_733; + public ushort UndoChar_734; + public ushort UndoChar_735; + public ushort UndoChar_736; + public ushort UndoChar_737; + public ushort UndoChar_738; + public ushort UndoChar_739; + public ushort UndoChar_740; + public ushort UndoChar_741; + public ushort UndoChar_742; + public ushort UndoChar_743; + public ushort UndoChar_744; + public ushort UndoChar_745; + public ushort UndoChar_746; + public ushort UndoChar_747; + public ushort UndoChar_748; + public ushort UndoChar_749; + public ushort UndoChar_750; + public ushort UndoChar_751; + public ushort UndoChar_752; + public ushort UndoChar_753; + public ushort UndoChar_754; + public ushort UndoChar_755; + public ushort UndoChar_756; + public ushort UndoChar_757; + public ushort UndoChar_758; + public ushort UndoChar_759; + public ushort UndoChar_760; + public ushort UndoChar_761; + public ushort UndoChar_762; + public ushort UndoChar_763; + public ushort UndoChar_764; + public ushort UndoChar_765; + public ushort UndoChar_766; + public ushort UndoChar_767; + public ushort UndoChar_768; + public ushort UndoChar_769; + public ushort UndoChar_770; + public ushort UndoChar_771; + public ushort UndoChar_772; + public ushort UndoChar_773; + public ushort UndoChar_774; + public ushort UndoChar_775; + public ushort UndoChar_776; + public ushort UndoChar_777; + public ushort UndoChar_778; + public ushort UndoChar_779; + public ushort UndoChar_780; + public ushort UndoChar_781; + public ushort UndoChar_782; + public ushort UndoChar_783; + public ushort UndoChar_784; + public ushort UndoChar_785; + public ushort UndoChar_786; + public ushort UndoChar_787; + public ushort UndoChar_788; + public ushort UndoChar_789; + public ushort UndoChar_790; + public ushort UndoChar_791; + public ushort UndoChar_792; + public ushort UndoChar_793; + public ushort UndoChar_794; + public ushort UndoChar_795; + public ushort UndoChar_796; + public ushort UndoChar_797; + public ushort UndoChar_798; + public ushort UndoChar_799; + public ushort UndoChar_800; + public ushort UndoChar_801; + public ushort UndoChar_802; + public ushort UndoChar_803; + public ushort UndoChar_804; + public ushort UndoChar_805; + public ushort UndoChar_806; + public ushort UndoChar_807; + public ushort UndoChar_808; + public ushort UndoChar_809; + public ushort UndoChar_810; + public ushort UndoChar_811; + public ushort UndoChar_812; + public ushort UndoChar_813; + public ushort UndoChar_814; + public ushort UndoChar_815; + public ushort UndoChar_816; + public ushort UndoChar_817; + public ushort UndoChar_818; + public ushort UndoChar_819; + public ushort UndoChar_820; + public ushort UndoChar_821; + public ushort UndoChar_822; + public ushort UndoChar_823; + public ushort UndoChar_824; + public ushort UndoChar_825; + public ushort UndoChar_826; + public ushort UndoChar_827; + public ushort UndoChar_828; + public ushort UndoChar_829; + public ushort UndoChar_830; + public ushort UndoChar_831; + public ushort UndoChar_832; + public ushort UndoChar_833; + public ushort UndoChar_834; + public ushort UndoChar_835; + public ushort UndoChar_836; + public ushort UndoChar_837; + public ushort UndoChar_838; + public ushort UndoChar_839; + public ushort UndoChar_840; + public ushort UndoChar_841; + public ushort UndoChar_842; + public ushort UndoChar_843; + public ushort UndoChar_844; + public ushort UndoChar_845; + public ushort UndoChar_846; + public ushort UndoChar_847; + public ushort UndoChar_848; + public ushort UndoChar_849; + public ushort UndoChar_850; + public ushort UndoChar_851; + public ushort UndoChar_852; + public ushort UndoChar_853; + public ushort UndoChar_854; + public ushort UndoChar_855; + public ushort UndoChar_856; + public ushort UndoChar_857; + public ushort UndoChar_858; + public ushort UndoChar_859; + public ushort UndoChar_860; + public ushort UndoChar_861; + public ushort UndoChar_862; + public ushort UndoChar_863; + public ushort UndoChar_864; + public ushort UndoChar_865; + public ushort UndoChar_866; + public ushort UndoChar_867; + public ushort UndoChar_868; + public ushort UndoChar_869; + public ushort UndoChar_870; + public ushort UndoChar_871; + public ushort UndoChar_872; + public ushort UndoChar_873; + public ushort UndoChar_874; + public ushort UndoChar_875; + public ushort UndoChar_876; + public ushort UndoChar_877; + public ushort UndoChar_878; + public ushort UndoChar_879; + public ushort UndoChar_880; + public ushort UndoChar_881; + public ushort UndoChar_882; + public ushort UndoChar_883; + public ushort UndoChar_884; + public ushort UndoChar_885; + public ushort UndoChar_886; + public ushort UndoChar_887; + public ushort UndoChar_888; + public ushort UndoChar_889; + public ushort UndoChar_890; + public ushort UndoChar_891; + public ushort UndoChar_892; + public ushort UndoChar_893; + public ushort UndoChar_894; + public ushort UndoChar_895; + public ushort UndoChar_896; + public ushort UndoChar_897; + public ushort UndoChar_898; + public ushort UndoChar_899; + public ushort UndoChar_900; + public ushort UndoChar_901; + public ushort UndoChar_902; + public ushort UndoChar_903; + public ushort UndoChar_904; + public ushort UndoChar_905; + public ushort UndoChar_906; + public ushort UndoChar_907; + public ushort UndoChar_908; + public ushort UndoChar_909; + public ushort UndoChar_910; + public ushort UndoChar_911; + public ushort UndoChar_912; + public ushort UndoChar_913; + public ushort UndoChar_914; + public ushort UndoChar_915; + public ushort UndoChar_916; + public ushort UndoChar_917; + public ushort UndoChar_918; + public ushort UndoChar_919; + public ushort UndoChar_920; + public ushort UndoChar_921; + public ushort UndoChar_922; + public ushort UndoChar_923; + public ushort UndoChar_924; + public ushort UndoChar_925; + public ushort UndoChar_926; + public ushort UndoChar_927; + public ushort UndoChar_928; + public ushort UndoChar_929; + public ushort UndoChar_930; + public ushort UndoChar_931; + public ushort UndoChar_932; + public ushort UndoChar_933; + public ushort UndoChar_934; + public ushort UndoChar_935; + public ushort UndoChar_936; + public ushort UndoChar_937; + public ushort UndoChar_938; + public ushort UndoChar_939; + public ushort UndoChar_940; + public ushort UndoChar_941; + public ushort UndoChar_942; + public ushort UndoChar_943; + public ushort UndoChar_944; + public ushort UndoChar_945; + public ushort UndoChar_946; + public ushort UndoChar_947; + public ushort UndoChar_948; + public ushort UndoChar_949; + public ushort UndoChar_950; + public ushort UndoChar_951; + public ushort UndoChar_952; + public ushort UndoChar_953; + public ushort UndoChar_954; + public ushort UndoChar_955; + public ushort UndoChar_956; + public ushort UndoChar_957; + public ushort UndoChar_958; + public ushort UndoChar_959; + public ushort UndoChar_960; + public ushort UndoChar_961; + public ushort UndoChar_962; + public ushort UndoChar_963; + public ushort UndoChar_964; + public ushort UndoChar_965; + public ushort UndoChar_966; + public ushort UndoChar_967; + public ushort UndoChar_968; + public ushort UndoChar_969; + public ushort UndoChar_970; + public ushort UndoChar_971; + public ushort UndoChar_972; + public ushort UndoChar_973; + public ushort UndoChar_974; + public ushort UndoChar_975; + public ushort UndoChar_976; + public ushort UndoChar_977; + public ushort UndoChar_978; + public ushort UndoChar_979; + public ushort UndoChar_980; + public ushort UndoChar_981; + public ushort UndoChar_982; + public ushort UndoChar_983; + public ushort UndoChar_984; + public ushort UndoChar_985; + public ushort UndoChar_986; + public ushort UndoChar_987; + public ushort UndoChar_988; + public ushort UndoChar_989; + public ushort UndoChar_990; + public ushort UndoChar_991; + public ushort UndoChar_992; + public ushort UndoChar_993; + public ushort UndoChar_994; + public ushort UndoChar_995; + public ushort UndoChar_996; + public ushort UndoChar_997; + public ushort UndoChar_998; + public short UndoPoint; + public short RedoPoint; + public int UndoCharPoint; + public int RedoCharPoint; + public unsafe StbUndoState(StbUndoRecord* undoRec = default, ushort* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default(StbUndoRecord*)) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default(ushort*)) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + public unsafe StbUndoState(Span undoRec = default, Span undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default(Span)) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default(Span)) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + public unsafe Span UndoRec + { + get + { + fixed (StbUndoRecord* p = &this.UndoRec_0) + { + return new Span(p, 99); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs new file mode 100644 index 000000000..90874f319 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs new file mode 100644 index 000000000..683dc30c5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImBitVector +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs new file mode 100644 index 000000000..377e9d268 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImBitVectorPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs new file mode 100644 index 000000000..4873416b0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImChunkStreamImGuiTableSettings +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs new file mode 100644 index 000000000..383d7d72e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImChunkStreamImGuiWindowSettings +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs new file mode 100644 index 000000000..976499f32 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs @@ -0,0 +1,50 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImColor +{ + public unsafe void Destroy() + { + fixed (ImColor* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void HSV(float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGuiNative.HSV(@this, h, s, v, a); + } + } + public unsafe void HSV(float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGuiNative.HSV(@this, h, s, v, (float)(1.0f)); + } + } + public unsafe void SetHSV(float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGuiNative.SetHSV(@this, h, s, v, a); + } + } + public unsafe void SetHSV(float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGuiNative.SetHSV(@this, h, s, v, (float)(1.0f)); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs new file mode 100644 index 000000000..80de55e64 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs @@ -0,0 +1,35 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImColorPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void HSV(float h, float s, float v, float a) + { + ImGuiNative.HSV(Handle, h, s, v, a); + } + public unsafe void HSV(float h, float s, float v) + { + ImGuiNative.HSV(Handle, h, s, v, (float)(1.0f)); + } + public unsafe void SetHSV(float h, float s, float v, float a) + { + ImGuiNative.SetHSV(Handle, h, s, v, a); + } + public unsafe void SetHSV(float h, float s, float v) + { + ImGuiNative.SetHSV(Handle, h, s, v, (float)(1.0f)); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs new file mode 100644 index 000000000..afcb1db3b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawChannel +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs new file mode 100644 index 000000000..ffff450fd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawChannelPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs new file mode 100644 index 000000000..5128fa69e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs @@ -0,0 +1,30 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawCmd +{ + public unsafe void Destroy() + { + fixed (ImDrawCmd* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe ImTextureID GetTexID() + { + fixed (ImDrawCmd* @this = &this) + { + ImTextureID ret = ImGuiNative.GetTexID(@this); + return ret; + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs new file mode 100644 index 000000000..8d0c05d8b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawCmdHeader +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs new file mode 100644 index 000000000..2041f8013 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs @@ -0,0 +1,24 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawCmdPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe ImTextureID GetTexID() + { + ImTextureID ret = ImGuiNative.GetTexID(Handle); + return ret; + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs new file mode 100644 index 000000000..8bdbab18d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs @@ -0,0 +1,43 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawData +{ + public unsafe void Clear() + { + fixed (ImDrawData* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void DeIndexAllBuffers() + { + fixed (ImDrawData* @this = &this) + { + ImGuiNative.DeIndexAllBuffers(@this); + } + } + public unsafe void Destroy() + { + fixed (ImDrawData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void ScaleClipRects(Vector2 fbScale) + { + fixed (ImDrawData* @this = &this) + { + ImGuiNative.ScaleClipRects(@this, fbScale); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs new file mode 100644 index 000000000..d67f3397a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawDataBuilder +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs new file mode 100644 index 000000000..89a4e3854 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawDataBuilderPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs new file mode 100644 index 000000000..99e7cd6e5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs @@ -0,0 +1,31 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawDataPtr +{ + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void DeIndexAllBuffers() + { + ImGuiNative.DeIndexAllBuffers(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void ScaleClipRects(Vector2 fbScale) + { + ImGuiNative.ScaleClipRects(Handle, fbScale); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs new file mode 100644 index 000000000..e8bcc92da --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs @@ -0,0 +1,759 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawList +{ + public unsafe int _CalcCircleAutoSegmentCount(float radius) + { + fixed (ImDrawList* @this = &this) + { + int ret = ImGuiNative._CalcCircleAutoSegmentCount(@this, radius); + return ret; + } + } + public unsafe void _ClearFreeMemory() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._ClearFreeMemory(@this); + } + } + public unsafe void _OnChangedClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._OnChangedClipRect(@this); + } + } + public unsafe void _OnChangedTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._OnChangedTextureID(@this); + } + } + public unsafe void _OnChangedVtxOffset() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._OnChangedVtxOffset(@this); + } + } + public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._PathArcToFastEx(@this, center, radius, aMinSample, aMaxSample, aStep); + } + } + public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._PathArcToN(@this, center, radius, aMin, aMax, numSegments); + } + } + public unsafe void _PopUnusedDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._PopUnusedDrawCmd(@this); + } + } + public unsafe void _ResetForNewFrame() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._ResetForNewFrame(@this); + } + } + public unsafe void _TryMergeDrawCmds() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative._TryMergeDrawCmds(@this); + } + } + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddBezierCubic(@this, p1, p2, p3, p4, col, thickness, numSegments); + } + } + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddBezierCubic(@this, p1, p2, p3, p4, col, thickness, (int)(0)); + } + } + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddBezierQuadratic(@this, p1, p2, p3, col, thickness, numSegments); + } + } + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddBezierQuadratic(@this, p1, p2, p3, col, thickness, (int)(0)); + } + } + public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCallback(@this, callback, callbackData); + } + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircle(@this, center, radius, col, numSegments, thickness); + } + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircle(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + public unsafe void AddCircle(Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircle(@this, center, radius, col, (int)(0), (float)(1.0f)); + } + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircle(@this, center, radius, col, (int)(0), thickness); + } + } + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircleFilled(@this, center, radius, col, numSegments); + } + } + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddCircleFilled(@this, center, radius, col, (int)(0)); + } + } + public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddConvexPolyFilled(@this, points, numPoints, col); + } + } + public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddConvexPolyFilled(@this, (Vector2*)ppoints, numPoints, col); + } + } + } + public unsafe void AddDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddDrawCmd(@this); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, 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)); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageQuad(@this, 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); + } + } + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageRounded(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + } + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddImageRounded(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + } + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddLine(@this, p1, p2, col, thickness); + } + } + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddLine(@this, p1, p2, col, (float)(1.0f)); + } + } + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddNgon(@this, center, radius, col, numSegments, thickness); + } + } + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddNgon(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddNgonFilled(@this, center, radius, col, numSegments); + } + } + public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddPolyline(@this, points, numPoints, col, flags, thickness); + } + } + public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddPolyline(@this, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + } + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddQuad(@this, p1, p2, p3, p4, col, thickness); + } + } + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddQuad(@this, p1, p2, p3, p4, col, (float)(1.0f)); + } + } + public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddQuadFilled(@this, p1, p2, p3, p4, col); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, flags, thickness); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRectFilled(@this, pMin, pMax, col, rounding, flags); + } + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRectFilled(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRectFilled(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRectFilled(@this, pMin, pMax, col, (float)(0.0f), flags); + } + } + public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddRectFilledMultiColor(@this, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + } + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddTriangle(@this, p1, p2, p3, col, thickness); + } + } + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddTriangle(@this, p1, p2, p3, col, (float)(1.0f)); + } + } + public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.AddTriangleFilled(@this, p1, p2, p3, col); + } + } + public unsafe void ChannelsMerge() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.ChannelsMerge(@this); + } + } + public unsafe void ChannelsSetCurrent(int n) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.ChannelsSetCurrent(@this, n); + } + } + public unsafe void ChannelsSplit(int count) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.ChannelsSplit(@this, count); + } + } + public unsafe ImDrawList* CloneOutput() + { + fixed (ImDrawList* @this = &this) + { + ImDrawList* ret = ImGuiNative.CloneOutput(@this); + return ret; + } + } + public unsafe void Destroy() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathArcTo(@this, center, radius, aMin, aMax, numSegments); + } + } + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathArcTo(@this, center, radius, aMin, aMax, (int)(0)); + } + } + public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathArcToFast(@this, center, radius, aMinOf12, aMaxOf12); + } + } + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathBezierCubicCurveTo(@this, p2, p3, p4, numSegments); + } + } + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathBezierCubicCurveTo(@this, p2, p3, p4, (int)(0)); + } + } + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathBezierQuadraticCurveTo(@this, p2, p3, numSegments); + } + } + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathBezierQuadraticCurveTo(@this, p2, p3, (int)(0)); + } + } + public unsafe void PathClear() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathClear(@this); + } + } + public unsafe void PathFillConvex(uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathFillConvex(@this, col); + } + } + public unsafe void PathLineTo(Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathLineTo(@this, pos); + } + } + public unsafe void PathLineToMergeDuplicate(Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathLineToMergeDuplicate(@this, pos); + } + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathRect(@this, rectMin, rectMax, rounding, flags); + } + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathRect(@this, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathRect(@this, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathRect(@this, rectMin, rectMax, (float)(0.0f), flags); + } + } + public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathStroke(@this, col, flags, thickness); + } + } + public unsafe void PathStroke(uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathStroke(@this, col, flags, (float)(1.0f)); + } + } + public unsafe void PathStroke(uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathStroke(@this, col, (ImDrawFlags)(0), (float)(1.0f)); + } + } + public unsafe void PathStroke(uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PathStroke(@this, col, (ImDrawFlags)(0), thickness); + } + } + public unsafe void PopClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PopClipRect(@this); + } + } + public unsafe void PopTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PopTextureID(@this); + } + } + public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimQuadUV(@this, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + } + public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimRect(@this, a, b, col); + } + } + public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimRectUV(@this, a, b, uvA, uvB, col); + } + } + public unsafe void PrimReserve(int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimReserve(@this, idxCount, vtxCount); + } + } + public unsafe void PrimUnreserve(int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimUnreserve(@this, idxCount, vtxCount); + } + } + public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimVtx(@this, pos, uv, col); + } + } + public unsafe void PrimWriteIdx(ushort idx) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimWriteIdx(@this, idx); + } + } + public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PrimWriteVtx(@this, pos, uv, col); + } + } + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PushClipRect(@this, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + } + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PushClipRect(@this, clipRectMin, clipRectMax, (byte)(0)); + } + } + public unsafe void PushClipRectFullScreen() + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PushClipRectFullScreen(@this); + } + } + public unsafe void PushTextureID(ImTextureID textureId) + { + fixed (ImDrawList* @this = &this) + { + ImGuiNative.PushTextureID(@this, textureId); + } + } +} +// DISCARDED: AddText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs new file mode 100644 index 000000000..c223bc08b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs @@ -0,0 +1,444 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListPtr +{ + public unsafe int _CalcCircleAutoSegmentCount(float radius) + { + int ret = ImGuiNative._CalcCircleAutoSegmentCount(Handle, radius); + return ret; + } + public unsafe void _ClearFreeMemory() + { + ImGuiNative._ClearFreeMemory(Handle); + } + public unsafe void _OnChangedClipRect() + { + ImGuiNative._OnChangedClipRect(Handle); + } + public unsafe void _OnChangedTextureID() + { + ImGuiNative._OnChangedTextureID(Handle); + } + public unsafe void _OnChangedVtxOffset() + { + ImGuiNative._OnChangedVtxOffset(Handle); + } + public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + ImGuiNative._PathArcToFastEx(Handle, center, radius, aMinSample, aMaxSample, aStep); + } + public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGuiNative._PathArcToN(Handle, center, radius, aMin, aMax, numSegments); + } + public unsafe void _PopUnusedDrawCmd() + { + ImGuiNative._PopUnusedDrawCmd(Handle); + } + public unsafe void _ResetForNewFrame() + { + ImGuiNative._ResetForNewFrame(Handle); + } + public unsafe void _TryMergeDrawCmds() + { + ImGuiNative._TryMergeDrawCmds(Handle); + } + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + ImGuiNative.AddBezierCubic(Handle, p1, p2, p3, p4, col, thickness, numSegments); + } + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGuiNative.AddBezierCubic(Handle, p1, p2, p3, p4, col, thickness, (int)(0)); + } + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + ImGuiNative.AddBezierQuadratic(Handle, p1, p2, p3, col, thickness, numSegments); + } + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGuiNative.AddBezierQuadratic(Handle, p1, p2, p3, col, thickness, (int)(0)); + } + public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) + { + ImGuiNative.AddCallback(Handle, callback, callbackData); + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGuiNative.AddCircle(Handle, center, radius, col, numSegments, thickness); + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddCircle(Handle, center, radius, col, numSegments, (float)(1.0f)); + } + public unsafe void AddCircle(Vector2 center, float radius, uint col) + { + ImGuiNative.AddCircle(Handle, center, radius, col, (int)(0), (float)(1.0f)); + } + public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) + { + ImGuiNative.AddCircle(Handle, center, radius, col, (int)(0), thickness); + } + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddCircleFilled(Handle, center, radius, col, numSegments); + } + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) + { + ImGuiNative.AddCircleFilled(Handle, center, radius, col, (int)(0)); + } + public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) + { + ImGuiNative.AddConvexPolyFilled(Handle, points, numPoints, col); + } + public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddConvexPolyFilled(Handle, (Vector2*)ppoints, numPoints, col); + } + } + public unsafe void AddDrawCmd() + { + ImGuiNative.AddDrawCmd(Handle); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGuiNative.AddImageQuad(Handle, 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)); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddImageQuad(Handle, 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); + } + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddImageRounded(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + ImGuiNative.AddImageRounded(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) + { + ImGuiNative.AddLine(Handle, p1, p2, col, thickness); + } + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) + { + ImGuiNative.AddLine(Handle, p1, p2, col, (float)(1.0f)); + } + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGuiNative.AddNgon(Handle, center, radius, col, numSegments, thickness); + } + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddNgon(Handle, center, radius, col, numSegments, (float)(1.0f)); + } + public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) + { + ImGuiNative.AddNgonFilled(Handle, center, radius, col, numSegments); + } + public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddPolyline(Handle, points, numPoints, col, flags, thickness); + } + public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (Vector2* ppoints = &points) + { + ImGuiNative.AddPolyline(Handle, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGuiNative.AddQuad(Handle, p1, p2, p3, p4, col, thickness); + } + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddQuad(Handle, p1, p2, p3, p4, col, (float)(1.0f)); + } + public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGuiNative.AddQuadFilled(Handle, p1, p2, p3, p4, col); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, flags, thickness); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, rounding, flags); + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) + { + ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, (float)(0.0f), flags); + } + public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + ImGuiNative.AddRectFilledMultiColor(Handle, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGuiNative.AddTriangle(Handle, p1, p2, p3, col, thickness); + } + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGuiNative.AddTriangle(Handle, p1, p2, p3, col, (float)(1.0f)); + } + public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGuiNative.AddTriangleFilled(Handle, p1, p2, p3, col); + } + public unsafe void ChannelsMerge() + { + ImGuiNative.ChannelsMerge(Handle); + } + public unsafe void ChannelsSetCurrent(int n) + { + ImGuiNative.ChannelsSetCurrent(Handle, n); + } + public unsafe void ChannelsSplit(int count) + { + ImGuiNative.ChannelsSplit(Handle, count); + } + public unsafe ImDrawListPtr CloneOutput() + { + ImDrawListPtr ret = ImGuiNative.CloneOutput(Handle); + return ret; + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGuiNative.PathArcTo(Handle, center, radius, aMin, aMax, numSegments); + } + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) + { + ImGuiNative.PathArcTo(Handle, center, radius, aMin, aMax, (int)(0)); + } + public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + ImGuiNative.PathArcToFast(Handle, center, radius, aMinOf12, aMaxOf12); + } + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + ImGuiNative.PathBezierCubicCurveTo(Handle, p2, p3, p4, numSegments); + } + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGuiNative.PathBezierCubicCurveTo(Handle, p2, p3, p4, (int)(0)); + } + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) + { + ImGuiNative.PathBezierQuadraticCurveTo(Handle, p2, p3, numSegments); + } + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) + { + ImGuiNative.PathBezierQuadraticCurveTo(Handle, p2, p3, (int)(0)); + } + public unsafe void PathClear() + { + ImGuiNative.PathClear(Handle); + } + public unsafe void PathFillConvex(uint col) + { + ImGuiNative.PathFillConvex(Handle, col); + } + public unsafe void PathLineTo(Vector2 pos) + { + ImGuiNative.PathLineTo(Handle, pos); + } + public unsafe void PathLineToMergeDuplicate(Vector2 pos) + { + ImGuiNative.PathLineToMergeDuplicate(Handle, pos); + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + ImGuiNative.PathRect(Handle, rectMin, rectMax, rounding, flags); + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) + { + ImGuiNative.PathRect(Handle, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) + { + ImGuiNative.PathRect(Handle, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + ImGuiNative.PathRect(Handle, rectMin, rectMax, (float)(0.0f), flags); + } + public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) + { + ImGuiNative.PathStroke(Handle, col, flags, thickness); + } + public unsafe void PathStroke(uint col, ImDrawFlags flags) + { + ImGuiNative.PathStroke(Handle, col, flags, (float)(1.0f)); + } + public unsafe void PathStroke(uint col) + { + ImGuiNative.PathStroke(Handle, col, (ImDrawFlags)(0), (float)(1.0f)); + } + public unsafe void PathStroke(uint col, float thickness) + { + ImGuiNative.PathStroke(Handle, col, (ImDrawFlags)(0), thickness); + } + public unsafe void PopClipRect() + { + ImGuiNative.PopClipRect(Handle); + } + public unsafe void PopTextureID() + { + ImGuiNative.PopTextureID(Handle); + } + public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + ImGuiNative.PrimQuadUV(Handle, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) + { + ImGuiNative.PrimRect(Handle, a, b, col); + } + public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + ImGuiNative.PrimRectUV(Handle, a, b, uvA, uvB, col); + } + public unsafe void PrimReserve(int idxCount, int vtxCount) + { + ImGuiNative.PrimReserve(Handle, idxCount, vtxCount); + } + public unsafe void PrimUnreserve(int idxCount, int vtxCount) + { + ImGuiNative.PrimUnreserve(Handle, idxCount, vtxCount); + } + public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) + { + ImGuiNative.PrimVtx(Handle, pos, uv, col); + } + public unsafe void PrimWriteIdx(ushort idx) + { + ImGuiNative.PrimWriteIdx(Handle, idx); + } + public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) + { + ImGuiNative.PrimWriteVtx(Handle, pos, uv, col); + } + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + ImGuiNative.PushClipRect(Handle, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) + { + ImGuiNative.PushClipRect(Handle, clipRectMin, clipRectMax, (byte)(0)); + } + public unsafe void PushClipRectFullScreen() + { + ImGuiNative.PushClipRectFullScreen(Handle); + } + public unsafe void PushTextureID(ImTextureID textureId) + { + ImGuiNative.PushTextureID(Handle, textureId); + } +} +// DISCARDED: AddText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs new file mode 100644 index 000000000..8c9554aee --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListPtrPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs new file mode 100644 index 000000000..8597857d6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListSharedData +{ + public unsafe void Destroy() + { + fixed (ImDrawListSharedData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs new file mode 100644 index 000000000..8fcb7fb71 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListSharedDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs new file mode 100644 index 000000000..4d34de6a1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs @@ -0,0 +1,87 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListSplitter +{ + public unsafe void Clear() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void ClearFreeMemory() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.ClearFreeMemory(@this); + } + } + public unsafe void Destroy() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void Merge(ImDrawListPtr drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.Merge(@this, drawList); + } + } + public unsafe void Merge(ref ImDrawList drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Merge(@this, (ImDrawList*)pdrawList); + } + } + } + public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.SetCurrentChannel(@this, drawList, channelIdx); + } + } + public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.SetCurrentChannel(@this, (ImDrawList*)pdrawList, channelIdx); + } + } + } + public unsafe void Split(ImDrawListPtr drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGuiNative.Split(@this, drawList, count); + } + } + public unsafe void Split(ref ImDrawList drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Split(@this, (ImDrawList*)pdrawList, count); + } + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs new file mode 100644 index 000000000..f2fc439cf --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs @@ -0,0 +1,60 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawListSplitterPtr +{ + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void ClearFreeMemory() + { + ImGuiNative.ClearFreeMemory(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void Merge(ImDrawListPtr drawList) + { + ImGuiNative.Merge(Handle, drawList); + } + public unsafe void Merge(ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Merge(Handle, (ImDrawList*)pdrawList); + } + } + public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) + { + ImGuiNative.SetCurrentChannel(Handle, drawList, channelIdx); + } + public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.SetCurrentChannel(Handle, (ImDrawList*)pdrawList, channelIdx); + } + } + public unsafe void Split(ImDrawListPtr drawList, int count) + { + ImGuiNative.Split(Handle, drawList, count); + } + public unsafe void Split(ref ImDrawList drawList, int count) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.Split(Handle, (ImDrawList*)pdrawList, count); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs new file mode 100644 index 000000000..c5ef76d3e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawVert +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs new file mode 100644 index 000000000..58993c324 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawVertPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs new file mode 100644 index 000000000..8c55dc024 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs @@ -0,0 +1,177 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFont +{ + public unsafe void AddGlyph(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* @this = &this) + { + ImGuiNative.AddGlyph(@this, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + public unsafe void AddGlyph(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* @this = &this) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + ImGuiNative.AddGlyph(@this, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + } + public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.AddKerningPair(@this, leftC, rightC, distanceAdjustment); + } + } + public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.AddRemapChar(@this, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + } + public unsafe void AddRemapChar(ushort dst, ushort src) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.AddRemapChar(@this, dst, src, (byte)(1)); + } + } + public unsafe void BuildLookupTable() + { + fixed (ImFont* @this = &this) + { + ImGuiNative.BuildLookupTable(@this); + } + } + public unsafe void ClearOutputData() + { + fixed (ImFont* @this = &this) + { + ImGuiNative.ClearOutputData(@this); + } + } + public unsafe void Destroy() + { + fixed (ImFont* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe ImFontGlyph* FindGlyph(ushort c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGuiNative.FindGlyph(@this, c); + return ret; + } + } + public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGuiNative.FindGlyphNoFallback(@this, c); + return ret; + } + } + public unsafe float GetCharAdvance(ushort c) + { + fixed (ImFont* @this = &this) + { + float ret = ImGuiNative.GetCharAdvance(@this, c); + return ret; + } + } + public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) + { + fixed (ImFont* @this = &this) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPair(@this, leftC, rightC); + return ret; + } + } + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) + { + fixed (ImFont* @this = &this) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, rightCInfo); + return ret; + } + } + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFont* @this = &this) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + } + public unsafe void GrowIndex(int newSize) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.GrowIndex(@this, newSize); + } + } + public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) + { + fixed (ImFont* @this = &this) + { + byte ret = ImGuiNative.IsGlyphRangeUnused(@this, cBegin, cLast); + return ret != 0; + } + } + public unsafe bool IsLoaded() + { + fixed (ImFont* @this = &this) + { + byte ret = ImGuiNative.IsLoaded(@this); + return ret != 0; + } + } + public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.RenderChar(@this, drawList, size, pos, col, c); + } + } + public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.RenderChar(@this, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + } + public unsafe void SetGlyphVisible(ushort c, bool visible) + { + fixed (ImFont* @this = &this) + { + ImGuiNative.SetGlyphVisible(@this, c, visible ? (byte)1 : (byte)0); + } + } +} +// DISCARDED: CalcWordWrapPositionA +// DISCARDED: CalcWordWrapPositionAS +// DISCARDED: GetDebugName +// DISCARDED: GetDebugNameS +// DISCARDED: RenderText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs new file mode 100644 index 000000000..1a12ee615 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs @@ -0,0 +1,1832 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlas +{ + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(@this, font, id, width, height, advanceX, offset); + return ret; + } + } + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(@this, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(@this, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + } + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(@this, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + } + public unsafe int AddCustomRectRegular(int width, int height) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGuiNative.AddCustomRectRegular(@this, width, height); + return ret; + } + } + public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGuiNative.AddFont(@this, fontCfg); + return ret; + } + } + public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(@this, fontCfg); + return ret; + } + } + public unsafe ImFontPtr AddFontDefault() + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(@this, (ImFontConfig*)(default)); + return ret; + } + } + public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + public unsafe bool Build() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGuiNative.Build(@this); + return ret != 0; + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.CalcCustomRectUV(@this, rect, outUvMin, outUvMax); + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(@this, rect, (Vector2*)poutUvMin, outUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(@this, rect, outUvMin, (Vector2*)poutUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(@this, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + } + public unsafe void Clear() + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void ClearFonts() + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.ClearFonts(@this); + } + } + public unsafe void ClearInputData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.ClearInputData(@this); + } + } + public unsafe void ClearTexData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.ClearTexData(@this); + } + } + public unsafe void ClearTexID(ImTextureID nullId) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.ClearTexID(@this, nullId); + } + } + public unsafe void Destroy() + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontAtlasCustomRect* ret = ImGuiNative.GetCustomRectByIndex(@this, index); + return ret; + } + } + public unsafe ushort* GetGlyphRangesChineseFull() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesCyrillic() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesDefault() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesDefault(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesJapanese() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesJapanese(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesKorean() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesKorean(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesThai() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesThai(@this); + return ret; + } + } + public unsafe ushort* GetGlyphRangesVietnamese() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(@this); + return ret; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + public unsafe bool IsBuilt() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGuiNative.IsBuilt(@this); + return ret != 0; + } + } + public unsafe void SetTexID(int textureIndex, ImTextureID id) + { + fixed (ImFontAtlas* @this = &this) + { + ImGuiNative.SetTexID(@this, textureIndex, id); + } + } +} +// DISCARDED: AddFontFromFileTTF +// DISCARDED: AddFontFromMemoryCompressedBase85TTF +// DISCARDED: AddFontFromMemoryCompressedTTF +// DISCARDED: AddFontFromMemoryTTF + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs new file mode 100644 index 000000000..8d1a7dcbc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs @@ -0,0 +1,30 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlasCustomRect +{ + public unsafe void Destroy() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool IsPacked() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + byte ret = ImGuiNative.IsPacked(@this); + return ret != 0; + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs new file mode 100644 index 000000000..d97bc58f5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs @@ -0,0 +1,24 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlasCustomRectPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool IsPacked() + { + byte ret = ImGuiNative.IsPacked(Handle); + return ret != 0; + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs new file mode 100644 index 000000000..59693e908 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs @@ -0,0 +1,1412 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlasPtr +{ + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, font, id, width, height, advanceX, offset); + return ret; + } + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + public unsafe int AddCustomRectRegular(int width, int height) + { + int ret = ImGuiNative.AddCustomRectRegular(Handle, width, height); + return ret; + } + public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont(Handle, fontCfg); + return ret; + } + public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFont(Handle, (ImFontConfig*)pfontCfg); + return ret; + } + } + public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, fontCfg); + return ret; + } + public unsafe ImFontPtr AddFontDefault() + { + ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, (ImFontConfig*)(default)); + return ret; + } + public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, (ImFontConfig*)pfontCfg); + return ret; + } + } + public unsafe bool Build() + { + byte ret = ImGuiNative.Build(Handle); + return ret != 0; + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + ImGuiNative.CalcCustomRectUV(Handle, rect, outUvMin, outUvMax); + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(Handle, rect, (Vector2*)poutUvMin, outUvMax); + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(Handle, rect, outUvMin, (Vector2*)poutUvMax); + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(Handle, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void ClearFonts() + { + ImGuiNative.ClearFonts(Handle); + } + public unsafe void ClearInputData() + { + ImGuiNative.ClearInputData(Handle); + } + public unsafe void ClearTexData() + { + ImGuiNative.ClearTexData(Handle); + } + public unsafe void ClearTexID(ImTextureID nullId) + { + ImGuiNative.ClearTexID(Handle, nullId); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) + { + ImFontAtlasCustomRect* ret = ImGuiNative.GetCustomRectByIndex(Handle, index); + return ret; + } + public unsafe ushort* GetGlyphRangesChineseFull() + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() + { + ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesCyrillic() + { + ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesDefault() + { + ushort* ret = ImGuiNative.GetGlyphRangesDefault(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesJapanese() + { + ushort* ret = ImGuiNative.GetGlyphRangesJapanese(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesKorean() + { + ushort* ret = ImGuiNative.GetGlyphRangesKorean(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesThai() + { + ushort* ret = ImGuiNative.GetGlyphRangesThai(Handle); + return ret; + } + public unsafe ushort* GetGlyphRangesVietnamese() + { + ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(Handle); + return ret; + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe bool GetMouseCursorTexData(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 = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsAlpha8(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) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(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) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsAlpha8(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) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(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) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsAlpha8(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) + { + ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + public unsafe void GetTexDataAsRGBA32(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) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(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) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + public unsafe void GetTexDataAsRGBA32(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) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(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) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + public unsafe void GetTexDataAsRGBA32(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) + { + ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + public unsafe bool IsBuilt() + { + byte ret = ImGuiNative.IsBuilt(Handle); + return ret != 0; + } + public unsafe void SetTexID(int textureIndex, ImTextureID id) + { + ImGuiNative.SetTexID(Handle, textureIndex, id); + } +} +// DISCARDED: AddFontFromFileTTF +// DISCARDED: AddFontFromMemoryCompressedBase85TTF +// DISCARDED: AddFontFromMemoryCompressedTTF +// DISCARDED: AddFontFromMemoryTTF + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs new file mode 100644 index 000000000..f1a9c60b9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlasTexture +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs new file mode 100644 index 000000000..c5c47f397 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlasTexturePtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs new file mode 100644 index 000000000..0c3c861a3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontBuilderIO +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs new file mode 100644 index 000000000..b61f898d3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontBuilderIOPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs new file mode 100644 index 000000000..1fb980e53 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontConfig +{ + public unsafe void Destroy() + { + fixed (ImFontConfig* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs new file mode 100644 index 000000000..876572b6f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontConfigPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs new file mode 100644 index 000000000..ff4cea6bc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyph +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs new file mode 100644 index 000000000..e53137687 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphHotData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs new file mode 100644 index 000000000..953f577dc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphHotDataPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs new file mode 100644 index 000000000..41675a226 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs new file mode 100644 index 000000000..a3c2002ac --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs @@ -0,0 +1,76 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphRangesBuilder +{ + public unsafe void AddChar(ushort c) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.AddChar(@this, c); + } + } + public unsafe void AddRanges(ushort* ranges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.AddRanges(@this, ranges); + } + } + public unsafe void BuildRanges(ImVector* outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.BuildRanges(@this, outRanges); + } + } + public unsafe void BuildRanges(ref ImVector outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGuiNative.BuildRanges(@this, (ImVector*)poutRanges); + } + } + } + public unsafe void Clear() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void Destroy() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool GetBit(nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte ret = ImGuiNative.GetBit(@this, n); + return ret != 0; + } + } + public unsafe void SetBit(nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGuiNative.SetBit(@this, n); + } + } +} +// DISCARDED: AddText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs new file mode 100644 index 000000000..3f8022784 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs @@ -0,0 +1,52 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphRangesBuilderPtr +{ + public unsafe void AddChar(ushort c) + { + ImGuiNative.AddChar(Handle, c); + } + public unsafe void AddRanges(ushort* ranges) + { + ImGuiNative.AddRanges(Handle, ranges); + } + public unsafe void BuildRanges(ImVector* outRanges) + { + ImGuiNative.BuildRanges(Handle, outRanges); + } + public unsafe void BuildRanges(ref ImVector outRanges) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGuiNative.BuildRanges(Handle, (ImVector*)poutRanges); + } + } + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool GetBit(nuint n) + { + byte ret = ImGuiNative.GetBit(Handle, n); + return ret != 0; + } + public unsafe void SetBit(nuint n) + { + ImGuiNative.SetBit(Handle, n); + } +} +// DISCARDED: AddText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs new file mode 100644 index 000000000..73de0e645 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontKerningPair +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs new file mode 100644 index 000000000..2dffccc80 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontKerningPairPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs new file mode 100644 index 000000000..9d542a898 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs @@ -0,0 +1,117 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontPtr +{ + public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + ImGuiNative.AddGlyph(Handle, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + public unsafe void AddGlyph(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) + { + ImGuiNative.AddGlyph(Handle, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) + { + ImGuiNative.AddKerningPair(Handle, leftC, rightC, distanceAdjustment); + } + public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) + { + ImGuiNative.AddRemapChar(Handle, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + public unsafe void AddRemapChar(ushort dst, ushort src) + { + ImGuiNative.AddRemapChar(Handle, dst, src, (byte)(1)); + } + public unsafe void BuildLookupTable() + { + ImGuiNative.BuildLookupTable(Handle); + } + public unsafe void ClearOutputData() + { + ImGuiNative.ClearOutputData(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe ImFontGlyph* FindGlyph(ushort c) + { + ImFontGlyph* ret = ImGuiNative.FindGlyph(Handle, c); + return ret; + } + public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) + { + ImFontGlyph* ret = ImGuiNative.FindGlyphNoFallback(Handle, c); + return ret; + } + public unsafe float GetCharAdvance(ushort c) + { + float ret = ImGuiNative.GetCharAdvance(Handle, c); + return ret; + } + public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPair(Handle, leftC, rightC); + return ret; + } + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(Handle, leftC, rightCInfo); + return ret; + } + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(Handle, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + public unsafe void GrowIndex(int newSize) + { + ImGuiNative.GrowIndex(Handle, newSize); + } + public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) + { + byte ret = ImGuiNative.IsGlyphRangeUnused(Handle, cBegin, cLast); + return ret != 0; + } + public unsafe bool IsLoaded() + { + byte ret = ImGuiNative.IsLoaded(Handle); + return ret != 0; + } + public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + ImGuiNative.RenderChar(Handle, drawList, size, pos, col, c); + } + public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiNative.RenderChar(Handle, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + public unsafe void SetGlyphVisible(ushort c, bool visible) + { + ImGuiNative.SetGlyphVisible(Handle, c, visible ? (byte)1 : (byte)0); + } +} +// DISCARDED: CalcWordWrapPositionA +// DISCARDED: CalcWordWrapPositionAS +// DISCARDED: GetDebugName +// DISCARDED: GetDebugNameS +// DISCARDED: RenderText + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs new file mode 100644 index 000000000..0d9157625 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontPtrPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs new file mode 100644 index 000000000..c3d04868b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiColorMod +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs new file mode 100644 index 000000000..0cc2105e8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiColorModPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs new file mode 100644 index 000000000..7d9cded64 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiComboPreviewData +{ + public unsafe void Destroy() + { + fixed (ImGuiComboPreviewData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs new file mode 100644 index 000000000..b45eab464 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiComboPreviewDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs new file mode 100644 index 000000000..6a05d5ec0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiContext +{ + public unsafe void Destroy() + { + fixed (ImGuiContext* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs new file mode 100644 index 000000000..a79d07809 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiContextHook +{ + public unsafe void Destroy() + { + fixed (ImGuiContextHook* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs new file mode 100644 index 000000000..eba827aa0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiContextHookPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs new file mode 100644 index 000000000..38a28dc68 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiContextPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs new file mode 100644 index 000000000..a5d205c3f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDataTypeInfo +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs new file mode 100644 index 000000000..3eb3ddcfb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDataTypeInfoPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs new file mode 100644 index 000000000..c336dd27d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDataTypeTempStorage +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs new file mode 100644 index 000000000..119bbefe7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockContext +{ + public unsafe void Destroy() + { + fixed (ImGuiDockContext* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs new file mode 100644 index 000000000..24a48b92c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockContextPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs new file mode 100644 index 000000000..04df4a137 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockNode +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs new file mode 100644 index 000000000..911f24ea5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockNodePtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs new file mode 100644 index 000000000..5ca7f3e60 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockNodeSettings +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs new file mode 100644 index 000000000..96ca0ee7b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockNodeSettingsPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs new file mode 100644 index 000000000..096e78834 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockRequest +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs new file mode 100644 index 000000000..5bc7f97d3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiDockRequestPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs new file mode 100644 index 000000000..1a560f690 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiGroupData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs new file mode 100644 index 000000000..b0dfc1a2f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiGroupDataPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs new file mode 100644 index 000000000..a3550bc65 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs @@ -0,0 +1,109 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiIO +{ + public unsafe void AddFocusEvent(bool focused) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddFocusEvent(@this, focused ? (byte)1 : (byte)0); + } + } + public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddKeyAnalogEvent(@this, key, down ? (byte)1 : (byte)0, v); + } + } + public unsafe void AddKeyEvent(ImGuiKey key, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddKeyEvent(@this, key, down ? (byte)1 : (byte)0); + } + } + public unsafe void AddMouseButtonEvent(int button, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddMouseButtonEvent(@this, button, down ? (byte)1 : (byte)0); + } + } + public unsafe void AddMousePosEvent(float x, float y) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddMousePosEvent(@this, x, y); + } + } + public unsafe void AddMouseViewportEvent(uint id) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddMouseViewportEvent(@this, id); + } + } + public unsafe void AddMouseWheelEvent(float whX, float whY) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.AddMouseWheelEvent(@this, whX, whY); + } + } + public unsafe void ClearInputCharacters() + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.ClearInputCharacters(@this); + } + } + public unsafe void ClearInputKeys() + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.ClearInputKeys(@this); + } + } + public unsafe void Destroy() + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void SetAppAcceptingEvents(bool acceptingEvents) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.SetAppAcceptingEvents(@this, acceptingEvents ? (byte)1 : (byte)0); + } + } + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.SetKeyEventNativeData(@this, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + } + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) + { + fixed (ImGuiIO* @this = &this) + { + ImGuiNative.SetKeyEventNativeData(@this, key, nativeKeycode, nativeScancode, (int)(-1)); + } + } +} +// DISCARDED: AddInputCharacter +// DISCARDED: AddInputCharactersUTF8 +// DISCARDED: AddInputCharacterUTF16 + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs new file mode 100644 index 000000000..2507869fe --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs @@ -0,0 +1,70 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiIOPtr +{ + public unsafe void AddFocusEvent(bool focused) + { + ImGuiNative.AddFocusEvent(Handle, focused ? (byte)1 : (byte)0); + } + public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) + { + ImGuiNative.AddKeyAnalogEvent(Handle, key, down ? (byte)1 : (byte)0, v); + } + public unsafe void AddKeyEvent(ImGuiKey key, bool down) + { + ImGuiNative.AddKeyEvent(Handle, key, down ? (byte)1 : (byte)0); + } + public unsafe void AddMouseButtonEvent(int button, bool down) + { + ImGuiNative.AddMouseButtonEvent(Handle, button, down ? (byte)1 : (byte)0); + } + public unsafe void AddMousePosEvent(float x, float y) + { + ImGuiNative.AddMousePosEvent(Handle, x, y); + } + public unsafe void AddMouseViewportEvent(uint id) + { + ImGuiNative.AddMouseViewportEvent(Handle, id); + } + public unsafe void AddMouseWheelEvent(float whX, float whY) + { + ImGuiNative.AddMouseWheelEvent(Handle, whX, whY); + } + public unsafe void ClearInputCharacters() + { + ImGuiNative.ClearInputCharacters(Handle); + } + public unsafe void ClearInputKeys() + { + ImGuiNative.ClearInputKeys(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void SetAppAcceptingEvents(bool acceptingEvents) + { + ImGuiNative.SetAppAcceptingEvents(Handle, acceptingEvents ? (byte)1 : (byte)0); + } + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) + { + ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, (int)(-1)); + } +} +// DISCARDED: AddInputCharacter +// DISCARDED: AddInputCharactersUTF8 +// DISCARDED: AddInputCharacterUTF16 + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs new file mode 100644 index 000000000..3bbc1ad3c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEvent +{ + public unsafe void Destroy() + { + fixed (ImGuiInputEvent* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs new file mode 100644 index 000000000..b1c379d0a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventAppFocused +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs new file mode 100644 index 000000000..e25f754f7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventKey +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs new file mode 100644 index 000000000..23395aa53 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventMouseButton +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs new file mode 100644 index 000000000..9e5566e2b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventMousePos +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs new file mode 100644 index 000000000..c37c19925 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventMouseViewport +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs new file mode 100644 index 000000000..c5f5c29a5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventMouseWheel +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs new file mode 100644 index 000000000..c4469ec26 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs new file mode 100644 index 000000000..4a7d398e5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputEventText +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs new file mode 100644 index 000000000..511749bcb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs @@ -0,0 +1,52 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputTextCallbackData +{ + public unsafe void ClearSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGuiNative.ClearSelection(@this); + } + } + public unsafe void DeleteChars(int pos, int bytesCount) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGuiNative.DeleteChars(@this, pos, bytesCount); + } + } + public unsafe void Destroy() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool HasSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte ret = ImGuiNative.HasSelection(@this); + return ret != 0; + } + } + public unsafe void SelectAll() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGuiNative.SelectAll(@this); + } + } +} +// DISCARDED: InsertChars + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs new file mode 100644 index 000000000..849c60ef4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs @@ -0,0 +1,37 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputTextCallbackDataPtr +{ + public unsafe void ClearSelection() + { + ImGuiNative.ClearSelection(Handle); + } + public unsafe void DeleteChars(int pos, int bytesCount) + { + ImGuiNative.DeleteChars(Handle, pos, bytesCount); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool HasSelection() + { + byte ret = ImGuiNative.HasSelection(Handle); + return ret != 0; + } + public unsafe void SelectAll() + { + ImGuiNative.SelectAll(Handle); + } +} +// DISCARDED: InsertChars + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs new file mode 100644 index 000000000..cf0f2a122 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputTextState +{ + public unsafe void Destroy() + { + fixed (ImGuiInputTextState* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs new file mode 100644 index 000000000..0d1acd6cb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputTextStatePtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs new file mode 100644 index 000000000..5c5ca435d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiKeyData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs new file mode 100644 index 000000000..5d4a4ac3e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiKeyDataPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs new file mode 100644 index 000000000..3963c3867 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiLastItemData +{ + public unsafe void Destroy() + { + fixed (ImGuiLastItemData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs new file mode 100644 index 000000000..03cd3669e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiLastItemDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs new file mode 100644 index 000000000..2cb71e3ee --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs @@ -0,0 +1,58 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipper +{ + public unsafe void Begin(int itemsCount, float itemsHeight) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGuiNative.Begin(@this, itemsCount, itemsHeight); + } + } + public unsafe void Begin(int itemsCount) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGuiNative.Begin(@this, itemsCount, (float)(-1.0f)); + } + } + public unsafe void Destroy() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void End() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGuiNative.End(@this); + } + } + public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGuiNative.ForceDisplayRangeByIndices(@this, itemMin, itemMax); + } + } + public unsafe bool Step() + { + fixed (ImGuiListClipper* @this = &this) + { + byte ret = ImGuiNative.Step(@this); + return ret != 0; + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs new file mode 100644 index 000000000..09b338fc3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipperData +{ + public unsafe void Destroy() + { + fixed (ImGuiListClipperData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs new file mode 100644 index 000000000..6b1fe9aef --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipperDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs new file mode 100644 index 000000000..eda25fa58 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs @@ -0,0 +1,40 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipperPtr +{ + public unsafe void Begin(int itemsCount, float itemsHeight) + { + ImGuiNative.Begin(Handle, itemsCount, itemsHeight); + } + public unsafe void Begin(int itemsCount) + { + ImGuiNative.Begin(Handle, itemsCount, (float)(-1.0f)); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void End() + { + ImGuiNative.End(Handle); + } + public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) + { + ImGuiNative.ForceDisplayRangeByIndices(Handle, itemMin, itemMax); + } + public unsafe bool Step() + { + byte ret = ImGuiNative.Step(Handle); + return ret != 0; + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs new file mode 100644 index 000000000..ece752c83 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipperRange +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs new file mode 100644 index 000000000..439a14f3b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiListClipperRangePtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs new file mode 100644 index 000000000..9ad4d2bae --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiMenuColumns +{ + public unsafe void Destroy() + { + fixed (ImGuiMenuColumns* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs new file mode 100644 index 000000000..717db2fdf --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiMenuColumnsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs new file mode 100644 index 000000000..876fb9871 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiMetricsConfig +{ + public unsafe void Destroy() + { + fixed (ImGuiMetricsConfig* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs new file mode 100644 index 000000000..5d4278371 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiMetricsConfigPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs new file mode 100644 index 000000000..757bc3a0a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNavItemData +{ + public unsafe void Destroy() + { + fixed (ImGuiNavItemData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs new file mode 100644 index 000000000..8581bb0a2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNavItemDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs new file mode 100644 index 000000000..9d3da6e5e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNextItemData +{ + public unsafe void Destroy() + { + fixed (ImGuiNextItemData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs new file mode 100644 index 000000000..d0fefe239 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNextItemDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs new file mode 100644 index 000000000..c38fb2e3a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNextWindowData +{ + public unsafe void Destroy() + { + fixed (ImGuiNextWindowData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs new file mode 100644 index 000000000..505aca780 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiNextWindowDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs new file mode 100644 index 000000000..5d65d8b6a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOldColumnData +{ + public unsafe void Destroy() + { + fixed (ImGuiOldColumnData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs new file mode 100644 index 000000000..a9eb6cfc0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOldColumnDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs new file mode 100644 index 000000000..458d36981 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOldColumns +{ + public unsafe void Destroy() + { + fixed (ImGuiOldColumns* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs new file mode 100644 index 000000000..8868ed7d5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOldColumnsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs new file mode 100644 index 000000000..d27329c85 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOnceUponAFrame +{ + public unsafe void Destroy() + { + fixed (ImGuiOnceUponAFrame* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs new file mode 100644 index 000000000..494d48914 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiOnceUponAFramePtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs new file mode 100644 index 000000000..a2db21747 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs @@ -0,0 +1,46 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPayload +{ + public unsafe void Clear() + { + fixed (ImGuiPayload* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void Destroy() + { + fixed (ImGuiPayload* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool IsDelivery() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGuiNative.IsDelivery(@this); + return ret != 0; + } + } + public unsafe bool IsPreview() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGuiNative.IsPreview(@this); + return ret != 0; + } + } +} +// DISCARDED: IsDataType + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs new file mode 100644 index 000000000..5dec38288 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs @@ -0,0 +1,34 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPayloadPtr +{ + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool IsDelivery() + { + byte ret = ImGuiNative.IsDelivery(Handle); + return ret != 0; + } + public unsafe bool IsPreview() + { + byte ret = ImGuiNative.IsPreview(Handle); + return ret != 0; + } +} +// DISCARDED: IsDataType + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs new file mode 100644 index 000000000..d0ab67a8e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformIO +{ + public unsafe void Destroy() + { + fixed (ImGuiPlatformIO* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs new file mode 100644 index 000000000..6614e1532 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformIOPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs new file mode 100644 index 000000000..7bcbdd907 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformImeData +{ + public unsafe void Destroy() + { + fixed (ImGuiPlatformImeData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs new file mode 100644 index 000000000..a330f293b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformImeDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs new file mode 100644 index 000000000..2b87b2c13 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformMonitor +{ + public unsafe void Destroy() + { + fixed (ImGuiPlatformMonitor* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs new file mode 100644 index 000000000..74dbb3b52 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPlatformMonitorPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs new file mode 100644 index 000000000..04ba205e8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPopupData +{ + public unsafe void Destroy() + { + fixed (ImGuiPopupData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs new file mode 100644 index 000000000..5ca38dad4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPopupDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs new file mode 100644 index 000000000..08ba47b06 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPtrOrIndex +{ + public unsafe void Destroy() + { + fixed (ImGuiPtrOrIndex* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs new file mode 100644 index 000000000..bd65f96f5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPtrOrIndexPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs new file mode 100644 index 000000000..a67ecb5e3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiSettingsHandler +{ + public unsafe void Destroy() + { + fixed (ImGuiSettingsHandler* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs new file mode 100644 index 000000000..84d3e3e2b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiSettingsHandlerPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs new file mode 100644 index 000000000..e7d06ab7d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiShrinkWidthItem +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs new file mode 100644 index 000000000..e6fa465f9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiShrinkWidthItemPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs new file mode 100644 index 000000000..aa3b74526 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiSizeCallbackData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs new file mode 100644 index 000000000..4d5b8d9cd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackLevelInfo +{ + public unsafe void Destroy() + { + fixed (ImGuiStackLevelInfo* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs new file mode 100644 index 000000000..9a2c46bc3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackLevelInfoPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs new file mode 100644 index 000000000..700515c21 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackSizes +{ + public unsafe void Destroy() + { + fixed (ImGuiStackSizes* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs new file mode 100644 index 000000000..08ae5176c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackSizesPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs new file mode 100644 index 000000000..240cb054b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackTool +{ + public unsafe void Destroy() + { + fixed (ImGuiStackTool* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs new file mode 100644 index 000000000..6c412fe2a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStackToolPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs new file mode 100644 index 000000000..dd22118e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs @@ -0,0 +1,124 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStorage +{ + public unsafe void BuildSortByKey() + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.BuildSortByKey(@this); + } + } + public unsafe void Clear() + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe bool GetBool(uint key, bool defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGuiNative.GetBool(@this, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + } + public unsafe bool GetBool(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGuiNative.GetBool(@this, key, (byte)(0)); + return ret != 0; + } + } + public unsafe float GetFloat(uint key, float defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGuiNative.GetFloat(@this, key, defaultVal); + return ret; + } + } + public unsafe float GetFloat(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGuiNative.GetFloat(@this, key, (float)(0.0f)); + return ret; + } + } + public unsafe int GetInt(uint key, int defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGuiNative.GetInt(@this, key, defaultVal); + return ret; + } + } + public unsafe int GetInt(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGuiNative.GetInt(@this, key, (int)(0)); + return ret; + } + } + public unsafe void* GetVoidPtr(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + void* ret = ImGuiNative.GetVoidPtr(@this, key); + return ret; + } + } + public unsafe void SetAllInt(int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.SetAllInt(@this, val); + } + } + public unsafe void SetBool(uint key, bool val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.SetBool(@this, key, val ? (byte)1 : (byte)0); + } + } + public unsafe void SetFloat(uint key, float val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.SetFloat(@this, key, val); + } + } + public unsafe void SetInt(uint key, int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.SetInt(@this, key, val); + } + } + public unsafe void SetVoidPtr(uint key, void* val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGuiNative.SetVoidPtr(@this, key, val); + } + } +} +// DISCARDED: GetBoolRef +// DISCARDED: GetFloatRef +// DISCARDED: GetIntRef +// DISCARDED: GetVoidPtrRef + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs new file mode 100644 index 000000000..7db41165a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStoragePair +{ + public unsafe void Destroy() + { + fixed (ImGuiStoragePair* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs new file mode 100644 index 000000000..bf5d4c320 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStoragePairPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs new file mode 100644 index 000000000..8ce6b61e9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs @@ -0,0 +1,82 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStoragePtr +{ + public unsafe void BuildSortByKey() + { + ImGuiNative.BuildSortByKey(Handle); + } + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe bool GetBool(uint key, bool defaultVal) + { + byte ret = ImGuiNative.GetBool(Handle, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + public unsafe bool GetBool(uint key) + { + byte ret = ImGuiNative.GetBool(Handle, key, (byte)(0)); + return ret != 0; + } + public unsafe float GetFloat(uint key, float defaultVal) + { + float ret = ImGuiNative.GetFloat(Handle, key, defaultVal); + return ret; + } + public unsafe float GetFloat(uint key) + { + float ret = ImGuiNative.GetFloat(Handle, key, (float)(0.0f)); + return ret; + } + public unsafe int GetInt(uint key, int defaultVal) + { + int ret = ImGuiNative.GetInt(Handle, key, defaultVal); + return ret; + } + public unsafe int GetInt(uint key) + { + int ret = ImGuiNative.GetInt(Handle, key, (int)(0)); + return ret; + } + public unsafe void* GetVoidPtr(uint key) + { + void* ret = ImGuiNative.GetVoidPtr(Handle, key); + return ret; + } + public unsafe void SetAllInt(int val) + { + ImGuiNative.SetAllInt(Handle, val); + } + public unsafe void SetBool(uint key, bool val) + { + ImGuiNative.SetBool(Handle, key, val ? (byte)1 : (byte)0); + } + public unsafe void SetFloat(uint key, float val) + { + ImGuiNative.SetFloat(Handle, key, val); + } + public unsafe void SetInt(uint key, int val) + { + ImGuiNative.SetInt(Handle, key, val); + } + public unsafe void SetVoidPtr(uint key, void* val) + { + ImGuiNative.SetVoidPtr(Handle, key, val); + } +} +// DISCARDED: GetBoolRef +// DISCARDED: GetFloatRef +// DISCARDED: GetIntRef +// DISCARDED: GetVoidPtrRef + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs new file mode 100644 index 000000000..f2c16041a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs @@ -0,0 +1,29 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStyle +{ + public unsafe void Destroy() + { + fixed (ImGuiStyle* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe void ScaleAllSizes(float scaleFactor) + { + fixed (ImGuiStyle* @this = &this) + { + ImGuiNative.ScaleAllSizes(@this, scaleFactor); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs new file mode 100644 index 000000000..f73cbbd84 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStyleMod +{ + public unsafe void Destroy() + { + fixed (ImGuiStyleMod* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs new file mode 100644 index 000000000..b67acd04b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStyleModPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs new file mode 100644 index 000000000..5690d0872 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs @@ -0,0 +1,23 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStylePtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe void ScaleAllSizes(float scaleFactor) + { + ImGuiNative.ScaleAllSizes(Handle, scaleFactor); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs new file mode 100644 index 000000000..aad4b15a0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTabBar +{ + public unsafe void Destroy() + { + fixed (ImGuiTabBar* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs new file mode 100644 index 000000000..35a11571f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTabBarPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs new file mode 100644 index 000000000..d9be5cde2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTabItem +{ + public unsafe void Destroy() + { + fixed (ImGuiTabItem* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs new file mode 100644 index 000000000..03f032ae7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTabItemPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs new file mode 100644 index 000000000..c1e238064 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTable +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs new file mode 100644 index 000000000..e3e33c821 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableCellData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs new file mode 100644 index 000000000..7ed59568a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableCellDataPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs new file mode 100644 index 000000000..1d8a792a9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumn +{ + public unsafe void Destroy() + { + fixed (ImGuiTableColumn* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs new file mode 100644 index 000000000..b58c6bdfd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs new file mode 100644 index 000000000..4bdf2514c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnSettings +{ + public unsafe void Destroy() + { + fixed (ImGuiTableColumnSettings* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs new file mode 100644 index 000000000..f3eebda34 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnSettingsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs new file mode 100644 index 000000000..560c0479f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnSortSpecs +{ + public unsafe void Destroy() + { + fixed (ImGuiTableColumnSortSpecs* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs new file mode 100644 index 000000000..a5474f37a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnSortSpecsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs new file mode 100644 index 000000000..33246fa87 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableColumnsSettings +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs new file mode 100644 index 000000000..6be8125aa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableInstanceData +{ + public unsafe void Destroy() + { + fixed (ImGuiTableInstanceData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs new file mode 100644 index 000000000..2f0f44bb9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableInstanceDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs new file mode 100644 index 000000000..91f0569ee --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTablePtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs new file mode 100644 index 000000000..8f750cf54 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableSettings +{ + public unsafe void Destroy() + { + fixed (ImGuiTableSettings* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs new file mode 100644 index 000000000..00cf67d70 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableSettingsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs new file mode 100644 index 000000000..e32e44949 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableSortSpecs +{ + public unsafe void Destroy() + { + fixed (ImGuiTableSortSpecs* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs new file mode 100644 index 000000000..3ae71e11e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableSortSpecsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs new file mode 100644 index 000000000..fa2715038 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableTempData +{ + public unsafe void Destroy() + { + fixed (ImGuiTableTempData* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs new file mode 100644 index 000000000..e950701b3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTableTempDataPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs new file mode 100644 index 000000000..902472c02 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs @@ -0,0 +1,61 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextBuffer +{ + public unsafe void clear() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGuiNative.clear(@this); + } + } + public unsafe void Destroy() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool empty() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte ret = ImGuiNative.empty(@this); + return ret != 0; + } + } + public unsafe void reserve(int capacity) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGuiNative.reserve(@this, capacity); + } + } + public unsafe int size() + { + fixed (ImGuiTextBuffer* @this = &this) + { + int ret = ImGuiNative.size(@this); + return ret; + } + } +} +// DISCARDED: append +// DISCARDED: appendf +// DISCARDED: appendfv +// DISCARDED: begin +// DISCARDED: beginS +// DISCARDED: c_str +// DISCARDED: c_strS +// DISCARDED: end +// DISCARDED: endS + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs new file mode 100644 index 000000000..f1a03482c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs @@ -0,0 +1,46 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextBufferPtr +{ + public unsafe void clear() + { + ImGuiNative.clear(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool empty() + { + byte ret = ImGuiNative.empty(Handle); + return ret != 0; + } + public unsafe void reserve(int capacity) + { + ImGuiNative.reserve(Handle, capacity); + } + public unsafe int size() + { + int ret = ImGuiNative.size(Handle); + return ret; + } +} +// DISCARDED: append +// DISCARDED: appendf +// DISCARDED: appendfv +// DISCARDED: begin +// DISCARDED: beginS +// DISCARDED: c_str +// DISCARDED: c_strS +// DISCARDED: end +// DISCARDED: endS + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs new file mode 100644 index 000000000..6acd610ff --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs @@ -0,0 +1,46 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextFilter +{ + public unsafe void Build() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGuiNative.Build(@this); + } + } + public unsafe void Clear() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGuiNative.Clear(@this); + } + } + public unsafe void Destroy() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool IsActive() + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGuiNative.IsActive(@this); + return ret != 0; + } + } +} +// DISCARDED: Draw +// DISCARDED: PassFilter + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs new file mode 100644 index 000000000..2470cb0f6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs @@ -0,0 +1,34 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextFilterPtr +{ + public unsafe void Build() + { + ImGuiNative.Build(Handle); + } + public unsafe void Clear() + { + ImGuiNative.Clear(Handle); + } + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool IsActive() + { + byte ret = ImGuiNative.IsActive(Handle); + return ret != 0; + } +} +// DISCARDED: Draw +// DISCARDED: PassFilter + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs new file mode 100644 index 000000000..0902d8254 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs @@ -0,0 +1,47 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextRange +{ + public unsafe void Destroy() + { + fixed (ImGuiTextRange* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } + public unsafe bool empty() + { + fixed (ImGuiTextRange* @this = &this) + { + byte ret = ImGuiNative.empty(@this); + return ret != 0; + } + } + public unsafe void split(byte separator, ImVector* output) + { + fixed (ImGuiTextRange* @this = &this) + { + ImGuiNative.split(@this, separator, output); + } + } + public unsafe void split(byte separator, ref ImVector output) + { + fixed (ImGuiTextRange* @this = &this) + { + fixed (ImVector* poutput = &output) + { + ImGuiNative.split(@this, separator, (ImVector*)poutput); + } + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs new file mode 100644 index 000000000..8dfdc67f3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs @@ -0,0 +1,35 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextRangePtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } + public unsafe bool empty() + { + byte ret = ImGuiNative.empty(Handle); + return ret != 0; + } + public unsafe void split(byte separator, ImVector* output) + { + ImGuiNative.split(Handle, separator, output); + } + public unsafe void split(byte separator, ref ImVector output) + { + fixed (ImVector* poutput = &output) + { + ImGuiNative.split(Handle, separator, (ImVector*)poutput); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs new file mode 100644 index 000000000..ee2165eb6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewport +{ + public unsafe void Destroy() + { + fixed (ImGuiViewport* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs new file mode 100644 index 000000000..f505fd913 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewportP +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs new file mode 100644 index 000000000..23d081673 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewportPPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs new file mode 100644 index 000000000..100e5a6aa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewportPPtrPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs new file mode 100644 index 000000000..9b4e99572 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewportPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs new file mode 100644 index 000000000..932dd2fb7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiViewportPtrPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs new file mode 100644 index 000000000..6a14c7f67 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindow +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs new file mode 100644 index 000000000..8d5c64f6a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowClass +{ + public unsafe void Destroy() + { + fixed (ImGuiWindowClass* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs new file mode 100644 index 000000000..87c8f02fc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowClassPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs new file mode 100644 index 000000000..769cbe51a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowDockStyle +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs new file mode 100644 index 000000000..ab091e3e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs new file mode 100644 index 000000000..4ea675d77 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowPtrPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs new file mode 100644 index 000000000..0dd1f8ab2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowSettings +{ + public unsafe void Destroy() + { + fixed (ImGuiWindowSettings* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs new file mode 100644 index 000000000..6b646a3b6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowSettingsPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs new file mode 100644 index 000000000..5487fa658 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowStackData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs new file mode 100644 index 000000000..3260ca47f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowStackDataPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs new file mode 100644 index 000000000..a9c99fb2f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindowTempData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs new file mode 100644 index 000000000..cec5bc071 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImPoolImGuiTabBar +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs new file mode 100644 index 000000000..d4880dc8c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImPoolImGuiTable +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs new file mode 100644 index 000000000..1277235a8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImRect +{ + public unsafe void Destroy() + { + fixed (ImRect* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs new file mode 100644 index 000000000..c15383bb2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImRectPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs new file mode 100644 index 000000000..a712caff8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImSpanImGuiTableCellData +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs new file mode 100644 index 000000000..e20ac0509 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImSpanImGuiTableColumn +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs new file mode 100644 index 000000000..446a9134a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImSpanImGuiTableColumnIdx +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs new file mode 100644 index 000000000..3b5377e44 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImVec1 +{ + public unsafe void Destroy() + { + fixed (ImVec1* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs new file mode 100644 index 000000000..78d47bf9d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImVec1Ptr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs new file mode 100644 index 000000000..c110b6293 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs @@ -0,0 +1,22 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImVec2Ih +{ + public unsafe void Destroy() + { + fixed (ImVec2Ih* @this = &this) + { + ImGuiNative.Destroy(@this); + } + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs new file mode 100644 index 000000000..6f7759bdb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs @@ -0,0 +1,19 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImVec2IhPtr +{ + public unsafe void Destroy() + { + ImGuiNative.Destroy(Handle); + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs new file mode 100644 index 000000000..a2012943e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct STBTexteditState +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs new file mode 100644 index 000000000..d561cc218 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct StbTexteditRow +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs new file mode 100644 index 000000000..b38b7476b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct StbUndoRecord +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs new file mode 100644 index 000000000..138d0ed24 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct StbUndoState +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs new file mode 100644 index 000000000..8da0c50b0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct StbttPackContext +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs new file mode 100644 index 000000000..142106368 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs @@ -0,0 +1,15 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct StbttPackContextPtr +{ +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs new file mode 100644 index 000000000..7c50bc4bc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs @@ -0,0 +1,128 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +/* Functions.000.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.001.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.002.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.003.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.004.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.005.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.006.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.007.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.008.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.009.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.010.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.011.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.012.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.013.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.014.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.015.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} +/* Functions.016.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGuiP + { + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs new file mode 100644 index 000000000..08148462e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs @@ -0,0 +1,6597 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGuiP +{ + public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImGuiPNative.ImQsort(baseValue, count, sizeOfElement, compareFunc); + } + public static uint ImAlphaBlendColors(uint colA, uint colB) + { + uint ret = ImGuiPNative.ImAlphaBlendColors(colA, colB); + return ret; + } + public static bool ImIsPowerOfTwo(int v) + { + byte ret = ImGuiPNative.ImIsPowerOfTwo(v); + return ret != 0; + } + public static bool ImIsPowerOfTwo(ulong v) + { + byte ret = ImGuiPNative.ImIsPowerOfTwo(v); + return ret != 0; + } + public static int ImUpperPowerOfTwo(int v) + { + int ret = ImGuiPNative.ImUpperPowerOfTwo(v); + return ret; + } + public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) + { + ushort* ret = ImGuiPNative.ImStrbolW(bufMidLine, bufBegin); + return ret; + } + public static bool ImCharIsBlankA(byte c) + { + byte ret = ImGuiPNative.ImCharIsBlankA(c); + return ret != 0; + } + public static bool ImCharIsBlankW(uint c) + { + byte ret = ImGuiPNative.ImCharIsBlankW(c); + return ret != 0; + } + public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) + { + int ret = ImGuiPNative.ImTextCountUtf8BytesFromStr(inText, inTextEnd); + return ret; + } + public static bool ImFileClose(ImFileHandle file) + { + byte ret = ImGuiPNative.ImFileClose(file); + return ret != 0; + } + public static ulong ImFileGetSize(ImFileHandle file) + { + ulong ret = ImGuiPNative.ImFileGetSize(file); + return ret; + } + public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImGuiPNative.ImFileRead(data, size, count, file); + return ret; + } + public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImGuiPNative.ImFileWrite(data, size, count, file); + return ret; + } + public static float ImPow(float x, float y) + { + float ret = ImGuiPNative.ImPow(x, y); + return ret; + } + public static double ImPow(double x, double y) + { + double ret = ImGuiPNative.ImPow(x, y); + return ret; + } + public static float ImLog(float x) + { + float ret = ImGuiPNative.ImLog(x); + return ret; + } + public static double ImLog(double x) + { + double ret = ImGuiPNative.ImLog(x); + return ret; + } + public static int ImAbs(int x) + { + int ret = ImGuiPNative.ImAbs(x); + return ret; + } + public static float ImAbs(float x) + { + float ret = ImGuiPNative.ImAbs(x); + return ret; + } + public static double ImAbs(double x) + { + double ret = ImGuiPNative.ImAbs(x); + return ret; + } + public static float ImSign(float x) + { + float ret = ImGuiPNative.ImSign(x); + return ret; + } + public static double ImSign(double x) + { + double ret = ImGuiPNative.ImSign(x); + return ret; + } + public static float ImRsqrt(float x) + { + float ret = ImGuiPNative.ImRsqrt(x); + return ret; + } + public static double ImRsqrt(double x) + { + double ret = ImGuiPNative.ImRsqrt(x); + return ret; + } + public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImGuiPNative.ImMin(&ret, lhs, rhs); + return ret; + } + public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImGuiPNative.ImMin(pOut, lhs, rhs); + } + public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImMin((Vector2*)ppOut, lhs, rhs); + } + } + public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImGuiPNative.ImMax(&ret, lhs, rhs); + return ret; + } + public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImGuiPNative.ImMax(pOut, lhs, rhs); + } + public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImMax((Vector2*)ppOut, lhs, rhs); + } + } + public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) + { + Vector2 ret; + ImGuiPNative.ImClamp(&ret, v, mn, mx); + return ret; + } + public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + ImGuiPNative.ImClamp(pOut, v, mn, mx); + } + public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImClamp((Vector2*)ppOut, v, mn, mx); + } + } + public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) + { + Vector2 ret; + ImGuiPNative.ImLerp(&ret, a, b, t); + return ret; + } + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) + { + ImGuiPNative.ImLerp(pOut, a, b, t); + } + public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImLerp((Vector2*)ppOut, a, b, t); + } + } + public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) + { + Vector2 ret; + ImGuiPNative.ImLerp(&ret, a, b, t); + return ret; + } + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) + { + ImGuiPNative.ImLerp(pOut, a, b, t); + } + public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImLerp((Vector2*)ppOut, a, b, t); + } + } + public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) + { + Vector4 ret; + ImGuiPNative.ImLerp(&ret, a, b, t); + return ret; + } + public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) + { + ImGuiPNative.ImLerp(pOut, a, b, t); + } + public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) + { + fixed (Vector4* ppOut = &pOut) + { + ImGuiPNative.ImLerp((Vector4*)ppOut, a, b, t); + } + } + public static float ImSaturate(float f) + { + float ret = ImGuiPNative.ImSaturate(f); + return ret; + } + public static float ImLengthSqr(Vector2 lhs) + { + float ret = ImGuiPNative.ImLengthSqr(lhs); + return ret; + } + public static float ImLengthSqr(Vector4 lhs) + { + float ret = ImGuiPNative.ImLengthSqr(lhs); + return ret; + } + public static float ImInvLength(Vector2 lhs, float failValue) + { + float ret = ImGuiPNative.ImInvLength(lhs, failValue); + return ret; + } + public static float ImFloor(float f) + { + float ret = ImGuiPNative.ImFloor(f); + return ret; + } + public static Vector2 ImFloor(Vector2 v) + { + Vector2 ret; + ImGuiPNative.ImFloor(&ret, v); + return ret; + } + public static void ImFloor(Vector2* pOut, Vector2 v) + { + ImGuiPNative.ImFloor(pOut, v); + } + public static void ImFloor(ref Vector2 pOut, Vector2 v) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImFloor((Vector2*)ppOut, v); + } + } + public static float ImFloorSigned(float f) + { + float ret = ImGuiPNative.ImFloorSigned(f); + return ret; + } + public static Vector2 ImFloorSigned(Vector2 v) + { + Vector2 ret; + ImGuiPNative.ImFloorSigned(&ret, v); + return ret; + } + public static void ImFloorSigned(Vector2* pOut, Vector2 v) + { + ImGuiPNative.ImFloorSigned(pOut, v); + } + public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImFloorSigned((Vector2*)ppOut, v); + } + } + public static int ImModPositive(int a, int b) + { + int ret = ImGuiPNative.ImModPositive(a, b); + return ret; + } + public static float ImDot(Vector2 a, Vector2 b) + { + float ret = ImGuiPNative.ImDot(a, b); + return ret; + } + public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) + { + Vector2 ret; + ImGuiPNative.ImRotate(&ret, v, cosA, sinA); + return ret; + } + public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) + { + ImGuiPNative.ImRotate(pOut, v, cosA, sinA); + } + public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImRotate((Vector2*)ppOut, v, cosA, sinA); + } + } + public static float ImLinearSweep(float current, float target, float speed) + { + float ret = ImGuiPNative.ImLinearSweep(current, target, speed); + return ret; + } + public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImGuiPNative.ImMul(&ret, lhs, rhs); + return ret; + } + public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImGuiPNative.ImMul(pOut, lhs, rhs); + } + public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImMul((Vector2*)ppOut, lhs, rhs); + } + } + public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) + { + byte ret = ImGuiPNative.ImIsFloatAboveGuaranteedIntegerPrecision(f); + return ret != 0; + } + public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + Vector2 ret; + ImGuiPNative.ImBezierCubicCalc(&ret, p1, p2, p3, p4, t); + return ret; + } + public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + ImGuiPNative.ImBezierCubicCalc(pOut, p1, p2, p3, p4, t); + } + public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImBezierCubicCalc((Vector2*)ppOut, p1, p2, p3, p4, t); + } + } + public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + Vector2 ret; + ImGuiPNative.ImBezierCubicClosestPoint(&ret, p1, p2, p3, p4, p, numSegments); + return ret; + } + public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + ImGuiPNative.ImBezierCubicClosestPoint(pOut, p1, p2, p3, p4, p, numSegments); + } + public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImBezierCubicClosestPoint((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); + } + } + public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + Vector2 ret; + ImGuiPNative.ImBezierCubicClosestPointCasteljau(&ret, p1, p2, p3, p4, p, tessTol); + return ret; + } + public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + ImGuiPNative.ImBezierCubicClosestPointCasteljau(pOut, p1, p2, p3, p4, p, tessTol); + } + public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImBezierCubicClosestPointCasteljau((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); + } + } + public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + Vector2 ret; + ImGuiPNative.ImBezierQuadraticCalc(&ret, p1, p2, p3, t); + return ret; + } + public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + ImGuiPNative.ImBezierQuadraticCalc(pOut, p1, p2, p3, t); + } + public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImBezierQuadraticCalc((Vector2*)ppOut, p1, p2, p3, t); + } + } + public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) + { + Vector2 ret; + ImGuiPNative.ImLineClosestPoint(&ret, a, b, p); + return ret; + } + public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) + { + ImGuiPNative.ImLineClosestPoint(pOut, a, b, p); + } + public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImLineClosestPoint((Vector2*)ppOut, a, b, p); + } + } + public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + byte ret = ImGuiPNative.ImTriangleContainsPoint(a, b, c, p); + return ret != 0; + } + public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + Vector2 ret; + ImGuiPNative.ImTriangleClosestPoint(&ret, a, b, c, p); + return ret; + } + public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + ImGuiPNative.ImTriangleClosestPoint(pOut, a, b, c, p); + } + public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ImTriangleClosestPoint((Vector2*)ppOut, a, b, c, p); + } + } + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, outV, outW); + } + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) + { + fixed (float* poutU = &outU) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, outV, outW); + } + } + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) + { + fixed (float* poutV = &outV) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, (float*)poutV, outW); + } + } + 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) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, (float*)poutV, outW); + } + } + } + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) + { + fixed (float* poutW = &outW) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, outV, (float*)poutW); + } + } + 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) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, outV, (float*)poutW); + } + } + } + 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) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, (float*)poutV, (float*)poutW); + } + } + } + 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) + { + ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); + } + } + } + } + public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) + { + float ret = ImGuiPNative.ImTriangleArea(a, b, c); + return ret; + } + public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) + { + ImGuiDir ret = ImGuiPNative.ImGetDirQuadrantFromDelta(dx, dy); + return ret; + } + public static ImVec1Ptr ImVec1() + { + ImVec1Ptr ret = ImGuiPNative.ImVec1(); + return ret; + } + public static ImVec1Ptr ImVec1(float x) + { + ImVec1Ptr ret = ImGuiPNative.ImVec1(x); + return ret; + } + public static ImVec2IhPtr ImVec2ih() + { + ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(); + return ret; + } + public static ImVec2IhPtr ImVec2ih(short x, short y) + { + ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(x, y); + return ret; + } + public static ImVec2IhPtr ImVec2ih(Vector2 rhs) + { + ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(rhs); + return ret; + } + public static ImRectPtr ImRect() + { + ImRectPtr ret = ImGuiPNative.ImRect(); + return ret; + } + public static ImRectPtr ImRect(Vector2 min, Vector2 max) + { + ImRectPtr ret = ImGuiPNative.ImRect(min, max); + return ret; + } + public static ImRectPtr ImRect(Vector4 v) + { + ImRectPtr ret = ImGuiPNative.ImRect(v); + return ret; + } + public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) + { + ImRectPtr ret = ImGuiPNative.ImRect(x1, y1, x2, y2); + return ret; + } + public static Vector2 GetCenter(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetCenter(&ret, self); + return ret; + } + public static void GetCenter(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetCenter(pOut, self); + } + public static void GetCenter(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetCenter((Vector2*)ppOut, self); + } + } + public static Vector2 GetCenter(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetCenter(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetCenter(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetCenter(pOut, (ImRect*)pself); + } + } + public static void GetCenter(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetCenter((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static Vector2 GetSize(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetSize(&ret, self); + return ret; + } + public static void GetSize(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetSize(pOut, self); + } + public static void GetSize(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetSize((Vector2*)ppOut, self); + } + } + public static Vector2 GetSize(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetSize(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetSize(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetSize(pOut, (ImRect*)pself); + } + } + public static void GetSize(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetSize((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static float GetWidth(this ImRectPtr self) + { + float ret = ImGuiPNative.GetWidth(self); + return ret; + } + public static float GetWidth(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = ImGuiPNative.GetWidth((ImRect*)pself); + return ret; + } + } + public static float GetHeight(this ImRectPtr self) + { + float ret = ImGuiPNative.GetHeight(self); + return ret; + } + public static float GetHeight(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = ImGuiPNative.GetHeight((ImRect*)pself); + return ret; + } + } + public static float GetArea(this ImRectPtr self) + { + float ret = ImGuiPNative.GetArea(self); + return ret; + } + public static float GetArea(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = ImGuiPNative.GetArea((ImRect*)pself); + return ret; + } + } + public static Vector2 GetTL(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetTL(&ret, self); + return ret; + } + public static void GetTL(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetTL(pOut, self); + } + public static void GetTL(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetTL((Vector2*)ppOut, self); + } + } + public static Vector2 GetTL(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetTL(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetTL(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetTL(pOut, (ImRect*)pself); + } + } + public static void GetTL(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetTL((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static Vector2 GetTR(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetTR(&ret, self); + return ret; + } + public static void GetTR(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetTR(pOut, self); + } + public static void GetTR(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetTR((Vector2*)ppOut, self); + } + } + public static Vector2 GetTR(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetTR(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetTR(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetTR(pOut, (ImRect*)pself); + } + } + public static void GetTR(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetTR((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static Vector2 GetBL(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetBL(&ret, self); + return ret; + } + public static void GetBL(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetBL(pOut, self); + } + public static void GetBL(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetBL((Vector2*)ppOut, self); + } + } + public static Vector2 GetBL(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetBL(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetBL(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetBL(pOut, (ImRect*)pself); + } + } + public static void GetBL(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetBL((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static Vector2 GetBR(this ImRectPtr self) + { + Vector2 ret; + ImGuiPNative.GetBR(&ret, self); + return ret; + } + public static void GetBR(Vector2* pOut, ImRectPtr self) + { + ImGuiPNative.GetBR(pOut, self); + } + public static void GetBR(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetBR((Vector2*)ppOut, self); + } + } + public static Vector2 GetBR(this scoped in ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + ImGuiPNative.GetBR(&ret, (ImRect*)pself); + return ret; + } + } + public static void GetBR(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetBR(pOut, (ImRect*)pself); + } + } + public static void GetBR(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.GetBR((Vector2*)ppOut, (ImRect*)pself); + } + } + } + public static bool Contains(this ImRectPtr self, Vector2 p) + { + byte ret = ImGuiPNative.Contains(self, p); + return ret != 0; + } + public static bool Contains(this ref ImRect self, Vector2 p) + { + fixed (ImRect* pself = &self) + { + byte ret = ImGuiPNative.Contains((ImRect*)pself, p); + return ret != 0; + } + } + public static bool Contains(this ImRectPtr self, ImRect r) + { + byte ret = ImGuiPNative.Contains(self, r); + return ret != 0; + } + public static bool Contains(this ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + byte ret = ImGuiPNative.Contains((ImRect*)pself, r); + return ret != 0; + } + } + public static bool Overlaps(this ImRectPtr self, ImRect r) + { + byte ret = ImGuiPNative.Overlaps(self, r); + return ret != 0; + } + public static bool Overlaps(this ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + byte ret = ImGuiPNative.Overlaps((ImRect*)pself, r); + return ret != 0; + } + } + public static void Add(this ImRectPtr self, Vector2 p) + { + ImGuiPNative.Add(self, p); + } + public static void Add(this ref ImRect self, Vector2 p) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Add((ImRect*)pself, p); + } + } + public static void Add(this ImRectPtr self, ImRect r) + { + ImGuiPNative.Add(self, r); + } + public static void Add(this ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Add((ImRect*)pself, r); + } + } + public static void Expand(this ImRectPtr self, float amount) + { + ImGuiPNative.Expand(self, amount); + } + public static void Expand(this ref ImRect self, float amount) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Expand((ImRect*)pself, amount); + } + } + public static void Expand(this ImRectPtr self, Vector2 amount) + { + ImGuiPNative.Expand(self, amount); + } + public static void Expand(this ref ImRect self, Vector2 amount) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Expand((ImRect*)pself, amount); + } + } + public static void Translate(this ImRectPtr self, Vector2 d) + { + ImGuiPNative.Translate(self, d); + } + public static void Translate(this ref ImRect self, Vector2 d) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Translate((ImRect*)pself, d); + } + } + public static void TranslateX(this ImRectPtr self, float dx) + { + ImGuiPNative.TranslateX(self, dx); + } + public static void TranslateX(this ref ImRect self, float dx) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.TranslateX((ImRect*)pself, dx); + } + } + public static void TranslateY(this ImRectPtr self, float dy) + { + ImGuiPNative.TranslateY(self, dy); + } + public static void TranslateY(this ref ImRect self, float dy) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.TranslateY((ImRect*)pself, dy); + } + } + public static void ClipWith(this ImRectPtr self, ImRect r) + { + ImGuiPNative.ClipWith(self, r); + } + public static void ClipWith(this ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.ClipWith((ImRect*)pself, r); + } + } + public static void ClipWithFull(this ImRectPtr self, ImRect r) + { + ImGuiPNative.ClipWithFull(self, r); + } + public static void ClipWithFull(this ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.ClipWithFull((ImRect*)pself, r); + } + } + public static void Floor(this ImRectPtr self) + { + ImGuiPNative.Floor(self); + } + public static void Floor(this ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.Floor((ImRect*)pself); + } + } + public static bool IsInverted(this ImRectPtr self) + { + byte ret = ImGuiPNative.IsInverted(self); + return ret != 0; + } + public static bool IsInverted(this ref ImRect self) + { + fixed (ImRect* pself = &self) + { + byte ret = ImGuiPNative.IsInverted((ImRect*)pself); + return ret != 0; + } + } + public static Vector4 ToVec4(this ImRectPtr self) + { + Vector4 ret; + ImGuiPNative.ToVec4(&ret, self); + return ret; + } + public static void ToVec4(Vector4* pOut, ImRectPtr self) + { + ImGuiPNative.ToVec4(pOut, self); + } + public static void ToVec4(ref Vector4 pOut, ImRectPtr self) + { + fixed (Vector4* ppOut = &pOut) + { + ImGuiPNative.ToVec4((Vector4*)ppOut, self); + } + } + public static Vector4 ToVec4(this ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector4 ret; + ImGuiPNative.ToVec4(&ret, (ImRect*)pself); + return ret; + } + } + public static void ToVec4(Vector4* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.ToVec4(pOut, (ImRect*)pself); + } + } + public static void ToVec4(ref Vector4 pOut, ref ImRect self) + { + fixed (Vector4* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ImGuiPNative.ToVec4((Vector4*)ppOut, (ImRect*)pself); + } + } + } + public static bool ImBitArrayTestBit(uint* arr, int n) + { + byte ret = ImGuiPNative.ImBitArrayTestBit(arr, n); + return ret != 0; + } + public static void ImBitArrayClearBit(uint* arr, int n) + { + ImGuiPNative.ImBitArrayClearBit(arr, n); + } + public static void ImBitArraySetBit(uint* arr, int n) + { + ImGuiPNative.ImBitArraySetBit(arr, n); + } + public static void ImBitArraySetBitRange(uint* arr, int n, int n2) + { + ImGuiPNative.ImBitArraySetBitRange(arr, n, n2); + } + public static void Create(this ImBitVectorPtr self, int sz) + { + ImGuiPNative.Create(self, sz); + } + public static void Create(this ref ImBitVector self, int sz) + { + fixed (ImBitVector* pself = &self) + { + ImGuiPNative.Create((ImBitVector*)pself, sz); + } + } + public static void Clear(this ImBitVectorPtr self) + { + ImGuiPNative.Clear(self); + } + public static void Clear(this ref ImBitVector self) + { + fixed (ImBitVector* pself = &self) + { + ImGuiPNative.Clear((ImBitVector*)pself); + } + } + public static void Clear(this ImDrawDataBuilderPtr self) + { + ImGuiPNative.Clear(self); + } + public static void Clear(this ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + ImGuiPNative.Clear((ImDrawDataBuilder*)pself); + } + } + public static void Clear(this ImGuiNavItemDataPtr self) + { + ImGuiPNative.Clear(self); + } + public static void Clear(this ref ImGuiNavItemData self) + { + fixed (ImGuiNavItemData* pself = &self) + { + ImGuiPNative.Clear((ImGuiNavItemData*)pself); + } + } + public static bool TestBit(this ImBitVectorPtr self, int n) + { + byte ret = ImGuiPNative.TestBit(self, n); + return ret != 0; + } + public static bool TestBit(this ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + byte ret = ImGuiPNative.TestBit((ImBitVector*)pself, n); + return ret != 0; + } + } + public static void SetBit(this ImBitVectorPtr self, int n) + { + ImGuiPNative.SetBit(self, n); + } + public static void SetBit(this ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + ImGuiPNative.SetBit((ImBitVector*)pself, n); + } + } + public static void ClearBit(this ImBitVectorPtr self, int n) + { + ImGuiPNative.ClearBit(self, n); + } + public static void ClearBit(this ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + ImGuiPNative.ClearBit((ImBitVector*)pself, n); + } + } + public static ImDrawListSharedDataPtr ImDrawListSharedData() + { + ImDrawListSharedDataPtr ret = ImGuiPNative.ImDrawListSharedData(); + return ret; + } + public static void SetCircleTessellationMaxError(this ImDrawListSharedDataPtr self, float maxError) + { + ImGuiPNative.SetCircleTessellationMaxError(self, maxError); + } + public static void SetCircleTessellationMaxError(this ref ImDrawListSharedData self, float maxError) + { + fixed (ImDrawListSharedData* pself = &self) + { + ImGuiPNative.SetCircleTessellationMaxError((ImDrawListSharedData*)pself, maxError); + } + } + public static void ClearFreeMemory(this ImDrawDataBuilderPtr self) + { + ImGuiPNative.ClearFreeMemory(self); + } + public static void ClearFreeMemory(this ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + ImGuiPNative.ClearFreeMemory((ImDrawDataBuilder*)pself); + } + } + public static void ClearFreeMemory(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.ClearFreeMemory(self); + } + public static void ClearFreeMemory(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.ClearFreeMemory((ImGuiInputTextState*)pself); + } + } + public static int GetDrawListCount(this ImDrawDataBuilderPtr self) + { + int ret = ImGuiPNative.GetDrawListCount(self); + return ret; + } + public static int GetDrawListCount(this scoped in ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + int ret = ImGuiPNative.GetDrawListCount((ImDrawDataBuilder*)pself); + return ret; + } + } + public static void FlattenIntoSingleLayer(this ImDrawDataBuilderPtr self) + { + ImGuiPNative.FlattenIntoSingleLayer(self); + } + public static void FlattenIntoSingleLayer(this ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + ImGuiPNative.FlattenIntoSingleLayer((ImDrawDataBuilder*)pself); + } + } + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, int v) + { + ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); + return ret; + } + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, float v) + { + ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); + return ret; + } + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) + { + ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); + return ret; + } + public static ImGuiComboPreviewDataPtr ImGuiComboPreviewData() + { + ImGuiComboPreviewDataPtr ret = ImGuiPNative.ImGuiComboPreviewData(); + return ret; + } + public static ImGuiMenuColumnsPtr ImGuiMenuColumns() + { + ImGuiMenuColumnsPtr ret = ImGuiPNative.ImGuiMenuColumns(); + return ret; + } + public static void Update(this ImGuiMenuColumnsPtr self, float spacing, bool windowReappearing) + { + ImGuiPNative.Update(self, spacing, windowReappearing ? (byte)1 : (byte)0); + } + public static void Update(this ref ImGuiMenuColumns self, float spacing, bool windowReappearing) + { + fixed (ImGuiMenuColumns* pself = &self) + { + ImGuiPNative.Update((ImGuiMenuColumns*)pself, spacing, windowReappearing ? (byte)1 : (byte)0); + } + } + public static float DeclColumns(this ImGuiMenuColumnsPtr self, float wIcon, float wLabel, float wShortcut, float wMark) + { + float ret = ImGuiPNative.DeclColumns(self, wIcon, wLabel, wShortcut, wMark); + return ret; + } + public static float DeclColumns(this ref ImGuiMenuColumns self, float wIcon, float wLabel, float wShortcut, float wMark) + { + fixed (ImGuiMenuColumns* pself = &self) + { + float ret = ImGuiPNative.DeclColumns((ImGuiMenuColumns*)pself, wIcon, wLabel, wShortcut, wMark); + return ret; + } + } + public static void CalcNextTotalWidth(this ImGuiMenuColumnsPtr self, bool updateOffsets) + { + ImGuiPNative.CalcNextTotalWidth(self, updateOffsets ? (byte)1 : (byte)0); + } + public static void CalcNextTotalWidth(this ref ImGuiMenuColumns self, bool updateOffsets) + { + fixed (ImGuiMenuColumns* pself = &self) + { + ImGuiPNative.CalcNextTotalWidth((ImGuiMenuColumns*)pself, updateOffsets ? (byte)1 : (byte)0); + } + } + public static ImGuiInputTextStatePtr ImGuiInputTextState() + { + ImGuiInputTextStatePtr ret = ImGuiPNative.ImGuiInputTextState(); + return ret; + } + public static void ClearText(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.ClearText(self); + } + public static void ClearText(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.ClearText((ImGuiInputTextState*)pself); + } + } + public static int GetUndoAvailCount(this ImGuiInputTextStatePtr self) + { + int ret = ImGuiPNative.GetUndoAvailCount(self); + return ret; + } + public static int GetUndoAvailCount(this scoped in ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = ImGuiPNative.GetUndoAvailCount((ImGuiInputTextState*)pself); + return ret; + } + } + public static int GetRedoAvailCount(this ImGuiInputTextStatePtr self) + { + int ret = ImGuiPNative.GetRedoAvailCount(self); + return ret; + } + public static int GetRedoAvailCount(this scoped in ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = ImGuiPNative.GetRedoAvailCount((ImGuiInputTextState*)pself); + return ret; + } + } + public static void OnKeyPressed(this ImGuiInputTextStatePtr self, int key) + { + ImGuiPNative.OnKeyPressed(self, key); + } + public static void OnKeyPressed(this ref ImGuiInputTextState self, int key) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.OnKeyPressed((ImGuiInputTextState*)pself, key); + } + } + public static void CursorAnimReset(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.CursorAnimReset(self); + } + public static void CursorAnimReset(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.CursorAnimReset((ImGuiInputTextState*)pself); + } + } + public static void CursorClamp(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.CursorClamp(self); + } + public static void CursorClamp(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.CursorClamp((ImGuiInputTextState*)pself); + } + } + public static bool HasSelection(this ImGuiInputTextStatePtr self) + { + byte ret = ImGuiPNative.HasSelection(self); + return ret != 0; + } + public static bool HasSelection(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + byte ret = ImGuiPNative.HasSelection((ImGuiInputTextState*)pself); + return ret != 0; + } + } + public static void ClearSelection(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.ClearSelection(self); + } + public static void ClearSelection(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.ClearSelection((ImGuiInputTextState*)pself); + } + } + public static int GetCursorPos(this ImGuiInputTextStatePtr self) + { + int ret = ImGuiPNative.GetCursorPos(self); + return ret; + } + public static int GetCursorPos(this scoped in ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = ImGuiPNative.GetCursorPos((ImGuiInputTextState*)pself); + return ret; + } + } + public static int GetSelectionStart(this ImGuiInputTextStatePtr self) + { + int ret = ImGuiPNative.GetSelectionStart(self); + return ret; + } + public static int GetSelectionStart(this scoped in ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = ImGuiPNative.GetSelectionStart((ImGuiInputTextState*)pself); + return ret; + } + } + public static int GetSelectionEnd(this ImGuiInputTextStatePtr self) + { + int ret = ImGuiPNative.GetSelectionEnd(self); + return ret; + } + public static int GetSelectionEnd(this scoped in ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = ImGuiPNative.GetSelectionEnd((ImGuiInputTextState*)pself); + return ret; + } + } + public static void SelectAll(this ImGuiInputTextStatePtr self) + { + ImGuiPNative.SelectAll(self); + } + public static void SelectAll(this ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ImGuiPNative.SelectAll((ImGuiInputTextState*)pself); + } + } + public static ImGuiPopupDataPtr ImGuiPopupData() + { + ImGuiPopupDataPtr ret = ImGuiPNative.ImGuiPopupData(); + return ret; + } + public static ImGuiNextWindowDataPtr ImGuiNextWindowData() + { + ImGuiNextWindowDataPtr ret = ImGuiPNative.ImGuiNextWindowData(); + return ret; + } + public static void ClearFlags(this ImGuiNextWindowDataPtr self) + { + ImGuiPNative.ClearFlags(self); + } + public static void ClearFlags(this ref ImGuiNextWindowData self) + { + fixed (ImGuiNextWindowData* pself = &self) + { + ImGuiPNative.ClearFlags((ImGuiNextWindowData*)pself); + } + } + public static void ClearFlags(this ImGuiNextItemDataPtr self) + { + ImGuiPNative.ClearFlags(self); + } + public static void ClearFlags(this ref ImGuiNextItemData self) + { + fixed (ImGuiNextItemData* pself = &self) + { + ImGuiPNative.ClearFlags((ImGuiNextItemData*)pself); + } + } + public static ImGuiNextItemDataPtr ImGuiNextItemData() + { + ImGuiNextItemDataPtr ret = ImGuiPNative.ImGuiNextItemData(); + return ret; + } + public static ImGuiLastItemDataPtr ImGuiLastItemData() + { + ImGuiLastItemDataPtr ret = ImGuiPNative.ImGuiLastItemData(); + return ret; + } + public static ImGuiStackSizesPtr ImGuiStackSizes() + { + ImGuiStackSizesPtr ret = ImGuiPNative.ImGuiStackSizes(); + return ret; + } + public static void SetToCurrentState(this ImGuiStackSizesPtr self) + { + ImGuiPNative.SetToCurrentState(self); + } + public static void SetToCurrentState(this ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + ImGuiPNative.SetToCurrentState((ImGuiStackSizes*)pself); + } + } + public static void CompareWithCurrentState(this ImGuiStackSizesPtr self) + { + ImGuiPNative.CompareWithCurrentState(self); + } + public static void CompareWithCurrentState(this ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + ImGuiPNative.CompareWithCurrentState((ImGuiStackSizes*)pself); + } + } + public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(void* ptr) + { + ImGuiPtrOrIndexPtr ret = ImGuiPNative.ImGuiPtrOrIndex(ptr); + return ret; + } + public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(int index) + { + ImGuiPtrOrIndexPtr ret = ImGuiPNative.ImGuiPtrOrIndex(index); + return ret; + } + public static ImGuiInputEventPtr ImGuiInputEvent() + { + ImGuiInputEventPtr ret = ImGuiPNative.ImGuiInputEvent(); + return ret; + } + public static ImGuiListClipperRange FromIndices(int min, int max) + { + ImGuiListClipperRange ret = ImGuiPNative.FromIndices(min, max); + return ret; + } + public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) + { + ImGuiListClipperRange ret = ImGuiPNative.FromPositions(y1, y2, offMin, offMax); + return ret; + } + public static ImGuiListClipperDataPtr ImGuiListClipperData() + { + ImGuiListClipperDataPtr ret = ImGuiPNative.ImGuiListClipperData(); + return ret; + } + public static void Reset(this ImGuiListClipperDataPtr self, ImGuiListClipperPtr clipper) + { + ImGuiPNative.Reset(self, clipper); + } + public static void Reset(this ref ImGuiListClipperData self, ImGuiListClipperPtr clipper) + { + fixed (ImGuiListClipperData* pself = &self) + { + ImGuiPNative.Reset((ImGuiListClipperData*)pself, clipper); + } + } + public static void Reset(this ImGuiListClipperDataPtr self, ref ImGuiListClipper clipper) + { + fixed (ImGuiListClipper* pclipper = &clipper) + { + ImGuiPNative.Reset(self, (ImGuiListClipper*)pclipper); + } + } + public static void Reset(this ref ImGuiListClipperData self, ref ImGuiListClipper clipper) + { + fixed (ImGuiListClipperData* pself = &self) + { + fixed (ImGuiListClipper* pclipper = &clipper) + { + ImGuiPNative.Reset((ImGuiListClipperData*)pself, (ImGuiListClipper*)pclipper); + } + } + } + public static ImGuiNavItemDataPtr ImGuiNavItemData() + { + ImGuiNavItemDataPtr ret = ImGuiPNative.ImGuiNavItemData(); + return ret; + } + public static ImGuiOldColumnDataPtr ImGuiOldColumnData() + { + ImGuiOldColumnDataPtr ret = ImGuiPNative.ImGuiOldColumnData(); + return ret; + } + public static ImGuiOldColumnsPtr ImGuiOldColumns() + { + ImGuiOldColumnsPtr ret = ImGuiPNative.ImGuiOldColumns(); + return ret; + } + public static ImGuiDockNodePtr ImGuiDockNode(uint id) + { + ImGuiDockNodePtr ret = ImGuiPNative.ImGuiDockNode(id); + return ret; + } + public static void Destroy(this ImGuiDockNodePtr self) + { + ImGuiPNative.Destroy(self); + } + public static void Destroy(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiPNative.Destroy((ImGuiDockNode*)pself); + } + } + public static void Destroy(this ImGuiViewportPPtr self) + { + ImGuiPNative.Destroy(self); + } + public static void Destroy(this ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.Destroy((ImGuiViewportP*)pself); + } + } + public static void Destroy(this ImGuiWindowPtr self) + { + ImGuiPNative.Destroy(self); + } + public static void Destroy(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.Destroy((ImGuiWindow*)pself); + } + } + public static void Destroy(this ImGuiTablePtr self) + { + ImGuiPNative.Destroy(self); + } + public static void Destroy(this ref ImGuiTable self) + { + fixed (ImGuiTable* pself = &self) + { + ImGuiPNative.Destroy((ImGuiTable*)pself); + } + } + public static bool IsRootNode(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsRootNode(self); + return ret != 0; + } + public static bool IsRootNode(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsRootNode((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsDockSpace(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsDockSpace(self); + return ret != 0; + } + public static bool IsDockSpace(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsDockSpace((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsFloatingNode(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsFloatingNode(self); + return ret != 0; + } + public static bool IsFloatingNode(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsFloatingNode((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsCentralNode(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsCentralNode(self); + return ret != 0; + } + public static bool IsCentralNode(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsCentralNode((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsHiddenTabBar(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsHiddenTabBar(self); + return ret != 0; + } + public static bool IsHiddenTabBar(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsHiddenTabBar((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsNoTabBar(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsNoTabBar(self); + return ret != 0; + } + public static bool IsNoTabBar(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsNoTabBar((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsSplitNode(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsSplitNode(self); + return ret != 0; + } + public static bool IsSplitNode(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsSplitNode((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsLeafNode(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsLeafNode(self); + return ret != 0; + } + public static bool IsLeafNode(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsLeafNode((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static bool IsEmpty(this ImGuiDockNodePtr self) + { + byte ret = ImGuiPNative.IsEmpty(self); + return ret != 0; + } + public static bool IsEmpty(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = ImGuiPNative.IsEmpty((ImGuiDockNode*)pself); + return ret != 0; + } + } + public static ImRect Rect(this ImGuiDockNodePtr self) + { + ImRect ret; + ImGuiPNative.Rect(&ret, self); + return ret; + } + public static void Rect(ImRectPtr pOut, ImGuiDockNodePtr self) + { + ImGuiPNative.Rect(pOut, self); + } + public static void Rect(ref ImRect pOut, ImGuiDockNodePtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.Rect((ImRect*)ppOut, self); + } + } + public static ImRect Rect(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImRect ret; + ImGuiPNative.Rect(&ret, (ImGuiDockNode*)pself); + return ret; + } + } + public static void Rect(ImRectPtr pOut, ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiPNative.Rect(pOut, (ImGuiDockNode*)pself); + } + } + public static void Rect(ref ImRect pOut, ref ImGuiDockNode self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiPNative.Rect((ImRect*)ppOut, (ImGuiDockNode*)pself); + } + } + } + public static ImRect Rect(this ImGuiWindowPtr self) + { + ImRect ret; + ImGuiPNative.Rect(&ret, self); + return ret; + } + public static void Rect(ImRectPtr pOut, ImGuiWindowPtr self) + { + ImGuiPNative.Rect(pOut, self); + } + public static void Rect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.Rect((ImRect*)ppOut, self); + } + } + public static ImRect Rect(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + ImGuiPNative.Rect(&ret, (ImGuiWindow*)pself); + return ret; + } + } + public static void Rect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.Rect(pOut, (ImGuiWindow*)pself); + } + } + public static void Rect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.Rect((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + public static void SetLocalFlags(this ImGuiDockNodePtr self, ImGuiDockNodeFlags flags) + { + ImGuiPNative.SetLocalFlags(self, flags); + } + public static void SetLocalFlags(this ref ImGuiDockNode self, ImGuiDockNodeFlags flags) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiPNative.SetLocalFlags((ImGuiDockNode*)pself, flags); + } + } + public static void UpdateMergedFlags(this ImGuiDockNodePtr self) + { + ImGuiPNative.UpdateMergedFlags(self); + } + public static void UpdateMergedFlags(this ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiPNative.UpdateMergedFlags((ImGuiDockNode*)pself); + } + } + public static ImGuiDockContextPtr ImGuiDockContext() + { + ImGuiDockContextPtr ret = ImGuiPNative.ImGuiDockContext(); + return ret; + } + public static ImGuiViewportPPtr ImGuiViewportP() + { + ImGuiViewportPPtr ret = ImGuiPNative.ImGuiViewportP(); + return ret; + } + public static void ClearRequestFlags(this ImGuiViewportPPtr self) + { + ImGuiPNative.ClearRequestFlags(self); + } + public static void ClearRequestFlags(this ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.ClearRequestFlags((ImGuiViewportP*)pself); + } + } + public static Vector2 CalcWorkRectPos(this ImGuiViewportPPtr self, Vector2 offMin) + { + Vector2 ret; + ImGuiPNative.CalcWorkRectPos(&ret, self, offMin); + return ret; + } + public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin) + { + ImGuiPNative.CalcWorkRectPos(pOut, self, offMin); + } + public static void CalcWorkRectPos(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.CalcWorkRectPos((Vector2*)ppOut, self, offMin); + } + } + public static Vector2 CalcWorkRectPos(this ref ImGuiViewportP self, Vector2 offMin) + { + fixed (ImGuiViewportP* pself = &self) + { + Vector2 ret; + ImGuiPNative.CalcWorkRectPos(&ret, (ImGuiViewportP*)pself, offMin); + return ret; + } + } + public static void CalcWorkRectPos(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.CalcWorkRectPos(pOut, (ImGuiViewportP*)pself, offMin); + } + } + public static void CalcWorkRectPos(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.CalcWorkRectPos((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); + } + } + } + public static Vector2 CalcWorkRectSize(this ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + Vector2 ret; + ImGuiPNative.CalcWorkRectSize(&ret, self, offMin, offMax); + return ret; + } + public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + ImGuiPNative.CalcWorkRectSize(pOut, self, offMin, offMax); + } + public static void CalcWorkRectSize(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.CalcWorkRectSize((Vector2*)ppOut, self, offMin, offMax); + } + } + public static Vector2 CalcWorkRectSize(this ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (ImGuiViewportP* pself = &self) + { + Vector2 ret; + ImGuiPNative.CalcWorkRectSize(&ret, (ImGuiViewportP*)pself, offMin, offMax); + return ret; + } + } + public static void CalcWorkRectSize(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.CalcWorkRectSize(pOut, (ImGuiViewportP*)pself, offMin, offMax); + } + } + public static void CalcWorkRectSize(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.CalcWorkRectSize((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); + } + } + } + public static void UpdateWorkRect(this ImGuiViewportPPtr self) + { + ImGuiPNative.UpdateWorkRect(self); + } + public static void UpdateWorkRect(this ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.UpdateWorkRect((ImGuiViewportP*)pself); + } + } + public static ImRect GetMainRect(this ImGuiViewportPPtr self) + { + ImRect ret; + ImGuiPNative.GetMainRect(&ret, self); + return ret; + } + public static void GetMainRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + ImGuiPNative.GetMainRect(pOut, self); + } + public static void GetMainRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.GetMainRect((ImRect*)ppOut, self); + } + } + public static ImRect GetMainRect(this scoped in ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + ImGuiPNative.GetMainRect(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + public static void GetMainRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetMainRect(pOut, (ImGuiViewportP*)pself); + } + } + public static void GetMainRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetMainRect((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + public static ImRect GetWorkRect(this ImGuiViewportPPtr self) + { + ImRect ret; + ImGuiPNative.GetWorkRect(&ret, self); + return ret; + } + public static void GetWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + ImGuiPNative.GetWorkRect(pOut, self); + } + public static void GetWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.GetWorkRect((ImRect*)ppOut, self); + } + } + public static ImRect GetWorkRect(this scoped in ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + ImGuiPNative.GetWorkRect(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + public static void GetWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetWorkRect(pOut, (ImGuiViewportP*)pself); + } + } + public static void GetWorkRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetWorkRect((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + public static ImRect GetBuildWorkRect(this ImGuiViewportPPtr self) + { + ImRect ret; + ImGuiPNative.GetBuildWorkRect(&ret, self); + return ret; + } + public static void GetBuildWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + ImGuiPNative.GetBuildWorkRect(pOut, self); + } + public static void GetBuildWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.GetBuildWorkRect((ImRect*)ppOut, self); + } + } + public static ImRect GetBuildWorkRect(this scoped in ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + ImGuiPNative.GetBuildWorkRect(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + public static void GetBuildWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetBuildWorkRect(pOut, (ImGuiViewportP*)pself); + } + } + public static void GetBuildWorkRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiPNative.GetBuildWorkRect((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + public static ImGuiWindowSettingsPtr ImGuiWindowSettings() + { + ImGuiWindowSettingsPtr ret = ImGuiPNative.ImGuiWindowSettings(); + return ret; + } + public static ImGuiSettingsHandlerPtr ImGuiSettingsHandler() + { + ImGuiSettingsHandlerPtr ret = ImGuiPNative.ImGuiSettingsHandler(); + return ret; + } + public static ImGuiMetricsConfigPtr ImGuiMetricsConfig() + { + ImGuiMetricsConfigPtr ret = ImGuiPNative.ImGuiMetricsConfig(); + return ret; + } + public static ImGuiStackLevelInfoPtr ImGuiStackLevelInfo() + { + ImGuiStackLevelInfoPtr ret = ImGuiPNative.ImGuiStackLevelInfo(); + return ret; + } + public static ImGuiStackToolPtr ImGuiStackTool() + { + ImGuiStackToolPtr ret = ImGuiPNative.ImGuiStackTool(); + return ret; + } + public static ImGuiContextHookPtr ImGuiContextHook() + { + ImGuiContextHookPtr ret = ImGuiPNative.ImGuiContextHook(); + return ret; + } + public static ImGuiContextPtr ImGuiContext(ImFontAtlasPtr sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiPNative.ImGuiContext(sharedFontAtlas); + return ret; + } + public static ImGuiContextPtr ImGuiContext(ref ImFontAtlas sharedFontAtlas) + { + fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiPNative.ImGuiContext((ImFontAtlas*)psharedFontAtlas); + return ret; + } + } + public static uint GetIDFromRectangle(this ImGuiWindowPtr self, ImRect rAbs) + { + uint ret = ImGuiPNative.GetIDFromRectangle(self, rAbs); + return ret; + } + public static uint GetIDFromRectangle(this scoped in ImGuiWindow self, ImRect rAbs) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = ImGuiPNative.GetIDFromRectangle((ImGuiWindow*)pself, rAbs); + return ret; + } + } + public static float CalcFontSize(this ImGuiWindowPtr self) + { + float ret = ImGuiPNative.CalcFontSize(self); + return ret; + } + public static float CalcFontSize(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = ImGuiPNative.CalcFontSize((ImGuiWindow*)pself); + return ret; + } + } + public static float TitleBarHeight(this ImGuiWindowPtr self) + { + float ret = ImGuiPNative.TitleBarHeight(self); + return ret; + } + public static float TitleBarHeight(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = ImGuiPNative.TitleBarHeight((ImGuiWindow*)pself); + return ret; + } + } + public static ImRect TitleBarRect(this ImGuiWindowPtr self) + { + ImRect ret; + ImGuiPNative.TitleBarRect(&ret, self); + return ret; + } + public static void TitleBarRect(ImRectPtr pOut, ImGuiWindowPtr self) + { + ImGuiPNative.TitleBarRect(pOut, self); + } + public static void TitleBarRect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.TitleBarRect((ImRect*)ppOut, self); + } + } + public static ImRect TitleBarRect(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + ImGuiPNative.TitleBarRect(&ret, (ImGuiWindow*)pself); + return ret; + } + } + public static void TitleBarRect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.TitleBarRect(pOut, (ImGuiWindow*)pself); + } + } + public static void TitleBarRect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.TitleBarRect((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + public static float MenuBarHeight(this ImGuiWindowPtr self) + { + float ret = ImGuiPNative.MenuBarHeight(self); + return ret; + } + public static float MenuBarHeight(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = ImGuiPNative.MenuBarHeight((ImGuiWindow*)pself); + return ret; + } + } + public static ImRect MenuBarRect(this ImGuiWindowPtr self) + { + ImRect ret; + ImGuiPNative.MenuBarRect(&ret, self); + return ret; + } + public static void MenuBarRect(ImRectPtr pOut, ImGuiWindowPtr self) + { + ImGuiPNative.MenuBarRect(pOut, self); + } + public static void MenuBarRect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.MenuBarRect((ImRect*)ppOut, self); + } + } + public static ImRect MenuBarRect(this ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + ImGuiPNative.MenuBarRect(&ret, (ImGuiWindow*)pself); + return ret; + } + } + public static void MenuBarRect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.MenuBarRect(pOut, (ImGuiWindow*)pself); + } + } + public static void MenuBarRect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiPNative.MenuBarRect((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + public static ImGuiTabItemPtr ImGuiTabItem() + { + ImGuiTabItemPtr ret = ImGuiPNative.ImGuiTabItem(); + return ret; + } + public static ImGuiTabBarPtr ImGuiTabBar() + { + ImGuiTabBarPtr ret = ImGuiPNative.ImGuiTabBar(); + return ret; + } + public static int GetTabOrder(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) + { + int ret = ImGuiPNative.GetTabOrder(self, tab); + return ret; + } + public static int GetTabOrder(this scoped in ImGuiTabBar self, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* pself = &self) + { + int ret = ImGuiPNative.GetTabOrder((ImGuiTabBar*)pself, tab); + return ret; + } + } + public static int GetTabOrder(this ImGuiTabBarPtr self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + int ret = ImGuiPNative.GetTabOrder(self, (ImGuiTabItem*)ptab); + return ret; + } + } + public static int GetTabOrder(this scoped in ImGuiTabBar self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* pself = &self) + { + fixed (ImGuiTabItem* ptab = &tab) + { + int ret = ImGuiPNative.GetTabOrder((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); + return ret; + } + } + } + public static ImGuiTableColumnPtr ImGuiTableColumn() + { + ImGuiTableColumnPtr ret = ImGuiPNative.ImGuiTableColumn(); + return ret; + } + public static ImGuiTableInstanceDataPtr ImGuiTableInstanceData() + { + ImGuiTableInstanceDataPtr ret = ImGuiPNative.ImGuiTableInstanceData(); + return ret; + } + public static ImGuiTablePtr ImGuiTable() + { + ImGuiTablePtr ret = ImGuiPNative.ImGuiTable(); + return ret; + } + public static ImGuiTableTempDataPtr ImGuiTableTempData() + { + ImGuiTableTempDataPtr ret = ImGuiPNative.ImGuiTableTempData(); + return ret; + } + public static ImGuiTableColumnSettingsPtr ImGuiTableColumnSettings() + { + ImGuiTableColumnSettingsPtr ret = ImGuiPNative.ImGuiTableColumnSettings(); + return ret; + } + public static ImGuiTableSettingsPtr ImGuiTableSettings() + { + ImGuiTableSettingsPtr ret = ImGuiPNative.ImGuiTableSettings(); + return ret; + } + public static ImGuiTableColumnSettingsPtr GetColumnSettings(this ImGuiTableSettingsPtr self) + { + ImGuiTableColumnSettingsPtr ret = ImGuiPNative.GetColumnSettings(self); + return ret; + } + public static ImGuiTableColumnSettingsPtr GetColumnSettings(this scoped in ImGuiTableSettings self) + { + fixed (ImGuiTableSettings* pself = &self) + { + ImGuiTableColumnSettingsPtr ret = ImGuiPNative.GetColumnSettings((ImGuiTableSettings*)pself); + return ret; + } + } + public static ImGuiWindowPtr GetCurrentWindowRead() + { + ImGuiWindowPtr ret = ImGuiPNative.GetCurrentWindowRead(); + return ret; + } + public static ImGuiWindowPtr GetCurrentWindow() + { + ImGuiWindowPtr ret = ImGuiPNative.GetCurrentWindow(); + return ret; + } + public static ImGuiWindowPtr FindWindowByID(uint id) + { + ImGuiWindowPtr ret = ImGuiPNative.FindWindowByID(id); + return ret; + } + public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) + { + ImGuiPNative.UpdateWindowParentAndRootLinks(window, flags, parentWindow); + } + public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.UpdateWindowParentAndRootLinks((ImGuiWindow*)pwindow, flags, parentWindow); + } + } + public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) + { + fixed (ImGuiWindow* pparentWindow = &parentWindow) + { + ImGuiPNative.UpdateWindowParentAndRootLinks(window, flags, (ImGuiWindow*)pparentWindow); + } + } + public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* pparentWindow = &parentWindow) + { + ImGuiPNative.UpdateWindowParentAndRootLinks((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); + } + } + } + public static Vector2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) + { + Vector2 ret; + ImGuiPNative.CalcWindowNextAutoFitSize(&ret, window); + return ret; + } + public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindowPtr window) + { + ImGuiPNative.CalcWindowNextAutoFitSize(pOut, window); + } + public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ImGuiWindowPtr window) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.CalcWindowNextAutoFitSize((Vector2*)ppOut, window); + } + } + public static Vector2 CalcWindowNextAutoFitSize(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ImGuiPNative.CalcWindowNextAutoFitSize(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + public static void CalcWindowNextAutoFitSize(Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.CalcWindowNextAutoFitSize(pOut, (ImGuiWindow*)pwindow); + } + } + public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ref ImGuiWindow window) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.CalcWindowNextAutoFitSize((Vector2*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + public static bool IsWindowChildOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) + { + byte ret = ImGuiPNative.IsWindowChildOf(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool IsWindowChildOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = ImGuiPNative.IsWindowChildOf((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + public static bool IsWindowChildOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = ImGuiPNative.IsWindowChildOf(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + public static bool IsWindowChildOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = ImGuiPNative.IsWindowChildOf((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent) + { + byte ret = ImGuiPNative.IsWindowWithinBeginStackOf(window, potentialParent); + return ret != 0; + } + public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = ImGuiPNative.IsWindowWithinBeginStackOf((ImGuiWindow*)pwindow, potentialParent); + return ret != 0; + } + } + public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = ImGuiPNative.IsWindowWithinBeginStackOf(window, (ImGuiWindow*)ppotentialParent); + return ret != 0; + } + } + public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = ImGuiPNative.IsWindowWithinBeginStackOf((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); + return ret != 0; + } + } + } + public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) + { + byte ret = ImGuiPNative.IsWindowAbove(potentialAbove, potentialBelow); + return ret != 0; + } + public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ImGuiWindowPtr potentialBelow) + { + fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) + { + byte ret = ImGuiPNative.IsWindowAbove((ImGuiWindow*)ppotentialAbove, potentialBelow); + return ret != 0; + } + } + public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ref ImGuiWindow potentialBelow) + { + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) + { + byte ret = ImGuiPNative.IsWindowAbove(potentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; + } + } + public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ref ImGuiWindow potentialBelow) + { + fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) + { + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) + { + byte ret = ImGuiPNative.IsWindowAbove((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; + } + } + } + public static bool IsWindowNavFocusable(ImGuiWindowPtr window) + { + byte ret = ImGuiPNative.IsWindowNavFocusable(window); + return ret != 0; + } + public static bool IsWindowNavFocusable(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = ImGuiPNative.IsWindowNavFocusable((ImGuiWindow*)pwindow); + return ret != 0; + } + } + public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos, ImGuiCond cond) + { + ImGuiPNative.SetWindowPos(window, pos, cond); + } + public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos) + { + ImGuiPNative.SetWindowPos(window, pos, (ImGuiCond)(0)); + } + public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowPos((ImGuiWindow*)pwindow, pos, cond); + } + } + public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowPos((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); + } + } + public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size, ImGuiCond cond) + { + ImGuiPNative.SetWindowSize(window, size, cond); + } + public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size) + { + ImGuiPNative.SetWindowSize(window, size, (ImGuiCond)(0)); + } + public static void SetWindowSize(ref ImGuiWindow window, Vector2 size, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowSize((ImGuiWindow*)pwindow, size, cond); + } + } + public static void SetWindowSize(ref ImGuiWindow window, Vector2 size) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowSize((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); + } + } + public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed, ImGuiCond cond) + { + ImGuiPNative.SetWindowCollapsed(window, collapsed ? (byte)1 : (byte)0, cond); + } + public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed) + { + ImGuiPNative.SetWindowCollapsed(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowCollapsed((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); + } + } + public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowCollapsed((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + } + public static void SetWindowHitTestHole(ImGuiWindowPtr window, Vector2 pos, Vector2 size) + { + ImGuiPNative.SetWindowHitTestHole(window, pos, size); + } + public static void SetWindowHitTestHole(ref ImGuiWindow window, Vector2 pos, Vector2 size) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowHitTestHole((ImGuiWindow*)pwindow, pos, size); + } + } + public static ImRect WindowRectAbsToRel(ImGuiWindowPtr window, ImRect r) + { + ImRect ret; + ImGuiPNative.WindowRectAbsToRel(&ret, window, r); + return ret; + } + public static void WindowRectAbsToRel(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) + { + ImGuiPNative.WindowRectAbsToRel(pOut, window, r); + } + public static void WindowRectAbsToRel(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.WindowRectAbsToRel((ImRect*)ppOut, window, r); + } + } + public static ImRect WindowRectAbsToRel(ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + ImGuiPNative.WindowRectAbsToRel(&ret, (ImGuiWindow*)pwindow, r); + return ret; + } + } + public static void WindowRectAbsToRel(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.WindowRectAbsToRel(pOut, (ImGuiWindow*)pwindow, r); + } + } + public static void WindowRectAbsToRel(ref ImRect pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.WindowRectAbsToRel((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); + } + } + } + public static ImRect WindowRectRelToAbs(ImGuiWindowPtr window, ImRect r) + { + ImRect ret; + ImGuiPNative.WindowRectRelToAbs(&ret, window, r); + return ret; + } + public static void WindowRectRelToAbs(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) + { + ImGuiPNative.WindowRectRelToAbs(pOut, window, r); + } + public static void WindowRectRelToAbs(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.WindowRectRelToAbs((ImRect*)ppOut, window, r); + } + } + public static ImRect WindowRectRelToAbs(ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + ImGuiPNative.WindowRectRelToAbs(&ret, (ImGuiWindow*)pwindow, r); + return ret; + } + } + public static void WindowRectRelToAbs(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.WindowRectRelToAbs(pOut, (ImGuiWindow*)pwindow, r); + } + } + public static void WindowRectRelToAbs(ref ImRect pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.WindowRectRelToAbs((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); + } + } + } + public static void FocusWindow(ImGuiWindowPtr window) + { + ImGuiPNative.FocusWindow(window); + } + public static void FocusWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.FocusWindow((ImGuiWindow*)pwindow); + } + } + public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow) + { + ImGuiPNative.FocusTopMostWindowUnderOne(underThisWindow, ignoreWindow); + } + public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ImGuiWindowPtr ignoreWindow) + { + fixed (ImGuiWindow* punderThisWindow = &underThisWindow) + { + ImGuiPNative.FocusTopMostWindowUnderOne((ImGuiWindow*)punderThisWindow, ignoreWindow); + } + } + public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ref ImGuiWindow ignoreWindow) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + ImGuiPNative.FocusTopMostWindowUnderOne(underThisWindow, (ImGuiWindow*)pignoreWindow); + } + } + public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ref ImGuiWindow ignoreWindow) + { + fixed (ImGuiWindow* punderThisWindow = &underThisWindow) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + ImGuiPNative.FocusTopMostWindowUnderOne((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow); + } + } + } + public static void BringWindowToFocusFront(ImGuiWindowPtr window) + { + ImGuiPNative.BringWindowToFocusFront(window); + } + public static void BringWindowToFocusFront(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BringWindowToFocusFront((ImGuiWindow*)pwindow); + } + } + public static void BringWindowToDisplayFront(ImGuiWindowPtr window) + { + ImGuiPNative.BringWindowToDisplayFront(window); + } + public static void BringWindowToDisplayFront(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BringWindowToDisplayFront((ImGuiWindow*)pwindow); + } + } + public static void BringWindowToDisplayBack(ImGuiWindowPtr window) + { + ImGuiPNative.BringWindowToDisplayBack(window); + } + public static void BringWindowToDisplayBack(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BringWindowToDisplayBack((ImGuiWindow*)pwindow); + } + } + public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) + { + ImGuiPNative.BringWindowToDisplayBehind(window, aboveWindow); + } + public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ImGuiWindowPtr aboveWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BringWindowToDisplayBehind((ImGuiWindow*)pwindow, aboveWindow); + } + } + public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ref ImGuiWindow aboveWindow) + { + fixed (ImGuiWindow* paboveWindow = &aboveWindow) + { + ImGuiPNative.BringWindowToDisplayBehind(window, (ImGuiWindow*)paboveWindow); + } + } + public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ref ImGuiWindow aboveWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* paboveWindow = &aboveWindow) + { + ImGuiPNative.BringWindowToDisplayBehind((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); + } + } + } + public static int FindWindowDisplayIndex(ImGuiWindowPtr window) + { + int ret = ImGuiPNative.FindWindowDisplayIndex(window); + return ret; + } + public static int FindWindowDisplayIndex(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + int ret = ImGuiPNative.FindWindowDisplayIndex((ImGuiWindow*)pwindow); + return ret; + } + } + public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) + { + ImGuiWindowPtr ret = ImGuiPNative.FindBottomMostVisibleWindowWithinBeginStack(window); + return ret; + } + public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiWindowPtr ret = ImGuiPNative.FindBottomMostVisibleWindowWithinBeginStack((ImGuiWindow*)pwindow); + return ret; + } + } + public static void SetCurrentFont(ImFontPtr font) + { + ImGuiPNative.SetCurrentFont(font); + } + public static void SetCurrentFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + ImGuiPNative.SetCurrentFont((ImFont*)pfont); + } + } + public static ImFontPtr GetDefaultFont() + { + ImFontPtr ret = ImGuiPNative.GetDefaultFont(); + return ret; + } + public static ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) + { + ImDrawListPtr ret = ImGuiPNative.GetForegroundDrawList(window); + return ret; + } + public static ImDrawListPtr GetForegroundDrawList(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImDrawListPtr ret = ImGuiPNative.GetForegroundDrawList((ImGuiWindow*)pwindow); + return ret; + } + } + public static void Initialize() + { + ImGuiPNative.Initialize(); + } + public static void Shutdown() + { + ImGuiPNative.Shutdown(); + } + public static void UpdateInputEvents(bool trickleFastInputs) + { + ImGuiPNative.UpdateInputEvents(trickleFastInputs ? (byte)1 : (byte)0); + } + public static void UpdateHoveredWindowAndCaptureFlags() + { + ImGuiPNative.UpdateHoveredWindowAndCaptureFlags(); + } + public static void StartMouseMovingWindow(ImGuiWindowPtr window) + { + ImGuiPNative.StartMouseMovingWindow(window); + } + public static void StartMouseMovingWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.StartMouseMovingWindow((ImGuiWindow*)pwindow); + } + } + public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undockFloatingNode) + { + ImGuiPNative.StartMouseMovingWindowOrNode(window, node, undockFloatingNode ? (byte)1 : (byte)0); + } + public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ImGuiDockNodePtr node, bool undockFloatingNode) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.StartMouseMovingWindowOrNode((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); + } + } + public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ref ImGuiDockNode node, bool undockFloatingNode) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiPNative.StartMouseMovingWindowOrNode(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); + } + } + public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ref ImGuiDockNode node, bool undockFloatingNode) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiPNative.StartMouseMovingWindowOrNode((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); + } + } + } + public static void UpdateMouseMovingWindowNewFrame() + { + ImGuiPNative.UpdateMouseMovingWindowNewFrame(); + } + public static void UpdateMouseMovingWindowEndFrame() + { + ImGuiPNative.UpdateMouseMovingWindowEndFrame(); + } + public static uint AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) + { + uint ret = ImGuiPNative.AddContextHook(context, hook); + return ret; + } + public static uint AddContextHook(ref ImGuiContext context, ImGuiContextHookPtr hook) + { + fixed (ImGuiContext* pcontext = &context) + { + uint ret = ImGuiPNative.AddContextHook((ImGuiContext*)pcontext, hook); + return ret; + } + } + public static uint AddContextHook(ImGuiContextPtr context, ref ImGuiContextHook hook) + { + fixed (ImGuiContextHook* phook = &hook) + { + uint ret = ImGuiPNative.AddContextHook(context, (ImGuiContextHook*)phook); + return ret; + } + } + public static uint AddContextHook(ref ImGuiContext context, ref ImGuiContextHook hook) + { + fixed (ImGuiContext* pcontext = &context) + { + fixed (ImGuiContextHook* phook = &hook) + { + uint ret = ImGuiPNative.AddContextHook((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); + return ret; + } + } + } + public static void RemoveContextHook(ImGuiContextPtr context, uint hookToRemove) + { + ImGuiPNative.RemoveContextHook(context, hookToRemove); + } + public static void RemoveContextHook(ref ImGuiContext context, uint hookToRemove) + { + fixed (ImGuiContext* pcontext = &context) + { + ImGuiPNative.RemoveContextHook((ImGuiContext*)pcontext, hookToRemove); + } + } + public static void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) + { + ImGuiPNative.CallContextHooks(context, type); + } + public static void CallContextHooks(ref ImGuiContext context, ImGuiContextHookType type) + { + fixed (ImGuiContext* pcontext = &context) + { + ImGuiPNative.CallContextHooks((ImGuiContext*)pcontext, type); + } + } + public static void TranslateWindowsInViewport(ImGuiViewportPPtr viewport, Vector2 oldPos, Vector2 newPos) + { + ImGuiPNative.TranslateWindowsInViewport(viewport, oldPos, newPos); + } + public static void TranslateWindowsInViewport(ref ImGuiViewportP viewport, Vector2 oldPos, Vector2 newPos) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.TranslateWindowsInViewport((ImGuiViewportP*)pviewport, oldPos, newPos); + } + } + public static void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) + { + ImGuiPNative.ScaleWindowsInViewport(viewport, scale); + } + public static void ScaleWindowsInViewport(ref ImGuiViewportP viewport, float scale) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.ScaleWindowsInViewport((ImGuiViewportP*)pviewport, scale); + } + } + public static void DestroyPlatformWindow(ImGuiViewportPPtr viewport) + { + ImGuiPNative.DestroyPlatformWindow(viewport); + } + public static void DestroyPlatformWindow(ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.DestroyPlatformWindow((ImGuiViewportP*)pviewport); + } + } + public static void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) + { + ImGuiPNative.SetWindowViewport(window, viewport); + } + public static void SetWindowViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowViewport((ImGuiWindow*)pwindow, viewport); + } + } + public static void SetWindowViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.SetWindowViewport(window, (ImGuiViewportP*)pviewport); + } + } + public static void SetWindowViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.SetWindowViewport((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); + } + } + } + public static void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) + { + ImGuiPNative.SetCurrentViewport(window, viewport); + } + public static void SetCurrentViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetCurrentViewport((ImGuiWindow*)pwindow, viewport); + } + } + public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.SetCurrentViewport(window, (ImGuiViewportP*)pviewport); + } + } + public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.SetCurrentViewport((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); + } + } + } + public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) + { + ImGuiPlatformMonitorPtr ret = ImGuiPNative.GetViewportPlatformMonitor(viewport); + return ret; + } + public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImGuiPlatformMonitorPtr ret = ImGuiPNative.GetViewportPlatformMonitor((ImGuiViewport*)pviewport); + return ret; + } + } + public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) + { + ImGuiViewportPPtr ret = ImGuiPNative.FindHoveredViewportFromPlatformWindowStack(mousePlatformPos); + return ret; + } + public static void MarkIniSettingsDirty() + { + ImGuiPNative.MarkIniSettingsDirty(); + } + public static void MarkIniSettingsDirty(ImGuiWindowPtr window) + { + ImGuiPNative.MarkIniSettingsDirty(window); + } + public static void MarkIniSettingsDirty(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.MarkIniSettingsDirty((ImGuiWindow*)pwindow); + } + } + public static void ClearIniSettings() + { + ImGuiPNative.ClearIniSettings(); + } + public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) + { + ImGuiWindowSettingsPtr ret = ImGuiPNative.FindWindowSettings(id); + return ret; + } + public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) + { + ImGuiPNative.AddSettingsHandler(handler); + } + public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) + { + fixed (ImGuiSettingsHandler* phandler = &handler) + { + ImGuiPNative.AddSettingsHandler((ImGuiSettingsHandler*)phandler); + } + } + public static void SetNextWindowScroll(Vector2 scroll) + { + ImGuiPNative.SetNextWindowScroll(scroll); + } + public static void SetScrollX(ImGuiWindowPtr window, float scrollX) + { + ImGuiPNative.SetScrollX(window, scrollX); + } + public static void SetScrollX(ref ImGuiWindow window, float scrollX) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetScrollX((ImGuiWindow*)pwindow, scrollX); + } + } + public static void SetScrollY(ImGuiWindowPtr window, float scrollY) + { + ImGuiPNative.SetScrollY(window, scrollY); + } + public static void SetScrollY(ref ImGuiWindow window, float scrollY) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetScrollY((ImGuiWindow*)pwindow, scrollY); + } + } + public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) + { + ImGuiPNative.SetScrollFromPosX(window, localX, centerXRatio); + } + public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetScrollFromPosX((ImGuiWindow*)pwindow, localX, centerXRatio); + } + } + public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) + { + ImGuiPNative.SetScrollFromPosY(window, localY, centerYRatio); + } + public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetScrollFromPosY((ImGuiWindow*)pwindow, localY, centerYRatio); + } + } + public static void ScrollToItem(ImGuiScrollFlags flags) + { + ImGuiPNative.ScrollToItem(flags); + } + public static void ScrollToItem() + { + ImGuiPNative.ScrollToItem((ImGuiScrollFlags)(0)); + } + public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + ImGuiPNative.ScrollToRect(window, rect, flags); + } + public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) + { + ImGuiPNative.ScrollToRect(window, rect, (ImGuiScrollFlags)(0)); + } + public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRect((ImGuiWindow*)pwindow, rect, flags); + } + } + public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRect((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) + { + Vector2 ret; + ImGuiPNative.ScrollToRectEx(&ret, window, rect, (ImGuiScrollFlags)(0)); + return ret; + } + public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + Vector2 ret; + ImGuiPNative.ScrollToRectEx(&ret, window, rect, flags); + return ret; + } + public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + ImGuiPNative.ScrollToRectEx(pOut, window, rect, flags); + } + public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) + { + ImGuiPNative.ScrollToRectEx(pOut, window, rect, (ImGuiScrollFlags)(0)); + } + public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, window, rect, flags); + } + } + public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); + } + } + public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ImGuiPNative.ScrollToRectEx(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + return ret; + } + } + public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ImGuiPNative.ScrollToRectEx(&ret, (ImGuiWindow*)pwindow, rect, flags); + return ret; + } + } + public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRectEx(pOut, (ImGuiWindow*)pwindow, rect, flags); + } + } + public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRectEx(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); + } + } + } + public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + } + public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) + { + ImGuiPNative.ScrollToBringRectIntoView(window, rect); + } + public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.ScrollToBringRectIntoView((ImGuiWindow*)pwindow, rect); + } + } + public static uint GetItemID() + { + uint ret = ImGuiPNative.GetItemID(); + return ret; + } + public static ImGuiItemStatusFlags GetItemStatusFlags() + { + ImGuiItemStatusFlags ret = ImGuiPNative.GetItemStatusFlags(); + return ret; + } + public static ImGuiItemFlags GetItemFlags() + { + ImGuiItemFlags ret = ImGuiPNative.GetItemFlags(); + return ret; + } + public static uint GetActiveID() + { + uint ret = ImGuiPNative.GetActiveID(); + return ret; + } + public static uint GetFocusID() + { + uint ret = ImGuiPNative.GetFocusID(); + return ret; + } + public static void SetActiveID(uint id, ImGuiWindowPtr window) + { + ImGuiPNative.SetActiveID(id, window); + } + public static void SetActiveID(uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetActiveID(id, (ImGuiWindow*)pwindow); + } + } + public static void SetFocusID(uint id, ImGuiWindowPtr window) + { + ImGuiPNative.SetFocusID(id, window); + } + public static void SetFocusID(uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetFocusID(id, (ImGuiWindow*)pwindow); + } + } + public static void ClearActiveID() + { + ImGuiPNative.ClearActiveID(); + } + public static uint GetHoveredID() + { + uint ret = ImGuiPNative.GetHoveredID(); + return ret; + } + public static void SetHoveredID(uint id) + { + ImGuiPNative.SetHoveredID(id); + } + public static void KeepAliveID(uint id) + { + ImGuiPNative.KeepAliveID(id); + } + public static void MarkItemEdited(uint id) + { + ImGuiPNative.MarkItemEdited(id); + } + public static void PushOverrideID(uint id) + { + ImGuiPNative.PushOverrideID(id); + } + public static void ItemSize(Vector2 size, float textBaselineY) + { + ImGuiPNative.ItemSize(size, textBaselineY); + } + public static void ItemSize(Vector2 size) + { + ImGuiPNative.ItemSize(size, (float)(-1.0f)); + } + public static void ItemSize(ImRect bb, float textBaselineY) + { + ImGuiPNative.ItemSize(bb, textBaselineY); + } + public static void ItemSize(ImRect bb) + { + ImGuiPNative.ItemSize(bb, (float)(-1.0f)); + } + public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, navBb, extraFlags); + return ret != 0; + } + public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, navBb, (ImGuiItemFlags)(0)); + return ret != 0; + } + public static bool ItemAdd(ImRect bb, uint id) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); + return ret != 0; + } + public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)(default), extraFlags); + return ret != 0; + } + public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) + { + fixed (ImRect* pnavBb = &navBb) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)pnavBb, extraFlags); + return ret != 0; + } + } + public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) + { + fixed (ImRect* pnavBb = &navBb) + { + byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); + return ret != 0; + } + } + public static bool ItemHoverable(ImRect bb, uint id) + { + byte ret = ImGuiPNative.ItemHoverable(bb, id); + return ret != 0; + } + public static bool IsClippedEx(ImRect bb, uint id) + { + byte ret = ImGuiPNative.IsClippedEx(bb, id); + return ret != 0; + } + public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) + { + ImGuiPNative.SetLastItemData(itemId, inFlags, statusFlags, itemRect); + } + public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) + { + Vector2 ret; + ImGuiPNative.CalcItemSize(&ret, size, defaultW, defaultH); + return ret; + } + public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + ImGuiPNative.CalcItemSize(pOut, size, defaultW, defaultH); + } + public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.CalcItemSize((Vector2*)ppOut, size, defaultW, defaultH); + } + } + public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) + { + float ret = ImGuiPNative.CalcWrapWidthForPos(pos, wrapPosX); + return ret; + } + public static void PushMultiItemsWidths(int components, float widthFull) + { + ImGuiPNative.PushMultiItemsWidths(components, widthFull); + } + public static bool IsItemToggledSelection() + { + byte ret = ImGuiPNative.IsItemToggledSelection(); + return ret != 0; + } + public static Vector2 GetContentRegionMaxAbs() + { + Vector2 ret; + ImGuiPNative.GetContentRegionMaxAbs(&ret); + return ret; + } + public static void GetContentRegionMaxAbs(Vector2* pOut) + { + ImGuiPNative.GetContentRegionMaxAbs(pOut); + } + public static void GetContentRegionMaxAbs(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetContentRegionMaxAbs((Vector2*)ppOut); + } + } + public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) + { + ImGuiPNative.ShrinkWidths(items, count, widthExcess); + } + public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) + { + fixed (ImGuiShrinkWidthItem* pitems = &items) + { + ImGuiPNative.ShrinkWidths((ImGuiShrinkWidthItem*)pitems, count, widthExcess); + } + } + public static void PushItemFlag(ImGuiItemFlags option, bool enabled) + { + ImGuiPNative.PushItemFlag(option, enabled ? (byte)1 : (byte)0); + } + public static void PopItemFlag() + { + ImGuiPNative.PopItemFlag(); + } + public static void LogBegin(ImGuiLogType type, int autoOpenDepth) + { + ImGuiPNative.LogBegin(type, autoOpenDepth); + } + public static void LogToBuffer(int autoOpenDepth) + { + ImGuiPNative.LogToBuffer(autoOpenDepth); + } + public static void LogToBuffer() + { + ImGuiPNative.LogToBuffer((int)(-1)); + } + public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) + { + ImGuiPNative.OpenPopupEx(id, popupFlags); + } + public static void OpenPopupEx(uint id) + { + ImGuiPNative.OpenPopupEx(id, (ImGuiPopupFlags)(ImGuiPopupFlags.None)); + } + public static void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) + { + ImGuiPNative.ClosePopupToLevel(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + public static void ClosePopupsOverWindow(ImGuiWindowPtr refWindow, bool restoreFocusToWindowUnderPopup) + { + ImGuiPNative.ClosePopupsOverWindow(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + public static void ClosePopupsOverWindow(ref ImGuiWindow refWindow, bool restoreFocusToWindowUnderPopup) + { + fixed (ImGuiWindow* prefWindow = &refWindow) + { + ImGuiPNative.ClosePopupsOverWindow((ImGuiWindow*)prefWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + } + public static void ClosePopupsExceptModals() + { + ImGuiPNative.ClosePopupsExceptModals(); + } + public static bool IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) + { + byte ret = ImGuiPNative.IsPopupOpen(id, popupFlags); + return ret != 0; + } + public static bool BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) + { + byte ret = ImGuiPNative.BeginPopupEx(id, extraFlags); + return ret != 0; + } + public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) + { + ImGuiPNative.BeginTooltipEx(tooltipFlags, extraWindowFlags); + } + public static ImRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) + { + ImRect ret; + ImGuiPNative.GetPopupAllowedExtentRect(&ret, window); + return ret; + } + public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ImGuiWindowPtr window) + { + ImGuiPNative.GetPopupAllowedExtentRect(pOut, window); + } + public static void GetPopupAllowedExtentRect(ref ImRect pOut, ImGuiWindowPtr window) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.GetPopupAllowedExtentRect((ImRect*)ppOut, window); + } + } + public static ImRect GetPopupAllowedExtentRect(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + ImGuiPNative.GetPopupAllowedExtentRect(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GetPopupAllowedExtentRect(pOut, (ImGuiWindow*)pwindow); + } + } + public static void GetPopupAllowedExtentRect(ref ImRect pOut, ref ImGuiWindow window) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GetPopupAllowedExtentRect((ImRect*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + public static ImGuiWindowPtr GetTopMostPopupModal() + { + ImGuiWindowPtr ret = ImGuiPNative.GetTopMostPopupModal(); + return ret; + } + public static ImGuiWindowPtr GetTopMostAndVisiblePopupModal() + { + ImGuiWindowPtr ret = ImGuiPNative.GetTopMostAndVisiblePopupModal(); + return ret; + } + public static Vector2 FindBestWindowPosForPopup(ImGuiWindowPtr window) + { + Vector2 ret; + ImGuiPNative.FindBestWindowPosForPopup(&ret, window); + return ret; + } + public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindowPtr window) + { + ImGuiPNative.FindBestWindowPosForPopup(pOut, window); + } + public static void FindBestWindowPosForPopup(ref Vector2 pOut, ImGuiWindowPtr window) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.FindBestWindowPosForPopup((Vector2*)ppOut, window); + } + } + public static Vector2 FindBestWindowPosForPopup(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ImGuiPNative.FindBestWindowPosForPopup(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + public static void FindBestWindowPosForPopup(Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.FindBestWindowPosForPopup(pOut, (ImGuiWindow*)pwindow); + } + } + public static void FindBestWindowPosForPopup(ref Vector2 pOut, ref ImGuiWindow window) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.FindBestWindowPosForPopup((Vector2*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + public static Vector2 FindBestWindowPosForPopupEx(Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + Vector2 ret; + ImGuiPNative.FindBestWindowPosForPopupEx(&ret, refPos, size, lastDir, rOuter, rAvoid, policy); + return ret; + } + public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + ImGuiPNative.FindBestWindowPosForPopupEx(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + public static void FindBestWindowPosForPopupEx(ref Vector2 pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.FindBestWindowPosForPopupEx((Vector2*)ppOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + } + public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) + { + byte ret = ImGuiPNative.BeginComboPopup(popupId, bb, flags); + return ret != 0; + } + public static bool BeginComboPreview() + { + byte ret = ImGuiPNative.BeginComboPreview(); + return ret != 0; + } + public static void EndComboPreview() + { + ImGuiPNative.EndComboPreview(); + } + public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) + { + ImGuiPNative.NavInitWindow(window, forceReinit ? (byte)1 : (byte)0); + } + public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.NavInitWindow((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); + } + } + public static void NavInitRequestApplyResult() + { + ImGuiPNative.NavInitRequestApplyResult(); + } + public static bool NavMoveRequestButNoResultYet() + { + byte ret = ImGuiPNative.NavMoveRequestButNoResultYet(); + return ret != 0; + } + public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + ImGuiPNative.NavMoveRequestSubmit(moveDir, clipDir, moveFlags, scrollFlags); + } + public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + ImGuiPNative.NavMoveRequestForward(moveDir, clipDir, moveFlags, scrollFlags); + } + public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) + { + ImGuiPNative.NavMoveRequestResolveWithLastItem(result); + } + public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) + { + fixed (ImGuiNavItemData* presult = &result) + { + ImGuiPNative.NavMoveRequestResolveWithLastItem((ImGuiNavItemData*)presult); + } + } + public static void NavMoveRequestCancel() + { + ImGuiPNative.NavMoveRequestCancel(); + } + public static void NavMoveRequestApplyResult() + { + ImGuiPNative.NavMoveRequestApplyResult(); + } + public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) + { + ImGuiPNative.NavMoveRequestTryWrapping(window, moveFlags); + } + public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.NavMoveRequestTryWrapping((ImGuiWindow*)pwindow, moveFlags); + } + } + public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) + { + float ret = ImGuiPNative.GetNavInputAmount(n, mode); + return ret; + } + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + Vector2 ret; + ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); + return ret; + } + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + Vector2 ret; + ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, slowFactor, (float)(0.0f)); + return ret; + } + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); + } + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + Vector2 ret; + ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, slowFactor, fastFactor); + return ret; + } + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, slowFactor, fastFactor); + } + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, slowFactor, (float)(0.0f)); + } + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); + } + } + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); + } + } + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + fixed (Vector2* ppOut = &pOut) + { + ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); + } + } + public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) + { + int ret = ImGuiPNative.CalcTypematicRepeatAmount(t0, t1, repeatDelay, repeatRate); + return ret; + } + public static void ActivateItem(uint id) + { + ImGuiPNative.ActivateItem(id); + } + public static void SetNavWindow(ImGuiWindowPtr window) + { + ImGuiPNative.SetNavWindow(window); + } + public static void SetNavWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetNavWindow((ImGuiWindow*)pwindow); + } + } + public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + ImGuiPNative.SetNavID(id, navLayer, focusScopeId, rectRel); + } + public static void PushFocusScope(uint id) + { + ImGuiPNative.PushFocusScope(id); + } + public static void PopFocusScope() + { + ImGuiPNative.PopFocusScope(); + } + public static uint GetFocusedFocusScope() + { + uint ret = ImGuiPNative.GetFocusedFocusScope(); + return ret; + } + public static uint GetFocusScope() + { + uint ret = ImGuiPNative.GetFocusScope(); + return ret; + } + public static bool IsNamedKey(ImGuiKey key) + { + byte ret = ImGuiPNative.IsNamedKey(key); + return ret != 0; + } + public static bool IsLegacyKey(ImGuiKey key) + { + byte ret = ImGuiPNative.IsLegacyKey(key); + return ret != 0; + } + public static bool IsGamepadKey(ImGuiKey key) + { + byte ret = ImGuiPNative.IsGamepadKey(key); + return ret != 0; + } + public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) + { + ImGuiKeyDataPtr ret = ImGuiPNative.GetKeyData(key); + return ret; + } + public static void SetItemUsingMouseWheel() + { + ImGuiPNative.SetItemUsingMouseWheel(); + } + public static void SetActiveIdUsingNavAndKeys() + { + ImGuiPNative.SetActiveIdUsingNavAndKeys(); + } + public static bool IsActiveIdUsingNavDir(ImGuiDir dir) + { + byte ret = ImGuiPNative.IsActiveIdUsingNavDir(dir); + return ret != 0; + } + public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) + { + byte ret = ImGuiPNative.IsActiveIdUsingNavInput(input); + return ret != 0; + } + public static bool IsActiveIdUsingKey(ImGuiKey key) + { + byte ret = ImGuiPNative.IsActiveIdUsingKey(key); + return ret != 0; + } + public static void SetActiveIdUsingKey(ImGuiKey key) + { + ImGuiPNative.SetActiveIdUsingKey(key); + } + public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) + { + byte ret = ImGuiPNative.IsMouseDragPastThreshold(button, lockThreshold); + return ret != 0; + } + public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) + { + byte ret = ImGuiPNative.IsMouseDragPastThreshold(button, (float)(-1.0f)); + return ret != 0; + } + public static bool IsNavInputDown(ImGuiNavInput n) + { + byte ret = ImGuiPNative.IsNavInputDown(n); + return ret != 0; + } + public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) + { + byte ret = ImGuiPNative.IsNavInputTest(n, rm); + return ret != 0; + } + public static ImGuiModFlags GetMergedModFlags() + { + ImGuiModFlags ret = ImGuiPNative.GetMergedModFlags(); + return ret; + } + public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) + { + byte ret = ImGuiPNative.IsKeyPressedMap(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + public static bool IsKeyPressedMap(ImGuiKey key) + { + byte ret = ImGuiPNative.IsKeyPressedMap(key, (byte)(1)); + return ret != 0; + } + public static void DockContextInitialize(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextInitialize(ctx); + } + public static void DockContextInitialize(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextInitialize((ImGuiContext*)pctx); + } + } + public static void DockContextShutdown(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextShutdown(ctx); + } + public static void DockContextShutdown(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextShutdown((ImGuiContext*)pctx); + } + } + public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) + { + ImGuiPNative.DockContextClearNodes(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + } + public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextClearNodes((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + } + } + public static void DockContextRebuildNodes(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextRebuildNodes(ctx); + } + public static void DockContextRebuildNodes(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextRebuildNodes((ImGuiContext*)pctx); + } + } + public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextNewFrameUpdateUndocking(ctx); + } + public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextNewFrameUpdateUndocking((ImGuiContext*)pctx); + } + } + public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextNewFrameUpdateDocking(ctx); + } + public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextNewFrameUpdateDocking((ImGuiContext*)pctx); + } + } + public static void DockContextEndFrame(ImGuiContextPtr ctx) + { + ImGuiPNative.DockContextEndFrame(ctx); + } + public static void DockContextEndFrame(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextEndFrame((ImGuiContext*)pctx); + } + } + public static uint DockContextGenNodeID(ImGuiContextPtr ctx) + { + uint ret = ImGuiPNative.DockContextGenNodeID(ctx); + return ret; + } + public static uint DockContextGenNodeID(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + uint ret = ImGuiPNative.DockContextGenNodeID((ImGuiContext*)pctx); + return ret; + } + } + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + ImGuiPNative.DockContextQueueDock(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + ImGuiPNative.DockContextQueueDock(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ppayload = &payload) + { + ImGuiPNative.DockContextQueueDock(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + 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) + { + ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + } + public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) + { + ImGuiPNative.DockContextQueueUndockWindow(ctx, window); + } + public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextQueueUndockWindow((ImGuiContext*)pctx, window); + } + } + public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.DockContextQueueUndockWindow(ctx, (ImGuiWindow*)pwindow); + } + } + public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.DockContextQueueUndockWindow((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); + } + } + } + public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) + { + ImGuiPNative.DockContextQueueUndockNode(ctx, node); + } + public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiPNative.DockContextQueueUndockNode((ImGuiContext*)pctx, node); + } + } + public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiPNative.DockContextQueueUndockNode(ctx, (ImGuiDockNode*)pnode); + } + } + public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiPNative.DockContextQueueUndockNode((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); + } + } + } + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ppayload = &payload) + { + byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + } + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + 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 = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + } + public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) + { + byte ret = ImGuiPNative.DockNodeBeginAmendTabBar(node); + return ret != 0; + } + public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + byte ret = ImGuiPNative.DockNodeBeginAmendTabBar((ImGuiDockNode*)pnode); + return ret != 0; + } + } + public static void DockNodeEndAmendTabBar() + { + ImGuiPNative.DockNodeEndAmendTabBar(); + } + public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) + { + ImGuiDockNodePtr ret = ImGuiPNative.DockNodeGetRootNode(node); + return ret; + } + public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiDockNodePtr ret = ImGuiPNative.DockNodeGetRootNode((ImGuiDockNode*)pnode); + return ret; + } + } + public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) + { + byte ret = ImGuiPNative.DockNodeIsInHierarchyOf(node, parent); + return ret != 0; + } + public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent) + { + fixed (ImGuiDockNode* pnode = &node) + { + byte ret = ImGuiPNative.DockNodeIsInHierarchyOf((ImGuiDockNode*)pnode, parent); + return ret != 0; + } + } + public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent) + { + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = ImGuiPNative.DockNodeIsInHierarchyOf(node, (ImGuiDockNode*)pparent); + return ret != 0; + } + } + public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent) + { + fixed (ImGuiDockNode* pnode = &node) + { + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = ImGuiPNative.DockNodeIsInHierarchyOf((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); + return ret != 0; + } + } + } + public static int DockNodeGetDepth(ImGuiDockNodePtr node) + { + int ret = ImGuiPNative.DockNodeGetDepth(node); + return ret; + } + public static int DockNodeGetDepth(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + int ret = ImGuiPNative.DockNodeGetDepth((ImGuiDockNode*)pnode); + return ret; + } + } + public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) + { + uint ret = ImGuiPNative.DockNodeGetWindowMenuButtonId(node); + return ret; + } + public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + uint ret = ImGuiPNative.DockNodeGetWindowMenuButtonId((ImGuiDockNode*)pnode); + return ret; + } + } + public static ImGuiDockNodePtr GetWindowDockNode() + { + ImGuiDockNodePtr ret = ImGuiPNative.GetWindowDockNode(); + return ret; + } + public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) + { + byte ret = ImGuiPNative.GetWindowAlwaysWantOwnTabBar(window); + return ret != 0; + } + public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = ImGuiPNative.GetWindowAlwaysWantOwnTabBar((ImGuiWindow*)pwindow); + return ret != 0; + } + } + public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen) + { + ImGuiPNative.BeginDocked(window, pOpen); + } + public static void BeginDocked(ref ImGuiWindow window, bool* pOpen) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BeginDocked((ImGuiWindow*)pwindow, pOpen); + } + } + public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiPNative.BeginDocked(window, (bool*)ppOpen); + } + } + public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (bool* ppOpen = &pOpen) + { + ImGuiPNative.BeginDocked((ImGuiWindow*)pwindow, (bool*)ppOpen); + } + } + } + public static void BeginDockableDragDropSource(ImGuiWindowPtr window) + { + ImGuiPNative.BeginDockableDragDropSource(window); + } + public static void BeginDockableDragDropSource(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BeginDockableDragDropSource((ImGuiWindow*)pwindow); + } + } + public static void BeginDockableDragDropTarget(ImGuiWindowPtr window) + { + ImGuiPNative.BeginDockableDragDropTarget(window); + } + public static void BeginDockableDragDropTarget(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.BeginDockableDragDropTarget((ImGuiWindow*)pwindow); + } + } + public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond) + { + ImGuiPNative.SetWindowDock(window, dockId, cond); + } + public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowDock((ImGuiWindow*)pwindow, dockId, cond); + } + } + public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId) + { + ImGuiDockNodePtr ret = ImGuiPNative.DockBuilderGetNode(nodeId); + return ret; + } + public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId) + { + ImGuiDockNodePtr ret = ImGuiPNative.DockBuilderGetCentralNode(nodeId); + return ret; + } + public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) + { + uint ret = ImGuiPNative.DockBuilderAddNode(nodeId, flags); + return ret; + } + public static uint DockBuilderAddNode(uint nodeId) + { + uint ret = ImGuiPNative.DockBuilderAddNode(nodeId, (ImGuiDockNodeFlags)(0)); + return ret; + } + public static uint DockBuilderAddNode() + { + uint ret = ImGuiPNative.DockBuilderAddNode((uint)(0), (ImGuiDockNodeFlags)(0)); + return ret; + } + public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags) + { + uint ret = ImGuiPNative.DockBuilderAddNode((uint)(0), flags); + return ret; + } + public static void DockBuilderRemoveNode(uint nodeId) + { + ImGuiPNative.DockBuilderRemoveNode(nodeId); + } + public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs) + { + ImGuiPNative.DockBuilderRemoveNodeDockedWindows(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); + } + public static void DockBuilderRemoveNodeDockedWindows(uint nodeId) + { + ImGuiPNative.DockBuilderRemoveNodeDockedWindows(nodeId, (byte)(1)); + } + public static void DockBuilderRemoveNodeChildNodes(uint nodeId) + { + ImGuiPNative.DockBuilderRemoveNodeChildNodes(nodeId); + } + public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) + { + ImGuiPNative.DockBuilderSetNodePos(nodeId, pos); + } + public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) + { + ImGuiPNative.DockBuilderSetNodeSize(nodeId, size); + } + public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + uint ret = ImGuiPNative.DockBuilderSplitNode(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + return ret; + } + public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) + { + ImGuiPNative.DockBuilderCopyDockSpace(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + } + public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector> inWindowRemapPairs) + { + fixed (ImVector>* pinWindowRemapPairs = &inWindowRemapPairs) + { + ImGuiPNative.DockBuilderCopyDockSpace(srcDockspaceId, dstDockspaceId, (ImVector>*)pinWindowRemapPairs); + } + } + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + { + ImGuiPNative.DockBuilderCopyNode(srcNodeId, dstNodeId, outNodeRemapPairs); + } + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs) + { + fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs) + { + ImGuiPNative.DockBuilderCopyNode(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs); + } + } + public static void DockBuilderFinish(uint nodeId) + { + ImGuiPNative.DockBuilderFinish(nodeId); + } + public static bool IsDragDropActive() + { + byte ret = ImGuiPNative.IsDragDropActive(); + return ret != 0; + } + public static bool BeginDragDropTargetCustom(ImRect bb, uint id) + { + byte ret = ImGuiPNative.BeginDragDropTargetCustom(bb, id); + return ret != 0; + } + public static void ClearDragDrop() + { + ImGuiPNative.ClearDragDrop(); + } + public static bool IsDragDropPayloadBeingAccepted() + { + byte ret = ImGuiPNative.IsDragDropPayloadBeingAccepted(); + return ret != 0; + } + public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect) + { + ImGuiPNative.SetWindowClipRectBeforeSetChannel(window, clipRect); + } + public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.SetWindowClipRectBeforeSetChannel((ImGuiWindow*)pwindow, clipRect); + } + } + public static void EndColumns() + { + ImGuiPNative.EndColumns(); + } + public static void PushColumnClipRect(int columnIndex) + { + ImGuiPNative.PushColumnClipRect(columnIndex); + } + public static void PushColumnsBackground() + { + ImGuiPNative.PushColumnsBackground(); + } + public static void PopColumnsBackground() + { + ImGuiPNative.PopColumnsBackground(); + } + public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id) + { + ImGuiOldColumnsPtr ret = ImGuiPNative.FindOrCreateColumns(window, id); + return ret; + } + public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiOldColumnsPtr ret = ImGuiPNative.FindOrCreateColumns((ImGuiWindow*)pwindow, id); + return ret; + } + } + public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) + { + float ret = ImGuiPNative.GetColumnOffsetFromNorm(columns, offsetNorm); + return ret; + } + public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + float ret = ImGuiPNative.GetColumnOffsetFromNorm((ImGuiOldColumns*)pcolumns, offsetNorm); + return ret; + } + } + public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) + { + float ret = ImGuiPNative.GetColumnNormFromOffset(columns, offset); + return ret; + } + public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + float ret = ImGuiPNative.GetColumnNormFromOffset((ImGuiOldColumns*)pcolumns, offset); + return ret; + } + } + public static void TableOpenContextMenu(int columnN) + { + ImGuiPNative.TableOpenContextMenu(columnN); + } + public static void TableOpenContextMenu() + { + ImGuiPNative.TableOpenContextMenu((int)(-1)); + } + public static void TableSetColumnWidth(int columnN, float width) + { + ImGuiPNative.TableSetColumnWidth(columnN, width); + } + public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs) + { + ImGuiPNative.TableSetColumnSortDirection(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); + } + public static int TableGetHoveredColumn() + { + int ret = ImGuiPNative.TableGetHoveredColumn(); + return ret; + } + public static float TableGetHeaderRowHeight() + { + float ret = ImGuiPNative.TableGetHeaderRowHeight(); + return ret; + } + public static void TablePushBackgroundChannel() + { + ImGuiPNative.TablePushBackgroundChannel(); + } + public static void TablePopBackgroundChannel() + { + ImGuiPNative.TablePopBackgroundChannel(); + } + public static ImGuiTablePtr GetCurrentTable() + { + ImGuiTablePtr ret = ImGuiPNative.GetCurrentTable(); + return ret; + } + public static ImGuiTablePtr TableFindByID(uint id) + { + ImGuiTablePtr ret = ImGuiPNative.TableFindByID(id); + return ret; + } + public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) + { + ImGuiPNative.TableBeginInitMemory(table, columnsCount); + } + public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableBeginInitMemory((ImGuiTable*)ptable, columnsCount); + } + } + public static void TableBeginApplyRequests(ImGuiTablePtr table) + { + ImGuiPNative.TableBeginApplyRequests(table); + } + public static void TableBeginApplyRequests(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableBeginApplyRequests((ImGuiTable*)ptable); + } + } + public static void TableSetupDrawChannels(ImGuiTablePtr table) + { + ImGuiPNative.TableSetupDrawChannels(table); + } + public static void TableSetupDrawChannels(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSetupDrawChannels((ImGuiTable*)ptable); + } + } + public static void TableUpdateLayout(ImGuiTablePtr table) + { + ImGuiPNative.TableUpdateLayout(table); + } + public static void TableUpdateLayout(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableUpdateLayout((ImGuiTable*)ptable); + } + } + public static void TableUpdateBorders(ImGuiTablePtr table) + { + ImGuiPNative.TableUpdateBorders(table); + } + public static void TableUpdateBorders(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableUpdateBorders((ImGuiTable*)ptable); + } + } + public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) + { + ImGuiPNative.TableUpdateColumnsWeightFromWidth(table); + } + public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableUpdateColumnsWeightFromWidth((ImGuiTable*)ptable); + } + } + public static void TableDrawBorders(ImGuiTablePtr table) + { + ImGuiPNative.TableDrawBorders(table); + } + public static void TableDrawBorders(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableDrawBorders((ImGuiTable*)ptable); + } + } + public static void TableDrawContextMenu(ImGuiTablePtr table) + { + ImGuiPNative.TableDrawContextMenu(table); + } + public static void TableDrawContextMenu(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableDrawContextMenu((ImGuiTable*)ptable); + } + } + public static void TableMergeDrawChannels(ImGuiTablePtr table) + { + ImGuiPNative.TableMergeDrawChannels(table); + } + public static void TableMergeDrawChannels(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableMergeDrawChannels((ImGuiTable*)ptable); + } + } + public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) + { + ImGuiTableInstanceDataPtr ret = ImGuiPNative.TableGetInstanceData(table, instanceNo); + return ret; + } + public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiTableInstanceDataPtr ret = ImGuiPNative.TableGetInstanceData((ImGuiTable*)ptable, instanceNo); + return ret; + } + } + public static void TableSortSpecsSanitize(ImGuiTablePtr table) + { + ImGuiPNative.TableSortSpecsSanitize(table); + } + public static void TableSortSpecsSanitize(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSortSpecsSanitize((ImGuiTable*)ptable); + } + } + public static void TableSortSpecsBuild(ImGuiTablePtr table) + { + ImGuiPNative.TableSortSpecsBuild(table); + } + public static void TableSortSpecsBuild(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSortSpecsBuild((ImGuiTable*)ptable); + } + } + public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) + { + ImGuiSortDirection ret = ImGuiPNative.TableGetColumnNextSortDirection(column); + return ret; + } + public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + ImGuiSortDirection ret = ImGuiPNative.TableGetColumnNextSortDirection((ImGuiTableColumn*)pcolumn); + return ret; + } + } + public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) + { + ImGuiPNative.TableFixColumnSortDirection(table, column); + } + public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableFixColumnSortDirection((ImGuiTable*)ptable, column); + } + } + public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + ImGuiPNative.TableFixColumnSortDirection(table, (ImGuiTableColumn*)pcolumn); + } + } + public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) + { + fixed (ImGuiTable* ptable = &table) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + ImGuiPNative.TableFixColumnSortDirection((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); + } + } + } + public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) + { + float ret = ImGuiPNative.TableGetColumnWidthAuto(table, column); + return ret; + } + public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) + { + fixed (ImGuiTable* ptable = &table) + { + float ret = ImGuiPNative.TableGetColumnWidthAuto((ImGuiTable*)ptable, column); + return ret; + } + } + public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + float ret = ImGuiPNative.TableGetColumnWidthAuto(table, (ImGuiTableColumn*)pcolumn); + return ret; + } + } + public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) + { + fixed (ImGuiTable* ptable = &table) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + float ret = ImGuiPNative.TableGetColumnWidthAuto((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); + return ret; + } + } + } + public static void TableBeginRow(ImGuiTablePtr table) + { + ImGuiPNative.TableBeginRow(table); + } + public static void TableBeginRow(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableBeginRow((ImGuiTable*)ptable); + } + } + public static void TableEndRow(ImGuiTablePtr table) + { + ImGuiPNative.TableEndRow(table); + } + public static void TableEndRow(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableEndRow((ImGuiTable*)ptable); + } + } + public static void TableBeginCell(ImGuiTablePtr table, int columnN) + { + ImGuiPNative.TableBeginCell(table, columnN); + } + public static void TableBeginCell(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableBeginCell((ImGuiTable*)ptable, columnN); + } + } + public static void TableEndCell(ImGuiTablePtr table) + { + ImGuiPNative.TableEndCell(table); + } + public static void TableEndCell(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableEndCell((ImGuiTable*)ptable); + } + } + public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) + { + ImRect ret; + ImGuiPNative.TableGetCellBgRect(&ret, table, columnN); + return ret; + } + public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) + { + ImGuiPNative.TableGetCellBgRect(pOut, table, columnN); + } + public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.TableGetCellBgRect((ImRect*)ppOut, table, columnN); + } + } + public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + ImRect ret; + ImGuiPNative.TableGetCellBgRect(&ret, (ImGuiTable*)ptable, columnN); + return ret; + } + } + public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableGetCellBgRect(pOut, (ImGuiTable*)ptable, columnN); + } + } + public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableGetCellBgRect((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); + } + } + } + public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) + { + uint ret = ImGuiPNative.TableGetColumnResizeID(table, columnN, instanceNo); + return ret; + } + public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) + { + uint ret = ImGuiPNative.TableGetColumnResizeID(table, columnN, (int)(0)); + return ret; + } + public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) + { + fixed (ImGuiTable* ptable = &table) + { + uint ret = ImGuiPNative.TableGetColumnResizeID((ImGuiTable*)ptable, columnN, instanceNo); + return ret; + } + } + public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + uint ret = ImGuiPNative.TableGetColumnResizeID((ImGuiTable*)ptable, columnN, (int)(0)); + return ret; + } + } + public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) + { + float ret = ImGuiPNative.TableGetMaxColumnWidth(table, columnN); + return ret; + } + public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + float ret = ImGuiPNative.TableGetMaxColumnWidth((ImGuiTable*)ptable, columnN); + return ret; + } + } + public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) + { + ImGuiPNative.TableSetColumnWidthAutoSingle(table, columnN); + } + public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSetColumnWidthAutoSingle((ImGuiTable*)ptable, columnN); + } + } + public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) + { + ImGuiPNative.TableSetColumnWidthAutoAll(table); + } + public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSetColumnWidthAutoAll((ImGuiTable*)ptable); + } + } + public static void TableRemove(ImGuiTablePtr table) + { + ImGuiPNative.TableRemove(table); + } + public static void TableRemove(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableRemove((ImGuiTable*)ptable); + } + } + public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) + { + ImGuiPNative.TableGcCompactTransientBuffers(table); + } + public static void TableGcCompactTransientBuffers(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableGcCompactTransientBuffers((ImGuiTable*)ptable); + } + } + public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) + { + ImGuiPNative.TableGcCompactTransientBuffers(table); + } + public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) + { + fixed (ImGuiTableTempData* ptable = &table) + { + ImGuiPNative.TableGcCompactTransientBuffers((ImGuiTableTempData*)ptable); + } + } + public static void TableGcCompactSettings() + { + ImGuiPNative.TableGcCompactSettings(); + } + public static void TableLoadSettings(ImGuiTablePtr table) + { + ImGuiPNative.TableLoadSettings(table); + } + public static void TableLoadSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableLoadSettings((ImGuiTable*)ptable); + } + } + public static void TableSaveSettings(ImGuiTablePtr table) + { + ImGuiPNative.TableSaveSettings(table); + } + public static void TableSaveSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableSaveSettings((ImGuiTable*)ptable); + } + } + public static void TableResetSettings(ImGuiTablePtr table) + { + ImGuiPNative.TableResetSettings(table); + } + public static void TableResetSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.TableResetSettings((ImGuiTable*)ptable); + } + } + public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) + { + ImGuiTableSettingsPtr ret = ImGuiPNative.TableGetBoundSettings(table); + return ret; + } + public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiTableSettingsPtr ret = ImGuiPNative.TableGetBoundSettings((ImGuiTable*)ptable); + return ret; + } + } + public static void TableSettingsAddSettingsHandler() + { + ImGuiPNative.TableSettingsAddSettingsHandler(); + } + public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) + { + ImGuiTableSettingsPtr ret = ImGuiPNative.TableSettingsCreate(id, columnsCount); + return ret; + } + public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) + { + ImGuiTableSettingsPtr ret = ImGuiPNative.TableSettingsFindByID(id); + return ret; + } + public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) + { + byte ret = ImGuiPNative.BeginTabBarEx(tabBar, bb, flags, dockNode); + return ret != 0; + } + public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte ret = ImGuiPNative.BeginTabBarEx((ImGuiTabBar*)ptabBar, bb, flags, dockNode); + return ret != 0; + } + } + public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = ImGuiPNative.BeginTabBarEx(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = ImGuiPNative.BeginTabBarEx((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + } + public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) + { + ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindTabByID(tabBar, tabId); + return ret; + } + public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindTabByID((ImGuiTabBar*)ptabBar, tabId); + return ret; + } + } + public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) + { + ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindMostRecentlySelectedTabForActiveWindow(tabBar); + return ret; + } + public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindMostRecentlySelectedTabForActiveWindow((ImGuiTabBar*)ptabBar); + return ret; + } + } + public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) + { + ImGuiPNative.TabBarAddTab(tabBar, tabFlags, window); + } + public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiPNative.TabBarAddTab((ImGuiTabBar*)ptabBar, tabFlags, window); + } + } + public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.TabBarAddTab(tabBar, tabFlags, (ImGuiWindow*)pwindow); + } + } + public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.TabBarAddTab((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); + } + } + } + public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) + { + ImGuiPNative.TabBarRemoveTab(tabBar, tabId); + } + public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiPNative.TabBarRemoveTab((ImGuiTabBar*)ptabBar, tabId); + } + } + public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) + { + ImGuiPNative.TabBarCloseTab(tabBar, tab); + } + public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiPNative.TabBarCloseTab((ImGuiTabBar*)ptabBar, tab); + } + } + public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarCloseTab(tabBar, (ImGuiTabItem*)ptab); + } + } + public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarCloseTab((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); + } + } + } + public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) + { + ImGuiPNative.TabBarQueueReorder(tabBar, tab, offset); + } + public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiPNative.TabBarQueueReorder((ImGuiTabBar*)ptabBar, tab, offset); + } + } + public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarQueueReorder(tabBar, (ImGuiTabItem*)ptab, offset); + } + } + public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarQueueReorder((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); + } + } + } + public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) + { + ImGuiPNative.TabBarQueueReorderFromMousePos(tabBar, tab, mousePos); + } + public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiPNative.TabBarQueueReorderFromMousePos((ImGuiTabBar*)ptabBar, tab, mousePos); + } + } + public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarQueueReorderFromMousePos(tabBar, (ImGuiTabItem*)ptab, mousePos); + } + } + public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + ImGuiPNative.TabBarQueueReorderFromMousePos((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); + } + } + } + public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) + { + byte ret = ImGuiPNative.TabBarProcessReorder(tabBar); + return ret != 0; + } + public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte ret = ImGuiPNative.TabBarProcessReorder((ImGuiTabBar*)ptabBar); + return ret != 0; + } + } + public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + ImGuiPNative.TabItemBackground(drawList, bb, flags, col); + } + public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.TabItemBackground((ImDrawList*)pdrawList, bb, flags, col); + } + } + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) + { + ImGuiPNative.RenderFrame(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); + } + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border) + { + ImGuiPNative.RenderFrame(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); + } + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol) + { + ImGuiPNative.RenderFrame(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); + } + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding) + { + ImGuiPNative.RenderFrame(pMin, pMax, fillCol, (byte)(1), rounding); + } + public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) + { + ImGuiPNative.RenderFrameBorder(pMin, pMax, rounding); + } + public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax) + { + ImGuiPNative.RenderFrameBorder(pMin, pMax, (float)(0.0f)); + } + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); + } + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); + } + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + } + 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) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + } + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); + } + } + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); + } + } + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + } + } + public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) + { + ImGuiPNative.RenderNavHighlight(bb, id, flags); + } + public static void RenderNavHighlight(ImRect bb, uint id) + { + ImGuiPNative.RenderNavHighlight(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); + } + public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + ImGuiPNative.RenderMouseCursor(pos, scale, mouseCursor, colFill, colBorder, colShadow); + } + public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + ImGuiPNative.RenderArrow(drawList, pos, col, dir, scale); + } + public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir) + { + ImGuiPNative.RenderArrow(drawList, pos, col, dir, (float)(1.0f)); + } + public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderArrow((ImDrawList*)pdrawList, pos, col, dir, scale); + } + } + public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderArrow((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); + } + } + public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col) + { + ImGuiPNative.RenderBullet(drawList, pos, col); + } + public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderBullet((ImDrawList*)pdrawList, pos, col); + } + } + public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz) + { + ImGuiPNative.RenderCheckMark(drawList, pos, col, sz); + } + public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderCheckMark((ImDrawList*)pdrawList, pos, col, sz); + } + } + public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + ImGuiPNative.RenderArrowPointingAt(drawList, pos, halfSz, direction, col); + } + public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderArrowPointingAt((ImDrawList*)pdrawList, pos, halfSz, direction, col); + } + } + public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col) + { + ImGuiPNative.RenderArrowDockMenu(drawList, pMin, sz, col); + } + public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderArrowDockMenu((ImDrawList*)pdrawList, pMin, sz, col); + } + } + public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + ImGuiPNative.RenderRectFilledRangeH(drawList, rect, col, xStartNorm, xEndNorm, rounding); + } + public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderRectFilledRangeH((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); + } + } + public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + ImGuiPNative.RenderRectFilledWithHole(drawList, outer, inner, col, rounding); + } + public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.RenderRectFilledWithHole((ImDrawList*)pdrawList, outer, inner, col, rounding); + } + } + public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) + { + ImDrawFlags ret = ImGuiPNative.CalcRoundingFlagsForRectInRect(rIn, rOuter, threshold); + return ret; + } + public static bool CloseButton(uint id, Vector2 pos) + { + byte ret = ImGuiPNative.CloseButton(id, pos); + return ret != 0; + } + public static bool CollapseButton(uint id, Vector2 pos, ImGuiDockNodePtr dockNode) + { + byte ret = ImGuiPNative.CollapseButton(id, pos, dockNode); + return ret != 0; + } + public static bool CollapseButton(uint id, Vector2 pos, ref ImGuiDockNode dockNode) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = ImGuiPNative.CollapseButton(id, pos, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + public static void Scrollbar(ImGuiAxis axis) + { + ImGuiPNative.Scrollbar(axis); + } + public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) + { + byte ret = ImGuiPNative.ScrollbarEx(bb, id, axis, pScrollV, availV, contentsV, flags); + return ret != 0; + } + public static bool ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImGuiPNative.ImageButtonEx(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); + return ret != 0; + } + public static ImRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) + { + ImRect ret; + ImGuiPNative.GetWindowScrollbarRect(&ret, window, axis); + return ret; + } + public static void GetWindowScrollbarRect(ImRectPtr pOut, ImGuiWindowPtr window, ImGuiAxis axis) + { + ImGuiPNative.GetWindowScrollbarRect(pOut, window, axis); + } + public static void GetWindowScrollbarRect(ref ImRect pOut, ImGuiWindowPtr window, ImGuiAxis axis) + { + fixed (ImRect* ppOut = &pOut) + { + ImGuiPNative.GetWindowScrollbarRect((ImRect*)ppOut, window, axis); + } + } + public static ImRect GetWindowScrollbarRect(ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + ImGuiPNative.GetWindowScrollbarRect(&ret, (ImGuiWindow*)pwindow, axis); + return ret; + } + } + public static void GetWindowScrollbarRect(ImRectPtr pOut, ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GetWindowScrollbarRect(pOut, (ImGuiWindow*)pwindow, axis); + } + } + public static void GetWindowScrollbarRect(ref ImRect pOut, ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GetWindowScrollbarRect((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis); + } + } + } + public static uint GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) + { + uint ret = ImGuiPNative.GetWindowScrollbarID(window, axis); + return ret; + } + public static uint GetWindowScrollbarID(ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = ImGuiPNative.GetWindowScrollbarID((ImGuiWindow*)pwindow, axis); + return ret; + } + } + public static uint GetWindowResizeCornerID(ImGuiWindowPtr window, int n) + { + uint ret = ImGuiPNative.GetWindowResizeCornerID(window, n); + return ret; + } + public static uint GetWindowResizeCornerID(ref ImGuiWindow window, int n) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = ImGuiPNative.GetWindowResizeCornerID((ImGuiWindow*)pwindow, n); + return ret; + } + } + public static uint GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) + { + uint ret = ImGuiPNative.GetWindowResizeBorderID(window, dir); + return ret; + } + public static uint GetWindowResizeBorderID(ref ImGuiWindow window, ImGuiDir dir) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = ImGuiPNative.GetWindowResizeBorderID((ImGuiWindow*)pwindow, dir); + return ret; + } + } + public static void SeparatorEx(ImGuiSeparatorFlags flags) + { + ImGuiPNative.SeparatorEx(flags); + } + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, outHeld, flags); + return ret != 0; + } + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHovered = &outHovered) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, outHeld, flags); + return ret != 0; + } + } + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld) + { + fixed (bool* poutHovered = &outHovered) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, outHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, (bool*)poutHeld, flags); + return ret != 0; + } + } + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHovered = &outHovered) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, (bool*)poutHeld, flags); + return ret != 0; + } + } + } + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld) + { + fixed (bool* poutHovered = &outHovered) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, uint bgCol) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + } + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + } + public static bool TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) + { + byte ret = ImGuiPNative.TreeNodeBehaviorIsOpen(id, flags); + return ret != 0; + } + public static bool TreeNodeBehaviorIsOpen(uint id) + { + byte ret = ImGuiPNative.TreeNodeBehaviorIsOpen(id, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + public static void TreePushOverrideID(uint id) + { + ImGuiPNative.TreePushOverrideID(id); + } + public static ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) + { + ImGuiDataTypeInfoPtr ret = ImGuiPNative.DataTypeGetInfo(dataType); + return ret; + } + public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) + { + ImGuiPNative.DataTypeApplyOp(dataType, op, output, arg1, arg2); + } + public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) + { + int ret = ImGuiPNative.DataTypeCompare(dataType, arg1, arg2); + return ret; + } + public static bool DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte ret = ImGuiPNative.DataTypeClamp(dataType, pData, pMin, pMax); + return ret != 0; + } + public static bool TempInputIsActive(uint id) + { + byte ret = ImGuiPNative.TempInputIsActive(id); + return ret != 0; + } + public static ImGuiInputTextStatePtr GetInputTextState(uint id) + { + ImGuiInputTextStatePtr ret = ImGuiPNative.GetInputTextState(id); + return ret; + } + public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + ImGuiPNative.ShadeVertsLinearColorGradientKeepAlpha(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + } + public static void ShadeVertsLinearColorGradientKeepAlpha(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.ShadeVertsLinearColorGradientKeepAlpha((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + } + } + public static void ShadeVertsLinearUV(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) + { + ImGuiPNative.ShadeVertsLinearUV(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); + } + 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) + { + ImGuiPNative.ShadeVertsLinearUV((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); + } + } + public static void GcCompactTransientMiscBuffers() + { + ImGuiPNative.GcCompactTransientMiscBuffers(); + } + public static void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) + { + ImGuiPNative.GcCompactTransientWindowBuffers(window); + } + public static void GcCompactTransientWindowBuffers(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GcCompactTransientWindowBuffers((ImGuiWindow*)pwindow); + } + } + public static void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) + { + ImGuiPNative.GcAwakeTransientWindowBuffers(window); + } + public static void GcAwakeTransientWindowBuffers(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiPNative.GcAwakeTransientWindowBuffers((ImGuiWindow*)pwindow); + } + } + public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + ImGuiPNative.ErrorCheckEndFrameRecover(logCallback, userData); + } + public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback) + { + ImGuiPNative.ErrorCheckEndFrameRecover(logCallback, (void*)(default)); + } + public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + ImGuiPNative.ErrorCheckEndWindowRecover(logCallback, userData); + } + public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback) + { + ImGuiPNative.ErrorCheckEndWindowRecover(logCallback, (void*)(default)); + } + public static void DebugDrawItemRect(uint col) + { + ImGuiPNative.DebugDrawItemRect(col); + } + public static void DebugDrawItemRect() + { + ImGuiPNative.DebugDrawItemRect((uint)(4278190335)); + } + public static void DebugStartItemPicker() + { + ImGuiPNative.DebugStartItemPicker(); + } + public static void ShowFontAtlas(ImFontAtlasPtr atlas) + { + ImGuiPNative.ShowFontAtlas(atlas); + } + public static void ShowFontAtlas(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImGuiPNative.ShowFontAtlas((ImFontAtlas*)patlas); + } + } + public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) + { + ImGuiPNative.DebugHookIdInfo(id, dataType, dataId, dataIdEnd); + } + public static void DebugNodeColumns(ImGuiOldColumnsPtr columns) + { + ImGuiPNative.DebugNodeColumns(columns); + } + public static void DebugNodeColumns(ref ImGuiOldColumns columns) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + ImGuiPNative.DebugNodeColumns((ImGuiOldColumns*)pcolumns); + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + } + public static void DebugNodeFont(ImFontPtr font) + { + ImGuiPNative.DebugNodeFont(font); + } + public static void DebugNodeFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + ImGuiPNative.DebugNodeFont((ImFont*)pfont); + } + } + public static void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) + { + ImGuiPNative.DebugNodeFontGlyph(font, glyph); + } + public static void DebugNodeFontGlyph(ref ImFont font, ImFontGlyphPtr glyph) + { + fixed (ImFont* pfont = &font) + { + ImGuiPNative.DebugNodeFontGlyph((ImFont*)pfont, glyph); + } + } + public static void DebugNodeFontGlyph(ImFontPtr font, ref ImFontGlyph glyph) + { + fixed (ImFontGlyph* pglyph = &glyph) + { + ImGuiPNative.DebugNodeFontGlyph(font, (ImFontGlyph*)pglyph); + } + } + public static void DebugNodeFontGlyph(ref ImFont font, ref ImFontGlyph glyph) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontGlyph* pglyph = &glyph) + { + ImGuiPNative.DebugNodeFontGlyph((ImFont*)pfont, (ImFontGlyph*)pglyph); + } + } + } + public static void DebugNodeTable(ImGuiTablePtr table) + { + ImGuiPNative.DebugNodeTable(table); + } + public static void DebugNodeTable(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiPNative.DebugNodeTable((ImGuiTable*)ptable); + } + } + public static void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) + { + ImGuiPNative.DebugNodeTableSettings(settings); + } + public static void DebugNodeTableSettings(ref ImGuiTableSettings settings) + { + fixed (ImGuiTableSettings* psettings = &settings) + { + ImGuiPNative.DebugNodeTableSettings((ImGuiTableSettings*)psettings); + } + } + public static void DebugNodeInputTextState(ImGuiInputTextStatePtr state) + { + ImGuiPNative.DebugNodeInputTextState(state); + } + public static void DebugNodeInputTextState(ref ImGuiInputTextState state) + { + fixed (ImGuiInputTextState* pstate = &state) + { + ImGuiPNative.DebugNodeInputTextState((ImGuiInputTextState*)pstate); + } + } + public static void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) + { + ImGuiPNative.DebugNodeWindowSettings(settings); + } + public static void DebugNodeWindowSettings(ref ImGuiWindowSettings settings) + { + fixed (ImGuiWindowSettings* psettings = &settings) + { + ImGuiPNative.DebugNodeWindowSettings((ImGuiWindowSettings*)psettings); + } + } + public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) + { + ImGuiPNative.DebugNodeWindowsListByBeginStackParent(windows, windowsSize, parentInBeginStack); + } + public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) + { + fixed (ImGuiWindow** pwindows = &windows) + { + ImGuiPNative.DebugNodeWindowsListByBeginStackParent((ImGuiWindow**)pwindows, windowsSize, parentInBeginStack); + } + } + public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ref ImGuiWindow parentInBeginStack) + { + fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) + { + ImGuiPNative.DebugNodeWindowsListByBeginStackParent(windows, windowsSize, (ImGuiWindow*)pparentInBeginStack); + } + } + public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ref ImGuiWindow parentInBeginStack) + { + fixed (ImGuiWindow** pwindows = &windows) + { + fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) + { + ImGuiPNative.DebugNodeWindowsListByBeginStackParent((ImGuiWindow**)pwindows, windowsSize, (ImGuiWindow*)pparentInBeginStack); + } + } + } + public static void DebugNodeViewport(ImGuiViewportPPtr viewport) + { + ImGuiPNative.DebugNodeViewport(viewport); + } + public static void DebugNodeViewport(ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.DebugNodeViewport((ImGuiViewportP*)pviewport); + } + } + public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ImGuiViewportPPtr viewport, ImRect bb) + { + ImGuiPNative.DebugRenderViewportThumbnail(drawList, viewport, bb); + } + public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ImGuiViewportPPtr viewport, ImRect bb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGuiPNative.DebugRenderViewportThumbnail((ImDrawList*)pdrawList, viewport, bb); + } + } + public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ref ImGuiViewportP viewport, ImRect bb) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.DebugRenderViewportThumbnail(drawList, (ImGuiViewportP*)pviewport, bb); + } + } + public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ref ImGuiViewportP viewport, ImRect bb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ImGuiPNative.DebugRenderViewportThumbnail((ImDrawList*)pdrawList, (ImGuiViewportP*)pviewport, bb); + } + } + } + public static ImFontBuilderIOPtr ImFontAtlasGetBuilderForStbTruetype() + { + ImFontBuilderIOPtr ret = ImGuiPNative.ImFontAtlasGetBuilderForStbTruetype(); + return ret; + } + public static void ImFontAtlasBuildInit(ImFontAtlasPtr atlas) + { + ImGuiPNative.ImFontAtlasBuildInit(atlas); + } + public static void ImFontAtlasBuildInit(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImGuiPNative.ImFontAtlasBuildInit((ImFontAtlas*)patlas); + } + } + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, font, fontConfig, ascent, descent); + } + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, font, fontConfig, ascent, descent); + } + } + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, (ImFont*)pfont, fontConfig, ascent, descent); + } + } + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFont* pfont = &font) + { + ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, (ImFont*)pfont, fontConfig, ascent, descent); + } + } + } + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, font, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, font, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + } + public static void ImFontAtlasBuildFinish(ImFontAtlasPtr atlas) + { + ImGuiPNative.ImFontAtlasBuildFinish(atlas); + } + public static void ImFontAtlasBuildFinish(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImGuiPNative.ImFontAtlasBuildFinish((ImFontAtlas*)patlas); + } + } + public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) + { + ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable(outTable, inMultiplyFactor, gammaFactor); + } + public static void ImFontAtlasBuildMultiplyCalcLookupTable(ref byte outTable, float inMultiplyFactor, float gammaFactor) + { + fixed (byte* poutTable = &outTable) + { + ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable((byte*)poutTable, inMultiplyFactor, gammaFactor); + } + } + public static void ImFontAtlasBuildMultiplyCalcLookupTable(ReadOnlySpan outTable, float inMultiplyFactor, float gammaFactor) + { + fixed (byte* poutTable = outTable) + { + ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable((byte*)poutTable, inMultiplyFactor, gammaFactor); + } + } +} +// DISCARDED: internal static byte ArrowButtonExNative(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) +// DISCARDED: internal static byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) +// DISCARDED: internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags) +// DISCARDED: internal static byte BeginMenuExNative(byte* label, byte* icon, byte enabled) +// DISCARDED: internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) +// DISCARDED: internal static byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) +// DISCARDED: internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) +// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, long* flags, long flagsValue) +// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, ulong* flags, ulong flagsValue) +// DISCARDED: internal static void ColorEditOptionsPopupNative(float* col, ImGuiColorEditFlags flags) +// DISCARDED: internal static void ColorPickerOptionsPopupNative(float* refCol, ImGuiColorEditFlags flags) +// DISCARDED: internal static void ColorTooltipNative(byte* text, float* col, ImGuiColorEditFlags flags) +// DISCARDED: internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) +// DISCARDED: internal static void Custom_StbTextMakeUndoReplaceNative(ImGuiInputTextState* str, int where, int oldLength, int newLength) +// DISCARDED: internal static void Custom_StbTextUndoNative(ImGuiInputTextState* str) +// DISCARDED: internal static byte DataTypeApplyFromTextNative(byte* buf, ImGuiDataType dataType, void* pData, byte* format) +// DISCARDED: internal static void DebugLogNative(byte* fmt) +// DISCARDED: internal static void DebugLogVNative(byte* fmt, nuint args) +// DISCARDED: internal static void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label) +// DISCARDED: internal static void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) +// DISCARDED: internal static void DebugNodeStorageNative(ImGuiStorage* storage, byte* label) +// DISCARDED: internal static void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label) +// DISCARDED: internal static void DebugNodeWindowNative(ImGuiWindow* window, byte* label) +// DISCARDED: internal static void DebugNodeWindowsListNative(ImVector* windows, byte* label) +// DISCARDED: internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName) +// DISCARDED: internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId) +// DISCARDED: internal static byte DragBehaviorNative(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) +// DISCARDED: internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) +// DISCARDED: internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd) +// DISCARDED: FindRenderedTextEndS +// DISCARDED: internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) +// DISCARDED: internal static ImGuiWindow* FindWindowByNameNative(byte* name) +// DISCARDED: internal static uint GetColumnsIDNative(byte* strId, int count) +// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, byte* str, byte* strEnd) +// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, void* ptr) +// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, int n) +// DISCARDED: internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) +// DISCARDED: internal static byte* GetNameNative(ImGuiWindowSettings* self) +// DISCARDED: GetNameS +// DISCARDED: internal static byte* GetNavInputNameNative(ImGuiNavInput n) +// DISCARDED: GetNavInputNameS +// DISCARDED: internal static byte* GetTabNameNative(ImGuiTabBar* self, ImGuiTabItem* tab) +// DISCARDED: GetTabNameS +// DISCARDED: internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) +// DISCARDED: internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) +// DISCARDED: internal static void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride) +// DISCARDED: internal static void ImFontAtlasBuildRender32bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) +// DISCARDED: internal static void ImFontAtlasBuildRender8bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) +// DISCARDED: internal static void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt) +// DISCARDED: internal static void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) +// DISCARDED: internal static ImGuiWindow* ImGuiWindowNative(ImGuiContext* context, byte* name) +// DISCARDED: internal static uint ImHashDataNative(void* data, nuint dataSize, uint seed) +// DISCARDED: internal static uint ImHashStrNative(byte* data, nuint dataSize, uint seed) +// DISCARDED: internal static byte* ImParseFormatFindEndNative(byte* format) +// DISCARDED: ImParseFormatFindEndS +// DISCARDED: internal static byte* ImParseFormatFindStartNative(byte* format) +// DISCARDED: ImParseFormatFindStartS +// DISCARDED: internal static int ImParseFormatPrecisionNative(byte* format, int defaultValue) +// DISCARDED: internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) +// DISCARDED: internal static byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) +// DISCARDED: ImParseFormatSanitizeForScanningS +// DISCARDED: internal static byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c) +// DISCARDED: ImStrchrRangeS +// DISCARDED: internal static byte* ImStrdupNative(byte* str) +// DISCARDED: internal static byte* ImStrdupcpyNative(byte* dst, nuint* pDstSize, byte* str) +// DISCARDED: ImStrdupcpyS +// DISCARDED: ImStrdupS +// DISCARDED: internal static byte* ImStreolRangeNative(byte* str, byte* strEnd) +// DISCARDED: ImStreolRangeS +// DISCARDED: internal static int ImStricmpNative(byte* str1, byte* str2) +// DISCARDED: internal static byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) +// DISCARDED: ImStristrS +// DISCARDED: internal static int ImStrlenWNative(ushort* str) +// DISCARDED: internal static void ImStrncpyNative(byte* dst, byte* src, nuint count) +// DISCARDED: internal static int ImStrnicmpNative(byte* str1, byte* str2, nuint count) +// DISCARDED: internal static byte* ImStrSkipBlankNative(byte* str) +// DISCARDED: ImStrSkipBlankS +// DISCARDED: internal static void ImStrTrimBlanksNative(byte* str) +// DISCARDED: internal static int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd) +// DISCARDED: internal static byte* ImTextCharToUtf8Native(byte* outBuf, uint c) +// DISCARDED: ImTextCharToUtf8S +// DISCARDED: internal static int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd) +// DISCARDED: internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) +// DISCARDED: internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) +// DISCARDED: internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) +// DISCARDED: internal static byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) +// DISCARDED: 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) +// DISCARDED: internal static void RemoveSettingsHandlerNative(byte* typeName) +// DISCARDED: internal static void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) +// DISCARDED: internal static void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) +// DISCARDED: internal static void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) +// DISCARDED: internal static void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) +// DISCARDED: internal static void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) +// DISCARDED: internal static byte SliderBehaviorNative(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) +// DISCARDED: internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) +// DISCARDED: internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) +// DISCARDED: internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) +// DISCARDED: internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) +// DISCARDED: TableGetColumnNameS +// DISCARDED: internal static byte TempInputScalarNative(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) +// DISCARDED: internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags) +// DISCARDED: internal static byte TreeNodeBehaviorNative(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs new file mode 100644 index 000000000..20093f7a0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs @@ -0,0 +1,4068 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGuiPNative +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint ImHashData(void* data, nuint dataSize, uint seed) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[688])(data, dataSize, seed); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint ImHashStr(byte* data, nuint dataSize, uint seed) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[689])(data, dataSize, seed); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + + ((delegate* unmanaged[Cdecl], int>, void>)ImGuiP.funcTable[690])(baseValue, count, sizeOfElement, compareFunc); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint ImAlphaBlendColors(uint colA, uint colB) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[691])(colA, colB); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImIsPowerOfTwo(int v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[692])(v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImIsPowerOfTwo(ulong v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[693])(v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImUpperPowerOfTwo(int v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[694])(v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImStricmp(byte* str1, byte* str2) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[695])(str1, str2); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImStrnicmp(byte* str1, byte* str2, nuint count) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[696])(str1, str2, count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImStrncpy(byte* dst, byte* src, nuint count) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[697])(dst, src, count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStrdup(byte* str) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[698])(str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[699])(dst, pDstSize, str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[700])(strBegin, strEnd, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImStrlenW(ushort* str) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[701])(str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStreolRange(byte* str, byte* strEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[702])(str, strEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[703])(bufMidLine, bufBegin); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[704])(haystack, haystackEnd, needle, needleEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImStrTrimBlanks(byte* str) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[705])(str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImStrSkipBlank(byte* str) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[706])(str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImCharIsBlankA(byte c) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[707])(c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImCharIsBlankW(uint c) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[708])(c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[709])(outBuf, outBufEnd, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[710])(outBuf, outBufEnd, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImParseFormatFindStart(byte* format) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[711])(format); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImParseFormatFindEnd(byte* format) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[712])(format); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[713])(fmtIn, fmtOut, fmtOutSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[714])(fmtIn, fmtOut, fmtOutSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImParseFormatPrecision(byte* format, int defaultValue) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[715])(format, defaultValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImTextCharToUtf8(byte* outBuf, uint c) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[716])(outBuf, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[717])(outChar, inText, inTextEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[718])(inText, inTextEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[719])(inText, inTextEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[720])(inText, inTextEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFileHandle ImFileOpen(byte* filename, byte* mode) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[721])(filename, mode); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImFileClose(ImFileHandle file) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[722])(file); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ulong ImFileGetSize(ImFileHandle file) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[723])(file); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[724])(data, size, count, file); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[725])(data, size, count, file); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[726])(filename, mode, outFileSize, paddingBytes); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImPow(float x, float y) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[727])(x, y); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double ImPow(double x, double y) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[728])(x, y); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImLog(float x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[729])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double ImLog(double x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[730])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImAbs(int x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[731])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImAbs(float x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[732])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double ImAbs(double x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[733])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImSign(float x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[734])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double ImSign(double x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[735])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImRsqrt(float x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[736])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double ImRsqrt(double x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[737])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[738])(pOut, lhs, rhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[739])(pOut, lhs, rhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[740])(pOut, v, mn, mx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[741])(pOut, a, b, t); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[742])(pOut, a, b, t); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[743])(pOut, a, b, t); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImSaturate(float f) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[744])(f); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImLengthSqr(Vector2 lhs) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[745])(lhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImLengthSqr(Vector4 lhs) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[746])(lhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImInvLength(Vector2 lhs, float failValue) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[747])(lhs, failValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImFloor(float f) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[748])(f); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFloor(Vector2* pOut, Vector2 v) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[750])(pOut, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImFloorSigned(float f) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[749])(f); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFloorSigned(Vector2* pOut, Vector2 v) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[751])(pOut, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImModPositive(int a, int b) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[752])(a, b); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImDot(Vector2 a, Vector2 b) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[753])(a, b); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[754])(pOut, v, cosA, sinA); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImLinearSweep(float current, float target, float speed) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[755])(current, target, speed); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[756])(pOut, lhs, rhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImIsFloatAboveGuaranteedIntegerPrecision(float f) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[757])(f); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[758])(pOut, p1, p2, p3, p4, t); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[759])(pOut, p1, p2, p3, p4, p, numSegments); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[760])(pOut, p1, p2, p3, p4, p, tessTol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[761])(pOut, p1, p2, p3, t); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[762])(pOut, a, b, p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[763])(a, b, c, p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[764])(pOut, a, b, c, p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[765])(a, b, c, p, outU, outV, outW); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[766])(a, b, c); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[767])(dx, dy); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVec1* ImVec1() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[768])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVec1* ImVec1(float x) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[769])(x); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVec2Ih* ImVec2ih() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[770])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVec2Ih* ImVec2ih(short x, short y) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[771])(x, y); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImVec2Ih* ImVec2ih(Vector2 rhs) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[772])(rhs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImRect* ImRect() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[773])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImRect* ImRect(Vector2 min, Vector2 max) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[774])(min, max); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImRect* ImRect(Vector4 v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[775])(v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImRect* ImRect(float x1, float y1, float x2, float y2) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[776])(x1, y1, x2, y2); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetCenter(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[777])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetSize(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[778])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetWidth(ImRect* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[779])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetHeight(ImRect* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[780])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetArea(ImRect* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[781])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetTL(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[782])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetTR(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[783])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetBL(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[784])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetBR(Vector2* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[785])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Contains(ImRect* self, Vector2 p) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[786])(self, p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Contains(ImRect* self, ImRect r) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[787])(self, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte Overlaps(ImRect* self, ImRect r) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[788])(self, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Add(ImRect* self, Vector2 p) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[789])(self, p); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Add(ImRect* self, ImRect r) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[790])(self, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Expand(ImRect* self, float amount) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[791])(self, amount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Expand(ImRect* self, Vector2 amount) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[792])(self, amount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Translate(ImRect* self, Vector2 d) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[793])(self, d); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TranslateX(ImRect* self, float dx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[794])(self, dx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TranslateY(ImRect* self, float dy) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[795])(self, dy); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClipWith(ImRect* self, ImRect r) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[796])(self, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClipWithFull(ImRect* self, ImRect r) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[797])(self, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Floor(ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[798])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsInverted(ImRect* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[799])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ToVec4(Vector4* pOut, ImRect* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[800])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImBitArrayTestBit(uint* arr, int n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[801])(arr, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBitArrayClearBit(uint* arr, int n) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[802])(arr, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBitArraySetBit(uint* arr, int n) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[803])(arr, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImBitArraySetBitRange(uint* arr, int n, int n2) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[804])(arr, n, n2); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Create(ImBitVector* self, int sz) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[805])(self, sz); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImBitVector* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[806])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImDrawDataBuilder* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[812])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Clear(ImGuiNavItemData* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[855])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TestBit(ImBitVector* self, int n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[807])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetBit(ImBitVector* self, int n) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[808])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearBit(ImBitVector* self, int n) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[809])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawListSharedData* ImDrawListSharedData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[810])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCircleTessellationMaxError(ImDrawListSharedData* self, float maxError) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[811])(self, maxError); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFreeMemory(ImDrawDataBuilder* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[813])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFreeMemory(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[826])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetDrawListCount(ImDrawDataBuilder* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[814])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void FlattenIntoSingleLayer(ImDrawDataBuilder* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[815])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, int v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[816])(idx, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, float v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[817])(idx, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[818])(idx, v); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiComboPreviewData* ImGuiComboPreviewData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[819])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiMenuColumns* ImGuiMenuColumns() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[820])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Update(ImGuiMenuColumns* self, float spacing, byte windowReappearing) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[821])(self, spacing, windowReappearing); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float DeclColumns(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[822])(self, wIcon, wLabel, wShortcut, wMark); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcNextTotalWidth(ImGuiMenuColumns* self, byte updateOffsets) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[823])(self, updateOffsets); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiInputTextState* ImGuiInputTextState() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[824])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearText(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[825])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetUndoAvailCount(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[827])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetRedoAvailCount(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[828])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void OnKeyPressed(ImGuiInputTextState* self, int key) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[829])(self, key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CursorAnimReset(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[830])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CursorClamp(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[831])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte HasSelection(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[832])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearSelection(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[833])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetCursorPos(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[834])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetSelectionStart(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[835])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetSelectionEnd(ImGuiInputTextState* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[836])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SelectAll(ImGuiInputTextState* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[837])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPopupData* ImGuiPopupData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[838])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiNextWindowData* ImGuiNextWindowData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[839])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFlags(ImGuiNextWindowData* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[840])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearFlags(ImGuiNextItemData* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[842])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiNextItemData* ImGuiNextItemData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[841])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiLastItemData* ImGuiLastItemData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[843])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStackSizes* ImGuiStackSizes() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[844])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetToCurrentState(ImGuiStackSizes* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[845])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CompareWithCurrentState(ImGuiStackSizes* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[846])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPtrOrIndex* ImGuiPtrOrIndex(void* ptr) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[847])(ptr); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPtrOrIndex* ImGuiPtrOrIndex(int index) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[848])(index); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiInputEvent* ImGuiInputEvent() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[849])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiListClipperRange FromIndices(int min, int max) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[850])(min, max); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[851])(y1, y2, offMin, offMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiListClipperData* ImGuiListClipperData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[852])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Reset(ImGuiListClipperData* self, ImGuiListClipper* clipper) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[853])(self, clipper); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiNavItemData* ImGuiNavItemData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[854])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiOldColumnData* ImGuiOldColumnData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[856])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiOldColumns* ImGuiOldColumns() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[857])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockNode* ImGuiDockNode(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[858])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiDockNode* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[859])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[874])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiWindow* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[891])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Destroy(ImGuiTable* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[909])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsRootNode(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[860])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsDockSpace(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[861])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsFloatingNode(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[862])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsCentralNode(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[863])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsHiddenTabBar(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[864])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsNoTabBar(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[865])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsSplitNode(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[866])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsLeafNode(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[867])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsEmpty(ImGuiDockNode* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[868])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Rect(ImRect* pOut, ImGuiDockNode* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[869])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Rect(ImRect* pOut, ImGuiWindow* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[896])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetLocalFlags(ImGuiDockNode* self, ImGuiDockNodeFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[870])(self, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateMergedFlags(ImGuiDockNode* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[871])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockContext* ImGuiDockContext() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[872])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewportP* ImGuiViewportP() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[873])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearRequestFlags(ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[875])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[876])(pOut, self, offMin); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[877])(pOut, self, offMin, offMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateWorkRect(ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[878])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetMainRect(ImRect* pOut, ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[879])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWorkRect(ImRect* pOut, ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[880])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetBuildWorkRect(ImRect* pOut, ImGuiViewportP* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[881])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindowSettings* ImGuiWindowSettings() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[882])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetName(ImGuiWindowSettings* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[883])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiSettingsHandler* ImGuiSettingsHandler() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[884])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiMetricsConfig* ImGuiMetricsConfig() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[885])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStackLevelInfo* ImGuiStackLevelInfo() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[886])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiStackTool* ImGuiStackTool() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[887])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiContextHook* ImGuiContextHook() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[888])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiContext* ImGuiContext(ImFontAtlas* sharedFontAtlas) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[889])(sharedFontAtlas); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* ImGuiWindow(ImGuiContext* context, byte* name) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[890])(context, name); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(ImGuiWindow* self, byte* str, byte* strEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[892])(self, str, strEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(ImGuiWindow* self, void* ptr) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[893])(self, ptr); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetID(ImGuiWindow* self, int n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[894])(self, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetIDFromRectangle(ImGuiWindow* self, ImRect rAbs) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[895])(self, rAbs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float CalcFontSize(ImGuiWindow* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[897])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float TitleBarHeight(ImGuiWindow* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[898])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TitleBarRect(ImRect* pOut, ImGuiWindow* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[899])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float MenuBarHeight(ImGuiWindow* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[900])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void MenuBarRect(ImRect* pOut, ImGuiWindow* self) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[901])(pOut, self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTabItem* ImGuiTabItem() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[902])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTabBar* ImGuiTabBar() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[903])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GetTabOrder(ImGuiTabBar* self, ImGuiTabItem* tab) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[904])(self, tab); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetTabName(ImGuiTabBar* self, ImGuiTabItem* tab) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[905])(self, tab); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableColumn* ImGuiTableColumn() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[906])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableInstanceData* ImGuiTableInstanceData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[907])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTable* ImGuiTable() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[908])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableTempData* ImGuiTableTempData() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[910])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableColumnSettings* ImGuiTableColumnSettings() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[911])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSettings* ImGuiTableSettings() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[912])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableColumnSettings* GetColumnSettings(ImGuiTableSettings* self) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[913])(self); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* GetCurrentWindowRead() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[914])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* GetCurrentWindow() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[915])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* FindWindowByID(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[916])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* FindWindowByName(byte* name) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[917])(name); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parentWindow) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[918])(window, flags, parentWindow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[919])(pOut, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[920])(window, potentialParent, popupHierarchy, dockHierarchy); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potentialParent) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[921])(window, potentialParent); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowAbove(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[922])(potentialAbove, potentialBelow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsWindowNavFocusable(ImGuiWindow* window) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[923])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowPos(ImGuiWindow* window, Vector2 pos, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[924])(window, pos, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowSize(ImGuiWindow* window, Vector2 size, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[925])(window, size, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowCollapsed(ImGuiWindow* window, byte collapsed, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[926])(window, collapsed, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowHitTestHole(ImGuiWindow* window, Vector2 pos, Vector2 size) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[927])(window, pos, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void WindowRectAbsToRel(ImRect* pOut, ImGuiWindow* window, ImRect r) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[928])(pOut, window, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void WindowRectRelToAbs(ImRect* pOut, ImGuiWindow* window, ImRect r) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[929])(pOut, window, r); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void FocusWindow(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[930])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void FocusTopMostWindowUnderOne(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[931])(underThisWindow, ignoreWindow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BringWindowToFocusFront(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[932])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BringWindowToDisplayFront(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[933])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BringWindowToDisplayBack(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[934])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* aboveWindow) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[935])(window, aboveWindow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int FindWindowDisplayIndex(ImGuiWindow* window) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[936])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[937])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCurrentFont(ImFont* font) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[938])(font); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFont* GetDefaultFont() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[939])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawList* GetForegroundDrawList(ImGuiWindow* window) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[940])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Initialize() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[941])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Shutdown() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[942])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateInputEvents(byte trickleFastInputs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[943])(trickleFastInputs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateHoveredWindowAndCaptureFlags() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[944])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void StartMouseMovingWindow(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[945])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, byte undockFloatingNode) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[946])(window, node, undockFloatingNode); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateMouseMovingWindowNewFrame() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[947])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void UpdateMouseMovingWindowEndFrame() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[948])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint AddContextHook(ImGuiContext* context, ImGuiContextHook* hook) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[949])(context, hook); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RemoveContextHook(ImGuiContext* context, uint hookToRemove) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[950])(context, hookToRemove); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[951])(context, type); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TranslateWindowsInViewport(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[952])(viewport, oldPos, newPos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[953])(viewport, scale); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DestroyPlatformWindow(ImGuiViewportP* viewport) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[954])(viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[955])(window, viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[956])(window, viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[957])(viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[958])(mousePlatformPos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void MarkIniSettingsDirty() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[959])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void MarkIniSettingsDirty(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[960])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearIniSettings() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[961])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindowSettings* CreateNewWindowSettings(byte* name) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[962])(name); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindowSettings* FindWindowSettings(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[963])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindowSettings* FindOrCreateWindowSettings(byte* name) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[964])(name); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void AddSettingsHandler(ImGuiSettingsHandler* handler) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[965])(handler); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RemoveSettingsHandler(byte* typeName) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[966])(typeName); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiSettingsHandler* FindSettingsHandler(byte* typeName) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[967])(typeName); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNextWindowScroll(Vector2 scroll) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[968])(scroll); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollX(ImGuiWindow* window, float scrollX) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[969])(window, scrollX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollY(ImGuiWindow* window, float scrollY) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[970])(window, scrollY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollFromPosX(ImGuiWindow* window, float localX, float centerXRatio) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[971])(window, localX, centerXRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetScrollFromPosY(ImGuiWindow* window, float localY, float centerYRatio) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[972])(window, localY, centerYRatio); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScrollToItem(ImGuiScrollFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[973])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScrollToRect(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[974])(window, rect, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScrollToRectEx(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[975])(pOut, window, rect, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ScrollToBringRectIntoView(ImGuiWindow* window, ImRect rect) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[976])(window, rect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetItemID() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[977])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiItemStatusFlags GetItemStatusFlags() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[978])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiItemFlags GetItemFlags() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[979])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetActiveID() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[980])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetFocusID() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[981])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetActiveID(uint id, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[982])(id, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetFocusID(uint id, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[983])(id, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearActiveID() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[984])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetHoveredID() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[985])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetHoveredID(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[986])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void KeepAliveID(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[987])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void MarkItemEdited(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[988])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushOverrideID(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[989])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[990])(strIdBegin, strIdEnd, seed); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ItemSize(Vector2 size, float textBaselineY) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[991])(size, textBaselineY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ItemSize(ImRect bb, float textBaselineY) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[992])(bb, textBaselineY); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ItemAdd(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[993])(bb, id, navBb, extraFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ItemHoverable(ImRect bb, uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[994])(bb, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsClippedEx(ImRect bb, uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[995])(bb, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[996])(itemId, inFlags, statusFlags, itemRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[997])(pOut, size, defaultW, defaultH); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[998])(pos, wrapPosX); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushMultiItemsWidths(int components, float widthFull) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[999])(components, widthFull); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsItemToggledSelection() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1000])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetContentRegionMaxAbs(Vector2* pOut) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1001])(pOut); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float widthExcess) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1002])(items, count, widthExcess); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushItemFlag(ImGuiItemFlags option, byte enabled) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1003])(option, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopItemFlag() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1004])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogBegin(ImGuiLogType type, int autoOpenDepth) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1005])(type, autoOpenDepth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogToBuffer(int autoOpenDepth) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1006])(autoOpenDepth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1007])(refPos, text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1008])(prefix, suffix); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginChildEx(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1009])(name, id, sizeArg, border, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1010])(id, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClosePopupToLevel(int remaining, byte restoreFocusToWindowUnderPopup) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClosePopupsOverWindow(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1012])(refWindow, restoreFocusToWindowUnderPopup); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClosePopupsExceptModals() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1013])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1014])(id, popupFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1015])(id, extraFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1016])(tooltipFlags, extraWindowFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetPopupAllowedExtentRect(ImRect* pOut, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1017])(pOut, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* GetTopMostPopupModal() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1018])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiWindow* GetTopMostAndVisiblePopupModal() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1019])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1020])(pOut, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1021])(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginViewportSideBar(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1022])(name, viewport, dir, size, windowFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginMenuEx(byte* label, byte* icon, byte enabled) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1023])(label, icon, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte MenuItemEx(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1024])(label, icon, shortcut, selected, enabled); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1025])(popupId, bb, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginComboPreview() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1026])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndComboPreview() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1027])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavInitWindow(ImGuiWindow* window, byte forceReinit) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1028])(window, forceReinit); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavInitRequestApplyResult() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1029])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte NavMoveRequestButNoResultYet() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1030])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1033])(result); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestCancel() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1034])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestApplyResult() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1035])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1036])(window, moveFlags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* GetNavInputName(ImGuiNavInput n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1037])(n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1038])(n, mode); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1040])(t0, t1, repeatDelay, repeatRate); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ActivateItem(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1041])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNavWindow(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1042])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1043])(id, navLayer, focusScopeId, rectRel); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushFocusScope(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1044])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopFocusScope() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1045])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetFocusedFocusScope() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1046])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetFocusScope() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1047])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsNamedKey(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1048])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsLegacyKey(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1049])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsGamepadKey(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1050])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiKeyData* GetKeyData(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1051])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetItemUsingMouseWheel() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1052])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetActiveIdUsingNavAndKeys() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1053])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsActiveIdUsingNavDir(ImGuiDir dir) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1054])(dir); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsActiveIdUsingNavInput(ImGuiNavInput input) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1055])(input); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsActiveIdUsingKey(ImGuiKey key) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1056])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetActiveIdUsingKey(ImGuiKey key) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1057])(key); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1058])(button, lockThreshold); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsNavInputDown(ImGuiNavInput n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1059])(n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1060])(n, rm); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiModFlags GetMergedModFlags() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1061])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsKeyPressedMap(ImGuiKey key, byte repeat) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1062])(key, repeat); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextInitialize(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1063])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextShutdown(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1064])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextClearNodes(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1065])(ctx, rootId, clearSettingsRefs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextRebuildNodes(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1066])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1067])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextNewFrameUpdateDocking(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1068])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextEndFrame(ImGuiContext* ctx) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1069])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockContextGenNodeID(ImGuiContext* ctx) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1070])(ctx); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1072])(ctx, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1073])(ctx, node); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DockNodeBeginAmendTabBar(ImGuiDockNode* node) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1075])(node); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockNodeEndAmendTabBar() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1076])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1077])(node); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1078])(node, parent); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int DockNodeGetDepth(ImGuiDockNode* node) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1079])(node); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNode* node) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1080])(node); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockNode* GetWindowDockNode() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1081])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1082])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginDocked(ImGuiWindow* window, bool* pOpen) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1083])(window, pOpen); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginDockableDragDropSource(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1084])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginDockableDragDropTarget(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1085])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowDock(ImGuiWindow* window, uint dockId, ImGuiCond cond) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1086])(window, dockId, cond); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderDockWindow(byte* windowName, uint nodeId) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1087])(windowName, nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockNode* DockBuilderGetNode(uint nodeId) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1088])(nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDockNode* DockBuilderGetCentralNode(uint nodeId) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1089])(nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1090])(nodeId, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderRemoveNode(uint nodeId) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1091])(nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, byte clearSettingsRefs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1092])(nodeId, clearSettingsRefs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderRemoveNodeChildNodes(uint nodeId) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1093])(nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1094])(nodeId, pos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1095])(nodeId, size); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) + { + + ((delegate* unmanaged[Cdecl]>*, void>)ImGuiP.funcTable[1097])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + { + + ((delegate* unmanaged[Cdecl]*, void>)ImGuiP.funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1099])(srcName, dstName); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DockBuilderFinish(uint nodeId) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1100])(nodeId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsDragDropActive() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1101])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginDragDropTargetCustom(ImRect bb, uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1102])(bb, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ClearDragDrop() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1103])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte IsDragDropPayloadBeingAccepted() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1104])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, ImRect clipRect) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1105])(window, clipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1106])(strId, count, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void EndColumns() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1107])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushColumnClipRect(int columnIndex) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1108])(columnIndex); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PushColumnsBackground() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1109])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void PopColumnsBackground() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1110])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetColumnsID(byte* strId, int count) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1111])(strId, count); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1112])(window, id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetColumnOffsetFromNorm(ImGuiOldColumns* columns, float offsetNorm) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1113])(columns, offsetNorm); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float GetColumnNormFromOffset(ImGuiOldColumns* columns, float offset) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1114])(columns, offset); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableOpenContextMenu(int columnN) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1115])(columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetColumnWidth(int columnN, float width) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1116])(columnN, width); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1117])(columnN, sortDirection, appendToSortSpecs); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int TableGetHoveredColumn() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1118])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float TableGetHeaderRowHeight() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1119])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TablePushBackgroundChannel() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1120])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TablePopBackgroundChannel() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1121])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTable* GetCurrentTable() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1122])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTable* TableFindByID(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1123])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableBeginInitMemory(ImGuiTable* table, int columnsCount) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1125])(table, columnsCount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableBeginApplyRequests(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1126])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetupDrawChannels(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1127])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableUpdateLayout(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1128])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableUpdateBorders(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1129])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableUpdateColumnsWeightFromWidth(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1130])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableDrawBorders(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1131])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableDrawContextMenu(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1132])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableMergeDrawChannels(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1133])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instanceNo) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1134])(table, instanceNo); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSortSpecsSanitize(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1135])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSortSpecsBuild(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1136])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1137])(column); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1138])(table, column); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1139])(table, column); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableBeginRow(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1140])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableEndRow(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1141])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableBeginCell(ImGuiTable* table, int columnN) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1142])(table, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableEndCell(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1143])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableGetCellBgRect(ImRect* pOut, ImGuiTable* table, int columnN) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1144])(pOut, table, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* TableGetColumnName(ImGuiTable* table, int columnN) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1145])(table, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint TableGetColumnResizeID(ImGuiTable* table, int columnN, int instanceNo) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1146])(table, columnN, instanceNo); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float TableGetMaxColumnWidth(ImGuiTable* table, int columnN) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1147])(table, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetColumnWidthAutoSingle(ImGuiTable* table, int columnN) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1148])(table, columnN); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSetColumnWidthAutoAll(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1149])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableRemove(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1150])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableGcCompactTransientBuffers(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1151])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableGcCompactTransientBuffers(ImGuiTableTempData* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1152])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableGcCompactSettings() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1153])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableLoadSettings(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1154])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSaveSettings(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1155])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableResetSettings(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1156])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1157])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TableSettingsAddSettingsHandler() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1158])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSettings* TableSettingsCreate(uint id, int columnsCount) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1159])(id, columnsCount); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTableSettings* TableSettingsFindByID(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1160])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte BeginTabBarEx(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1161])(tabBar, bb, flags, dockNode); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tabBar, uint tabId) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1162])(tabBar, tabId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tabBar) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1163])(tabBar); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabBarAddTab(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1164])(tabBar, tabFlags, window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabBarRemoveTab(ImGuiTabBar* tabBar, uint tabId) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1165])(tabBar, tabId); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabBarCloseTab(ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1166])(tabBar, tab); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabBarQueueReorder(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1167])(tabBar, tab, offset); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabBarQueueReorderFromMousePos(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1168])(tabBar, tab, mousePos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TabBarProcessReorder(ImGuiTabBar* tabBar) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1169])(tabBar); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TabItemEx(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabItemCalcSize(Vector2* pOut, byte* label, byte hasCloseButton) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1171])(pOut, label, hasCloseButton); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabItemBackground(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1172])(drawList, bb, flags, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TabItemLabelAndCloseButton(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderText(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1174])(pos, text, textEnd, hideTextAfterHash); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderTextWrapped(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1175])(pos, text, textEnd, wrapWidth); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1176])(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderTextClippedEx(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1177])(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderTextEllipsis(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1178])(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1179])(pMin, pMax, fillCol, border, rounding); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1180])(pMin, pMax, rounding); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderColorRectWithAlphaCheckerboard(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1181])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1182])(bb, id, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* FindRenderedTextEnd(byte* text, byte* textEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1183])(text, textEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderArrow(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1185])(drawList, pos, col, dir, scale); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderBullet(ImDrawList* drawList, Vector2 pos, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1186])(drawList, pos, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderCheckMark(ImDrawList* drawList, Vector2 pos, uint col, float sz) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1187])(drawList, pos, col, sz); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderArrowPointingAt(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1188])(drawList, pos, halfSz, direction, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderArrowDockMenu(ImDrawList* drawList, Vector2 pMin, float sz, uint col) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1189])(drawList, pMin, sz, col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderRectFilledRangeH(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1190])(drawList, rect, col, xStartNorm, xEndNorm, rounding); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void RenderRectFilledWithHole(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1191])(drawList, outer, inner, col, rounding); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1192])(rIn, rOuter, threshold); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1193])(text, textEnd, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1194])(label, sizeArg, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CloseButton(uint id, Vector2 pos) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1195])(id, pos); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CollapseButton(uint id, Vector2 pos, ImGuiDockNode* dockNode) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1196])(id, pos, dockNode); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1197])(strId, dir, sizeArg, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Scrollbar(ImGuiAxis axis) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1198])(axis); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1199])(bb, id, axis, pScrollV, availV, contentsV, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GetWindowScrollbarRect(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1201])(pOut, window, axis); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1202])(window, axis); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetWindowResizeCornerID(ImGuiWindow* window, int n) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1203])(window, n); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1204])(window, dir); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SeparatorEx(ImGuiSeparatorFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1205])(flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CheckboxFlags(byte* label, long* flags, long flagsValue) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1206])(label, flags, flagsValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte CheckboxFlags(byte* label, ulong* flags, ulong flagsValue) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1207])(label, flags, flagsValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1208])(bb, id, outHovered, outHeld, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1209])(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1210])(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1211])(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1212])(id, flags, label, labelEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1213])(id, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void TreePushOverrideID(uint id) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1214])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType dataType) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1215])(dataType); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1216])(dataType, op, output, arg1, arg2); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, byte* format) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1217])(buf, dataType, pData, format); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1218])(dataType, arg1, arg2); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1219])(dataType, pData, pMin, pMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1220])(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TempInputIsActive(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1221])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImGuiInputTextState* GetInputTextState(uint id) + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1222])(id); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Custom_StbTextMakeUndoReplace(ImGuiInputTextState* str, int where, int oldLength, int newLength) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1223])(str, where, oldLength, newLength); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Custom_StbTextUndo(ImGuiInputTextState* str) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1224])(str); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorTooltip(byte* text, float* col, ImGuiColorEditFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1225])(text, col, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1226])(col, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ColorPickerOptionsPopup(float* refCol, ImGuiColorEditFlags flags) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1227])(refCol, flags); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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) + { + + return ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, int>)ImGuiP.funcTable[1228])(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1229])(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShadeVertsLinearUV(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1230])(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GcCompactTransientMiscBuffers() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1231])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GcCompactTransientWindowBuffers(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1232])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void GcAwakeTransientWindowBuffers(ImGuiWindow* window) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1233])(window); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugLog(byte* fmt) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1234])(fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugLogV(byte* fmt, nuint args) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1235])(fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + + ((delegate* unmanaged[Cdecl], void*, void>)ImGuiP.funcTable[1236])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + + ((delegate* unmanaged[Cdecl], void*, void>)ImGuiP.funcTable[1237])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugDrawItemRect(uint col) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1238])(col); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugStartItemPicker() + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1239])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ShowFontAtlas(ImFontAtlas* atlas) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1240])(atlas); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1241])(id, dataType, dataId, dataIdEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeColumns(ImGuiOldColumns* columns) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1242])(columns); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeDockNode(ImGuiDockNode* node, byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1243])(node, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1244])(window, viewport, drawList, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1245])(outDrawList, drawList, drawCmd, showMesh, showAabb); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeFont(ImFont* font) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1246])(font); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeFontGlyph(ImFont* font, ImFontGlyph* glyph) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1247])(font, glyph); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeStorage(ImGuiStorage* storage, byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1248])(storage, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeTabBar(ImGuiTabBar* tabBar, byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1249])(tabBar, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeTable(ImGuiTable* table) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1250])(table); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeTableSettings(ImGuiTableSettings* settings) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1251])(settings); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeInputTextState(ImGuiInputTextState* state) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1252])(state); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeWindow(ImGuiWindow* window, byte* label) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1253])(window, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeWindowSettings(ImGuiWindowSettings* settings) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1254])(settings); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeWindowsList(ImVector* windows, byte* label) + { + + ((delegate* unmanaged[Cdecl]*, byte*, void>)ImGuiP.funcTable[1255])(windows, label); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1256])(windows, windowsSize, parentInBeginStack); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugNodeViewport(ImGuiViewportP* viewport) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1257])(viewport); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void DebugRenderViewportThumbnail(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1258])(drawList, viewport, bb); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() + { + + return ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1259])(); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildInit(ImFontAtlas* atlas) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1260])(atlas); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1261])(atlas, font, fontConfig, ascent, descent); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildFinish(ImFontAtlas* atlas) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1263])(atlas); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1264])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1265])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1266])(outTable, inMultiplyFactor, gammaFactor); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, byte* pixels, int x, int y, int w, int h, int stride) + { + + ((delegate* unmanaged[Cdecl])ImGuiP.funcTable[1267])(table, pixels, x, y, w, h, stride); + + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs new file mode 100644 index 000000000..aa67c41a1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs @@ -0,0 +1,51 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +/* Functions.000.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.001.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.002.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.003.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.004.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} +/* Functions.005.cs */ +namespace Dalamud.Bindings.ImGui +{ + public unsafe partial class ImGui + { + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs new file mode 100644 index 000000000..02a8e833b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs @@ -0,0 +1,27 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGui +{ +} +// DISCARDED: internal static int DataTypeFormatStringNative(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) +// DISCARDED: internal static int ImFormatStringNative(byte* buf, nuint bufSize, byte* fmt) +// DISCARDED: internal static int ImFormatStringVNative(byte* buf, nuint bufSize, byte* fmt, nuint args) +// DISCARDED: internal static byte* ImParseFormatTrimDecorationsNative(byte* format, byte* buf, nuint bufSize) +// DISCARDED: ImParseFormatTrimDecorationsS +// DISCARDED: internal static int ImTextStrFromUtf8Native(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) +// DISCARDED: internal static int ImTextStrToUtf8Native(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) +// DISCARDED: internal static byte InputTextNative(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) +// DISCARDED: internal static byte InputTextExNative(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) +// DISCARDED: internal static byte InputTextMultilineNative(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) +// DISCARDED: internal static byte InputTextWithHintNative(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) +// DISCARDED: internal static byte TempInputTextNative(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs new file mode 100644 index 000000000..92632fb9e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs @@ -0,0 +1,92 @@ +// + +using HexaGen.Runtime; +using System; +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGuiNative +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + + return ((delegate* unmanaged[Cdecl], void*, byte>)ImGui.funcTable[1268])(label, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + + return ((delegate* unmanaged[Cdecl], void*, byte>)ImGui.funcTable[1269])(label, buf, bufSize, size, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + + return ((delegate* unmanaged[Cdecl], void*, byte>)ImGui.funcTable[1270])(label, hint, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImFormatString(byte* buf, nuint bufSize, byte* fmt) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1271])(buf, bufSize, fmt); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImFormatStringV(byte* buf, nuint bufSize, byte* fmt, nuint args) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1272])(buf, bufSize, fmt, args); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, nuint bufSize) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1273])(format, buf, bufSize); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1274])(outBuf, outBufSize, inText, inTextEnd); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1275])(outBuf, outBufSize, inText, inTextEnd, inRemaining); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1276])(buf, bufSize, dataType, pData, format); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + + return ((delegate* unmanaged[Cdecl], void*, byte>)ImGui.funcTable[1277])(label, hint, buf, bufSize, sizeArg, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte TempInputText(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + + return ((delegate* unmanaged[Cdecl])ImGui.funcTable[1278])(bb, id, label, buf, bufSize, flags); + + } +} + diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs new file mode 100644 index 000000000..732cd3c71 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs @@ -0,0 +1,15 @@ +namespace Dalamud.Bindings.ImGui; + +public enum ImDrawCallbackEnum : long +{ + Empty, + + /// + /// Special Draw callback value to request renderer backend to reset the graphics/render state. + /// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at + /// this address. This is useful for example if you submitted callbacks which you know have altered the render + /// state, and you want it to be restored. It is not done by default because they are many perfectly useful way of + /// altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). + /// + ResetRenderState = ImGui.ImDrawCallbackResetRenderState, +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs new file mode 100644 index 000000000..97087aa82 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs @@ -0,0 +1,48 @@ +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImDrawList +{ + public void AddText(Vector2 pos, uint col, ImU8String text) + { + fixed (ImDrawList* thisPtr = &this) + ImGui.AddText(thisPtr, pos, col, text); + } + + public void AddText( + ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, + scoped in Vector4 cpuFineClipRect) + { + fixed (ImDrawList* thisPtr = &this) + ImGui.AddText(thisPtr, font, fontSize, pos, col, text, wrapWidth, cpuFineClipRect); + } + + public void AddText( + ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth = 0f) + { + fixed (ImDrawList* thisPtr = &this) + ImGui.AddText(thisPtr, font, fontSize, pos, col, text, wrapWidth); + } +} + +public partial struct ImDrawListPtr +{ + public void AddText(Vector2 pos, uint col, ImU8String text) => ImGui.AddText(this, pos, col, text); + + public void AddText( + ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, + scoped in Vector4 cpuFineClipRect) => ImGui.AddText( + this, + font, + fontSize, + pos, + col, + text, + wrapWidth, + cpuFineClipRect); + + public void AddText( + ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth = 0f) => + ImGui.AddText(this, font, fontSize, pos, col, text, wrapWidth); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs new file mode 100644 index 000000000..4d0368018 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs @@ -0,0 +1,38 @@ +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFont +{ + public readonly int CalcWordWrapPositionA(float scale, ReadOnlySpan text, float wrapWidth) + { + fixed (ImFont* thisPtr = &this) return ImGui.CalcWordWrapPositionA(thisPtr, scale, text, wrapWidth); + } + + public readonly void RenderText( + ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ImU8String text, + float wrapWidth = 0.0f, bool cpuFineClip = false) + { + fixed (ImFont* thisPtr = + &this) ImGui.RenderText(thisPtr, drawList, size, pos, col, clipRect, text, wrapWidth, cpuFineClip); + } +} + +public partial struct ImFontPtr +{ + public readonly int CalcWordWrapPositionA(float scale, ImU8String text, float wrapWidth) => + ImGui.CalcWordWrapPositionA(this, scale, text, wrapWidth); + + public readonly void RenderText( + ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ImU8String text, + float wrapWidth = 0.0f, bool cpuFineClip = false) => ImGui.RenderText( + this, + drawList, + size, + pos, + col, + clipRect, + text, + wrapWidth, + cpuFineClip); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs new file mode 100644 index 000000000..f6295ccd5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs @@ -0,0 +1,78 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontAtlas +{ + public ImFontPtr AddFontFromFileTTF( + ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) + { + fixed (ImFontAtlas* thisPtr = &this) + return ImGui.AddFontFromFileTTF(thisPtr, filename, sizePixels, fontCfg, glyphRanges); + } + + public ImFontPtr AddFontFromMemoryCompressedBase85TTF( + ImU8String compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (ImFontAtlas* thisPtr = &this) + { + return ImGui.AddFontFromMemoryCompressedBase85TTF( + thisPtr, + compressedFontDatabase85, + sizePixels, + fontCfg, + glyphRanges); + } + } + + public ImFontPtr AddFontFromMemoryCompressedTTF( + ReadOnlySpan compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (ImFontAtlas* thisPtr = &this) + { + return ImGui.AddFontFromMemoryCompressedTTF( + thisPtr, + compressedFontData, + sizePixels, + fontCfg, + glyphRanges); + } + } + + public ImFontPtr AddFontFromMemoryTTF( + ReadOnlySpan fontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (ImFontAtlas* thisPtr = &this) + { + return ImGui.AddFontFromMemoryTTF( + thisPtr, + fontData, + sizePixels, + fontCfg, + glyphRanges); + } + } +} + +public unsafe partial struct ImFontAtlasPtr +{ + public ImFontPtr AddFontFromFileTTF( + ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) => + ImGui.AddFontFromFileTTF(this, filename, sizePixels, fontCfg, glyphRanges); + + public ImFontPtr AddFontFromMemoryCompressedBase85TTF( + ImU8String compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) => + ImGui.AddFontFromMemoryCompressedBase85TTF(this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + + public ImFontPtr AddFontFromMemoryCompressedTTF( + ReadOnlySpan compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) => + ImGui.AddFontFromMemoryCompressedTTF(this, compressedFontData, sizePixels, fontCfg, glyphRanges); + + public ImFontPtr AddFontFromMemoryTTF( + ReadOnlySpan fontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) => + ImGui.AddFontFromMemoryTTF(this, fontData, sizePixels, fontCfg, glyphRanges); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs new file mode 100644 index 000000000..196a61c76 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs @@ -0,0 +1,14 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImFontGlyphRangesBuilder +{ + public void AddText(ImU8String text) + { + fixed (ImFontGlyphRangesBuilder* thisPtr = &this) ImGui.AddText(thisPtr, text); + } +} + +public partial struct ImFontGlyphRangesBuilderPtr +{ + public void AddText(ImU8String text) => ImGui.AddText(this, text); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs new file mode 100644 index 000000000..655083627 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs @@ -0,0 +1,81 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static bool ColorEdit3( + ImU8String label, scoped ref Vector3 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector3* colPtr = &col) + { + var res = ImGuiNative.ColorEdit3(labelPtr, &colPtr->X, flags) != 0; + label.Dispose(); + return res; + } + } + + public static bool ColorEdit4( + ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector4* colPtr = &col) + { + var res = ImGuiNative.ColorEdit4(labelPtr, &colPtr->X, flags) != 0; + label.Dispose(); + return res; + } + } + + public static bool ColorPicker3( + ImU8String label, scoped ref Vector3 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector3* colPtr = &col) + { + var res = ImGuiNative.ColorPicker3(labelPtr, &colPtr->X, flags) != 0; + label.Dispose(); + return res; + } + } + + public static bool ColorPicker4( + ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector4* colPtr = &col) + { + var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, null) != 0; + label.Dispose(); + return res; + } + } + + public static bool ColorPicker4( + ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags, scoped in Vector4 refCol) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector4* colPtr = &col) + fixed (Vector4* refColPtr = &refCol) + { + var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, &refColPtr->X) != 0; + label.Dispose(); + return res; + } + } + + public static bool ColorPicker4(ImU8String label, scoped ref Vector4 col, scoped in Vector4 refCol) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (Vector4* colPtr = &col) + fixed (Vector4* refColPtr = &refCol) + { + var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, ImGuiColorEditFlags.None, &refColPtr->X) != 0; + label.Dispose(); + return res; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs new file mode 100644 index 000000000..4d582b4d0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs @@ -0,0 +1,384 @@ +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public delegate ImU8String PopulateAutoUtf8BufferDelegate(int index); + + public delegate ImU8String PopulateAutoUtf8BufferInContextDelegate(scoped in T context, int index) + where T : allows ref struct; + + public delegate ImU8String PopulateAutoUtf8BufferRefContextDelegate(scoped ref T context, int index) + where T : allows ref struct; + + [OverloadResolutionPriority(2)] + public static bool Combo( + ImU8String label, ref int currentItem, ReadOnlySpan items, int popupMaxHeightInItems = -1) => + Combo( + label, + ref currentItem, + static (scoped in ReadOnlySpan items, int index) => items[index], + items, + items.Length, + popupMaxHeightInItems); + + [OverloadResolutionPriority(3)] + public static bool Combo( + ImU8String label, ref int currentItem, scoped in T items, int popupMaxHeightInItems = -1) + where T : IList => + Combo( + label, + ref currentItem, + static (scoped in T items, int index) => items[index], + items, + items.Count, + popupMaxHeightInItems); + + [OverloadResolutionPriority(4)] + public static bool Combo( + ImU8String label, ref int currentItem, IReadOnlyList items, int popupMaxHeightInItems = -1) => + Combo( + label, + ref currentItem, + static (scoped in IReadOnlyList items, int index) => items[index], + items, + items.Count, + popupMaxHeightInItems); + + [OverloadResolutionPriority(5)] + public static bool Combo( + ImU8String label, ref int currentItem, ReadOnlySpan items, Func toString, + int popupMaxHeightInItems = -1) + { + var tmp = PointerTuple.CreateFixed(ref items, ref toString); + return Combo( + label, + ref currentItem, + static (scoped in PointerTuple, Func> items, int index) => + items.Item2(items.Item1[index]), + tmp, + items.Length, + popupMaxHeightInItems); + } + + [OverloadResolutionPriority(6)] + public static bool Combo( + ImU8String label, ref int currentItem, scoped in TList items, Func toString, + int popupMaxHeightInItems = -1) + where TList : IList => + Combo( + label, + ref currentItem, + static (scoped in (TList, Func) items, int index) => items.Item2(items.Item1[index]), + (items, toString), + items.Count, + popupMaxHeightInItems); + + [OverloadResolutionPriority(7)] + public static bool Combo( + ImU8String label, ref int currentItem, IReadOnlyList items, Func toString, + int popupMaxHeightInItems = -1) => + Combo( + label, + ref currentItem, + static (scoped in (IReadOnlyList, Func) items, int index) => items.Item2(items.Item1[index]), + (items, toString), + items.Count, + popupMaxHeightInItems); + + [OverloadResolutionPriority(1)] + public static bool Combo( + ImU8String label, ref int currentItem, ImU8String itemsSeparatedByZeros, int popupMaxHeightInItems = -1) + { + if (!itemsSeparatedByZeros.Span.EndsWith("\0\0"u8)) + itemsSeparatedByZeros.AppendFormatted("\0\0"u8); + + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) + fixed (byte* itemsSeparatedByZerosPtr = itemsSeparatedByZeros) + { + var r = ImGuiNative.Combo(labelPtr, currentItemPtr, itemsSeparatedByZerosPtr, popupMaxHeightInItems) != 0; + label.Dispose(); + itemsSeparatedByZeros.Dispose(); + return r; + } + } + + public static bool Combo( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferInContextDelegate itemsGetter, + scoped in TContext context, int itemsCount, int popupMaxHeightInItems = -1) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.Combo( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferInContextStatic, + &dataBuffer, + itemsCount, + popupMaxHeightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + public static bool Combo( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferRefContextDelegate itemsGetter, + scoped ref TContext context, int itemsCount, int popupMaxHeightInItems = -1) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.Combo( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferRefContextStatic, + &dataBuffer, + itemsCount, + popupMaxHeightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + public static bool Combo( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferDelegate itemsGetter, int itemsCount, + int popupMaxHeightInItems = -1) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.Combo( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferStatic, + &dataBuffer, + itemsCount, + popupMaxHeightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + [OverloadResolutionPriority(2)] + public static bool ListBox( + ImU8String label, ref int currentItem, ReadOnlySpan items, int heightInItems = -1) => + ListBox( + label, + ref currentItem, + static (scoped in ReadOnlySpan items, int index) => items[index], + items, + items.Length, + heightInItems); + + [OverloadResolutionPriority(3)] + public static bool ListBox(ImU8String label, ref int currentItem, scoped in T items, int heightInItems = -1) + where T : IList => + ListBox( + label, + ref currentItem, + static (scoped in T items, int index) => items[index], + items, + items.Count, + heightInItems); + + [OverloadResolutionPriority(4)] + public static bool ListBox( + ImU8String label, ref int currentItem, IReadOnlyList items, int heightInItems = -1) => + ListBox( + label, + ref currentItem, + static (scoped in IReadOnlyList items, int index) => items[index], + items, + items.Count, + heightInItems); + + [OverloadResolutionPriority(5)] + public static bool ListBox( + ImU8String label, ref int currentItem, ReadOnlySpan items, Func toString, + int heightInItems = -1) + { + var tmp = PointerTuple.CreateFixed(ref items, ref toString); + return ListBox( + label, + ref currentItem, + static (scoped in PointerTuple, Func> items, int index) => + items.Item2(items.Item1[index]), + tmp, + items.Length, + heightInItems); + } + + [OverloadResolutionPriority(6)] + public static bool ListBox( + ImU8String label, ref int currentItem, scoped in TList items, Func toString, + int heightInItems = -1) + where TList : IList => + ListBox( + label, + ref currentItem, + static (scoped in (TList, Func) items, int index) => items.Item2(items.Item1[index]), + (items, toString), + items.Count, + heightInItems); + + [OverloadResolutionPriority(7)] + public static bool ListBox( + ImU8String label, ref int currentItem, IReadOnlyList items, Func toString, + int heightInItems = -1) => + ListBox( + label, + ref currentItem, + static (scoped in (IReadOnlyList, Func) items, int index) => items.Item2(items.Item1[index]), + (items, toString), + items.Count, + heightInItems); + + public static bool ListBox( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferRefContextDelegate itemsGetter, + scoped ref TContext context, int itemsCount, int heightInItems = -1) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.ListBox( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferRefContextStatic, + &dataBuffer, + itemsCount, + heightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + public static bool ListBox( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferInContextDelegate itemsGetter, + scoped in TContext context, int itemsCount, int heightInItems = -1) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.ListBox( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferInContextStatic, + &dataBuffer, + itemsCount, + heightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + public static bool ListBox( + ImU8String label, ref int currentItem, PopulateAutoUtf8BufferDelegate itemsGetter, int itemsCount, + int heightInItems = -1) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* currentItemPtr = ¤tItem) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + { + ImU8String textBuffer = default; + var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.ListBox( + labelPtr, + currentItemPtr, + (delegate*, void*, int, int, bool>) + (nint)(delegate* unmanaged)&PopulateUtf8BufferStatic, + &dataBuffer, + itemsCount, + heightInItems) != 0; + label.Dispose(); + textBuffer.Dispose(); + return r; + } + } + + [UnmanagedCallersOnly] + private static bool PopulateUtf8BufferRefContextStatic(void* data, int index, byte** text) + { +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ref var s = ref PointerTuple.From, ImU8String, object>(data); + s.Item2.Dispose(); + s.Item2 = s.Item1.Invoke(ref s.Item3, index); + if (s.Item2.IsNull) + return false; + *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); + return true; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + } + + [UnmanagedCallersOnly] + private static bool PopulateUtf8BufferInContextStatic(void* data, int index, byte** text) + { +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ref var s = ref PointerTuple.From, ImU8String, object>(data); + s.Item2.Dispose(); + s.Item2 = s.Item1.Invoke(s.Item3, index); + if (s.Item2.IsNull) + return false; + *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); + return true; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + } + + [UnmanagedCallersOnly] + private static bool PopulateUtf8BufferStatic(void* data, int index, byte** text) + { +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ref var s = ref PointerTuple.From(data); + s.Item2.Dispose(); + s.Item2 = s.Item1.Invoke(index); + if (s.Item2.IsNull) + return false; + *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); + return true; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs new file mode 100644 index 000000000..6e3420f49 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs @@ -0,0 +1,66 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGui +{ + public static int GetImGuiDataTypeSize(ImGuiDataType dataType) => dataType switch + { + ImGuiDataType.S8 => sizeof(sbyte), + ImGuiDataType.U8 => sizeof(byte), + ImGuiDataType.S16 => sizeof(short), + ImGuiDataType.U16 => sizeof(ushort), + ImGuiDataType.S32 => sizeof(int), + ImGuiDataType.U32 => sizeof(uint), + ImGuiDataType.S64 => sizeof(long), + ImGuiDataType.U64 => sizeof(ulong), + ImGuiDataType.Float => sizeof(float), + ImGuiDataType.Double => sizeof(double), + _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) + }; + + public static ImGuiDataType GetImGuiDataType(Type type) + { + if (type == typeof(sbyte)) return ImGuiDataType.S8; + if (type == typeof(byte)) return ImGuiDataType.U8; + if (type == typeof(short)) return ImGuiDataType.S16; + if (type == typeof(ushort)) return ImGuiDataType.U16; + if (type == typeof(int)) return ImGuiDataType.S32; + if (type == typeof(uint)) return ImGuiDataType.U32; + if (type == typeof(long)) return ImGuiDataType.S64; + if (type == typeof(ulong)) return ImGuiDataType.U64; + if (type == typeof(float)) return ImGuiDataType.Float; + if (type == typeof(double)) return ImGuiDataType.Double; + throw new ArgumentOutOfRangeException(nameof(type), type, null); + } + + public static ImGuiDataType GetImGuiDataType() => GetImGuiDataType(typeof(T)); + + public static string GetFormatSpecifier(ImGuiDataType dataType) => dataType switch + { + ImGuiDataType.S8 => "%hhd", + ImGuiDataType.U8 => "%hhu", + ImGuiDataType.S16 => "%hd", + ImGuiDataType.U16 => "%hu", + ImGuiDataType.S32 => "%d", + ImGuiDataType.U32 => "%u", + ImGuiDataType.S64 => "%I64d", + ImGuiDataType.U64 => "%I64u", + ImGuiDataType.Float => "%f", + ImGuiDataType.Double => "%lf", + _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) + }; + + public static ReadOnlySpan GetFormatSpecifierU8(ImGuiDataType dataType) => dataType switch + { + ImGuiDataType.S8 => "%hhd"u8, + ImGuiDataType.U8 => "%hhu"u8, + ImGuiDataType.S16 => "%hd"u8, + ImGuiDataType.U16 => "%hu"u8, + ImGuiDataType.S32 => "%d"u8, + ImGuiDataType.U32 => "%u"u8, + ImGuiDataType.S64 => "%I64d"u8, + ImGuiDataType.U64 => "%I64u"u8, + ImGuiDataType.Float => "%f"u8, + ImGuiDataType.Double => "%lf"u8, + _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) + }; +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs new file mode 100644 index 000000000..13c06ad2b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs @@ -0,0 +1,457 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static bool DragSByte( + ImU8String label, scoped ref sbyte v, float vSpeed = 1.0f, sbyte vMin = 0, sbyte vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S8, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool DragSByte( + ImU8String label, Span v, float vSpeed = 1.0f, sbyte vMin = 0, sbyte vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S8, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool DragByte( + ImU8String label, scoped ref byte v, float vSpeed = 1.0f, byte vMin = 0, byte vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U8, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool DragByte( + ImU8String label, Span v, float vSpeed = 1.0f, byte vMin = 0, byte vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U8, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool DragShort( + ImU8String label, scoped ref short v, float vSpeed = 1.0f, short vMin = 0, short vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S16, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool DragShort( + ImU8String label, Span v, float vSpeed = 1.0f, short vMin = 0, short vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S16, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool DragUShort( + ImU8String label, scoped ref ushort v, float vSpeed = 1.0f, ushort vMin = 0, ushort vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U16, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool DragUShort( + ImU8String label, Span v, float vSpeed = 1.0f, ushort vMin = 0, ushort vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U16, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool DragInt( + ImU8String label, scoped ref int v, float vSpeed = 1.0f, int vMin = 0, int vMax = 0, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S32, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%d"u8), + flags); + + public static bool DragInt( + ImU8String label, Span v, float vSpeed = 1.0f, int vMin = 0, + int vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S32, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%d"u8), + flags); + + public static bool DragUInt( + ImU8String label, scoped ref uint v, float vSpeed = 1.0f, uint vMin = 0, + uint vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U32, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%u"u8), + flags); + + public static bool DragUInt( + ImU8String label, Span v, float vSpeed = 1.0f, uint vMin = 0, + uint vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U32, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%u"u8), + flags); + + public static bool DragLong( + ImU8String label, scoped ref long v, float vSpeed = 1.0f, long vMin = 0, + long vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S64, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool DragLong( + ImU8String label, Span v, float vSpeed = 1.0f, long vMin = 0, + long vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.S64, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool DragULong( + ImU8String label, scoped ref ulong v, float vSpeed = 1.0f, + ulong vMin = 0, ulong vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U64, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool DragULong( + ImU8String label, Span v, float vSpeed = 1.0f, ulong vMin = 0, + ulong vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.U64, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool DragFloat( + ImU8String label, scoped ref float v, float vSpeed = 1.0f, + float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Float, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragFloat( + ImU8String label, Span v, float vSpeed = 1.0f, float vMin = 0.0f, + float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Float, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragFloat2( + ImU8String label, scoped ref Vector2 v, float vSpeed = 1.0f, + float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragFloat3( + ImU8String label, scoped ref Vector3 v, float vSpeed = 1.0f, + float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragFloat4( + ImU8String label, scoped ref Vector4 v, float vSpeed = 1.0f, + float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragDouble( + ImU8String label, scoped ref double v, float vSpeed = 1.0f, + double vMin = 0.0f, double vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Double, + ref v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragDouble( + ImU8String label, Span v, float vSpeed = 1.0f, + double vMin = 0.0f, double vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( + label, + ImGuiDataType.Double, + v, + vSpeed, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool DragScalar( + ImU8String label, ImGuiDataType dataType, scoped ref T v, float vSpeed, + scoped in T vMin, scoped in T vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = &v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.DragScalar(labelPtr, dataType, vPtr, vSpeed, vMinPtr, vMaxPtr, formatPtr, flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool DragScalar( + ImU8String label, ImGuiDataType dataType, Span v, float vSpeed, + scoped in T vMin, scoped in T vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.DragScalarN( + labelPtr, + dataType, + vPtr, + v.Length, + vSpeed, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool DragScalar( + ImU8String label, scoped ref T v, float vSpeed, + scoped in T vMin, scoped in T vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = &v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.DragScalar( + labelPtr, + GetImGuiDataType(), + vPtr, + vSpeed, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool DragScalar( + ImU8String label, Span v, float vSpeed, + scoped in T vMin, scoped in T vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.DragScalarN( + labelPtr, + GetImGuiDataType(), + vPtr, + v.Length, + vSpeed, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool DragFloatRange2( + ImU8String label, scoped ref float vCurrentMin, + scoped ref float vCurrentMax, float vSpeed = 1.0f, float vMin = 0.0f, float vMax = 0.0f, + ImU8String format = default, + ImU8String formatMax = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (float* vCurrentMinPtr = &vCurrentMin) + fixed (float* vCurrentMaxPtr = &vCurrentMax) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%.3f"u8)) + fixed (byte* formatMaxPtr = &formatMax.GetPinnableNullTerminatedReference()) + { + var res = ImGuiNative.DragFloatRange2( + labelPtr, + vCurrentMinPtr, + vCurrentMaxPtr, + vSpeed, + vMin, + vMax, + formatPtr, + formatMaxPtr, + flags); + label.Dispose(); + format.Dispose(); + formatMax.Dispose(); + return res != 0; + } + } + + public static bool DragIntRange2( + ImU8String label, scoped ref int vCurrentMin, + scoped ref int vCurrentMax, float vSpeed = 1.0f, int vMin = 0, int vMax = 0, + ImU8String format = default, + ImU8String formatMax = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (int* vCurrentMinPtr = &vCurrentMin) + fixed (int* vCurrentMaxPtr = &vCurrentMax) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%d"u8)) + fixed (byte* formatMaxPtr = &formatMax.GetPinnableNullTerminatedReference()) + { + var res = ImGuiNative.DragIntRange2( + labelPtr, + vCurrentMinPtr, + vCurrentMaxPtr, + vSpeed, + vMin, + vMax, + formatPtr, + formatMaxPtr, + flags); + label.Dispose(); + format.Dispose(); + formatMax.Dispose(); + return res != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs new file mode 100644 index 000000000..5f659a186 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs @@ -0,0 +1,365 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static bool InputSByte( + ImU8String label, scoped ref sbyte data, sbyte step = 0, sbyte stepFast = 0, + ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S8, + ref data, + step, + stepFast, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool InputSByte( + ImU8String label, Span data, sbyte step = 0, sbyte stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S8, + data, + step, + stepFast, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool InputByte( + ImU8String label, scoped ref byte data, byte step = 0, byte stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U8, + ref data, + step, + stepFast, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool InputByte( + ImU8String label, Span data, byte step = 0, byte stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U8, + data, + step, + stepFast, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool InputShort( + ImU8String label, scoped ref short data, short step = 0, short stepFast = 0, + ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S16, + ref data, + step, + stepFast, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool InputShort( + ImU8String label, Span data, short step = 0, short stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S16, + data, + step, + stepFast, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool InputUShort( + ImU8String label, scoped ref ushort data, ushort step = 0, ushort stepFast = 0, + ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U16, + ref data, + step, + stepFast, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool InputUShort( + ImU8String label, Span data, ushort step = 0, ushort stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U16, + data, + step, + stepFast, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool InputInt( + ImU8String label, scoped ref int data, int step = 0, int stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S32, + ref data, + step, + stepFast, + format.MoveOrDefault("%d"u8), + flags); + + public static bool InputInt( + ImU8String label, Span data, int step = 0, int stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S32, + data, + step, + stepFast, + format.MoveOrDefault("%d"u8), + flags); + + public static bool InputUInt( + ImU8String label, scoped ref uint data, uint step = 0, uint stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U32, + ref data, + step, + stepFast, + format.MoveOrDefault("%u"u8), + flags); + + public static bool InputUInt( + ImU8String label, Span data, uint step = 0, uint stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U32, + data, + step, + stepFast, + format.MoveOrDefault("%u"u8), + flags); + + public static bool InputLong( + ImU8String label, scoped ref long data, long step = 0, long stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S64, + ref data, + step, + stepFast, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool InputLong( + ImU8String label, Span data, long step = 0, long stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.S64, + data, + step, + stepFast, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool InputULong( + ImU8String label, scoped ref ulong data, ulong step = 0, ulong stepFast = 0, + ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U64, + ref data, + step, + stepFast, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool InputULong( + ImU8String label, Span data, ulong step = 0, ulong stepFast = 0, ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( + label, + ImGuiDataType.U64, + data, + step, + stepFast, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool InputFloat( + ImU8String label, scoped ref float data, float step = 0.0f, + float stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar(label, ImGuiDataType.Float, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); + + public static bool InputFloat( + ImU8String label, Span data, float step = 0.0f, + float stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar(label, ImGuiDataType.Float, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); + + public static bool InputFloat2( + ImU8String label, scoped ref Vector2 data, float step = 0.0f, + float stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref data)), + step, + stepFast, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool InputFloat3( + ImU8String label, scoped ref Vector3 data, float step = 0.0f, + float stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref data)), + step, + stepFast, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool InputFloat4( + ImU8String label, scoped ref Vector4 data, float step = 0.0f, + float stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref data)), + step, + stepFast, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool InputDouble( + ImU8String label, scoped ref double data, double step = 0.0f, + double stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar(label, ImGuiDataType.Double, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); + + public static bool InputDouble( + ImU8String label, Span data, double step = 0.0f, + double stepFast = 0.0f, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => + InputScalar(label, ImGuiDataType.Double, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); + + public static bool InputScalar( + ImU8String label, ImGuiDataType dataType, scoped ref T data, + scoped in T step, scoped in T stepFast, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = &data) + fixed (T* stepPtr = &step) + fixed (T* stepFastPtr = &stepFast) + { + var res = ImGuiNative.InputScalar( + labelPtr, + dataType, + dataPtr, + step > T.Zero ? stepPtr : null, + stepFast > T.Zero ? stepFastPtr : null, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool InputScalar( + ImU8String label, ImGuiDataType dataType, Span data, + scoped in T step, scoped in T stepFast, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = data) + fixed (T* stepPtr = &step) + fixed (T* stepFastPtr = &stepFast) + { + var res = ImGuiNative.InputScalarN( + labelPtr, + dataType, + dataPtr, + data.Length, + step > T.Zero ? stepPtr : null, + stepFast > T.Zero ? stepFastPtr : null, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool InputScalar( + ImU8String label, scoped ref T data, + scoped in T step, scoped in T stepFast, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = &data) + fixed (T* stepPtr = &step) + fixed (T* stepFastPtr = &stepFast) + { + var res = ImGuiNative.InputScalar( + labelPtr, + GetImGuiDataType(), + dataPtr, + step > T.Zero ? stepPtr : null, + stepFast > T.Zero ? stepFastPtr : null, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool InputScalar( + ImU8String label, Span data, + scoped in T step, scoped in T stepFast, + ImU8String format = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = data) + fixed (T* stepPtr = &step) + fixed (T* stepFastPtr = &stepFast) + { + var res = ImGuiNative.InputScalarN( + labelPtr, + GetImGuiDataType(), + dataPtr, + data.Length, + step > T.Zero ? stepPtr : null, + stepFast > T.Zero ? stepFastPtr : null, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs new file mode 100644 index 000000000..7b0aefe97 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs @@ -0,0 +1,463 @@ +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGui +{ + public static Span DataTypeFormatString( + Span buf, ImGuiDataType dataType, T data, ImU8String format = default) + where T : unmanaged, IBinaryNumber + { + if (format.IsEmpty) + format = GetFormatSpecifierU8(dataType); + + if (sizeof(T) != GetImGuiDataTypeSize(dataType)) + { + throw new ArgumentOutOfRangeException( + nameof(dataType), + dataType, + $"Type indicated by {nameof(dataType)} does not match the type of {nameof(data)}."); + } + + fixed (byte* bufPtr = buf) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + { + var len = ImGuiNative.DataTypeFormatString(bufPtr, buf.Length, dataType, &data, formatPtr); + format.Dispose(); + return buf[..len]; + } + } + + public static Span DataTypeFormatString(Span buf, T data, ImU8String format = default) + where T : unmanaged, IBinaryNumber => DataTypeFormatString(buf, GetImGuiDataType(), data, format); + + public static Span ImParseFormatTrimDecorations(ImU8String format, Span buf) + { + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (byte* bufPtr = buf) + ImGuiNative.ImParseFormatTrimDecorations(formatPtr, bufPtr, (nuint)buf.Length); + format.Dispose(); + var nul = buf.IndexOf((byte)0); + return nul == -1 ? buf : buf[..nul]; + } + + public static int ImTextStrFromUtf8( + Span outBuf, ReadOnlySpan inText, out ReadOnlySpan inRemaining) + { + fixed (char* outBufPtr = outBuf) + fixed (byte* inTextPtr = inText) + { + byte* inRemainingPtr; + var r = ImGuiNative.ImTextStrFromUtf8( + (ushort*)outBufPtr, + outBuf.Length, + inTextPtr, + inTextPtr + inText.Length, + &inRemainingPtr); + inRemaining = inText[(int)(inRemainingPtr - inTextPtr)..]; + return r; + } + } + + public static Span ImTextStrToUtf8(Span outBuf, ReadOnlySpan inText) + { + fixed (byte* outBufPtr = outBuf) + fixed (char* inTextPtr = inText) + { + return outBuf[..ImGuiNative.ImTextStrToUtf8( + outBufPtr, + outBuf.Length, + (ushort*)inTextPtr, + (ushort*)inTextPtr + inText.Length)]; + } + } + + public delegate int ImGuiInputTextCallbackDelegate(scoped ref ImGuiInputTextCallbackData data); + + public delegate int ImGuiInputTextCallbackRefContextDelegate( + scoped ref ImGuiInputTextCallbackData data, scoped ref TContext context); + + public delegate int ImGuiInputTextCallbackInContextDelegate( + scoped ref ImGuiInputTextCallbackData data, scoped in TContext context); + + public static bool InputText( + ImU8String label, Span buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, default, buf, default, flags, callback); + } + + public static bool InputText( + ImU8String label, Span buf, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, default, buf, default, flags, callback, ref context); + } + + public static bool InputText( + ImU8String label, Span buf, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, default, buf, default, flags, callback, in context); + } + + public static bool InputText( + ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputText( + ImU8String label, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback, ref context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputText( + ImU8String label, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback, in context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, Span buf, Vector2 sizeArg = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, ImGuiInputTextCallbackDelegate? callback = null) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) + fixed (byte* bufPtr = buf) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + { + var dataBuffer = PointerTuple.Create(&callback); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.InputTextEx( + labelPtr, + hintPtr, + bufPtr, + buf.Length, + sizeArg, + flags, + callback == null ? null : &InputTextCallbackStatic, + callback == null ? null : &dataBuffer) != 0; + label.Dispose(); + hint.Dispose(); + return r; + } + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, Span buf, Vector2 sizeArg, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) + fixed (byte* bufPtr = buf) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + var dataBuffer = PointerTuple.Create(&callback, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.InputTextEx( + labelPtr, + hintPtr, + bufPtr, + buf.Length, + sizeArg, + flags, + &InputTextCallbackRefContextStatic, + &dataBuffer) != 0; + label.Dispose(); + hint.Dispose(); + return r; + } + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, Span buf, Vector2 sizeArg, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) + fixed (byte* bufPtr = buf) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + var dataBuffer = PointerTuple.Create(&callback, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiNative.InputTextEx( + labelPtr, + hintPtr, + bufPtr, + buf.Length, + sizeArg, + flags, + &InputTextCallbackInContextStatic, + &dataBuffer) != 0; + label.Dispose(); + hint.Dispose(); + return r; + } + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, + Vector2 sizeArg = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, Vector2 sizeArg, + ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback, ref context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextEx( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, Vector2 sizeArg, + ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback, in context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextMultiline( + ImU8String label, Span buf, Vector2 size = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) => + InputTextEx( + label, + default, + buf, + size, + flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, + callback); + + public static bool InputTextMultiline( + ImU8String label, Span buf, Vector2 size, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) => + InputTextEx( + label, + default, + buf, + size, + flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, + callback, + ref context); + + public static bool InputTextMultiline( + ImU8String label, Span buf, Vector2 size, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) => + InputTextEx( + label, + default, + buf, + size, + flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, + callback, + in context); + + public static bool InputTextMultiline( + ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, Vector2 size = default, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextMultiline( + ImU8String label, scoped ref string buf, int maxLength, Vector2 size, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback, ref context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextMultiline( + ImU8String label, scoped ref string buf, int maxLength, Vector2 size, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback, in context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, Span buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, hint, buf, default, flags, callback); + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, Span buf, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, hint, buf, default, flags, callback, ref context); + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, Span buf, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) + throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); + return InputTextEx(label, hint, buf, default, flags, callback, in context); + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + ImGuiInputTextCallbackDelegate? callback = null) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackRefContextDelegate callback, scoped ref TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback, ref context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool InputTextWithHint( + ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, + ImGuiInputTextCallbackInContextDelegate callback, scoped in TContext context) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback, in context); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + public static bool TempInputText( + ImRect bb, uint id, ImU8String label, Span buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* bufPtr = buf) + { + var r = ImGuiNative.TempInputText(bb, id, labelPtr, bufPtr, buf.Length, flags) != 0; + label.Dispose(); + return r; + } + } + + public static bool TempInputText( + ImRect bb, uint id, ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) + { + var t = new ImU8String(buf); + t.Reserve(maxLength + 1); + var r = TempInputText(bb, id, label, t.Buffer[..(maxLength + 1)], flags); + var i = t.Buffer.IndexOf((byte)0); + buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); + t.Dispose(); + return r; + } + + [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] + private static int InputTextCallbackStatic(ImGuiInputTextCallbackData* data) + { + ref var dvps = ref PointerTuple.From(data->UserData); + return dvps.Item1.Invoke(ref *data); + } + + [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] + private static int InputTextCallbackRefContextStatic(ImGuiInputTextCallbackData* data) + { + ref var dvps = ref PointerTuple.From, object>(data->UserData); + return dvps.Item1.Invoke(ref *data, ref dvps.Item2); + } + + [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] + private static int InputTextCallbackInContextStatic(ImGuiInputTextCallbackData* data) + { + ref var dvps = ref PointerTuple.From, object>(data->UserData); + return dvps.Item1.Invoke(ref *data, in dvps.Item2); + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs new file mode 100644 index 000000000..a77331dbc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs @@ -0,0 +1,151 @@ +using System.Diagnostics.CodeAnalysis; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static void AddCallback( + ImDrawListPtr self, delegate* callback, void* callbackData = null) => + ImGuiNative.AddCallback(self, (delegate*)callback, callbackData); + + public static void AddCallback( + ImDrawListPtr self, delegate* callback, void* callbackData = null) => + ImGuiNative.AddCallback(self, (delegate*)callback, callbackData); + + public static void AddCallback(ImDrawListPtr self, ImDrawCallbackEnum presetCallback) + { + if (!Enum.IsDefined(presetCallback)) + throw new ArgumentOutOfRangeException(nameof(presetCallback), presetCallback, null); + ImGuiNative.AddCallback(self, (delegate*)(nint)presetCallback); + } + + public static ImGuiPayloadPtr AcceptDragDropPayload( + ImU8String type, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) + { + fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.AcceptDragDropPayload(typePtr, flags); + type.Dispose(); + return r; + } + } + + public static ImFontPtr AddFontFromFileTTF( + ImFontAtlasPtr self, ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.AddFontFromFileTTF(self, filenamePtr, sizePixels, fontCfg, glyphRanges); + filename.Dispose(); + return r; + } + } + + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF( + ImFontAtlasPtr self, ImU8String compressedFontDatabase85, float sizePixels, + ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) + { + fixed (byte* compressedFontDatabase85Ptr = &compressedFontDatabase85.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.AddFontFromMemoryCompressedBase85TTF( + self, + compressedFontDatabase85Ptr, + sizePixels, + fontCfg, + glyphRanges); + compressedFontDatabase85.Dispose(); + return r; + } + } + + public static ImFontPtr AddFontFromMemoryCompressedTTF( + ImFontAtlasPtr self, ReadOnlySpan compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (byte* compressedFontPtr = compressedFontData) + return ImGuiNative.AddFontFromMemoryCompressedTTF( + self, + compressedFontPtr, + compressedFontData.Length, + sizePixels, + fontCfg, + glyphRanges); + } + + public static ImFontPtr AddFontFromMemoryTTF( + ImFontAtlasPtr self, ReadOnlySpan fontData, float sizePixels, ImFontConfigPtr fontCfg = default, + ushort* glyphRanges = null) + { + fixed (byte* fontDataPtr = fontData) + return ImGuiNative.AddFontFromMemoryTTF( + self, + fontDataPtr, + fontData.Length, + sizePixels, + fontCfg, + glyphRanges); + } + + public static void AddInputCharacter(ImGuiIOPtr self, char c) => ImGuiNative.AddInputCharacter(self, c); + public static void AddInputCharacter(ImGuiIOPtr self, Rune c) => ImGuiNative.AddInputCharacter(self, (uint)c.Value); + + public static void AddInputCharacters(ImGuiIOPtr self, ImU8String str) + { + fixed (byte* strPtr = &str.GetPinnableNullTerminatedReference()) + ImGuiNative.AddInputCharactersUTF8(self.Handle, strPtr); + str.Dispose(); + } + + public static ref bool GetBoolRef(ImGuiStoragePtr self, uint key, bool defaultValue = false) => + ref *ImGuiNative.GetBoolRef(self.Handle, key, defaultValue ? (byte)1 : (byte)0); + + public static ref float GetFloatRef(ImGuiStoragePtr self, uint key, float defaultValue = 0.0f) => + ref *ImGuiNative.GetFloatRef(self.Handle, key, defaultValue); + + public static ref int GetIntRef(ImGuiStoragePtr self, uint key, int defaultValue = 0) => + ref *ImGuiNative.GetIntRef(self.Handle, key, defaultValue); + + public static ref void* GetVoidPtrRef(ImGuiStoragePtr self, uint key, void* defaultValue = null) => + ref *ImGuiNative.GetVoidPtrRef(self.Handle, key, defaultValue); + + public static ref T* GetPtrRef(ImGuiStoragePtr self, uint key, T* defaultValue = null) where T : unmanaged => + ref *(T**)ImGuiNative.GetVoidPtrRef(self.Handle, key, defaultValue); + + public static ref T GetRef(ImGuiStoragePtr self, uint key, T defaultValue = default) where T : unmanaged + { + if (sizeof(T) > sizeof(void*)) throw new ArgumentOutOfRangeException(nameof(T), typeof(T), null); + return ref *(T*)ImGuiNative.GetVoidPtrRef(self.Handle, key, *(void**)&defaultValue); + } + + public static uint GetID(ImU8String strId) + { + fixed (byte* strIdPtr = strId) + { + var r = ImGuiNative.GetID(strIdPtr, strIdPtr + strId.Length); + strId.Dispose(); + return r; + } + } + + public static uint GetID(nint ptrId) => ImGuiNative.GetID((void*)ptrId); + public static uint GetID(nuint ptrId) => ImGuiNative.GetID((void*)ptrId); + public static uint GetID(void* ptrId) => ImGuiNative.GetID(ptrId); + + public static void PushID(ImU8String strId) + { + fixed (byte* strIdPtr = strId) + { + ImGuiNative.PushID(strIdPtr, strIdPtr + strId.Length); + strId.Dispose(); + } + } + + public static void PushID(nint ptrId) => ImGuiNative.PushID((void*)ptrId); + public static void PushID(nuint ptrId) => ImGuiNative.PushID((void*)ptrId); + + public static void PushID(void* ptrId) => + ImGuiNative.PushID(ptrId); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs new file mode 100644 index 000000000..69b3b7dbe --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs @@ -0,0 +1,268 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public delegate float GetFloatDelegate(int index); + + public delegate float GetFloatInContextDelegate(scoped in T context, int index) where T : allows ref struct; + + public delegate float GetFloatRefContextDelegate(scoped ref T context, int index) where T : allows ref struct; + + public static void PlotHistogram( + ImU8String label, ReadOnlySpan values, int valuesOffset = 0, ImU8String overlayText = default, + float scaleMin = float.MaxValue, float scaleMax = float.MaxValue, Vector2 graphSize = default, + int stride = sizeof(float)) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (float* valuesPtr = values) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) + { + ImGuiNative.PlotHistogram( + labelPtr, + valuesPtr, + values.Length, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize, + stride); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotHistogram( + ImU8String label, GetFloatRefContextDelegate valuesGetter, scoped ref TContext context, + int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[2]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + dataBuffer[0] = &valuesGetter; + dataBuffer[1] = contextPtr; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotHistogram( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatRefContextStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotHistogram( + ImU8String label, GetFloatInContextDelegate valuesGetter, scoped in TContext context, int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[2]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + dataBuffer[0] = &valuesGetter; + dataBuffer[1] = contextPtr; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotHistogram( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatInContextStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotHistogram( + ImU8String label, GetFloatDelegate valuesGetter, int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[1]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + { + dataBuffer[0] = &valuesGetter; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotHistogram( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotLines( + ImU8String label, ReadOnlySpan values, int valuesOffset = 0, ImU8String overlayText = default, + float scaleMin = float.MaxValue, float scaleMax = float.MaxValue, Vector2 graphSize = default, + int stride = sizeof(float)) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (float* valuesPtr = values) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) + { + ImGuiNative.PlotLines( + labelPtr, + valuesPtr, + values.Length, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize, + stride); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotLines( + ImU8String label, GetFloatInContextDelegate valuesGetter, scoped in TContext context, int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[2]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + dataBuffer[0] = &valuesGetter; + dataBuffer[1] = contextPtr; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotLines( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatInContextStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotLines( + ImU8String label, GetFloatRefContextDelegate valuesGetter, scoped in TContext context, + int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[2]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + dataBuffer[0] = &valuesGetter; + dataBuffer[1] = contextPtr; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotLines( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatRefContextStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + + public static void PlotLines( + ImU8String label, GetFloatDelegate valuesGetter, int valuesCount, + int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, + float scaleMax = float.MaxValue, Vector2 graphSize = default) + { + var dataBuffer = stackalloc void*[1]; + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + { + dataBuffer[0] = &valuesGetter; +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + ImGuiNative.PlotLines( + labelPtr, + (delegate*, void*, int, int, byte*, float, float, Vector2, float>) + (nint)(delegate* unmanaged)&GetFloatStatic, + dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + graphSize); + } + + label.Dispose(); + overlayText.Dispose(); + } + +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + [UnmanagedCallersOnly] + internal static float GetFloatRefContextStatic(void* data, int index) + { + ref var pt = ref PointerTuple.From, object>(data); + return pt.Item1.Invoke(ref pt.Item2, index); + } + + [UnmanagedCallersOnly] + internal static float GetFloatInContextStatic(void* data, int index) + { + ref var pt = ref PointerTuple.From, object>(data); + return pt.Item1.Invoke(pt.Item2, index); + } + + [UnmanagedCallersOnly] + internal static float GetFloatStatic(void* data, int index) => + PointerTuple.From(data).Item1.Invoke(index); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs new file mode 100644 index 000000000..e37eaec65 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs @@ -0,0 +1,474 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static bool SliderSByte( + ImU8String label, scoped ref sbyte v, sbyte vMin = 0, sbyte vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S8, + ref v, + vMin, + vMax, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool SliderSByte( + ImU8String label, Span v, sbyte vMin = 0, sbyte vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S8, + v, + vMin, + vMax, + format.MoveOrDefault("%hhd"u8), + flags); + + public static bool SliderByte( + ImU8String label, scoped ref byte v, byte vMin = 0, byte vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U8, + ref v, + vMin, + vMax, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool SliderByte( + ImU8String label, Span v, byte vMin = 0, byte vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U8, + v, + vMin, + vMax, + format.MoveOrDefault("%hhu"u8), + flags); + + public static bool SliderShort( + ImU8String label, scoped ref short v, short vMin = 0, short vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S16, + ref v, + vMin, + vMax, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool SliderShort( + ImU8String label, Span v, short vMin = 0, short vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S16, + v, + vMin, + vMax, + format.MoveOrDefault("%hd"u8), + flags); + + public static bool SliderUShort( + ImU8String label, scoped ref ushort v, ushort vMin = 0, ushort vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U16, + ref v, + vMin, + vMax, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool SliderUShort( + ImU8String label, Span v, ushort vMin = 0, ushort vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U16, + v, + vMin, + vMax, + format.MoveOrDefault("%hu"u8), + flags); + + public static bool SliderInt( + ImU8String label, scoped ref int v, int vMin = 0, int vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S32, + ref v, + vMin, + vMax, + format.MoveOrDefault("%d"u8), + flags); + + public static bool SliderInt( + ImU8String label, Span v, int vMin = 0, int vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S32, + v, + vMin, + vMax, + format.MoveOrDefault("%d"u8), + flags); + + public static bool SliderUInt( + ImU8String label, scoped ref uint v, uint vMin = 0, uint vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U32, + ref v, + vMin, + vMax, + format.MoveOrDefault("%u"u8), + flags); + + public static bool SliderUInt( + ImU8String label, Span v, uint vMin = 0, uint vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U32, + v, + vMin, + vMax, + format.MoveOrDefault("%u"u8), + flags); + + public static bool SliderLong( + ImU8String label, scoped ref long v, long vMin = 0, long vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S64, + ref v, + vMin, + vMax, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool SliderLong( + ImU8String label, Span v, long vMin = 0, long vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.S64, + v, + vMin, + vMax, + format.MoveOrDefault("%I64d"u8), + flags); + + public static bool SliderULong( + ImU8String label, scoped ref ulong v, ulong vMin = 0, ulong vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U64, + ref v, + vMin, + vMax, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool SliderULong( + ImU8String label, Span v, ulong vMin = 0, ulong vMax = 0, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.U64, + v, + vMin, + vMax, + format.MoveOrDefault("%I64u"u8), + flags); + + public static bool SliderFloat( + ImU8String label, scoped ref float v, float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.Float, + ref v, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool SliderFloat( + ImU8String label, Span v, float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.Float, + v, + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool SliderFloat2( + ImU8String label, scoped ref Vector2 v, float vMin = 0.0f, float vMax = 0.0f, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool SliderFloat3( + ImU8String label, scoped ref Vector3 v, float vMin = 0.0f, float vMax = 0.0f, + ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + SliderScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool SliderFloat4( + ImU8String label, scoped ref Vector4 v, float vMin = 0.0f, + float vMax = 0.0f, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + SliderScalar( + label, + ImGuiDataType.Float, + MemoryMarshal.Cast(new(ref v)), + vMin, + vMax, + format.MoveOrDefault("%.3f"u8), + flags); + + public static bool SliderDouble( + ImU8String label, scoped ref double v, double vMin = 0.0f, + double vMax = 0.0f, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + SliderScalar(label, ImGuiDataType.Double, ref v, vMin, vMax, format.MoveOrDefault("%.3f"u8), flags); + + public static bool SliderDouble( + ImU8String label, Span v, double vMin = 0.0f, + double vMax = 0.0f, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + SliderScalar(label, ImGuiDataType.Double, v, vMin, vMax, format.MoveOrDefault("%.3f"u8), flags); + + public static bool SliderScalar( + ImU8String label, ImGuiDataType dataType, scoped ref T v, + scoped in T vMin, scoped in T vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = &v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.SliderScalar( + labelPtr, + dataType, + vPtr, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool SliderScalar( + ImU8String label, ImGuiDataType dataType, Span v, scoped in T vMin, + scoped in T vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + where T : unmanaged, INumber, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.SliderScalarN( + labelPtr, + dataType, + vPtr, + v.Length, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool SliderScalar( + ImU8String label, scoped ref T v, + scoped in T vMin, scoped in T vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = &v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.SliderScalar( + labelPtr, + GetImGuiDataType(), + vPtr, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool SliderScalar( + ImU8String label, Span v, scoped in T vMin, + scoped in T vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + where T : unmanaged, INumber, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* vPtr = v) + fixed (T* vMinPtr = &vMin) + fixed (T* vMaxPtr = &vMax) + { + var res = ImGuiNative.SliderScalarN( + labelPtr, + GetImGuiDataType(), + vPtr, + v.Length, + vMinPtr, + vMaxPtr, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool SliderAngle( + ImU8String label, ref float vRad, float vDegreesMin = -360.0f, + float vDegreesMax = +360.0f, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%.0f deg"u8)) + fixed (float* vRadPtr = &vRad) + { + var res = ImGuiNative.SliderAngle( + labelPtr, + vRadPtr, + vDegreesMin, + vDegreesMax, + formatPtr, + flags) != 0; + label.Dispose(); + format.Dispose(); + return res; + } + } + + public static bool VSliderSByte( + ImU8String label, Vector2 size, scoped ref sbyte v, sbyte vMin, + sbyte vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.S8, ref v, vMin, vMax, format.MoveOrDefault("%hhd"), flags); + + public static bool VSliderByte( + ImU8String label, Vector2 size, scoped ref byte v, byte vMin, byte vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.U8, ref v, vMin, vMax, format.MoveOrDefault("%hhu"), flags); + + public static bool VSliderShort( + ImU8String label, Vector2 size, scoped ref short v, short vMin, + short vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.S16, ref v, vMin, vMax, format.MoveOrDefault("%hd"), flags); + + public static bool VSliderUShort( + ImU8String label, Vector2 size, scoped ref ushort v, ushort vMin, + ushort vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.U16, ref v, vMin, vMax, format.MoveOrDefault("%hu"), flags); + + public static bool VSliderInt( + ImU8String label, Vector2 size, scoped ref int v, int vMin, int vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.S32, ref v, vMin, vMax, format.MoveOrDefault("%d"), flags); + + public static bool VSliderUInt( + ImU8String label, Vector2 size, scoped ref uint v, uint vMin, uint vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.U32, ref v, vMin, vMax, format.MoveOrDefault("%u"), flags); + + public static bool VSliderLong( + ImU8String label, Vector2 size, scoped ref long v, long vMin, long vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.S32, ref v, vMin, vMax, format.MoveOrDefault("%I64d"), flags); + + public static bool VSliderULong( + ImU8String label, Vector2 size, scoped ref ulong v, ulong vMin, + ulong vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.U32, ref v, vMin, vMax, format.MoveOrDefault("%I64u"), flags); + + public static bool VSliderFloat( + ImU8String label, Vector2 size, scoped ref float v, float vMin, + float vMax, ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.Float, ref v, vMin, vMax, format.MoveOrDefault("%.03f"), flags); + + public static bool VSliderDouble( + ImU8String label, Vector2 size, scoped ref double v, double vMin, + double vMax, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) => + VSliderScalar(label, size, ImGuiDataType.Double, ref v, vMin, vMax, format.MoveOrDefault("%.03f"), flags); + + public static bool VSliderScalar( + ImU8String label, Vector2 size, ImGuiDataType dataType, + scoped ref T data, scoped in T min, scoped in T max, + ImU8String format = default, + ImGuiSliderFlags flags = ImGuiSliderFlags.None) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = &data) + fixed (T* minPtr = &min) + fixed (T* maxPtr = &max) + { + var res = ImGuiNative.VSliderScalar(labelPtr, size, dataType, dataPtr, minPtr, maxPtr, formatPtr, flags) != + 0; + label.Dispose(); + format.Dispose(); + return res; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs new file mode 100644 index 000000000..c6ba44ac1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs @@ -0,0 +1,73 @@ +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public unsafe partial class ImGui +{ + public static ReadOnlySpan GetVersionU8() => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetVersion()); + + public static ReadOnlySpan TableGetColumnNameU8(int columnN = -1) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.TableGetColumnName(columnN)); + + public static ReadOnlySpan GetStyleColorNameU8(this ImGuiCol idx) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetStyleColorName(idx)); + + public static ReadOnlySpan GetKeyNameU8(this ImGuiKey key) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetKeyName(key)); + + public static ReadOnlySpan GetClipboardTextU8() => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetClipboardText()); + + public static ReadOnlySpan SaveIniSettingsToMemoryU8() + { + nuint len; + var ptr = ImGuiNative.SaveIniSettingsToMemory(&len); + return new(ptr, (int)len); + } + + public static ref byte begin(this ImGuiTextBufferPtr self) => ref *ImGuiNative.begin(self.Handle); + + public static ref byte begin(this in ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* selfPtr = &self) + return ref *ImGuiNative.begin(selfPtr); + } + + public static ref byte end(this ImGuiTextBufferPtr self) => ref *ImGuiNative.end(self.Handle); + + public static ref byte end(this in ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* selfPtr = &self) + return ref *ImGuiNative.end(selfPtr); + } + + public static ReadOnlySpan c_str(this ImGuiTextBufferPtr self) => self.Handle->c_str(); + + public static ReadOnlySpan c_str(this scoped in ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* selfPtr = &self) + return MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.c_str(selfPtr)); + } + + public static ReadOnlySpan GetDebugNameU8(this ImFontPtr self) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetDebugName(self.Handle)); + + public static ReadOnlySpan GetDebugNameU8(this scoped in ImFont self) + { + fixed (ImFont* selfPtr = &self) + return MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetDebugName(selfPtr)); + } + + public static string GetVersion() => Encoding.UTF8.GetString(GetVersionU8()); + public static string TableGetColumnName(int columnN = -1) => Encoding.UTF8.GetString(TableGetColumnNameU8(columnN)); + public static string GetStyleColorName(this ImGuiCol idx) => Encoding.UTF8.GetString(GetStyleColorNameU8(idx)); + public static string GetKeyName(this ImGuiKey key) => Encoding.UTF8.GetString(GetKeyNameU8(key)); + public static string GetClipboardText() => Encoding.UTF8.GetString(GetClipboardTextU8()); + public static string SaveIniSettingsToMemory() => Encoding.UTF8.GetString(SaveIniSettingsToMemoryU8()); + public static string GetDebugName(this ImFontPtr self) => Encoding.UTF8.GetString(GetDebugNameU8(self)); + public static string GetDebugName(this scoped in ImFont self) => Encoding.UTF8.GetString(GetDebugNameU8(self)); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs new file mode 100644 index 000000000..b89b63169 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs @@ -0,0 +1,347 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static void AddText(ImFontGlyphRangesBuilderPtr self, ImU8String text) + { + fixed (byte* textPtr = text) + ImGuiNative.AddText(self.Handle, textPtr, textPtr + text.Length); + text.Dispose(); + } + + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ImU8String text) + { + fixed (byte* textPtr = text) + ImGuiNative.AddText(self.Handle, pos, col, textPtr, textPtr + text.Length); + text.Dispose(); + } + + public static void AddText( + ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, + scoped in Vector4 cpuFineClipRect) + { + fixed (byte* textPtr = text) + fixed (Vector4* cpuFineClipRectPtr = &cpuFineClipRect) + ImGuiNative.AddText( + self.Handle, + font, + fontSize, + pos, + col, + textPtr, + textPtr + text.Length, + wrapWidth, + cpuFineClipRectPtr); + text.Dispose(); + } + + public static void AddText( + ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, + float wrapWidth = 0f) + { + fixed (byte* textPtr = text) + ImGuiNative.AddText(self.Handle, font, fontSize, pos, col, textPtr, textPtr + text.Length, wrapWidth, null); + text.Dispose(); + } + + public static void append(this ImGuiTextBufferPtr self, ImU8String str) + { + fixed (byte* strPtr = str) + ImGuiNative.append(self.Handle, strPtr, strPtr + str.Length); + str.Dispose(); + } + + public static void BulletText(ImU8String text) + { + ImGuiWindow* window = ImGuiP.GetCurrentWindow(); + if (window->SkipItems != 0) return; + scoped ref var g = ref *GetCurrentContext().Handle; + scoped ref readonly var style = ref g.Style; + var labelSize = CalcTextSize(text.Span); + var totalSize = new Vector2( + g.FontSize + (labelSize.X > 0.0f ? (labelSize.X + style.FramePadding.X * 2) : 0.0f), + labelSize.Y); // Empty text doesn't add padding + var pos = window->DC.CursorPos; + pos.Y += window->DC.CurrLineTextBaseOffset; + ImGuiP.ItemSize(totalSize, 0.0f); + var bb = new ImRect(pos, pos + totalSize); + if (!ImGuiP.ItemAdd(bb, 0)) + return; + + // Render + var textCol = GetColorU32(ImGuiCol.Text); + ImGuiP.RenderBullet( + window->DrawList, + bb.Min + new Vector2(style.FramePadding.X + g.FontSize * 0.5f, g.FontSize * 0.5f), + textCol); + ImGuiP.RenderText(bb.Min + new Vector2(g.FontSize + style.FramePadding.X * 2, 0.0f), text.Span, false); + } + + public static Vector2 CalcTextSize( + ImU8String text, bool hideTextAfterDoubleHash = false, float wrapWidth = -1.0f) + { + var @out = Vector2.Zero; + fixed (byte* textPtr = text) + ImGuiNative.CalcTextSize( + &@out, + textPtr, + textPtr + text.Length, + hideTextAfterDoubleHash ? (byte)1 : (byte)0, + wrapWidth); + text.Dispose(); + return @out; + } + + public static Vector2 CalcTextSizeA( + ImFontPtr self, float size, float maxWidth, float wrapWidth, ImU8String text, out int remaining) + { + var @out = Vector2.Zero; + fixed (byte* textPtr = text) + { + byte* remainingPtr = null; + ImGuiNative.CalcTextSizeA( + &@out, + self.Handle, + size, + maxWidth, + wrapWidth, + textPtr, + textPtr + text.Length, + &remainingPtr); + remaining = (int)(remainingPtr - textPtr); + } + + text.Dispose(); + return @out; + } + + public static int CalcWordWrapPositionA( + ImFontPtr font, float scale, ImU8String text, float wrapWidth) + { + fixed (byte* ptr = text) + { + var r = + (int)(ImGuiNative.CalcWordWrapPositionA(font.Handle, scale, ptr, ptr + text.Length, wrapWidth) - ptr); + text.Dispose(); + return r; + } + } + + public static void InsertChars( + ImGuiInputTextCallbackDataPtr self, int pos, ImU8String text) + { + fixed (byte* ptr = text) + ImGuiNative.InsertChars(self.Handle, pos, ptr, ptr + text.Length); + text.Dispose(); + } + + public static void LabelText( + ImU8String label, + ImU8String text) + { + var window = ImGuiP.GetCurrentWindow().Handle; + if (window->SkipItems != 0) + { + label.Dispose(); + text.Dispose(); + return; + } + + scoped ref var g = ref *GetCurrentContext().Handle; + scoped ref readonly var style = ref g.Style; + var w = CalcItemWidth(); + + var valueSize = CalcTextSize(text); + var labelSize = CalcTextSize(label, true); + + var pos = window->DC.CursorPos; + var valueBb = new ImRect(pos, pos + new Vector2(w, valueSize.Y + style.FramePadding.Y * 2)); + var totalBb = new ImRect( + pos, + pos + new Vector2( + w + (labelSize.X > 0.0f ? style.ItemInnerSpacing.X + labelSize.X : 0.0f), + Math.Max(valueSize.Y, labelSize.Y) + style.FramePadding.Y * 2)); + ImGuiP.ItemSize(totalBb, style.FramePadding.Y); + if (!ImGuiP.ItemAdd(totalBb, 0)) + { + label.Dispose(); + text.Dispose(); + return; + } + + // Render + ImGuiP.RenderTextClipped(valueBb.Min + style.FramePadding, valueBb.Max, text.Span, valueSize, new(0.0f, 0.0f)); + if (labelSize.X > 0.0f) + { + ImGuiP.RenderText( + new(valueBb.Max.X + style.ItemInnerSpacing.X, valueBb.Min.Y + style.FramePadding.Y), + label.Span); + } + + label.Dispose(); + text.Dispose(); + } + + public static void LogText(ImU8String text) + { + var g = GetCurrentContext(); + if (!g.LogFile.IsNull) + { + g.LogBuffer.Buf.Resize(0); + append(&g.Handle->LogBuffer, text.Span); + fixed (byte* textPtr = text) + ImGuiPNative.ImFileWrite(textPtr, 1, (ulong)text.Length, g.LogFile); + } + else + { + append(&g.Handle->LogBuffer, text); + } + + text.Dispose(); + } + + public static void PassFilter(ImGuiTextFilterPtr self, ImU8String text) + { + fixed (byte* textPtr = text) + ImGuiNative.PassFilter(self.Handle, textPtr, textPtr + text.Length); + text.Dispose(); + } + + public static void RenderText( + ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, + ImU8String text, float wrapWidth = 0.0f, bool cpuFineClip = false) + { + fixed (byte* textPtr = text) + ImGuiNative.RenderText( + self, + drawList, + size, + pos, + col, + clipRect, + textPtr, + textPtr + text.Length, + wrapWidth, + cpuFineClip ? (byte)1 : (byte)0); + text.Dispose(); + } + + public static void SetTooltip(ImU8String text) + { + ImGuiP.BeginTooltipEx(ImGuiTooltipFlags.OverridePreviousTooltip, ImGuiWindowFlags.None); + Text(text.Span); + EndTooltip(); + text.Dispose(); + } + + public static void Text(ImU8String text) + { + fixed (byte* ptr = text) + ImGuiNative.TextUnformatted(ptr, ptr + text.Length); + text.Dispose(); + } + + public static void TextColored(uint col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + Text(text.Span); + PopStyleColor(); + text.Dispose(); + } + + public static void TextColored(scoped in Vector4 col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + Text(text.Span); + PopStyleColor(); + text.Dispose(); + } + + public static void TextDisabled(ImU8String text) + { + TextColored(*GetStyleColorVec4(ImGuiCol.TextDisabled), text.Span); + text.Dispose(); + } + + public static void TextUnformatted(ImU8String text) + { + Text(text.Span); + text.Dispose(); + } + + public static void TextWrapped(ImU8String text) + { + scoped ref var g = ref *GetCurrentContext().Handle; + var needBackup = g.CurrentWindow->DC.TextWrapPos < 0.0f; // Keep existing wrap position if one is already set + if (needBackup) + PushTextWrapPos(0.0f); + Text(text.Span); + if (needBackup) + PopTextWrapPos(); + text.Dispose(); + } + + public static void TextColoredWrapped(uint col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + TextWrapped(text.Span); + PopStyleColor(); + text.Dispose(); + } + + public static void TextColoredWrapped(scoped in Vector4 col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + TextWrapped(text.Span); + PopStyleColor(); + text.Dispose(); + } + + public static bool TreeNode(ImU8String label) + { + var window = ImGuiP.GetCurrentWindow(); + if (window.SkipItems) + { + label.Dispose(); + return false; + } + + var res = ImGuiP.TreeNodeBehavior( + window.Handle->GetID(label.Span), + ImGuiTreeNodeFlags.None, + label.Span[..ImGuiP.FindRenderedTextEnd(label.Span, out _, out _)]); + label.Dispose(); + return res; + } + + public static bool TreeNodeEx( + ImU8String id, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None, + ImU8String label = default) + { + var window = ImGuiP.GetCurrentWindow(); + bool res; + if (window.SkipItems) + { + res = false; + } + else if (label.IsNull) + { + res = ImGuiP.TreeNodeBehavior( + window.Handle->GetID(id.Span), + flags, + id.Span[..ImGuiP.FindRenderedTextEnd(id.Span, out _, out _)]); + } + else + { + res = ImGuiP.TreeNodeBehavior(window.Handle->GetID(id.Span), flags, label.Span[..label.Length]); + } + + id.Dispose(); + label.Dispose(); + return res; + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs new file mode 100644 index 000000000..9cbc3dc9a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs @@ -0,0 +1,689 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGui +{ + public static bool Begin(ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + fixed (bool* openPtr = &open) + { + var r = ImGuiNative.Begin(namePtr, openPtr, flags) != 0; + name.Dispose(); + return r; + } + } + + public static bool Begin(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.Begin(namePtr, null, flags) != 0; + name.Dispose(); + return r; + } + } + + public static bool BeginChild( + ImU8String strId, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginChild(strIdPtr, size, border ? (byte)1 : (byte)0, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginChild( + uint id, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None) => + ImGuiNative.BeginChild(id, size, border ? (byte)1 : (byte)0, flags) != 0; + + public static bool BeginCombo( + ImU8String label, ImU8String previewValue, ImGuiComboFlags flags = ImGuiComboFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* previewValuePtr = &previewValue.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginCombo(labelPtr, previewValuePtr, flags) != 0; + label.Dispose(); + previewValue.Dispose(); + return r; + } + } + + public static bool BeginListBox(ImU8String label, Vector2 size = default) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginListBox(labelPtr, size) != 0; + label.Dispose(); + return r; + } + } + + public static bool BeginMenu(ImU8String label, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginMenu(labelPtr, enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + return r; + } + } + + public static bool BeginPopup(ImU8String strId, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginPopup(strIdPtr, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginPopupContextItem( + ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginPopupContextItem(strIdPtr, popupFlags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginPopupContextWindow( + ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginPopupContextWindow(strIdPtr, popupFlags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginPopupContextVoid( + ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginPopupContextVoid(strIdPtr, popupFlags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginPopupModal( + ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + fixed (bool* openPtr = &open) + { + var r = ImGuiNative.BeginPopupModal(namePtr, openPtr, flags) != 0; + name.Dispose(); + return r; + } + } + + public static bool BeginPopupModal(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginPopupModal(namePtr, null, flags) != 0; + name.Dispose(); + return r; + } + } + + public static bool BeginTabBar(ImU8String strId, ImGuiTabBarFlags flags = ImGuiTabBarFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginTabBar(strIdPtr, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginTabItem( + ImU8String label, ref bool pOpen, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* pOpenPtr = &pOpen) + { + var r = ImGuiNative.BeginTabItem(labelPtr, pOpenPtr, flags) != 0; + label.Dispose(); + return r; + } + } + + public static bool BeginTabItem(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginTabItem(labelPtr, null, flags) != 0; + label.Dispose(); + return r; + } + } + + public static bool BeginTable( + ImU8String strId, int column, ImGuiTableFlags flags = ImGuiTableFlags.None, Vector2 outerSize = default, + float innerWidth = 0.0f) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.BeginTable(strIdPtr, column, flags, outerSize, innerWidth) != 0; + strId.Dispose(); + return r; + } + } + + public static bool Button(ImU8String label, Vector2 size = default) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.Button(labelPtr, size) != 0; + label.Dispose(); + return r; + } + } + + public static bool Checkbox(ImU8String label, ref bool v) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* vPtr = &v) + { + var r = ImGuiNative.Checkbox(labelPtr, vPtr) != 0; + label.Dispose(); + return r; + } + } + + public static bool CheckboxFlags(ImU8String label, ref T flags, T flagsValue) + where T : IBinaryInteger + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var allOn = (flags & flagsValue) == flagsValue; + var anyOn = !T.IsZero(flags & flagsValue); + bool pressed; + if (!allOn && anyOn) + { + var g = GetCurrentContext(); + var backupItemFlags = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags.MixedValue; + pressed = ImGuiNative.Checkbox(labelPtr, &allOn) != 0; + g.CurrentItemFlags = backupItemFlags; + } + else + { + pressed = ImGuiNative.Checkbox(labelPtr, &allOn) != 0; + } + + if (pressed) + { + if (allOn) + flags |= flagsValue; + else + flags &= ~flagsValue; + } + + label.Dispose(); + return pressed; + } + } + + public static bool CollapsingHeader( + ImU8String label, ref bool visible, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* visiblePtr = &visible) + { + var r = ImGuiNative.CollapsingHeader(labelPtr, visiblePtr, flags) != 0; + label.Dispose(); + return r; + } + } + + public static bool CollapsingHeader(ImU8String label, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.CollapsingHeader(labelPtr, null, flags) != 0; + label.Dispose(); + return r; + } + } + + public static bool ColorButton( + ImU8String descId, in Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None, + Vector2 size = default) + { + fixed (byte* descIdPtr = &descId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.ColorButton(descIdPtr, col, flags, size) != 0; + descId.Dispose(); + return r; + } + } + + public static void Columns(int count = 1, ImU8String id = default, bool border = true) + { + fixed (byte* idPtr = &id.GetPinnableNullTerminatedReference()) + ImGuiNative.Columns(count, idPtr, border ? (byte)1 : (byte)0); + id.Dispose(); + } + + public static bool DebugCheckVersionAndDataLayout( + ImU8String versionStr, nuint szIo, nuint szStyle, nuint szVec2, nuint szVec4, nuint szDrawVert, + nuint szDrawIdx) + { + fixed (byte* versionPtr = &versionStr.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.DebugCheckVersionAndDataLayout( + versionPtr, + szIo, + szStyle, + szVec2, + szVec4, + szDrawVert, + szDrawIdx) != 0; + versionStr.Dispose(); + return r; + } + } + + public static void DebugTextEncoding(ImU8String text) + { + fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) + { + ImGuiNative.DebugTextEncoding(textPtr); + text.Dispose(); + } + } + + public static bool Draw(ImGuiTextFilterPtr self, ImU8String label = default, float width = 0.0f) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference("Filter (inc,-exc)"u8)) + { + var r = ImGuiNative.Draw(self.Handle, labelPtr, width) != 0; + label.Dispose(); + return r; + } + } + + public static ImGuiTextFilterPtr ImGuiTextFilter(ImU8String defaultFilter = default) + { + fixed (byte* defaultFilterPtr = &defaultFilter.GetPinnableNullTerminatedReference("\0"u8)) + { + var r = ImGuiNative.ImGuiTextFilter(defaultFilterPtr); + defaultFilter.Dispose(); + return r; + } + } + + public static ImGuiTextRangePtr ImGuiTextRange() => ImGuiNative.ImGuiTextRange(); + + public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan text) + { + fixed (byte* textPtr = text) + return ImGuiNative.ImGuiTextRange(textPtr, textPtr + text.Length); + } + + public static bool InvisibleButton( + ImU8String strId, Vector2 size, ImGuiButtonFlags flags = ImGuiButtonFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.InvisibleButton(strIdPtr, size, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool IsDataType(ImGuiPayloadPtr self, ImU8String type) + { + fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.IsDataType(self.Handle, typePtr) != 0; + type.Dispose(); + return r; + } + } + + public static bool IsPopupOpen(ImU8String strId, ImGuiPopupFlags flags = ImGuiPopupFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.IsPopupOpen(strIdPtr, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static void LoadIniSettingsFromDisk(ImU8String iniFilename) + { + fixed (byte* iniFilenamePtr = &iniFilename.GetPinnableNullTerminatedReference()) + ImGuiNative.LoadIniSettingsFromDisk(iniFilenamePtr); + iniFilename.Dispose(); + } + + public static void LoadIniSettingsFromMemory(ImU8String iniData) + { + fixed (byte* iniDataPtr = iniData) + ImGuiNative.LoadIniSettingsFromMemory(iniDataPtr, (nuint)iniData.Length); + iniData.Dispose(); + } + + public static void LogToFile(int autoOpenDepth = -1, ImU8String filename = default) + { + fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) + ImGuiNative.LogToFile(autoOpenDepth, filenamePtr); + filename.Dispose(); + } + + public static bool MenuItem( + ImU8String label, ImU8String shortcut, bool selected = false, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.MenuItem( + labelPtr, + shortcutPtr, + selected ? (byte)1 : (byte)0, + enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + shortcut.Dispose(); + return r; + } + } + + public static bool MenuItem(ImU8String label, ImU8String shortcut, ref bool selected, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) + fixed (bool* selectedPtr = &selected) + { + var r = ImGuiNative.MenuItem(labelPtr, shortcutPtr, selectedPtr, enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + shortcut.Dispose(); + return r; + } + } + + public static bool MenuItem(ImU8String label, ref bool selected, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* selectedPtr = &selected) + { + var r = ImGuiNative.MenuItem(labelPtr, null, selectedPtr, enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + return r; + } + } + + public static bool MenuItem(ImU8String label, bool selected = false, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.MenuItem( + labelPtr, + null, + selected ? (byte)1 : (byte)0, + enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + return r; + } + } + + public static void OpenPopup(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + ImGuiNative.OpenPopup(strIdPtr, popupFlags); + strId.Dispose(); + } + + public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None) => + ImGuiNative.OpenPopup(id, popupFlags); + + public static void OpenPopupOnItemClick( + ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + ImGuiNative.OpenPopupOnItemClick(strIdPtr, popupFlags); + strId.Dispose(); + } + + public static void ProgressBar(float fraction, Vector2 sizeArg, ImU8String overlay = default) + { + fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference()) + ImGuiNative.ProgressBar(fraction, sizeArg, overlayPtr); + overlay.Dispose(); + } + + public static void ProgressBar(float fraction, ImU8String overlay = default) + { + fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference()) + ImGuiNative.ProgressBar(fraction, new(-float.MinValue, 0), overlayPtr); + overlay.Dispose(); + } + + public static bool RadioButton(ImU8String label, bool active) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.RadioButton(labelPtr, active ? (byte)1 : (byte)0) != 0; + label.Dispose(); + return r; + } + } + + public static bool RadioButton(ImU8String label, ref T v, T vButton) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var pressed = ImGuiNative.RadioButton( + labelPtr, + EqualityComparer.Default.Equals(v, vButton) ? (byte)1 : (byte)0) != 0; + if (pressed) + v = vButton; + return pressed; + } + } + + public static void SaveIniSettingsToDisk(ImU8String iniFilename) + { + fixed (byte* iniPtr = &iniFilename.GetPinnableNullTerminatedReference()) + ImGuiNative.SaveIniSettingsToDisk(iniPtr); + } + + public static bool Selectable( + ImU8String label, bool selected = false, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, + Vector2 size = default) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.Selectable(labelPtr, selected ? (byte)1 : (byte)0, flags, size) != 0; + label.Dispose(); + return r; + } + } + + public static bool Selectable( + ImU8String label, ref bool selected, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, + Vector2 size = default) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* selectedPtr = &selected) + { + var r = ImGuiNative.Selectable(labelPtr, selectedPtr, flags, size) != 0; + label.Dispose(); + return r; + } + } + + public static void SetClipboardText(ImU8String text) + { + fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) + ImGuiNative.SetClipboardText(textPtr); + text.Dispose(); + } + + public static bool SetDragDropPayload(ImU8String type, ReadOnlySpan data, ImGuiCond cond) + { + fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) + fixed (byte* dataPtr = data) + { + var r = ImGuiNative.SetDragDropPayload(typePtr, dataPtr, (nuint)data.Length, cond) != 0; + type.Dispose(); + return r; + } + } + + public static void SetTabItemClosed(ImU8String tabOrDockedWindowLabel) + { + fixed (byte* tabItemPtr = &tabOrDockedWindowLabel.GetPinnableNullTerminatedReference()) + ImGuiNative.SetTabItemClosed(tabItemPtr); + tabOrDockedWindowLabel.Dispose(); + } + + public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond = ImGuiCond.None) => + ImGuiNative.SetWindowCollapsed(collapsed ? (byte)1 : (byte)0, cond); + + public static void SetWindowCollapsed(ImU8String name, bool collapsed, ImGuiCond cond = ImGuiCond.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + ImGuiNative.SetWindowCollapsed(namePtr, collapsed ? (byte)1 : (byte)0, cond); + name.Dispose(); + } + + /// Sets the current window to be focused / top-most. + /// Prefer using . + public static void SetWindowFocus() => ImGuiNative.SetWindowFocus(); + + /// Sets a named window to be focused / top-most. + /// Name of the window to focus. Use default to remove focus. + public static void SetWindowFocus(ImU8String name) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + ImGuiNative.SetWindowFocus(namePtr); + name.Dispose(); + } + + /// Removes focus from any window. + public static void ClearWindowFocus() => ImGuiNative.SetWindowFocus(null); + + public static void SetWindowPos(Vector2 pos, ImGuiCond cond = ImGuiCond.None) => + ImGuiNative.SetWindowPos(pos, cond); + + public static void SetWindowPos(ImU8String name, Vector2 pos, ImGuiCond cond = ImGuiCond.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + ImGuiNative.SetWindowPos(namePtr, pos, cond); + name.Dispose(); + } + + public static void SetWindowSize(Vector2 size, ImGuiCond cond = ImGuiCond.None) => + ImGuiNative.SetWindowSize(size, cond); + + public static void SetWindowSize(ImU8String name, Vector2 size, ImGuiCond cond = ImGuiCond.None) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + ImGuiNative.SetWindowSize(namePtr, size, cond); + name.Dispose(); + } + + public static void ShowFontSelector(ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiNative.ShowFontSelector(labelPtr); + label.Dispose(); + } + + public static bool ShowStyleSelector(ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.ShowStyleSelector(labelPtr) != 0; + label.Dispose(); + return r; + } + } + + public static bool SmallButton(ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.SmallButton(labelPtr) != 0; + label.Dispose(); + return r; + } + } + + public static bool TabItemButton(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiNative.TabItemButton(labelPtr, flags) != 0; + label.Dispose(); + return r; + } + } + + public static void TableHeader(ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiNative.TableHeader(labelPtr); + label.Dispose(); + } + + public static void TableSetupColumn( + ImU8String label, ImGuiTableColumnFlags flags = ImGuiTableColumnFlags.None, float initWidthOrWeight = 0.0f, + uint userId = 0) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiNative.TableSetupColumn(labelPtr, flags, initWidthOrWeight, userId); + label.Dispose(); + } + + public static void TreePush(ImU8String strId) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + ImGuiNative.TreePush(strIdPtr); + strId.Dispose(); + } + + public static void TreePush(nint ptrId) => ImGuiNative.TreePush((void*)ptrId); + public static void TreePush(void* ptrId) => ImGuiNative.TreePush(ptrId); + + public static void Value(ImU8String prefix, in T value) + { + prefix.AppendLiteral(": "); + prefix.AppendFormatted(value); + fixed (byte* prefixPtr = prefix) + { + ImGuiNative.TextUnformatted(prefixPtr, prefixPtr + prefix.Length); + prefix.Dispose(); + } + } + + // public static void Value(AutoUtf8Buffer prefix, float value) => Value(prefix, value, default); + + public static void Value(ImU8String prefix, float value, ImU8String floatFormat = default) + { + fixed (byte* prefixPtr = &prefix.GetPinnableNullTerminatedReference()) + fixed (byte* floatPtr = &floatFormat.GetPinnableNullTerminatedReference()) + { + ImGuiNative.Value(prefixPtr, value, floatPtr); + prefix.Dispose(); + floatFormat.Dispose(); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs new file mode 100644 index 000000000..12e623eeb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs @@ -0,0 +1,33 @@ +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiIO +{ + public void AddInputCharacter(char c) + { + fixed (ImGuiIO* thisPtr = &this) + ImGui.AddInputCharacter(thisPtr, c); + } + + public void AddInputCharacter(Rune c) + { + fixed (ImGuiIO* thisPtr = &this) + ImGui.AddInputCharacter(thisPtr, c); + } + + public void AddInputCharacters(ImU8String str) + { + fixed (ImGuiIO* thisPtr = &this) + ImGui.AddInputCharacters(thisPtr, str); + } +} + +public partial struct ImGuiIOPtr +{ + public void AddInputCharacter(char c) => ImGui.AddInputCharacter(this, c); + + public void AddInputCharacter(Rune c) => ImGui.AddInputCharacter(this, c); + + public void AddInputCharacters(ImU8String str) => ImGui.AddInputCharacters(this, str); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs new file mode 100644 index 000000000..ee90e3b82 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs @@ -0,0 +1,23 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiInputTextCallbackData +{ + public readonly Span BufSpan => new(this.Buf, this.BufSize); + + public readonly Span BufTextSpan => new(this.Buf, this.BufTextLen); + + public void InsertChars(int pos, ImU8String text) + { + fixed (ImGuiInputTextCallbackData* thisPtr = &this) + ImGui.InsertChars(thisPtr, pos, text); + } +} + +public unsafe partial struct ImGuiInputTextCallbackDataPtr +{ + public readonly Span BufSpan => this.Handle->BufSpan; + + public readonly Span BufTextSpan => this.Handle->BufTextSpan; + + public void InsertChars(int pos, ImU8String text) => ImGui.InsertChars(this, pos, text); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs new file mode 100644 index 000000000..66626ee3b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs @@ -0,0 +1,40 @@ +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +public static unsafe partial class ImGuiNative +{ + private const string LibraryName = "cimgui"; + + static ImGuiNative() + { + if (LibraryName != ImGui.GetLibraryName()) + { + throw new( + $"{nameof(LibraryName)}(={LibraryName})" + + $" does not match " + + $"{nameof(ImGui)}.{nameof(ImGui.GetLibraryName)}(={ImGui.GetLibraryName()})"); + } + } + + [LibraryImport(LibraryName, EntryPoint = "ImDrawList_AddCallback")] + [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] + public static partial void AddCallback( + ImDrawList* self, + delegate* callback, + void* callbackData = null); + + [LibraryImport(LibraryName, EntryPoint = "igInputTextEx")] + [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] + public static partial int InputTextEx( + byte* label, + byte* hint, + byte* buf, + int bufSize, + Vector2 sizeArg, + ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, + delegate* unmanaged[Cdecl] callback = null, + void* userData = null); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs new file mode 100644 index 000000000..8e61f8f07 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs @@ -0,0 +1,496 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public unsafe partial class ImGuiP +{ + public static bool ArrowButtonEx( + ImU8String strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags = ImGuiButtonFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.ArrowButtonEx(strIdPtr, dir, sizeArg, flags) != 0; + strId.Dispose(); + return r; + } + } + + public static bool BeginChildEx(ImU8String name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.BeginChildEx(namePtr, id, sizeArg, border ? (byte)1 : (byte)0, flags) != 0; + name.Dispose(); + return r; + } + } + + public static void BeginColumns(ImU8String strId, int count, ImGuiOldColumnFlags flags = ImGuiOldColumnFlags.None) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + ImGuiPNative.BeginColumns(strIdPtr, count, flags); + strId.Dispose(); + } + + public static bool BeginMenuEx(ImU8String label, ImU8String icon = default, bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* iconPtr = &icon.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.BeginMenuEx(labelPtr, iconPtr, enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + icon.Dispose(); + return r; + } + } + + public static bool BeginTableEx( + ImU8String name, uint id, int columnsCount, ImGuiTableFlags flags = ImGuiTableFlags.None, + Vector2 outerSize = default, float innerWidth = 0.0f) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.BeginTableEx(namePtr, id, columnsCount, flags, outerSize, innerWidth) != 0; + name.Dispose(); + return r; + } + } + + public static bool BeginViewportSideBar( + ImU8String name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.BeginViewportSideBar(namePtr, viewport, dir, size, windowFlags) != 0; + name.Dispose(); + return r; + } + } + + public static bool ButtonEx( + ImU8String label, Vector2 sizeArg = default, ImGuiButtonFlags flags = ImGuiButtonFlags.None) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.ButtonEx(labelPtr, sizeArg, flags) != 0; + label.Dispose(); + return r; + } + } + + public static void ColorEditOptionsPopup(ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (float* colPtr = col) + ImGuiPNative.ColorEditOptionsPopup(colPtr, flags); + } + + public static void ColorPickerOptionsPopup(ReadOnlySpan refCol, ImGuiColorEditFlags flags) + { + fixed (float* refColPtr = refCol) + ImGuiPNative.ColorPickerOptionsPopup(refColPtr, flags); + } + + public static void ColorTooltip(ImU8String text, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) + fixed (float* colPtr = col) + ImGuiPNative.ColorTooltip(textPtr, colPtr, flags); + text.Dispose(); + } + + public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ImU8String name) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.CreateNewWindowSettings(namePtr); + name.Dispose(); + return r; + } + } + + public static void Custom_StbTextMakeUndoReplace( + ImGuiInputTextStatePtr str, int where, int oldLength, int newLength) => + ImGuiPNative.Custom_StbTextMakeUndoReplace(str, where, oldLength, newLength); + + public static void Custom_StbTextUndo(ImGuiInputTextStatePtr str) => ImGuiPNative.Custom_StbTextUndo(str); + + public static bool DataTypeApplyFromText(ImU8String buf, ImGuiDataType dataType, T data, ImU8String format) + where T : unmanaged, IBinaryNumber + { + fixed (byte* bufPtr = &buf.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.DataTypeApplyFromText(bufPtr, dataType, &data, formatPtr) != 0; + format.Dispose(); + buf.Dispose(); + return r; + } + } + + public static void DebugNodeDockNode(ImGuiDockNodePtr node, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeDockNode(node, labelPtr); + label.Dispose(); + } + + public static void DebugNodeDrawList( + ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeDrawList(window, viewport, drawList, labelPtr); + label.Dispose(); + } + + public static void DebugNodeStorage(ImGuiStoragePtr storage, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeStorage(storage, labelPtr); + label.Dispose(); + } + + public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeTabBar(tabBar, labelPtr); + label.Dispose(); + } + + public static void DebugNodeWindow(ImGuiWindowPtr window, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeWindow(window, labelPtr); + label.Dispose(); + } + + public static void DebugNodeWindowsList(scoped in ImVector windows, ImU8String label) + { + fixed (ImVector* windowsPtr = &windows) + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + ImGuiPNative.DebugNodeWindowsList(windowsPtr, labelPtr); + label.Dispose(); + } + + public static void DockBuilderCopyWindowSettings(ImU8String srcName, ImU8String dstName) + { + fixed (byte* srcNamePtr = &srcName.GetPinnableNullTerminatedReference()) + fixed (byte* dstNamePtr = &dstName.GetPinnableNullTerminatedReference()) + ImGuiPNative.DockBuilderCopyWindowSettings(srcNamePtr, dstNamePtr); + srcName.Dispose(); + dstName.Dispose(); + } + + public static void DockBuilderDockWindow(ImU8String windowName, uint nodeId) + { + fixed (byte* windowNamePtr = &windowName.GetPinnableNullTerminatedReference()) + ImGuiPNative.DockBuilderDockWindow(windowNamePtr, nodeId); + windowName.Dispose(); + } + + public static bool DragBehavior( + uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ImU8String format, + ImGuiSliderFlags flags) + { + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.DragBehavior(id, dataType, pV, vSpeed, pMin, pMax, formatPtr, flags) != 0; + format.Dispose(); + return r; + } + } + + public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ImU8String name) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.FindOrCreateWindowSettings(namePtr); + name.Dispose(); + return r; + } + } + + public static ImGuiSettingsHandlerPtr FindSettingsHandler(ImU8String typeName) + { + fixed (byte* typeNamePtr = &typeName.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.FindSettingsHandler(typeNamePtr); + typeName.Dispose(); + return r; + } + } + + public static ImGuiWindowPtr FindWindowByName(ImU8String name) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.FindWindowByName(namePtr); + name.Dispose(); + return r; + } + } + + public static uint GetColumnsID(ImU8String strId, int count) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.GetColumnsID(strIdPtr, count); + strId.Dispose(); + return r; + } + } + + public static uint GetIDWithSeed(ImU8String strId, uint seed) + { + fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.GetIDWithSeed(strIdPtr, strIdPtr + strId.Length, seed); + strId.Dispose(); + return r; + } + } + + public static void* ImFileLoadToMemory( + ImU8String filename, ImU8String mode, out nuint outFileSize, int paddingBytes = 0) + { + fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) + fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) + fixed (nuint* outFileSizePtr = &outFileSize) + { + var r = ImGuiPNative.ImFileLoadToMemory(filenamePtr, modePtr, outFileSizePtr, paddingBytes); + filename.Dispose(); + mode.Dispose(); + return r; + } + } + + public static void* ImFileLoadToMemory(ImU8String filename, ImU8String mode, int paddingBytes = 0) + { + fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) + fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.ImFileLoadToMemory(filenamePtr, modePtr, null, paddingBytes); + filename.Dispose(); + mode.Dispose(); + return r; + } + } + + public static ImFileHandle ImFileOpen(ImU8String filename, ImU8String mode) + { + fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) + fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.ImFileOpen(filenamePtr, modePtr); + filename.Dispose(); + mode.Dispose(); + return r; + } + } + + public static void ImFontAtlasBuildMultiplyRectAlpha8( + ReadOnlySpan table, ReadOnlySpan pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* tablePtr = table) + fixed (byte* pixelsPtr = pixels) + ImGuiPNative.ImFontAtlasBuildMultiplyRectAlpha8(tablePtr, pixelsPtr, x, y, w, h, stride); + } + + public static void ImFontAtlasBuildRender32bppRectFromString( + ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, + uint inMarkerPixelValue) + { + fixed (byte* inStrPtr = inStr) + { + ImGuiPNative.ImFontAtlasBuildRender32bppRectFromString( + atlas, + textureIndex, + x, + y, + w, + h, + inStrPtr, + inMarkerChar, + inMarkerPixelValue); + } + } + + public static void ImFontAtlasBuildRender8bppRectFromString( + ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, + byte inMarkerPixelValue) + { + fixed (byte* inStrPtr = inStr) + { + ImGuiPNative.ImFontAtlasBuildRender8bppRectFromString( + atlas, + textureIndex, + x, + y, + w, + h, + inStrPtr, + inMarkerChar, + inMarkerPixelValue); + } + } + + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ImU8String fmt) + { + fixed (byte* fmtPtr = &fmt.GetPinnableNullTerminatedReference()) + ImGuiPNative.ImFormatStringToTempBuffer(outBuf, outBufEnd, fmtPtr); + fmt.Dispose(); + } + + public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ImU8String name) + { + fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.ImGuiWindow(context, namePtr); + name.Dispose(); + return r; + } + } + + // public static byte* ImParseFormatFindEnd(byte* format) + // public static byte* ImParseFormatFindStart(byte* format) + // public static int ImParseFormatPrecision(byte* format, int defaultValue) + // public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) + // public static byte* ImStrdup(byte* str) + // public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) + // public static int ImStricmp(byte* str1, byte* str2) + // public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + // public static int ImStrlenW(ushort* str) + // public static void ImStrncpy(byte* dst, byte* src, nuint count) + // public static int ImStrnicmp(byte* str1, byte* str2, nuint count) + // public static byte* ImStrSkipBlank(byte* str) + // public static void ImStrTrimBlanks(byte* str) + // public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) + // public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) + // public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) + + public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) => + ImGuiPNative.LogSetNextTextDecoration(prefix, suffix); + + public static bool MenuItemEx( + ImU8String label, ImU8String icon = default, ImU8String shortcut = default, bool selected = false, + bool enabled = true) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* iconPtr = &icon.GetPinnableNullTerminatedReference()) + fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.MenuItemEx( + labelPtr, + iconPtr, + shortcutPtr, + selected ? (byte)1 : (byte)0, + enabled ? (byte)1 : (byte)0) != 0; + label.Dispose(); + icon.Dispose(); + shortcut.Dispose(); + return r; + } + } + + public static void RemoveSettingsHandler(ImU8String typeName) + { + fixed (byte* typeNamePtr = &typeName.GetPinnableNullTerminatedReference()) + ImGuiPNative.RemoveSettingsHandler(typeNamePtr); + typeName.Dispose(); + } + + public static bool SliderBehavior( + ImRect bb, uint id, ImGuiDataType dataType, scoped ref T value, T min, T max, ImU8String format, + ImGuiSliderFlags flags, ImRectPtr outGrabBb) + where T : unmanaged, IBinaryNumber + { + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* valuePtr = &value) + { + var r = ImGuiPNative.SliderBehavior( + bb, + id, + dataType, + valuePtr, + &min, + &max, + formatPtr, + flags, + outGrabBb) != 0; + format.Dispose(); + return r; + } + } + + public static Vector2 TabItemCalcSize(ImU8String label, bool hasCloseButton) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + Vector2 v; + ImGuiPNative.TabItemCalcSize(&v, labelPtr, hasCloseButton ? (byte)1 : (byte)0); + return v; + } + } + + public static bool TabItemEx( + ImGuiTabBarPtr tabBar, ImU8String label, ref bool open, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* openPtr = &open) + { + var r = ImGuiPNative.TabItemEx(tabBar, labelPtr, openPtr, flags, dockedWindow) != 0; + label.Dispose(); + return r; + } + } + + public static void TabItemLabelAndCloseButton( + ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ImU8String label, uint tabId, + uint closeButtonId, bool isContentsVisible, out bool justClosed, out bool textClipped) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (bool* justClosedPtr = &justClosed) + fixed (bool* textClippedPtr = &textClipped) + { + ImGuiPNative.TabItemLabelAndCloseButton( + drawList, + bb, + flags, + framePadding, + labelPtr, + tabId, + closeButtonId, + isContentsVisible ? (byte)1 : (byte)0, + justClosedPtr, + textClippedPtr); + } + + label.Dispose(); + } + + public static bool TempInputScalar( + ImRect bb, uint id, ImU8String label, ImGuiDataType dataType, scoped ref T data, ImU8String format, T min, + T max) + where T : unmanaged, IBinaryNumber + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) + fixed (T* dataPtr = &data) + { + var r = ImGuiPNative.TempInputScalar(bb, id, labelPtr, dataType, dataPtr, formatPtr, &min, &max) != 0; + label.Dispose(); + return r; + } + } + + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ImU8String label) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + { + var r = ImGuiPNative.TreeNodeBehavior(id, flags, labelPtr, labelPtr + label.Length) != 0; + label.Dispose(); + return r; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs new file mode 100644 index 000000000..8f3f56fc5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs @@ -0,0 +1,99 @@ +using System.Diagnostics.CodeAnalysis; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui; + +[SuppressMessage("ReSharper", "InconsistentNaming")] +public static unsafe partial class ImGuiP +{ + public static int PlotEx( + ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatDelegate valuesGetter, + int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) + { + var dataBuffer = PointerTuple.CreateFixed(ref valuesGetter); + var r = ImGuiPNative.PlotEx( + plotType, + labelPtr, + (delegate*, void*, int, int, byte*, float, float, + Vector2, float>) + (nint)(delegate* unmanaged)&ImGui.GetFloatStatic, + &dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + frameSize); + label.Dispose(); + overlayText.Dispose(); + return r; + } + } + + public static int PlotEx( + ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatInContextDelegate valuesGetter, + scoped in TContext context, + int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + var dataBuffer = PointerTuple.Create(&valuesGetter, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiPNative.PlotEx( + plotType, + labelPtr, + (delegate*, void*, int, int, byte*, float, float, + Vector2, float>) + (nint)(delegate* unmanaged)&ImGui.GetFloatInContextStatic, + &dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + frameSize); + label.Dispose(); + overlayText.Dispose(); + return r; + } + } + + public static int PlotEx( + ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatRefContextDelegate valuesGetter, + scoped in TContext context, + int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + where TContext : allows ref struct + { + fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) + fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + fixed (TContext* contextPtr = &context) + { + var dataBuffer = PointerTuple.Create(&valuesGetter, contextPtr); +#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type + var r = ImGuiPNative.PlotEx( + plotType, + labelPtr, + (delegate*, void*, int, int, byte*, float, float, + Vector2, float>) + (nint)(delegate* unmanaged)&ImGui.GetFloatRefContextStatic, + &dataBuffer, + valuesCount, + valuesOffset, + overlayTextPtr, + scaleMin, + scaleMax, + frameSize); + label.Dispose(); + overlayText.Dispose(); + return r; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs new file mode 100644 index 000000000..b16843f55 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs @@ -0,0 +1,85 @@ +using System.Runtime.InteropServices; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial class ImGuiP +{ + public static Span ImTextCharToUtf8(Span buf, char c) => ImTextCharToUtf8(buf, (uint)c); + + public static Span ImTextCharToUtf8(Span buf, int c) => ImTextCharToUtf8(buf, (uint)c); + + public static Span ImTextCharToUtf8(Span buf, uint c) + { + if (!new Rune(c).TryEncodeToUtf8(buf, out var len)) + throw new ArgumentException("Buffer is too small.", nameof(buf)); + return buf[..len]; + } + + public static ReadOnlySpan GetNameU8(this ImGuiWindowSettingsPtr self) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetName(self.Handle)); + + public static ReadOnlySpan GetTabNameU8(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetTabName(self.Handle, tab.Handle)); + + public static ReadOnlySpan GetNavInputNameU8(this ImGuiNavInput n) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetNavInputName(n)); + + public static ReadOnlySpan TableGetColumnNameU8(this ImGuiTablePtr table, int columnN) => + MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.TableGetColumnName(table.Handle, columnN)); + + public static ReadOnlySpan GetNameU8(this in ImGuiWindowSettings self) + { + fixed (ImGuiWindowSettings* selfPtr = &self) + return GetNameU8(selfPtr); + } + + public static ReadOnlySpan GetTabNameU8(ImGuiTabBarPtr self, in ImGuiTabItem tab) + { + fixed (ImGuiTabItem* tabPtr = &tab) + return GetTabNameU8(self, tabPtr); + } + + public static ReadOnlySpan GetTabNameU8(this in ImGuiTabBar self, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* selfPtr = &self) + return GetTabNameU8(selfPtr, tab); + } + + public static ReadOnlySpan GetTabNameU8(this in ImGuiTabBar self, in ImGuiTabItem tab) + { + fixed (ImGuiTabBar* selfPtr = &self) + fixed (ImGuiTabItem* tabPtr = &tab) + return GetTabNameU8(selfPtr, tabPtr); + } + + public static ReadOnlySpan TableGetColumnNameU8(this in ImGuiTable table, int columnN) + { + fixed (ImGuiTable* tablePtr = &table) + return TableGetColumnNameU8(tablePtr, columnN); + } + + public static string GetName(this ImGuiWindowSettingsPtr self) => Encoding.UTF8.GetString(GetNameU8(self)); + + public static string GetTabName(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) => + Encoding.UTF8.GetString(GetTabNameU8(self, tab)); + + public static string GetTabName(this ImGuiTabBarPtr self, in ImGuiTabItem tab) => + Encoding.UTF8.GetString(GetTabNameU8(self, tab)); + + public static string GetNavInputName(this ImGuiNavInput n) => Encoding.UTF8.GetString(GetNavInputNameU8(n)); + + public static string TableGetColumnName(this ImGuiTablePtr table, int columnN) => + Encoding.UTF8.GetString(TableGetColumnNameU8(table, columnN)); + + public static string GetName(this in ImGuiWindowSettings self) => Encoding.UTF8.GetString(GetNameU8(self)); + + public static string GetTabName(this in ImGuiTabBar self, ImGuiTabItemPtr tab) => + Encoding.UTF8.GetString(GetTabNameU8(self, tab)); + + public static string GetTabName(this in ImGuiTabBar self, in ImGuiTabItem tab) => + Encoding.UTF8.GetString(GetTabNameU8(self, tab)); + + public static string TableGetColumnName(this in ImGuiTable table, int columnN) => + Encoding.UTF8.GetString(TableGetColumnNameU8(table, columnN)); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs new file mode 100644 index 000000000..1bff86b1a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs @@ -0,0 +1,218 @@ +using System.Diagnostics; +using System.Numerics; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +public static unsafe partial class ImGuiP +{ + public static void DebugLog(ImU8String text) + { + var g = ImGui.GetCurrentContext().Handle; + ImGui.append(&g->DebugLogBuf, $"[{g->FrameCount:00000}] "); + ImGui.append(&g->DebugLogBuf, text.Span); + if ((g->DebugLogFlags & ImGuiDebugLogFlags.OutputToTty) != ImGuiDebugLogFlags.None) + Debug.Write(text.ToString()); + text.Dispose(); + } + + public static int FindRenderedTextEnd( + ReadOnlySpan text, out ReadOnlySpan before, out ReadOnlySpan after) + { + fixed (byte* ptr = text) + { + var r = (int)(ImGuiPNative.FindRenderedTextEnd(ptr, ptr + text.Length) - ptr); + before = text[..r]; + after = text[r..]; + return r; + } + } + + public static int FindRenderedTextEnd( + ReadOnlySpan text, out ReadOnlySpan before, out ReadOnlySpan after) + { + var textBuf = new ImU8String(text); + FindRenderedTextEnd(textBuf.Span, out var beforeBytes, out var afterBytes); + before = text[..Encoding.UTF8.GetCharCount(beforeBytes)]; + after = text[before.Length..]; + textBuf.Dispose(); + return before.Length; + } + + public static uint GetID(ImGuiWindowPtr self, ImU8String str) + { + fixed (byte* strPtr = str) + { + var seed = *self.IDStack.Back; + var id = ImGuiPNative.ImHashStr(strPtr, (nuint)str.Length, seed); + var g = ImGui.GetCurrentContext(); + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, (ImGuiDataType)ImGuiDataTypePrivate.String, strPtr, strPtr + str.Length); + str.Dispose(); + return id; + } + } + + public static uint GetID(ImGuiWindowPtr self, void* ptr) => ImGuiPNative.GetID(self.Handle, ptr); + public static uint GetID(ImGuiWindowPtr self, int n) => ImGuiPNative.GetID(self.Handle, n); + + public static uint ImHashData(ReadOnlySpan data, uint seed = 0) + { + fixed (byte* ptr = data) return ImGuiPNative.ImHashData(ptr, (nuint)data.Length, seed); + } + + public static uint ImHashStr(ImU8String data, uint seed = 0) + { + fixed (byte* ptr = data) + { + var res = ImGuiPNative.ImHashStr(ptr, (nuint)data.Length, seed); + data.Dispose(); + return res; + } + } + + public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, Span fmtOut) + { + fixed (byte* fmtInPtr = fmtIn) + fixed (byte* fmtOutPtr = fmtOut) + ImGuiPNative.ImParseFormatSanitizeForPrinting(fmtInPtr, fmtOutPtr, (nuint)fmtOut.Length); + } + + public static void ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, Span fmtOut) + { + fixed (byte* fmtInPtr = fmtIn) + fixed (byte* fmtOutPtr = fmtOut) + ImGuiPNative.ImParseFormatSanitizeForScanning(fmtInPtr, fmtOutPtr, (nuint)fmtOut.Length); + } + + public static int ImStrchrRange(ReadOnlySpan str, T c, out ReadOnlySpan before, out ReadOnlySpan after) + where T : unmanaged, IEquatable + { + var i = str.IndexOf(c); + if (i < 0) + { + before = after = default; + return -1; + } + + before = str[..i]; + after = str[i..]; + return i; + } + + public static int ImStreolRange( + ReadOnlySpan str, byte c, out ReadOnlySpan before, out ReadOnlySpan after) + { + var i = str.IndexOf((byte)'\n'); + if (i < 0) + { + before = after = default; + return -1; + } + + before = str[..i]; + after = str[i..]; + return i; + } + + public static int ImStreolRange( + ReadOnlySpan str, char c, out ReadOnlySpan before, out ReadOnlySpan after) + { + var i = str.IndexOf('\n'); + if (i < 0) + { + before = after = default; + return -1; + } + + before = str[..i]; + after = str[i..]; + return i; + } + + public static void LogRenderedText(scoped in Vector2 refPos, ImU8String text) + { + fixed (Vector2* refPosPtr = &refPos) + fixed (byte* textPtr = text) + ImGuiPNative.LogRenderedText(refPosPtr, textPtr, textPtr + text.Length); + text.Dispose(); + } + + public static void RenderText(Vector2 pos, ImU8String text, bool hideTextAfterHash = true) + { + fixed (byte* textPtr = text) + ImGuiPNative.RenderText(pos, textPtr, textPtr + text.Length, hideTextAfterHash ? (byte)1 : (byte)0); + text.Dispose(); + } + + public static void RenderTextWrapped( + Vector2 pos, ImU8String text, float wrapWidth) + { + fixed (byte* textPtr = text) + ImGuiPNative.RenderTextWrapped(pos, textPtr, textPtr + text.Length, wrapWidth); + text.Dispose(); + } + + public static void RenderTextClipped( + scoped in Vector2 posMin, scoped in Vector2 posMax, ImU8String text, + scoped in Vector2? textSizeIfKnown = null, + scoped in Vector2 align = default, scoped in ImRect? clipRect = null) + { + var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; + var clipRectOrDefault = clipRect ?? default; + fixed (byte* textPtr = text) + ImGuiPNative.RenderTextClipped( + posMin, + posMax, + textPtr, + textPtr + text.Length, + textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null, + align, + clipRect.HasValue ? &clipRectOrDefault : null); + text.Dispose(); + } + + public static void RenderTextClippedEx( + ImDrawListPtr drawList, scoped in Vector2 posMin, scoped in Vector2 posMax, + ImU8String text, + scoped in Vector2? textSizeIfKnown = null, scoped in Vector2 align = default, scoped in ImRect? clipRect = null) + { + var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; + var clipRectOrDefault = clipRect ?? default; + fixed (byte* textPtr = text) + ImGuiPNative.RenderTextClippedEx( + drawList.Handle, + posMin, + posMax, + textPtr, + textPtr + text.Length, + textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null, + align, + clipRect.HasValue ? &clipRectOrDefault : null); + text.Dispose(); + } + + public static void RenderTextEllipsis( + ImDrawListPtr drawList, scoped in Vector2 posMin, scoped in Vector2 posMax, float clipMaxX, float ellipsisMaxX, + ImU8String text, scoped in Vector2? textSizeIfKnown = null) + { + var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; + fixed (byte* textPtr = text) + ImGuiPNative.RenderTextEllipsis( + drawList.Handle, + posMin, + posMax, + clipMaxX, + ellipsisMaxX, + textPtr, + textPtr + text.Length, + textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null); + text.Dispose(); + } + + public static void TextEx(ReadOnlySpan text, ImGuiTextFlags flags) + { + fixed (byte* textPtr = text) + ImGuiPNative.TextEx(textPtr, textPtr + text.Length, flags); + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs new file mode 100644 index 000000000..8d4c25202 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs @@ -0,0 +1,3 @@ +namespace Dalamud.Bindings.ImGui; + +public static partial class ImGuiPNative; diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs new file mode 100644 index 000000000..48819292d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs @@ -0,0 +1,17 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiPayload +{ + public readonly Span DataSpan => new(this.Data, this.DataSize); + + public readonly bool IsDataType(ImU8String type) + { + fixed (ImGuiPayload* ptr = &this) + return ImGui.IsDataType(ptr, type); + } +} + +public partial struct ImGuiPayloadPtr +{ + public readonly bool IsDataType(ImU8String type) => ImGui.IsDataType(this, type); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs new file mode 100644 index 000000000..aacd78d9f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs @@ -0,0 +1,60 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiStorage +{ + public readonly ref bool GetBoolRef(uint key, bool defaultValue = false) + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetBoolRef(thisPtr, key, defaultValue); + } + + public readonly ref float GetFloatRef(uint key, float defaultValue = 0.0f) + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetFloatRef(thisPtr, key, defaultValue); + } + + public readonly ref int GetIntRef(uint key, int defaultValue = 0) + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetIntRef(thisPtr, key, defaultValue); + } + + public readonly ref void* GetVoidPtrRef(uint key, void* defaultValue = null) + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetVoidPtrRef(thisPtr, key, defaultValue); + } + + public readonly ref T* GetPtrRef(uint key, T* defaultValue = null) where T : unmanaged + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetPtrRef(thisPtr, key, defaultValue); + } + + public readonly ref T GetRef(uint key, T defaultValue = default) where T : unmanaged + { + fixed (ImGuiStorage* thisPtr = &this) + return ref ImGui.GetRef(thisPtr, key, defaultValue); + } +} + +public unsafe partial struct ImGuiStoragePtr +{ + public readonly ref bool GetBoolRef(uint key, bool defaultValue = false) => + ref ImGui.GetBoolRef(this, key, defaultValue); + + public readonly ref float GetFloatRef(uint key, float defaultValue = 0.0f) => + ref ImGui.GetFloatRef(this, key, defaultValue); + + public readonly ref int GetIntRef(uint key, int defaultValue = 0) => ref ImGui.GetIntRef(this, key, defaultValue); + + public readonly ref void* GetVoidPtrRef(uint key, void* defaultValue = null) => + ref ImGui.GetVoidPtrRef(this, key, defaultValue); + + public readonly ref T* GetPtrRef(uint key, T* defaultValue = null) where T : unmanaged => + ref ImGui.GetPtrRef(this, key, defaultValue); + + public readonly ref T GetRef(uint key, T defaultValue = default) where T : unmanaged => + ref ImGui.GetRef(this, key, defaultValue); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs new file mode 100644 index 000000000..49a1abbe4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs @@ -0,0 +1,26 @@ +using System.Runtime.CompilerServices; +using System.Text; + +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextBuffer +{ + public readonly Span Span => new(this.Buf.Data, this.Buf.Size); + + public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); + + public void append(ImU8String str) + { + fixed (ImGuiTextBuffer* thisPtr = &this) + ImGui.append(thisPtr, str); + } +} + +public unsafe partial struct ImGuiTextBufferPtr +{ + public readonly Span Span => new(Unsafe.AsRef(in this).Buf.Data, Unsafe.AsRef(in this).Buf.Size); + + public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); + + public void append(ImU8String str) => ImGui.append(this, str); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs new file mode 100644 index 000000000..03795d5e7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs @@ -0,0 +1,22 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiTextFilter +{ + public void Draw(ImU8String label = default, float width = 0.0f) + { + fixed (ImGuiTextFilter* thisPtr = &this) + ImGui.Draw(thisPtr, label, width); + } + + public void PassFilter(ImU8String text) + { + fixed (ImGuiTextFilter* thisPtr = &this) + ImGui.PassFilter(thisPtr, text); + } +} + +public partial struct ImGuiTextFilterPtr +{ + public void Draw(ImU8String label = default, float width = 0.0f) => ImGui.Draw(this, label, width); + public void PassFilter(ImU8String text) => ImGui.PassFilter(this, text); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs new file mode 100644 index 000000000..b80ca9c0b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs @@ -0,0 +1,26 @@ +namespace Dalamud.Bindings.ImGui; + +public unsafe partial struct ImGuiWindow +{ + public readonly uint GetID(ImU8String str) + { + fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, str); + } + + public readonly uint GetID(void* ptr) + { + fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, ptr); + } + + public readonly uint GetID(int n) + { + fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, n); + } +} + +public unsafe partial struct ImGuiWindowPtr +{ + public readonly uint GetID(ImU8String str) => ImGuiP.GetID(this.Handle, str); + public readonly uint GetID(void* ptr) => ImGuiP.GetID(this.Handle, ptr); + public readonly uint GetID(int n) => ImGuiP.GetID(this.Handle, n); +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs b/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs new file mode 100644 index 000000000..096ec47ce --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs @@ -0,0 +1,116 @@ +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Dalamud.Bindings.ImGui; + +#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type +internal static unsafe class PointerTuple +{ + public static ref PointerTuple From(void* ptr) + where T1 : allows ref struct + => ref *(PointerTuple*)ptr; + + public static PointerTuple Create(T1* item1Ptr) + where T1 : allows ref struct + => new() + { + Item1Ptr = item1Ptr, + }; + + public static PointerTuple CreateFixed(ref T1 item1) + where T1 : allows ref struct + => new() + { + Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), + }; + + public static ref PointerTuple From(void* ptr) + where T1 : allows ref struct + where T2 : allows ref struct + => ref *(PointerTuple*)ptr; + + public static PointerTuple Create(T1* item1Ptr, T2* item2Ptr) + where T1 : allows ref struct + where T2 : allows ref struct + => new() + { + Item1Ptr = item1Ptr, + Item2Ptr = item2Ptr, + }; + + public static PointerTuple CreateFixed(ref T1 item1, ref T2 item2) + where T1 : allows ref struct + where T2 : allows ref struct + => new() + { + Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), + Item2Ptr = (T2*)Unsafe.AsPointer(ref item2), + }; + + public static ref PointerTuple From(void* ptr) + where T1 : allows ref struct + where T2 : allows ref struct + where T3 : allows ref struct + => ref *(PointerTuple*)ptr; + + public static PointerTuple Create(T1* item1Ptr, T2* item2Ptr, T3* item3Ptr) + where T1 : allows ref struct + where T2 : allows ref struct + where T3 : allows ref struct + => new() + { + Item1Ptr = item1Ptr, + Item2Ptr = item2Ptr, + Item3Ptr = item3Ptr, + }; + + public static PointerTuple CreateFixed(ref T1 item1, ref T2 item2, ref T3 item3) + where T1 : allows ref struct + where T2 : allows ref struct + where T3 : allows ref struct + => new() + { + Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), + Item2Ptr = (T2*)Unsafe.AsPointer(ref item2), + Item3Ptr = (T3*)Unsafe.AsPointer(ref item3), + }; +} + +[StructLayout(LayoutKind.Sequential)] +internal unsafe struct PointerTuple + where T1 : allows ref struct +{ + public T1* Item1Ptr; + + public readonly ref T1 Item1 => ref *this.Item1Ptr; +} + +[StructLayout(LayoutKind.Sequential)] +internal unsafe struct PointerTuple + where T1 : allows ref struct + where T2 : allows ref struct +{ + public T1* Item1Ptr; + public T2* Item2Ptr; + + public readonly ref T1 Item1 => ref *this.Item1Ptr; + + public readonly ref T2 Item2 => ref *this.Item2Ptr; +} + +[StructLayout(LayoutKind.Sequential)] +internal unsafe struct PointerTuple + where T1 : allows ref struct + where T2 : allows ref struct + where T3 : allows ref struct +{ + public T1* Item1Ptr; + public T2* Item2Ptr; + public T3* Item3Ptr; + + public readonly ref T1 Item1 => ref *this.Item1Ptr; + + public readonly ref T2 Item2 => ref *this.Item2Ptr; + + public readonly ref T3 Item3 => ref *this.Item3Ptr; +} diff --git a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj new file mode 100644 index 000000000..fc5894857 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj @@ -0,0 +1,41 @@ + + + + enable + enable + true + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings new file mode 100644 index 000000000..06f483845 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings @@ -0,0 +1,2 @@ + + True \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs new file mode 100644 index 000000000..8186adec9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +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 new file mode 100644 index 000000000..f2e7d16e8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs @@ -0,0 +1,707 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void UserCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void UserCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] nint parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] nint cmd); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte FontBuilderBuild([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte FontBuilderBuild([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] nint atlas); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte* GetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate nint GetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] nint text); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SetPlatformImeDataFn([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ImGuiPlatformImeData* data); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SetPlatformImeDataFn([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint viewport, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] nint data); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformShowWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformShowWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowPos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowPos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate Vector2* PlatformGetWindowPos(Vector2* pos, ImGuiViewport* viewport); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate Vector2* PlatformGetWindowPos(Vector2* pos, ImGuiViewport* viewport); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate Vector2* PlatformGetWindowSize(Vector2* size, ImGuiViewport* viewport); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate Vector2* PlatformGetWindowSize(Vector2* size, ImGuiViewport* viewport); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte PlatformGetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte PlatformGetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte PlatformGetWindowMinimized([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate byte PlatformGetWindowMinimized([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowTitle([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowTitle([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] nint str); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowAlpha([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSetWindowAlpha([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformUpdateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformUpdateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate float PlatformGetWindowDpiScale([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate float PlatformGetWindowDpiScale([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformOnChangedViewport([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PlatformOnChangedViewport([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int PlatformCreateVkSurface([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "vk_inst")] [NativeName(NativeNameType.Type, "ImU64")] ulong vkInst, [NativeName(NativeNameType.Param, "vk_allocators")] [NativeName(NativeNameType.Type, "const void*")] void* vkAllocators, [NativeName(NativeNameType.Param, "out_vk_surface")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* outVkSurface); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int PlatformCreateVkSurface([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "vk_inst")] [NativeName(NativeNameType.Type, "ImU64")] ulong vkInst, [NativeName(NativeNameType.Param, "vk_allocators")] [NativeName(NativeNameType.Type, "const void*")] nint vkAllocators, [NativeName(NativeNameType.Param, "out_vk_surface")] [NativeName(NativeNameType.Type, "ImU64*")] nint outVkSurface); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RendererSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void SizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] nint data); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ClearAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ClearAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ReadInitFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ReadInitFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void* ReadOpenFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate nint ReadOpenFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] nint name); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ReadLineFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "entry")] [NativeName(NativeNameType.Type, "void*")] void* entry, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ReadLineFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "entry")] [NativeName(NativeNameType.Type, "void*")] nint entry, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] nint line); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ApplyAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ApplyAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void WriteAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* outBuf); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void WriteAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] nint outBuf); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void Callback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void Callback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] nint hook); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImDrawCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImDrawCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] nint parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] nint cmd); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiSizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiSizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] nint data); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiContextHookCallback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiContextHookCallback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] nint hook); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int ImGuiInputTextCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* data); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int ImGuiInputTextCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] nint data); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + 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")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiMemFreeFunc([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiMemFreeFunc([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] nint ptr, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiErrorLogCallback([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImGuiErrorLogCallback([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] nint fmt); + + #endif + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs new file mode 100644 index 000000000..e6c17d87e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImDrawFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Closed = unchecked(1), + + /// + /// To be documented. + /// + RoundCornersTopLeft = unchecked(16), + + /// + /// To be documented. + /// + RoundCornersTopRight = unchecked(32), + + /// + /// To be documented. + /// + RoundCornersBottomLeft = unchecked(64), + + /// + /// To be documented. + /// + RoundCornersBottomRight = unchecked(128), + + /// + /// To be documented. + /// + RoundCornersNone = unchecked(256), + + /// + /// To be documented. + /// + RoundCornersTop = unchecked(48), + + /// + /// To be documented. + /// + RoundCornersBottom = unchecked(192), + + /// + /// To be documented. + /// + RoundCornersLeft = unchecked(80), + + /// + /// To be documented. + /// + RoundCornersRight = unchecked(160), + + /// + /// To be documented. + /// + RoundCornersAll = unchecked(240), + + /// + /// To be documented. + /// + RoundCornersDefault = RoundCornersAll, + + /// + /// To be documented. + /// + RoundCornersMask = unchecked(496), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs new file mode 100644 index 000000000..efcf4cb9b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImDrawListFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + AntiAliasedLines = unchecked(1), + + /// + /// To be documented. + /// + AntiAliasedLinesUseTex = unchecked(2), + + /// + /// To be documented. + /// + AntiAliasedFill = unchecked(4), + + /// + /// 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 new file mode 100644 index 000000000..43ee3b150 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImFontAtlasFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoPowerOfTwoHeight = unchecked(1), + + /// + /// To be documented. + /// + NoMouseCursors = unchecked(2), + + /// + /// 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 new file mode 100644 index 000000000..c1e45671b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiActivateFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + PreferInput = unchecked(1), + + /// + /// To be documented. + /// + PreferTweak = unchecked(2), + + /// + /// To be documented. + /// + TryToPreserveState = unchecked(4), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs new file mode 100644 index 000000000..445564e38 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiAxis : int + { + /// + /// To be documented. + /// + None = unchecked(-1), + + /// + /// To be documented. + /// + X = unchecked(0), + + /// + /// To be documented. + /// + Y = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs new file mode 100644 index 000000000..d777cedf1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiBackendFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + HasGamepad = unchecked(1), + + /// + /// To be documented. + /// + HasMouseCursors = unchecked(2), + + /// + /// To be documented. + /// + HasSetMousePos = unchecked(4), + + /// + /// To be documented. + /// + RendererHasVtxOffset = unchecked(8), + + /// + /// To be documented. + /// + PlatformHasViewports = unchecked(1024), + + /// + /// To be documented. + /// + HasMouseHoveredViewport = unchecked(2048), + + /// + /// 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 new file mode 100644 index 000000000..640e8158d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiButtonFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + MouseButtonLeft = unchecked(1), + + /// + /// To be documented. + /// + MouseButtonRight = unchecked(2), + + /// + /// To be documented. + /// + MouseButtonMiddle = unchecked(4), + + /// + /// To be documented. + /// + MouseButtonMask = unchecked(7), + + /// + /// To be documented. + /// + MouseButtonDefault = MouseButtonLeft, + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs new file mode 100644 index 000000000..5e864c855 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiButtonFlagsPrivate : int + { + /// + /// To be documented. + /// + PressedOnClick = unchecked(16), + + /// + /// To be documented. + /// + PressedOnClickRelease = unchecked(32), + + /// + /// To be documented. + /// + PressedOnClickReleaseAnywhere = unchecked(64), + + /// + /// To be documented. + /// + PressedOnRelease = unchecked(128), + + /// + /// To be documented. + /// + PressedOnDoubleClick = unchecked(256), + + /// + /// To be documented. + /// + PressedOnDragDropHold = unchecked(512), + + /// + /// To be documented. + /// + Repeat = unchecked(1024), + + /// + /// To be documented. + /// + FlattenChildren = unchecked(2048), + + /// + /// To be documented. + /// + AllowItemOverlap = unchecked(4096), + + /// + /// To be documented. + /// + DontClosePopups = unchecked(8192), + + /// + /// To be documented. + /// + AlignTextBaseLine = unchecked(32768), + + /// + /// To be documented. + /// + NoKeyModifiers = unchecked(65536), + + /// + /// To be documented. + /// + NoHoldingActiveId = unchecked(131072), + + /// + /// To be documented. + /// + NoNavFocus = unchecked(262144), + + /// + /// To be documented. + /// + NoHoveredOnFocus = unchecked(524288), + + /// + /// To be documented. + /// + PressedOnMask = unchecked(1008), + + /// + /// To be documented. + /// + PressedOnDefault = PressedOnClickRelease, + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs new file mode 100644 index 000000000..166f451a1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs @@ -0,0 +1,302 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiCol : int + { + /// + /// To be documented. + /// + Text = unchecked(0), + + /// + /// To be documented. + /// + TextDisabled = unchecked(1), + + /// + /// To be documented. + /// + WindowBg = unchecked(2), + + /// + /// To be documented. + /// + ChildBg = unchecked(3), + + /// + /// To be documented. + /// + PopupBg = unchecked(4), + + /// + /// To be documented. + /// + Border = unchecked(5), + + /// + /// To be documented. + /// + BorderShadow = unchecked(6), + + /// + /// To be documented. + /// + FrameBg = unchecked(7), + + /// + /// To be documented. + /// + FrameBgHovered = unchecked(8), + + /// + /// To be documented. + /// + FrameBgActive = unchecked(9), + + /// + /// To be documented. + /// + TitleBg = unchecked(10), + + /// + /// To be documented. + /// + TitleBgActive = unchecked(11), + + /// + /// To be documented. + /// + TitleBgCollapsed = unchecked(12), + + /// + /// To be documented. + /// + MenuBarBg = unchecked(13), + + /// + /// To be documented. + /// + ScrollbarBg = unchecked(14), + + /// + /// To be documented. + /// + ScrollbarGrab = unchecked(15), + + /// + /// To be documented. + /// + ScrollbarGrabHovered = unchecked(16), + + /// + /// To be documented. + /// + ScrollbarGrabActive = unchecked(17), + + /// + /// To be documented. + /// + CheckMark = unchecked(18), + + /// + /// To be documented. + /// + SliderGrab = unchecked(19), + + /// + /// To be documented. + /// + SliderGrabActive = unchecked(20), + + /// + /// To be documented. + /// + Button = unchecked(21), + + /// + /// To be documented. + /// + ButtonHovered = unchecked(22), + + /// + /// To be documented. + /// + ButtonActive = unchecked(23), + + /// + /// To be documented. + /// + Header = unchecked(24), + + /// + /// To be documented. + /// + HeaderHovered = unchecked(25), + + /// + /// To be documented. + /// + HeaderActive = unchecked(26), + + /// + /// To be documented. + /// + Separator = unchecked(27), + + /// + /// To be documented. + /// + SeparatorHovered = unchecked(28), + + /// + /// To be documented. + /// + SeparatorActive = unchecked(29), + + /// + /// To be documented. + /// + ResizeGrip = unchecked(30), + + /// + /// To be documented. + /// + ResizeGripHovered = unchecked(31), + + /// + /// To be documented. + /// + ResizeGripActive = unchecked(32), + + /// + /// To be documented. + /// + Tab = unchecked(33), + + /// + /// To be documented. + /// + TabHovered = unchecked(34), + + /// + /// To be documented. + /// + TabActive = unchecked(35), + + /// + /// To be documented. + /// + TabUnfocused = unchecked(36), + + /// + /// To be documented. + /// + TabUnfocusedActive = unchecked(37), + + /// + /// To be documented. + /// + DockingPreview = unchecked(38), + + /// + /// To be documented. + /// + DockingEmptyBg = unchecked(39), + + /// + /// To be documented. + /// + PlotLines = unchecked(40), + + /// + /// To be documented. + /// + PlotLinesHovered = unchecked(41), + + /// + /// To be documented. + /// + PlotHistogram = unchecked(42), + + /// + /// To be documented. + /// + PlotHistogramHovered = unchecked(43), + + /// + /// To be documented. + /// + TableHeaderBg = unchecked(44), + + /// + /// To be documented. + /// + TableBorderStrong = unchecked(45), + + /// + /// To be documented. + /// + TableBorderLight = unchecked(46), + + /// + /// To be documented. + /// + TableRowBg = unchecked(47), + + /// + /// To be documented. + /// + TableRowBgAlt = unchecked(48), + + /// + /// To be documented. + /// + TextSelectedBg = unchecked(49), + + /// + /// To be documented. + /// + DragDropTarget = unchecked(50), + + /// + /// To be documented. + /// + NavHighlight = unchecked(51), + + /// + /// To be documented. + /// + NavWindowingHighlight = unchecked(52), + + /// + /// To be documented. + /// + NavWindowingDimBg = unchecked(53), + + /// + /// To be documented. + /// + ModalWindowDimBg = unchecked(54), + + /// + /// To be documented. + /// + Count = unchecked(55), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs new file mode 100644 index 000000000..5d1fc4cfb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs @@ -0,0 +1,172 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiColorEditFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoAlpha = unchecked(2), + + /// + /// To be documented. + /// + NoPicker = unchecked(4), + + /// + /// To be documented. + /// + NoOptions = unchecked(8), + + /// + /// To be documented. + /// + NoSmallPreview = unchecked(16), + + /// + /// To be documented. + /// + NoInputs = unchecked(32), + + /// + /// To be documented. + /// + NoTooltip = unchecked(64), + + /// + /// To be documented. + /// + NoLabel = unchecked(128), + + /// + /// To be documented. + /// + NoSidePreview = unchecked(256), + + /// + /// To be documented. + /// + NoDragDrop = unchecked(512), + + /// + /// To be documented. + /// + NoBorder = unchecked(1024), + + /// + /// To be documented. + /// + AlphaBar = unchecked(65536), + + /// + /// To be documented. + /// + AlphaPreview = unchecked(131072), + + /// + /// To be documented. + /// + AlphaPreviewHalf = unchecked(262144), + + /// + /// To be documented. + /// + Hdr = unchecked(524288), + + /// + /// To be documented. + /// + DisplayRgb = unchecked(1048576), + + /// + /// To be documented. + /// + DisplayHsv = unchecked(2097152), + + /// + /// To be documented. + /// + DisplayHex = unchecked(4194304), + + /// + /// To be documented. + /// + Uint8 = unchecked(8388608), + + /// + /// To be documented. + /// + Float = unchecked(16777216), + + /// + /// To be documented. + /// + PickerHueBar = unchecked(33554432), + + /// + /// To be documented. + /// + PickerHueWheel = unchecked(67108864), + + /// + /// To be documented. + /// + InputRgb = unchecked(134217728), + + /// + /// To be documented. + /// + InputHsv = unchecked(268435456), + + /// + /// To be documented. + /// + OptionsDefault = unchecked(177209344), + + /// + /// To be documented. + /// + DefaultOptions = unchecked(177209344), + + /// + /// To be documented. + /// + DisplayMask = unchecked(7340032), + + /// + /// To be documented. + /// + DataTypeMask = unchecked(25165824), + + /// + /// To be documented. + /// + PickerMask = unchecked(100663296), + + /// + /// To be documented. + /// + InputMask = unchecked(402653184), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs new file mode 100644 index 000000000..feb5b1eb6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiComboFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + PopupAlignLeft = unchecked(1), + + /// + /// To be documented. + /// + HeightSmall = unchecked(2), + + /// + /// To be documented. + /// + HeightRegular = unchecked(4), + + /// + /// To be documented. + /// + HeightLarge = unchecked(8), + + /// + /// To be documented. + /// + HeightLargest = unchecked(16), + + /// + /// To be documented. + /// + NoArrowButton = unchecked(32), + + /// + /// To be documented. + /// + NoPreview = unchecked(64), + + /// + /// To be documented. + /// + HeightMask = unchecked(30), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs new file mode 100644 index 000000000..94372eef4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiComboFlagsPrivate : int + { + /// + /// 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 new file mode 100644 index 000000000..911c40740 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiCond : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Always = unchecked(1), + + /// + /// To be documented. + /// + Once = unchecked(2), + + /// + /// To be documented. + /// + FirstUseEver = unchecked(4), + + /// + /// 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 new file mode 100644 index 000000000..0c388559a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiConfigFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NavEnableKeyboard = unchecked(1), + + /// + /// To be documented. + /// + NavEnableGamepad = unchecked(2), + + /// + /// To be documented. + /// + NavEnableSetMousePos = unchecked(4), + + /// + /// To be documented. + /// + NavNoCaptureKeyboard = unchecked(8), + + /// + /// To be documented. + /// + NoMouse = unchecked(16), + + /// + /// To be documented. + /// + NoMouseCursorChange = unchecked(32), + + /// + /// To be documented. + /// + NoKerning = unchecked(128), + + /// + /// To be documented. + /// + DockingEnable = unchecked(64), + + /// + /// To be documented. + /// + ViewportsEnable = unchecked(1024), + + /// + /// To be documented. + /// + DpiEnableScaleViewports = unchecked(16384), + + /// + /// To be documented. + /// + DpiEnableScaleFonts = unchecked(32768), + + /// + /// To be documented. + /// + IsSrgb = unchecked(1048576), + + /// + /// To be documented. + /// + IsTouchScreen = unchecked(2097152), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs new file mode 100644 index 000000000..0ca5d3e79 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiContextHookType : int + { + /// + /// To be documented. + /// + NewFramePre = unchecked(0), + + /// + /// To be documented. + /// + NewFramePost = unchecked(1), + + /// + /// To be documented. + /// + EndFramePre = unchecked(2), + + /// + /// To be documented. + /// + EndFramePost = unchecked(3), + + /// + /// To be documented. + /// + RenderPre = unchecked(4), + + /// + /// To be documented. + /// + RenderPost = unchecked(5), + + /// + /// To be documented. + /// + Shutdown = unchecked(6), + + /// + /// To be documented. + /// + PendingRemoval = unchecked(7), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs new file mode 100644 index 000000000..fb09b1d8a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDataAuthority : int + { + /// + /// To be documented. + /// + Auto = unchecked(0), + + /// + /// To be documented. + /// + DockNode = unchecked(1), + + /// + /// To be documented. + /// + Window = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs new file mode 100644 index 000000000..c93c08984 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDataType : int + { + /// + /// To be documented. + /// + S8 = unchecked(0), + + /// + /// To be documented. + /// + U8 = unchecked(1), + + /// + /// To be documented. + /// + S16 = unchecked(2), + + /// + /// To be documented. + /// + U16 = unchecked(3), + + /// + /// To be documented. + /// + S32 = unchecked(4), + + /// + /// To be documented. + /// + U32 = unchecked(5), + + /// + /// To be documented. + /// + S64 = unchecked(6), + + /// + /// To be documented. + /// + U64 = unchecked(7), + + /// + /// To be documented. + /// + Float = unchecked(8), + + /// + /// To be documented. + /// + Double = unchecked(9), + + /// + /// To be documented. + /// + Count = unchecked(10), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs new file mode 100644 index 000000000..4b129b69d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDataTypePrivate : int + { + /// + /// To be documented. + /// + String = unchecked(11), + + /// + /// To be documented. + /// + Pointer = unchecked(12), + + /// + /// To be documented. + /// + Id = unchecked(13), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs new file mode 100644 index 000000000..f8f6eac3e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDebugLogFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + EventActiveId = unchecked(1), + + /// + /// To be documented. + /// + EventFocus = unchecked(2), + + /// + /// To be documented. + /// + EventPopup = unchecked(4), + + /// + /// To be documented. + /// + EventNav = unchecked(8), + + /// + /// To be documented. + /// + EventIo = unchecked(16), + + /// + /// To be documented. + /// + EventDocking = unchecked(32), + + /// + /// To be documented. + /// + EventViewport = unchecked(64), + + /// + /// To be documented. + /// + EventMask = unchecked(127), + + /// + /// To be documented. + /// + OutputToTty = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs new file mode 100644 index 000000000..2a6bde5d0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDir : int + { + /// + /// To be documented. + /// + None = unchecked(-1), + + /// + /// To be documented. + /// + Left = unchecked(0), + + /// + /// To be documented. + /// + Right = unchecked(1), + + /// + /// To be documented. + /// + Up = unchecked(2), + + /// + /// To be documented. + /// + Down = unchecked(3), + + /// + /// To be documented. + /// + Count = unchecked(4), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs new file mode 100644 index 000000000..fc3d6603a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDockNodeFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + KeepAliveOnly = unchecked(1), + + /// + /// To be documented. + /// + NoDockingInCentralNode = unchecked(4), + + /// + /// To be documented. + /// + PassthruCentralNode = unchecked(8), + + /// + /// To be documented. + /// + NoSplit = unchecked(16), + + /// + /// To be documented. + /// + NoResize = unchecked(32), + + /// + /// 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 new file mode 100644 index 000000000..fa79a6484 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs @@ -0,0 +1,117 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDockNodeFlagsPrivate : int + { + /// + /// To be documented. + /// + Space = unchecked(1024), + + /// + /// To be documented. + /// + CentralNode = unchecked(2048), + + /// + /// To be documented. + /// + NoTabBar = unchecked(4096), + + /// + /// To be documented. + /// + HiddenTabBar = unchecked(8192), + + /// + /// To be documented. + /// + NoWindowMenuButton = unchecked(16384), + + /// + /// To be documented. + /// + NoCloseButton = unchecked(32768), + + /// + /// To be documented. + /// + NoDocking = unchecked(65536), + + /// + /// To be documented. + /// + NoDockingSplitMe = unchecked(131072), + + /// + /// To be documented. + /// + NoDockingSplitOther = unchecked(262144), + + /// + /// To be documented. + /// + NoDockingOverMe = unchecked(524288), + + /// + /// To be documented. + /// + NoDockingOverOther = unchecked(1048576), + + /// + /// To be documented. + /// + NoDockingOverEmpty = unchecked(2097152), + + /// + /// To be documented. + /// + NoResizeX = unchecked(4194304), + + /// + /// To be documented. + /// + NoResizeY = unchecked(8388608), + + /// + /// To be documented. + /// + SharedFlagsInheritMask = unchecked(-1), + + /// + /// To be documented. + /// + NoResizeFlagsMask = unchecked(12582944), + + /// + /// To be documented. + /// + LocalFlagsMask = unchecked(12713072), + + /// + /// To be documented. + /// + LocalFlagsTransferMask = unchecked(12712048), + + /// + /// To be documented. + /// + SavedFlagsMask = unchecked(12712992), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs new file mode 100644 index 000000000..dddb81bcc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDockNodeState : int + { + /// + /// To be documented. + /// + Unknown = unchecked(0), + + /// + /// To be documented. + /// + HostWindowHiddenBecauseSingleWindow = unchecked(1), + + /// + /// To be documented. + /// + HostWindowHiddenBecauseWindowsAreResizing = unchecked(2), + + /// + /// To be documented. + /// + HostWindowVisible = unchecked(3), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs new file mode 100644 index 000000000..a52fdefed --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiDragDropFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + SourceNoPreviewTooltip = unchecked(1), + + /// + /// To be documented. + /// + SourceNoDisableHover = unchecked(2), + + /// + /// To be documented. + /// + SourceNoHoldToOpenOthers = unchecked(4), + + /// + /// To be documented. + /// + SourceAllowNullId = unchecked(8), + + /// + /// To be documented. + /// + SourceExtern = unchecked(16), + + /// + /// To be documented. + /// + SourceAutoExpirePayload = unchecked(32), + + /// + /// To be documented. + /// + AcceptBeforeDelivery = unchecked(1024), + + /// + /// To be documented. + /// + AcceptNoDrawDefaultRect = unchecked(2048), + + /// + /// To be documented. + /// + AcceptNoPreviewTooltip = unchecked(4096), + + /// + /// 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 new file mode 100644 index 000000000..06d80a6df --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiFocusedFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + ChildWindows = unchecked(1), + + /// + /// To be documented. + /// + RootWindow = unchecked(2), + + /// + /// To be documented. + /// + AnyWindow = unchecked(4), + + /// + /// To be documented. + /// + NoPopupHierarchy = unchecked(8), + + /// + /// To be documented. + /// + DockHierarchy = unchecked(16), + + /// + /// To be documented. + /// + RootAndChildWindows = unchecked(3), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs new file mode 100644 index 000000000..58ec185e1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs @@ -0,0 +1,87 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiHoveredFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + ChildWindows = unchecked(1), + + /// + /// To be documented. + /// + RootWindow = unchecked(2), + + /// + /// To be documented. + /// + AnyWindow = unchecked(4), + + /// + /// To be documented. + /// + AllowWhenBlockedByPopup = unchecked(8), + + /// + /// To be documented. + /// + AllowWhenBlockedByActiveItem = unchecked(32), + + /// + /// To be documented. + /// + AllowWhenOverlapped = unchecked(64), + + /// + /// To be documented. + /// + AllowWhenDisabled = unchecked(128), + + /// + /// To be documented. + /// + NoNavOverride = unchecked(256), + + /// + /// To be documented. + /// + RectOnly = unchecked(104), + + /// + /// To be documented. + /// + RootAndChildWindows = unchecked(3), + + /// + /// To be documented. + /// + NoPopupHierarchy = unchecked(512), + + /// + /// To be documented. + /// + DockHierarchy = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs new file mode 100644 index 000000000..9bd6f16b4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiInputEventType : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + MousePos = unchecked(1), + + /// + /// To be documented. + /// + MouseWheel = unchecked(2), + + /// + /// To be documented. + /// + MouseButton = unchecked(3), + + /// + /// To be documented. + /// + MouseViewport = unchecked(4), + + /// + /// To be documented. + /// + Key = unchecked(5), + + /// + /// To be documented. + /// + Text = unchecked(6), + + /// + /// To be documented. + /// + Focus = unchecked(7), + + /// + /// To be documented. + /// + Count = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs new file mode 100644 index 000000000..81a4dc705 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiInputSource : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Mouse = unchecked(1), + + /// + /// To be documented. + /// + Keyboard = unchecked(2), + + /// + /// To be documented. + /// + Gamepad = unchecked(3), + + /// + /// To be documented. + /// + Clipboard = unchecked(4), + + /// + /// To be documented. + /// + Nav = unchecked(5), + + /// + /// To be documented. + /// + Count = unchecked(6), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs new file mode 100644 index 000000000..73139b785 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs @@ -0,0 +1,127 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiInputTextFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + CharsDecimal = unchecked(1), + + /// + /// To be documented. + /// + CharsHexadecimal = unchecked(2), + + /// + /// To be documented. + /// + CharsUppercase = unchecked(4), + + /// + /// To be documented. + /// + CharsNoBlank = unchecked(8), + + /// + /// To be documented. + /// + AutoSelectAll = unchecked(16), + + /// + /// To be documented. + /// + EnterReturnsTrue = unchecked(32), + + /// + /// To be documented. + /// + CallbackCompletion = unchecked(64), + + /// + /// To be documented. + /// + CallbackHistory = unchecked(128), + + /// + /// To be documented. + /// + CallbackAlways = unchecked(256), + + /// + /// To be documented. + /// + CallbackCharFilter = unchecked(512), + + /// + /// To be documented. + /// + AllowTabInput = unchecked(1024), + + /// + /// To be documented. + /// + CtrlEnterForNewLine = unchecked(2048), + + /// + /// To be documented. + /// + NoHorizontalScroll = unchecked(4096), + + /// + /// To be documented. + /// + AlwaysOverwrite = unchecked(8192), + + /// + /// To be documented. + /// + ReadOnly = unchecked(16384), + + /// + /// To be documented. + /// + Password = unchecked(32768), + + /// + /// To be documented. + /// + NoUndoRedo = unchecked(65536), + + /// + /// To be documented. + /// + CharsScientific = unchecked(131072), + + /// + /// To be documented. + /// + CallbackResize = unchecked(262144), + + /// + /// 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 new file mode 100644 index 000000000..48996a695 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiInputTextFlagsPrivate : int + { + /// + /// To be documented. + /// + Multiline = unchecked(67108864), + + /// + /// To be documented. + /// + NoMarkEdited = unchecked(134217728), + + /// + /// 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 new file mode 100644 index 000000000..437d81ffd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiItemFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoTabStop = unchecked(1), + + /// + /// To be documented. + /// + ButtonRepeat = unchecked(2), + + /// + /// To be documented. + /// + Disabled = unchecked(4), + + /// + /// To be documented. + /// + NoNav = unchecked(8), + + /// + /// To be documented. + /// + NoNavDefaultFocus = unchecked(16), + + /// + /// To be documented. + /// + SelectableDontClosePopup = unchecked(32), + + /// + /// To be documented. + /// + MixedValue = unchecked(64), + + /// + /// To be documented. + /// + ReadOnly = unchecked(128), + + /// + /// To be documented. + /// + Inputable = unchecked(256), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs new file mode 100644 index 000000000..d091d4f76 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiItemStatusFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + HoveredRect = unchecked(1), + + /// + /// To be documented. + /// + HasDisplayRect = unchecked(2), + + /// + /// To be documented. + /// + Edited = unchecked(4), + + /// + /// To be documented. + /// + ToggledSelection = unchecked(8), + + /// + /// To be documented. + /// + ToggledOpen = unchecked(16), + + /// + /// To be documented. + /// + HasDeactivated = unchecked(32), + + /// + /// To be documented. + /// + Deactivated = unchecked(64), + + /// + /// To be documented. + /// + HoveredWindow = unchecked(128), + + /// + /// To be documented. + /// + FocusedByTabbing = unchecked(256), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs new file mode 100644 index 000000000..19e08b98c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs @@ -0,0 +1,722 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiKey : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Tab = unchecked(512), + + /// + /// To be documented. + /// + LeftArrow = unchecked(513), + + /// + /// To be documented. + /// + RightArrow = unchecked(514), + + /// + /// To be documented. + /// + UpArrow = unchecked(515), + + /// + /// To be documented. + /// + DownArrow = unchecked(516), + + /// + /// To be documented. + /// + PageUp = unchecked(517), + + /// + /// To be documented. + /// + PageDown = unchecked(518), + + /// + /// To be documented. + /// + Home = unchecked(519), + + /// + /// To be documented. + /// + End = unchecked(520), + + /// + /// To be documented. + /// + Insert = unchecked(521), + + /// + /// To be documented. + /// + Delete = unchecked(522), + + /// + /// To be documented. + /// + Backspace = unchecked(523), + + /// + /// To be documented. + /// + Space = unchecked(524), + + /// + /// To be documented. + /// + Enter = unchecked(525), + + /// + /// To be documented. + /// + Escape = unchecked(526), + + /// + /// To be documented. + /// + LeftCtrl = unchecked(527), + + /// + /// To be documented. + /// + LeftShift = unchecked(528), + + /// + /// To be documented. + /// + LeftAlt = unchecked(529), + + /// + /// To be documented. + /// + LeftSuper = unchecked(530), + + /// + /// To be documented. + /// + RightCtrl = unchecked(531), + + /// + /// To be documented. + /// + RightShift = unchecked(532), + + /// + /// To be documented. + /// + RightAlt = unchecked(533), + + /// + /// To be documented. + /// + RightSuper = unchecked(534), + + /// + /// To be documented. + /// + Menu = unchecked(535), + + /// + /// To be documented. + /// + Key0 = unchecked(536), + + /// + /// To be documented. + /// + Key1 = unchecked(537), + + /// + /// To be documented. + /// + Key2 = unchecked(538), + + /// + /// To be documented. + /// + Key3 = unchecked(539), + + /// + /// To be documented. + /// + Key4 = unchecked(540), + + /// + /// To be documented. + /// + Key5 = unchecked(541), + + /// + /// To be documented. + /// + Key6 = unchecked(542), + + /// + /// To be documented. + /// + Key7 = unchecked(543), + + /// + /// To be documented. + /// + Key8 = unchecked(544), + + /// + /// To be documented. + /// + Key9 = unchecked(545), + + /// + /// To be documented. + /// + A = unchecked(546), + + /// + /// To be documented. + /// + B = unchecked(547), + + /// + /// To be documented. + /// + C = unchecked(548), + + /// + /// To be documented. + /// + D = unchecked(549), + + /// + /// To be documented. + /// + E = unchecked(550), + + /// + /// To be documented. + /// + F = unchecked(551), + + /// + /// To be documented. + /// + G = unchecked(552), + + /// + /// To be documented. + /// + H = unchecked(553), + + /// + /// To be documented. + /// + I = unchecked(554), + + /// + /// To be documented. + /// + J = unchecked(555), + + /// + /// To be documented. + /// + K = unchecked(556), + + /// + /// To be documented. + /// + L = unchecked(557), + + /// + /// To be documented. + /// + M = unchecked(558), + + /// + /// To be documented. + /// + N = unchecked(559), + + /// + /// To be documented. + /// + O = unchecked(560), + + /// + /// To be documented. + /// + P = unchecked(561), + + /// + /// To be documented. + /// + Q = unchecked(562), + + /// + /// To be documented. + /// + R = unchecked(563), + + /// + /// To be documented. + /// + S = unchecked(564), + + /// + /// To be documented. + /// + T = unchecked(565), + + /// + /// To be documented. + /// + U = unchecked(566), + + /// + /// To be documented. + /// + V = unchecked(567), + + /// + /// To be documented. + /// + W = unchecked(568), + + /// + /// To be documented. + /// + X = unchecked(569), + + /// + /// To be documented. + /// + Y = unchecked(570), + + /// + /// To be documented. + /// + Z = unchecked(571), + + /// + /// To be documented. + /// + F1 = unchecked(572), + + /// + /// To be documented. + /// + F2 = unchecked(573), + + /// + /// To be documented. + /// + F3 = unchecked(574), + + /// + /// To be documented. + /// + F4 = unchecked(575), + + /// + /// To be documented. + /// + F5 = unchecked(576), + + /// + /// To be documented. + /// + F6 = unchecked(577), + + /// + /// To be documented. + /// + F7 = unchecked(578), + + /// + /// To be documented. + /// + F8 = unchecked(579), + + /// + /// To be documented. + /// + F9 = unchecked(580), + + /// + /// To be documented. + /// + F10 = unchecked(581), + + /// + /// To be documented. + /// + F11 = unchecked(582), + + /// + /// To be documented. + /// + F12 = unchecked(583), + + /// + /// To be documented. + /// + Apostrophe = unchecked(584), + + /// + /// To be documented. + /// + Comma = unchecked(585), + + /// + /// To be documented. + /// + Minus = unchecked(586), + + /// + /// To be documented. + /// + Period = unchecked(587), + + /// + /// To be documented. + /// + Slash = unchecked(588), + + /// + /// To be documented. + /// + Semicolon = unchecked(589), + + /// + /// To be documented. + /// + Equal = unchecked(590), + + /// + /// To be documented. + /// + LeftBracket = unchecked(591), + + /// + /// To be documented. + /// + Backslash = unchecked(592), + + /// + /// To be documented. + /// + RightBracket = unchecked(593), + + /// + /// To be documented. + /// + GraveAccent = unchecked(594), + + /// + /// To be documented. + /// + CapsLock = unchecked(595), + + /// + /// To be documented. + /// + ScrollLock = unchecked(596), + + /// + /// To be documented. + /// + NumLock = unchecked(597), + + /// + /// To be documented. + /// + PrintScreen = unchecked(598), + + /// + /// To be documented. + /// + Pause = unchecked(599), + + /// + /// To be documented. + /// + Keypad0 = unchecked(600), + + /// + /// To be documented. + /// + Keypad1 = unchecked(601), + + /// + /// To be documented. + /// + Keypad2 = unchecked(602), + + /// + /// To be documented. + /// + Keypad3 = unchecked(603), + + /// + /// To be documented. + /// + Keypad4 = unchecked(604), + + /// + /// To be documented. + /// + Keypad5 = unchecked(605), + + /// + /// To be documented. + /// + Keypad6 = unchecked(606), + + /// + /// To be documented. + /// + Keypad7 = unchecked(607), + + /// + /// To be documented. + /// + Keypad8 = unchecked(608), + + /// + /// To be documented. + /// + Keypad9 = unchecked(609), + + /// + /// To be documented. + /// + KeypadDecimal = unchecked(610), + + /// + /// To be documented. + /// + KeypadDivide = unchecked(611), + + /// + /// To be documented. + /// + KeypadMultiply = unchecked(612), + + /// + /// To be documented. + /// + KeypadSubtract = unchecked(613), + + /// + /// To be documented. + /// + KeypadAdd = unchecked(614), + + /// + /// To be documented. + /// + KeypadEnter = unchecked(615), + + /// + /// To be documented. + /// + KeypadEqual = unchecked(616), + + /// + /// To be documented. + /// + GamepadStart = unchecked(617), + + /// + /// To be documented. + /// + GamepadBack = unchecked(618), + + /// + /// To be documented. + /// + GamepadFaceUp = unchecked(619), + + /// + /// To be documented. + /// + GamepadFaceDown = unchecked(620), + + /// + /// To be documented. + /// + GamepadFaceLeft = unchecked(621), + + /// + /// To be documented. + /// + GamepadFaceRight = unchecked(622), + + /// + /// To be documented. + /// + GamepadDpadUp = unchecked(623), + + /// + /// To be documented. + /// + GamepadDpadDown = unchecked(624), + + /// + /// To be documented. + /// + GamepadDpadLeft = unchecked(625), + + /// + /// To be documented. + /// + GamepadDpadRight = unchecked(626), + + /// + /// To be documented. + /// + GamepadL1 = unchecked(627), + + /// + /// To be documented. + /// + GamepadR1 = unchecked(628), + + /// + /// To be documented. + /// + GamepadL2 = unchecked(629), + + /// + /// To be documented. + /// + GamepadR2 = unchecked(630), + + /// + /// To be documented. + /// + GamepadL3 = unchecked(631), + + /// + /// To be documented. + /// + GamepadR3 = unchecked(632), + + /// + /// To be documented. + /// + GamepadLStickUp = unchecked(633), + + /// + /// To be documented. + /// + GamepadLStickDown = unchecked(634), + + /// + /// To be documented. + /// + GamepadLStickLeft = unchecked(635), + + /// + /// To be documented. + /// + GamepadLStickRight = unchecked(636), + + /// + /// To be documented. + /// + GamepadRStickUp = unchecked(637), + + /// + /// To be documented. + /// + GamepadRStickDown = unchecked(638), + + /// + /// To be documented. + /// + GamepadRStickLeft = unchecked(639), + + /// + /// To be documented. + /// + GamepadRStickRight = unchecked(640), + + /// + /// To be documented. + /// + ModCtrl = unchecked(641), + + /// + /// To be documented. + /// + ModShift = unchecked(642), + + /// + /// To be documented. + /// + ModAlt = unchecked(643), + + /// + /// To be documented. + /// + ModSuper = unchecked(644), + + /// + /// To be documented. + /// + Count = unchecked(645), + + /// + /// To be documented. + /// + NamedKeyBegin = unchecked(512), + + /// + /// To be documented. + /// + NamedKeyEnd = Count, + + /// + /// To be documented. + /// + NamedKeyCount = unchecked(133), + + /// + /// To be documented. + /// + KeysDataSize = Count, + + /// + /// To be documented. + /// + KeysDataOffset = unchecked(0), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs new file mode 100644 index 000000000..80a76c38a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiKeyPrivate : int + { + /// + /// To be documented. + /// + LegacyNativeKeyBegin = unchecked(0), + + /// + /// To be documented. + /// + LegacyNativeKeyEnd = unchecked(512), + + /// + /// To be documented. + /// + GamepadBegin = unchecked((int)ImGuiKey.GamepadStart), + + /// + /// To be documented. + /// + GamepadEnd = unchecked(641), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs new file mode 100644 index 000000000..01076a708 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiLayoutType : int + { + /// + /// To be documented. + /// + Horizontal = unchecked(0), + + /// + /// To be documented. + /// + Vertical = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs new file mode 100644 index 000000000..2b4b55a32 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiLogType : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Tty = unchecked(1), + + /// + /// To be documented. + /// + File = unchecked(2), + + /// + /// To be documented. + /// + Buffer = unchecked(3), + + /// + /// To be documented. + /// + Clipboard = unchecked(4), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs new file mode 100644 index 000000000..c7f183079 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiModFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Ctrl = unchecked(1), + + /// + /// To be documented. + /// + Shift = unchecked(2), + + /// + /// To be documented. + /// + Alt = unchecked(4), + + /// + /// To be documented. + /// + Super = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs new file mode 100644 index 000000000..75193a596 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiMouseButton : int + { + /// + /// To be documented. + /// + Left = unchecked(0), + + /// + /// To be documented. + /// + Right = unchecked(1), + + /// + /// To be documented. + /// + Middle = unchecked(2), + + /// + /// To be documented. + /// + Count = unchecked(5), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs new file mode 100644 index 000000000..59650ffcc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiMouseCursor : int + { + /// + /// To be documented. + /// + None = unchecked(-1), + + /// + /// To be documented. + /// + Arrow = unchecked(0), + + /// + /// To be documented. + /// + TextInput = unchecked(1), + + /// + /// To be documented. + /// + ResizeAll = unchecked(2), + + /// + /// To be documented. + /// + ResizeNs = unchecked(3), + + /// + /// To be documented. + /// + ResizeEw = unchecked(4), + + /// + /// To be documented. + /// + ResizeNesw = unchecked(5), + + /// + /// To be documented. + /// + ResizeNwse = unchecked(6), + + /// + /// To be documented. + /// + Hand = unchecked(7), + + /// + /// To be documented. + /// + NotAllowed = unchecked(8), + + /// + /// To be documented. + /// + Count = unchecked(9), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs new file mode 100644 index 000000000..e4af0bad5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavDirSourceFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + RawKeyboard = unchecked(1), + + /// + /// To be documented. + /// + Keyboard = unchecked(2), + + /// + /// To be documented. + /// + PadDPad = unchecked(4), + + /// + /// To be documented. + /// + PadLStick = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs new file mode 100644 index 000000000..e3a9652e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavHighlightFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + TypeDefault = unchecked(1), + + /// + /// To be documented. + /// + TypeThin = unchecked(2), + + /// + /// To be documented. + /// + AlwaysDraw = unchecked(4), + + /// + /// To be documented. + /// + NoRounding = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs new file mode 100644 index 000000000..8d7e68fae --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs @@ -0,0 +1,132 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavInput : int + { + /// + /// To be documented. + /// + Activate = unchecked(0), + + /// + /// To be documented. + /// + Cancel = unchecked(1), + + /// + /// To be documented. + /// + Input = unchecked(2), + + /// + /// To be documented. + /// + Menu = unchecked(3), + + /// + /// To be documented. + /// + DpadLeft = unchecked(4), + + /// + /// To be documented. + /// + DpadRight = unchecked(5), + + /// + /// To be documented. + /// + DpadUp = unchecked(6), + + /// + /// To be documented. + /// + DpadDown = unchecked(7), + + /// + /// To be documented. + /// + LStickLeft = unchecked(8), + + /// + /// To be documented. + /// + LStickRight = unchecked(9), + + /// + /// To be documented. + /// + LStickUp = unchecked(10), + + /// + /// To be documented. + /// + LStickDown = unchecked(11), + + /// + /// To be documented. + /// + FocusPrev = unchecked(12), + + /// + /// To be documented. + /// + FocusNext = unchecked(13), + + /// + /// To be documented. + /// + TweakSlow = unchecked(14), + + /// + /// To be documented. + /// + TweakFast = unchecked(15), + + /// + /// To be documented. + /// + KeyMenu = unchecked(16), + + /// + /// To be documented. + /// + KeyLeft = unchecked(17), + + /// + /// To be documented. + /// + KeyRight = unchecked(18), + + /// + /// To be documented. + /// + KeyUp = unchecked(19), + + /// + /// To be documented. + /// + KeyDown = unchecked(20), + + /// + /// To be documented. + /// + Count = unchecked(21), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs new file mode 100644 index 000000000..122da9008 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavLayer : int + { + /// + /// To be documented. + /// + Main = unchecked(0), + + /// + /// To be documented. + /// + Menu = unchecked(1), + + /// + /// To be documented. + /// + Count = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs new file mode 100644 index 000000000..ff1d9f99b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavMoveFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + LoopX = unchecked(1), + + /// + /// To be documented. + /// + LoopY = unchecked(2), + + /// + /// To be documented. + /// + WrapX = unchecked(4), + + /// + /// To be documented. + /// + WrapY = unchecked(8), + + /// + /// To be documented. + /// + AllowCurrentNavId = unchecked(16), + + /// + /// To be documented. + /// + AlsoScoreVisibleSet = unchecked(32), + + /// + /// To be documented. + /// + ScrollToEdgeY = unchecked(64), + + /// + /// To be documented. + /// + Forwarded = unchecked(128), + + /// + /// To be documented. + /// + DebugNoResult = unchecked(256), + + /// + /// To be documented. + /// + FocusApi = unchecked(512), + + /// + /// To be documented. + /// + Tabbing = unchecked(1024), + + /// + /// To be documented. + /// + Activate = unchecked(2048), + + /// + /// To be documented. + /// + DontSetNavHighlight = unchecked(4096), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs new file mode 100644 index 000000000..987db0f8b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNavReadMode : int + { + /// + /// To be documented. + /// + Down = unchecked(0), + + /// + /// To be documented. + /// + Pressed = unchecked(1), + + /// + /// To be documented. + /// + Released = unchecked(2), + + /// + /// To be documented. + /// + Repeat = unchecked(3), + + /// + /// To be documented. + /// + RepeatSlow = unchecked(4), + + /// + /// To be documented. + /// + RepeatFast = unchecked(5), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs new file mode 100644 index 000000000..436d1ae04 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNextItemDataFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + HasWidth = unchecked(1), + + /// + /// To be documented. + /// + HasOpen = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs new file mode 100644 index 000000000..974ed620e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs @@ -0,0 +1,82 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiNextWindowDataFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + HasPos = unchecked(1), + + /// + /// To be documented. + /// + HasSize = unchecked(2), + + /// + /// To be documented. + /// + HasContentSize = unchecked(4), + + /// + /// To be documented. + /// + HasCollapsed = unchecked(8), + + /// + /// To be documented. + /// + HasSizeConstraint = unchecked(16), + + /// + /// To be documented. + /// + HasFocus = unchecked(32), + + /// + /// To be documented. + /// + HasBgAlpha = unchecked(64), + + /// + /// To be documented. + /// + HasScroll = unchecked(128), + + /// + /// To be documented. + /// + HasViewport = unchecked(256), + + /// + /// To be documented. + /// + HasDock = unchecked(512), + + /// + /// To be documented. + /// + HasWindowClass = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs new file mode 100644 index 000000000..0aeb1977e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiOldColumnFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoBorder = unchecked(1), + + /// + /// To be documented. + /// + NoResize = unchecked(2), + + /// + /// To be documented. + /// + NoPreserveWidths = unchecked(4), + + /// + /// To be documented. + /// + NoForceWithinWindow = unchecked(8), + + /// + /// To be documented. + /// + GrowParentContentsSize = unchecked(16), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs new file mode 100644 index 000000000..2532cb33b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiPlotType : int + { + /// + /// To be documented. + /// + Lines = unchecked(0), + + /// + /// To be documented. + /// + Histogram = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs new file mode 100644 index 000000000..5af9be620 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiPopupFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + MouseButtonLeft = unchecked(0), + + /// + /// To be documented. + /// + MouseButtonRight = unchecked(1), + + /// + /// To be documented. + /// + MouseButtonMiddle = unchecked(2), + + /// + /// To be documented. + /// + MouseButtonMask = unchecked(31), + + /// + /// To be documented. + /// + MouseButtonDefault = unchecked(1), + + /// + /// To be documented. + /// + NoOpenOverExistingPopup = unchecked(32), + + /// + /// To be documented. + /// + NoOpenOverItems = unchecked(64), + + /// + /// To be documented. + /// + AnyPopupId = unchecked(128), + + /// + /// To be documented. + /// + AnyPopupLevel = unchecked(256), + + /// + /// To be documented. + /// + AnyPopup = unchecked(384), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs new file mode 100644 index 000000000..a562cd657 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiPopupPositionPolicy : int + { + /// + /// To be documented. + /// + Default = unchecked(0), + + /// + /// To be documented. + /// + ComboBox = unchecked(1), + + /// + /// To be documented. + /// + Tooltip = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs new file mode 100644 index 000000000..61b6d0df6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiScrollFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + KeepVisibleEdgeX = unchecked(1), + + /// + /// To be documented. + /// + KeepVisibleEdgeY = unchecked(2), + + /// + /// To be documented. + /// + KeepVisibleCenterX = unchecked(4), + + /// + /// To be documented. + /// + KeepVisibleCenterY = unchecked(8), + + /// + /// To be documented. + /// + AlwaysCenterX = unchecked(16), + + /// + /// To be documented. + /// + AlwaysCenterY = unchecked(32), + + /// + /// To be documented. + /// + NoScrollParent = unchecked(64), + + /// + /// To be documented. + /// + MaskX = unchecked(21), + + /// + /// To be documented. + /// + MaskY = unchecked(42), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs new file mode 100644 index 000000000..886ba11d7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSelectableFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + DontClosePopups = unchecked(1), + + /// + /// To be documented. + /// + SpanAllColumns = unchecked(2), + + /// + /// To be documented. + /// + AllowDoubleClick = unchecked(4), + + /// + /// To be documented. + /// + Disabled = unchecked(8), + + /// + /// To be documented. + /// + AllowItemOverlap = unchecked(16), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs new file mode 100644 index 000000000..3f02166cf --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSelectableFlagsPrivate : int + { + /// + /// To be documented. + /// + NoHoldingActiveId = unchecked(1048576), + + /// + /// To be documented. + /// + SelectOnNav = unchecked(2097152), + + /// + /// To be documented. + /// + SelectOnClick = unchecked(4194304), + + /// + /// To be documented. + /// + SelectOnRelease = unchecked(8388608), + + /// + /// To be documented. + /// + SpanAvailWidth = unchecked(16777216), + + /// + /// To be documented. + /// + DrawHoveredWhenHeld = unchecked(33554432), + + /// + /// To be documented. + /// + SetNavIdOnHover = unchecked(67108864), + + /// + /// 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 new file mode 100644 index 000000000..3b439f8cc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSeparatorFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1), + + /// + /// To be documented. + /// + Vertical = unchecked(2), + + /// + /// 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 new file mode 100644 index 000000000..1c586de61 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSliderFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + AlwaysClamp = unchecked(16), + + /// + /// To be documented. + /// + Logarithmic = unchecked(32), + + /// + /// To be documented. + /// + NoRoundToFormat = unchecked(64), + + /// + /// To be documented. + /// + NoInput = unchecked(128), + + /// + /// 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 new file mode 100644 index 000000000..d02d4d214 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSliderFlagsPrivate : int + { + /// + /// To be documented. + /// + Vertical = unchecked(1048576), + + /// + /// To be documented. + /// + ReadOnly = unchecked(2097152), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs new file mode 100644 index 000000000..13c321528 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiSortDirection : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Ascending = unchecked(1), + + /// + /// To be documented. + /// + Descending = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs new file mode 100644 index 000000000..415b46b94 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs @@ -0,0 +1,152 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiStyleVar : int + { + /// + /// To be documented. + /// + Alpha = unchecked(0), + + /// + /// To be documented. + /// + WindowPadding = unchecked(1), + + /// + /// To be documented. + /// + WindowRounding = unchecked(2), + + /// + /// To be documented. + /// + WindowBorderSize = unchecked(3), + + /// + /// To be documented. + /// + WindowMinSize = unchecked(4), + + /// + /// To be documented. + /// + WindowTitleAlign = unchecked(5), + + /// + /// To be documented. + /// + ChildRounding = unchecked(6), + + /// + /// To be documented. + /// + ChildBorderSize = unchecked(7), + + /// + /// To be documented. + /// + PopupRounding = unchecked(8), + + /// + /// To be documented. + /// + PopupBorderSize = unchecked(9), + + /// + /// To be documented. + /// + FramePadding = unchecked(10), + + /// + /// To be documented. + /// + FrameRounding = unchecked(11), + + /// + /// To be documented. + /// + FrameBorderSize = unchecked(12), + + /// + /// To be documented. + /// + ItemSpacing = unchecked(13), + + /// + /// To be documented. + /// + ItemInnerSpacing = unchecked(14), + + /// + /// To be documented. + /// + IndentSpacing = unchecked(15), + + /// + /// To be documented. + /// + CellPadding = unchecked(16), + + /// + /// To be documented. + /// + ScrollbarSize = unchecked(17), + + /// + /// To be documented. + /// + ScrollbarRounding = unchecked(18), + + /// + /// To be documented. + /// + GrabMinSize = unchecked(19), + + /// + /// To be documented. + /// + GrabRounding = unchecked(20), + + /// + /// To be documented. + /// + TabRounding = unchecked(21), + + /// + /// To be documented. + /// + ButtonTextAlign = unchecked(22), + + /// + /// To be documented. + /// + SelectableTextAlign = unchecked(23), + + /// + /// To be documented. + /// + DisabledAlpha = unchecked(24), + + /// + /// To be documented. + /// + Count = unchecked(25), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs new file mode 100644 index 000000000..aa1da59b8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTabBarFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Reorderable = unchecked(1), + + /// + /// To be documented. + /// + AutoSelectNewTabs = unchecked(2), + + /// + /// To be documented. + /// + ListPopupButton = unchecked(4), + + /// + /// To be documented. + /// + NoCloseWithMiddleMouseButton = unchecked(8), + + /// + /// To be documented. + /// + NoTabListScrollingButtons = unchecked(16), + + /// + /// To be documented. + /// + NoTooltip = unchecked(32), + + /// + /// To be documented. + /// + FittingPolicyResizeDown = unchecked(64), + + /// + /// To be documented. + /// + FittingPolicyScroll = unchecked(128), + + /// + /// To be documented. + /// + FittingPolicyMask = unchecked(192), + + /// + /// To be documented. + /// + FittingPolicyDefault = FittingPolicyResizeDown, + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs new file mode 100644 index 000000000..24c15aba9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTabBarFlagsPrivate : int + { + /// + /// To be documented. + /// + DockNode = unchecked(1048576), + + /// + /// To be documented. + /// + IsFocused = unchecked(2097152), + + /// + /// 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 new file mode 100644 index 000000000..377e93497 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTabItemFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + UnsavedDocument = unchecked(1), + + /// + /// To be documented. + /// + SetSelected = unchecked(2), + + /// + /// To be documented. + /// + NoCloseWithMiddleMouseButton = unchecked(4), + + /// + /// To be documented. + /// + NoPushId = unchecked(8), + + /// + /// To be documented. + /// + NoTooltip = unchecked(16), + + /// + /// To be documented. + /// + NoReorder = unchecked(32), + + /// + /// To be documented. + /// + Leading = unchecked(64), + + /// + /// 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 new file mode 100644 index 000000000..49bde3c37 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTabItemFlagsPrivate : int + { + /// + /// To be documented. + /// + SectionMask = unchecked(192), + + /// + /// To be documented. + /// + NoCloseButton = unchecked(1048576), + + /// + /// To be documented. + /// + Button = unchecked(2097152), + + /// + /// To be documented. + /// + Unsorted = unchecked(4194304), + + /// + /// To be documented. + /// + Preview = unchecked(8388608), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs new file mode 100644 index 000000000..52c3162ef --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTableBgTarget : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + RowBg0 = unchecked(1), + + /// + /// To be documented. + /// + RowBg1 = unchecked(2), + + /// + /// 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 new file mode 100644 index 000000000..8b5233368 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs @@ -0,0 +1,157 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTableColumnFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + DefaultHide = unchecked(1), + + /// + /// To be documented. + /// + DefaultSort = unchecked(2), + + /// + /// To be documented. + /// + WidthStretch = unchecked(4), + + /// + /// To be documented. + /// + WidthFixed = unchecked(8), + + /// + /// To be documented. + /// + NoResize = unchecked(16), + + /// + /// To be documented. + /// + NoReorder = unchecked(32), + + /// + /// To be documented. + /// + NoHide = unchecked(64), + + /// + /// To be documented. + /// + NoClip = unchecked(128), + + /// + /// To be documented. + /// + NoSort = unchecked(256), + + /// + /// To be documented. + /// + NoSortAscending = unchecked(512), + + /// + /// To be documented. + /// + NoSortDescending = unchecked(1024), + + /// + /// To be documented. + /// + NoHeaderWidth = unchecked(2048), + + /// + /// To be documented. + /// + PreferSortAscending = unchecked(4096), + + /// + /// To be documented. + /// + PreferSortDescending = unchecked(8192), + + /// + /// To be documented. + /// + IndentEnable = unchecked(16384), + + /// + /// To be documented. + /// + IndentDisable = unchecked(32768), + + /// + /// To be documented. + /// + IsEnabled = unchecked(1048576), + + /// + /// To be documented. + /// + IsVisible = unchecked(2097152), + + /// + /// To be documented. + /// + IsSorted = unchecked(4194304), + + /// + /// To be documented. + /// + IsHovered = unchecked(8388608), + + /// + /// To be documented. + /// + Disabled = unchecked(65536), + + /// + /// To be documented. + /// + NoHeaderLabel = unchecked(131072), + + /// + /// To be documented. + /// + WidthMask = unchecked(12), + + /// + /// To be documented. + /// + IndentMask = unchecked(49152), + + /// + /// To be documented. + /// + StatusMask = unchecked(15728640), + + /// + /// 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 new file mode 100644 index 000000000..87996f640 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs @@ -0,0 +1,202 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTableFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Resizable = unchecked(1), + + /// + /// To be documented. + /// + Reorderable = unchecked(2), + + /// + /// To be documented. + /// + Hideable = unchecked(4), + + /// + /// To be documented. + /// + Sortable = unchecked(8), + + /// + /// To be documented. + /// + NoSavedSettings = unchecked(16), + + /// + /// To be documented. + /// + ContextMenuInBody = unchecked(32), + + /// + /// To be documented. + /// + RowBg = unchecked(64), + + /// + /// To be documented. + /// + BordersInnerH = unchecked(128), + + /// + /// To be documented. + /// + BordersOuterH = unchecked(256), + + /// + /// To be documented. + /// + BordersInnerV = unchecked(512), + + /// + /// To be documented. + /// + BordersOuterV = unchecked(1024), + + /// + /// To be documented. + /// + BordersH = unchecked(384), + + /// + /// To be documented. + /// + BordersV = unchecked(1536), + + /// + /// To be documented. + /// + BordersInner = unchecked(640), + + /// + /// To be documented. + /// + BordersOuter = unchecked(1280), + + /// + /// To be documented. + /// + Borders = unchecked(1920), + + /// + /// To be documented. + /// + NoBordersInBody = unchecked(2048), + + /// + /// To be documented. + /// + NoBordersInBodyUntilResize = unchecked(4096), + + /// + /// To be documented. + /// + SizingFixedFit = unchecked(8192), + + /// + /// To be documented. + /// + SizingFixedSame = unchecked(16384), + + /// + /// To be documented. + /// + SizingStretchProp = unchecked(24576), + + /// + /// To be documented. + /// + SizingStretchSame = unchecked(32768), + + /// + /// To be documented. + /// + NoHostExtendX = unchecked(65536), + + /// + /// To be documented. + /// + NoHostExtendY = unchecked(131072), + + /// + /// To be documented. + /// + NoKeepColumnsVisible = unchecked(262144), + + /// + /// To be documented. + /// + PreciseWidths = unchecked(524288), + + /// + /// To be documented. + /// + NoClip = unchecked(1048576), + + /// + /// To be documented. + /// + PadOuterX = unchecked(2097152), + + /// + /// To be documented. + /// + NoPadOuterX = unchecked(4194304), + + /// + /// To be documented. + /// + NoPadInnerX = unchecked(8388608), + + /// + /// To be documented. + /// + ScrollX = unchecked(16777216), + + /// + /// To be documented. + /// + ScrollY = unchecked(33554432), + + /// + /// To be documented. + /// + SortMulti = unchecked(67108864), + + /// + /// To be documented. + /// + SortTristate = unchecked(134217728), + + /// + /// To be documented. + /// + SizingMask = unchecked(57344), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs new file mode 100644 index 000000000..c37c23e60 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTableRowFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Headers = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs new file mode 100644 index 000000000..41d6d1918 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTextFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoWidthForLargeClippedText = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs new file mode 100644 index 000000000..6c45ad173 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTooltipFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + OverridePreviousTooltip = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs new file mode 100644 index 000000000..91e6eaaf4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs @@ -0,0 +1,102 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTreeNodeFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Selected = unchecked(1), + + /// + /// To be documented. + /// + Framed = unchecked(2), + + /// + /// To be documented. + /// + AllowItemOverlap = unchecked(4), + + /// + /// To be documented. + /// + NoTreePushOnOpen = unchecked(8), + + /// + /// To be documented. + /// + NoAutoOpenOnLog = unchecked(16), + + /// + /// To be documented. + /// + DefaultOpen = unchecked(32), + + /// + /// To be documented. + /// + OpenOnDoubleClick = unchecked(64), + + /// + /// To be documented. + /// + OpenOnArrow = unchecked(128), + + /// + /// To be documented. + /// + Leaf = unchecked(256), + + /// + /// To be documented. + /// + Bullet = unchecked(512), + + /// + /// To be documented. + /// + FramePadding = unchecked(1024), + + /// + /// To be documented. + /// + SpanAvailWidth = unchecked(2048), + + /// + /// To be documented. + /// + SpanFullWidth = unchecked(4096), + + /// + /// To be documented. + /// + NavLeftJumpsBackHere = unchecked(8192), + + /// + /// To be documented. + /// + CollapsingHeader = unchecked(26), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs new file mode 100644 index 000000000..3ae0f77ca --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiTreeNodeFlagsPrivate : int + { + /// + /// 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 new file mode 100644 index 000000000..d07f954d4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiViewportFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + IsPlatformWindow = unchecked(1), + + /// + /// To be documented. + /// + IsPlatformMonitor = unchecked(2), + + /// + /// To be documented. + /// + OwnedByApp = unchecked(4), + + /// + /// To be documented. + /// + NoDecoration = unchecked(8), + + /// + /// To be documented. + /// + NoTaskBarIcon = unchecked(16), + + /// + /// To be documented. + /// + NoFocusOnAppearing = unchecked(32), + + /// + /// To be documented. + /// + NoFocusOnClick = unchecked(64), + + /// + /// To be documented. + /// + NoInputs = unchecked(128), + + /// + /// To be documented. + /// + NoRendererClear = unchecked(256), + + /// + /// To be documented. + /// + TopMost = unchecked(512), + + /// + /// To be documented. + /// + Minimized = unchecked(1024), + + /// + /// To be documented. + /// + NoAutoMerge = unchecked(2048), + + /// + /// To be documented. + /// + CanHostOtherWindows = unchecked(4096), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs new file mode 100644 index 000000000..9eaac1467 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiWindowDockStyleCol : int + { + /// + /// To be documented. + /// + Text = unchecked(0), + + /// + /// To be documented. + /// + Tab = unchecked(1), + + /// + /// To be documented. + /// + TabHovered = unchecked(2), + + /// + /// To be documented. + /// + TabActive = unchecked(3), + + /// + /// To be documented. + /// + TabUnfocused = unchecked(4), + + /// + /// To be documented. + /// + TabUnfocusedActive = unchecked(5), + + /// + /// To be documented. + /// + Count = unchecked(6), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs new file mode 100644 index 000000000..6129b8ed2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs @@ -0,0 +1,182 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuiWindowFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoTitleBar = unchecked(1), + + /// + /// To be documented. + /// + NoResize = unchecked(2), + + /// + /// To be documented. + /// + NoMove = unchecked(4), + + /// + /// To be documented. + /// + NoScrollbar = unchecked(8), + + /// + /// To be documented. + /// + NoScrollWithMouse = unchecked(16), + + /// + /// To be documented. + /// + NoCollapse = unchecked(32), + + /// + /// To be documented. + /// + AlwaysAutoResize = unchecked(64), + + /// + /// To be documented. + /// + NoBackground = unchecked(128), + + /// + /// To be documented. + /// + NoSavedSettings = unchecked(256), + + /// + /// To be documented. + /// + NoMouseInputs = unchecked(512), + + /// + /// To be documented. + /// + MenuBar = unchecked(1024), + + /// + /// To be documented. + /// + HorizontalScrollbar = unchecked(2048), + + /// + /// To be documented. + /// + NoFocusOnAppearing = unchecked(4096), + + /// + /// To be documented. + /// + NoBringToFrontOnFocus = unchecked(8192), + + /// + /// To be documented. + /// + AlwaysVerticalScrollbar = unchecked(16384), + + /// + /// To be documented. + /// + AlwaysHorizontalScrollbar = unchecked(32768), + + /// + /// To be documented. + /// + AlwaysUseWindowPadding = unchecked(65536), + + /// + /// To be documented. + /// + NoNavInputs = unchecked(262144), + + /// + /// To be documented. + /// + NoNavFocus = unchecked(524288), + + /// + /// To be documented. + /// + UnsavedDocument = unchecked(1048576), + + /// + /// To be documented. + /// + NoDocking = unchecked(2097152), + + /// + /// To be documented. + /// + NoNav = unchecked(786432), + + /// + /// To be documented. + /// + NoDecoration = unchecked(43), + + /// + /// To be documented. + /// + NoInputs = unchecked(786944), + + /// + /// To be documented. + /// + NavFlattened = unchecked(8388608), + + /// + /// To be documented. + /// + ChildWindow = unchecked(16777216), + + /// + /// To be documented. + /// + Tooltip = unchecked(33554432), + + /// + /// To be documented. + /// + Popup = unchecked(67108864), + + /// + /// To be documented. + /// + Modal = unchecked(134217728), + + /// + /// To be documented. + /// + ChildMenu = unchecked(268435456), + + /// + /// To be documented. + /// + DockNodeHost = unchecked(536870912), + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs new file mode 100644 index 000000000..2c929ccc9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs @@ -0,0 +1,1314 @@ +// ------------------------------------------------------------------------------ +// +// 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 + { + internal static FunctionTable funcTable; + + /// + /// Initializes the function table, automatically called. Do not call manually, only after . + /// + public static void InitApi(INativeContext context) + { + funcTable = new FunctionTable(context, 1279); + funcTable.Load(0, "ImVec2_ImVec2_Nil"); + funcTable.Load(1, "ImVec2_destroy"); + funcTable.Load(2, "ImVec2_ImVec2_Float"); + funcTable.Load(3, "ImVec4_ImVec4_Nil"); + funcTable.Load(4, "ImVec4_destroy"); + funcTable.Load(5, "ImVec4_ImVec4_Float"); + funcTable.Load(6, "igCreateContext"); + funcTable.Load(7, "igDestroyContext"); + funcTable.Load(8, "igGetCurrentContext"); + funcTable.Load(9, "igSetCurrentContext"); + funcTable.Load(10, "igGetIO"); + funcTable.Load(11, "igGetStyle"); + funcTable.Load(12, "igNewFrame"); + funcTable.Load(13, "igEndFrame"); + funcTable.Load(14, "igRender"); + funcTable.Load(15, "igGetDrawData"); + funcTable.Load(16, "igShowDemoWindow"); + funcTable.Load(17, "igShowMetricsWindow"); + funcTable.Load(18, "igShowDebugLogWindow"); + funcTable.Load(19, "igShowStackToolWindow"); + funcTable.Load(20, "igShowAboutWindow"); + funcTable.Load(21, "igShowStyleEditor"); + funcTable.Load(22, "igShowStyleSelector"); + funcTable.Load(23, "igShowFontSelector"); + funcTable.Load(24, "igShowUserGuide"); + funcTable.Load(25, "igGetVersion"); + funcTable.Load(26, "igStyleColorsDark"); + funcTable.Load(27, "igStyleColorsLight"); + funcTable.Load(28, "igStyleColorsClassic"); + funcTable.Load(29, "igBegin"); + funcTable.Load(30, "igEnd"); + funcTable.Load(31, "igBeginChild_Str"); + funcTable.Load(32, "igBeginChild_ID"); + funcTable.Load(33, "igEndChild"); + funcTable.Load(34, "igIsWindowAppearing"); + funcTable.Load(35, "igIsWindowCollapsed"); + funcTable.Load(36, "igIsWindowFocused"); + funcTable.Load(37, "igIsWindowHovered"); + funcTable.Load(38, "igGetWindowDrawList"); + funcTable.Load(39, "igGetWindowDpiScale"); + funcTable.Load(40, "igGetWindowPos"); + funcTable.Load(41, "igGetWindowSize"); + funcTable.Load(42, "igGetWindowWidth"); + funcTable.Load(43, "igGetWindowHeight"); + funcTable.Load(44, "igGetWindowViewport"); + funcTable.Load(45, "igSetNextWindowPos"); + funcTable.Load(46, "igSetNextWindowSize"); + funcTable.Load(47, "igSetNextWindowSizeConstraints"); + funcTable.Load(48, "igSetNextWindowContentSize"); + funcTable.Load(49, "igSetNextWindowCollapsed"); + funcTable.Load(50, "igSetNextWindowFocus"); + funcTable.Load(51, "igSetNextWindowBgAlpha"); + funcTable.Load(52, "igSetNextWindowViewport"); + funcTable.Load(53, "igSetWindowPos_Vec2"); + funcTable.Load(54, "igSetWindowSize_Vec2"); + funcTable.Load(55, "igSetWindowCollapsed_Bool"); + funcTable.Load(56, "igSetWindowFocus_Nil"); + funcTable.Load(57, "igSetWindowFontScale"); + funcTable.Load(58, "igSetWindowPos_Str"); + funcTable.Load(59, "igSetWindowSize_Str"); + funcTable.Load(60, "igSetWindowCollapsed_Str"); + funcTable.Load(61, "igSetWindowFocus_Str"); + funcTable.Load(62, "igGetContentRegionAvail"); + funcTable.Load(63, "igGetContentRegionMax"); + funcTable.Load(64, "igGetWindowContentRegionMin"); + funcTable.Load(65, "igGetWindowContentRegionMax"); + funcTable.Load(66, "igGetScrollX"); + funcTable.Load(67, "igGetScrollY"); + funcTable.Load(68, "igSetScrollX_Float"); + funcTable.Load(69, "igSetScrollY_Float"); + funcTable.Load(70, "igGetScrollMaxX"); + funcTable.Load(71, "igGetScrollMaxY"); + funcTable.Load(72, "igSetScrollHereX"); + funcTable.Load(73, "igSetScrollHereY"); + funcTable.Load(74, "igSetScrollFromPosX_Float"); + funcTable.Load(75, "igSetScrollFromPosY_Float"); + funcTable.Load(76, "igPushFont"); + funcTable.Load(77, "igPopFont"); + funcTable.Load(78, "igPushStyleColor_U32"); + funcTable.Load(79, "igPushStyleColor_Vec4"); + funcTable.Load(80, "igPopStyleColor"); + funcTable.Load(81, "igPushStyleVar_Float"); + funcTable.Load(82, "igPushStyleVar_Vec2"); + funcTable.Load(83, "igPopStyleVar"); + funcTable.Load(84, "igPushAllowKeyboardFocus"); + funcTable.Load(85, "igPopAllowKeyboardFocus"); + funcTable.Load(86, "igPushButtonRepeat"); + funcTable.Load(87, "igPopButtonRepeat"); + funcTable.Load(88, "igPushItemWidth"); + funcTable.Load(89, "igPopItemWidth"); + funcTable.Load(90, "igSetNextItemWidth"); + funcTable.Load(91, "igCalcItemWidth"); + funcTable.Load(92, "igPushTextWrapPos"); + funcTable.Load(93, "igPopTextWrapPos"); + funcTable.Load(94, "igGetFont"); + funcTable.Load(95, "igGetFontSize"); + funcTable.Load(96, "igGetFontTexIdWhitePixel"); + funcTable.Load(97, "igGetFontTexUvWhitePixel"); + funcTable.Load(98, "igGetColorU32_Col"); + funcTable.Load(99, "igGetColorU32_Vec4"); + funcTable.Load(100, "igGetColorU32_U32"); + funcTable.Load(101, "igGetStyleColorVec4"); + funcTable.Load(102, "igSeparator"); + funcTable.Load(103, "igSameLine"); + funcTable.Load(104, "igNewLine"); + funcTable.Load(105, "igSpacing"); + funcTable.Load(106, "igDummy"); + funcTable.Load(107, "igIndent"); + funcTable.Load(108, "igUnindent"); + funcTable.Load(109, "igBeginGroup"); + funcTable.Load(110, "igEndGroup"); + funcTable.Load(111, "igGetCursorPos"); + funcTable.Load(112, "igGetCursorPosX"); + funcTable.Load(113, "igGetCursorPosY"); + funcTable.Load(114, "igSetCursorPos"); + funcTable.Load(115, "igSetCursorPosX"); + funcTable.Load(116, "igSetCursorPosY"); + funcTable.Load(117, "igGetCursorStartPos"); + funcTable.Load(118, "igGetCursorScreenPos"); + funcTable.Load(119, "igSetCursorScreenPos"); + funcTable.Load(120, "igAlignTextToFramePadding"); + funcTable.Load(121, "igGetTextLineHeight"); + funcTable.Load(122, "igGetTextLineHeightWithSpacing"); + funcTable.Load(123, "igGetFrameHeight"); + funcTable.Load(124, "igGetFrameHeightWithSpacing"); + funcTable.Load(125, "igPushID_Str"); + funcTable.Load(126, "igPushID_StrStr"); + funcTable.Load(127, "igPushID_Ptr"); + funcTable.Load(128, "igPushID_Int"); + funcTable.Load(129, "igPopID"); + funcTable.Load(130, "igGetID_Str"); + funcTable.Load(131, "igGetID_StrStr"); + funcTable.Load(132, "igGetID_Ptr"); + funcTable.Load(133, "igTextUnformatted"); + funcTable.Load(134, "igText"); + funcTable.Load(135, "igTextV"); + funcTable.Load(136, "igTextColored"); + funcTable.Load(137, "igTextColoredV"); + funcTable.Load(138, "igTextDisabled"); + funcTable.Load(139, "igTextDisabledV"); + funcTable.Load(140, "igTextWrapped"); + funcTable.Load(141, "igTextWrappedV"); + funcTable.Load(142, "igLabelText"); + funcTable.Load(143, "igLabelTextV"); + funcTable.Load(144, "igBulletText"); + funcTable.Load(145, "igBulletTextV"); + funcTable.Load(146, "igButton"); + funcTable.Load(147, "igSmallButton"); + funcTable.Load(148, "igInvisibleButton"); + funcTable.Load(149, "igArrowButton"); + funcTable.Load(150, "igImage"); + funcTable.Load(151, "igImageButton"); + funcTable.Load(152, "igCheckbox"); + funcTable.Load(153, "igCheckboxFlags_IntPtr"); + funcTable.Load(154, "igCheckboxFlags_UintPtr"); + funcTable.Load(155, "igRadioButton_Bool"); + funcTable.Load(156, "igRadioButton_IntPtr"); + funcTable.Load(157, "igProgressBar"); + funcTable.Load(158, "igBullet"); + funcTable.Load(159, "igBeginCombo"); + funcTable.Load(160, "igEndCombo"); + funcTable.Load(161, "igCombo_Str_arr"); + funcTable.Load(162, "igCombo_Str"); + funcTable.Load(163, "igCombo_FnBoolPtr"); + funcTable.Load(164, "igDragFloat"); + funcTable.Load(165, "igDragFloat2"); + funcTable.Load(166, "igDragFloat3"); + funcTable.Load(167, "igDragFloat4"); + funcTable.Load(168, "igDragFloatRange2"); + funcTable.Load(169, "igDragInt"); + funcTable.Load(170, "igDragInt2"); + funcTable.Load(171, "igDragInt3"); + funcTable.Load(172, "igDragInt4"); + funcTable.Load(173, "igDragIntRange2"); + funcTable.Load(174, "igDragScalar"); + funcTable.Load(175, "igDragScalarN"); + funcTable.Load(176, "igSliderFloat"); + funcTable.Load(177, "igSliderFloat2"); + funcTable.Load(178, "igSliderFloat3"); + funcTable.Load(179, "igSliderFloat4"); + funcTable.Load(180, "igSliderAngle"); + funcTable.Load(181, "igSliderInt"); + funcTable.Load(182, "igSliderInt2"); + funcTable.Load(183, "igSliderInt3"); + funcTable.Load(184, "igSliderInt4"); + funcTable.Load(185, "igSliderScalar"); + funcTable.Load(186, "igSliderScalarN"); + funcTable.Load(187, "igVSliderFloat"); + funcTable.Load(188, "igVSliderInt"); + funcTable.Load(189, "igVSliderScalar"); + funcTable.Load(190, "igInputFloat"); + funcTable.Load(191, "igInputFloat2"); + funcTable.Load(192, "igInputFloat3"); + funcTable.Load(193, "igInputFloat4"); + funcTable.Load(194, "igInputInt"); + funcTable.Load(195, "igInputInt2"); + funcTable.Load(196, "igInputInt3"); + funcTable.Load(197, "igInputInt4"); + funcTable.Load(198, "igInputDouble"); + funcTable.Load(199, "igInputScalar"); + funcTable.Load(200, "igInputScalarN"); + funcTable.Load(201, "igColorEdit3"); + funcTable.Load(202, "igColorEdit4"); + funcTable.Load(203, "igColorPicker3"); + funcTable.Load(204, "igColorPicker4"); + funcTable.Load(205, "igColorButton"); + funcTable.Load(206, "igSetColorEditOptions"); + funcTable.Load(207, "igTreeNode_Str"); + funcTable.Load(208, "igTreeNode_StrStr"); + funcTable.Load(209, "igTreeNode_Ptr"); + funcTable.Load(210, "igTreeNodeV_Str"); + funcTable.Load(211, "igTreeNodeV_Ptr"); + funcTable.Load(212, "igTreeNodeEx_Str"); + funcTable.Load(213, "igTreeNodeEx_StrStr"); + funcTable.Load(214, "igTreeNodeEx_Ptr"); + funcTable.Load(215, "igTreeNodeExV_Str"); + funcTable.Load(216, "igTreeNodeExV_Ptr"); + funcTable.Load(217, "igTreePush_Str"); + funcTable.Load(218, "igTreePush_Ptr"); + funcTable.Load(219, "igTreePop"); + funcTable.Load(220, "igGetTreeNodeToLabelSpacing"); + funcTable.Load(221, "igCollapsingHeader_TreeNodeFlags"); + funcTable.Load(222, "igCollapsingHeader_BoolPtr"); + funcTable.Load(223, "igSetNextItemOpen"); + funcTable.Load(224, "igSelectable_Bool"); + funcTable.Load(225, "igSelectable_BoolPtr"); + funcTable.Load(226, "igBeginListBox"); + funcTable.Load(227, "igEndListBox"); + funcTable.Load(228, "igListBox_Str_arr"); + funcTable.Load(229, "igListBox_FnBoolPtr"); + funcTable.Load(230, "igPlotLines_FloatPtr"); + funcTable.Load(231, "igPlotLines_FnFloatPtr"); + funcTable.Load(232, "igPlotHistogram_FloatPtr"); + funcTable.Load(233, "igPlotHistogram_FnFloatPtr"); + funcTable.Load(234, "igValue_Bool"); + funcTable.Load(235, "igValue_Int"); + funcTable.Load(236, "igValue_Uint"); + funcTable.Load(237, "igValue_Float"); + funcTable.Load(238, "igBeginMenuBar"); + funcTable.Load(239, "igEndMenuBar"); + funcTable.Load(240, "igBeginMainMenuBar"); + funcTable.Load(241, "igEndMainMenuBar"); + funcTable.Load(242, "igBeginMenu"); + funcTable.Load(243, "igEndMenu"); + funcTable.Load(244, "igMenuItem_Bool"); + funcTable.Load(245, "igMenuItem_BoolPtr"); + funcTable.Load(246, "igBeginTooltip"); + funcTable.Load(247, "igEndTooltip"); + funcTable.Load(248, "igSetTooltip"); + funcTable.Load(249, "igSetTooltipV"); + funcTable.Load(250, "igBeginPopup"); + funcTable.Load(251, "igBeginPopupModal"); + funcTable.Load(252, "igEndPopup"); + funcTable.Load(253, "igOpenPopup_Str"); + funcTable.Load(254, "igOpenPopup_ID"); + funcTable.Load(255, "igOpenPopupOnItemClick"); + funcTable.Load(256, "igCloseCurrentPopup"); + funcTable.Load(257, "igBeginPopupContextItem"); + funcTable.Load(258, "igBeginPopupContextWindow"); + funcTable.Load(259, "igBeginPopupContextVoid"); + funcTable.Load(260, "igIsPopupOpen_Str"); + funcTable.Load(261, "igBeginTable"); + funcTable.Load(262, "igEndTable"); + funcTable.Load(263, "igTableNextRow"); + funcTable.Load(264, "igTableNextColumn"); + funcTable.Load(265, "igTableSetColumnIndex"); + funcTable.Load(266, "igTableSetupColumn"); + funcTable.Load(267, "igTableSetupScrollFreeze"); + funcTable.Load(268, "igTableHeadersRow"); + funcTable.Load(269, "igTableHeader"); + funcTable.Load(270, "igTableGetSortSpecs"); + funcTable.Load(271, "igTableGetColumnCount"); + funcTable.Load(272, "igTableGetColumnIndex"); + funcTable.Load(273, "igTableGetRowIndex"); + funcTable.Load(274, "igTableGetColumnName_Int"); + funcTable.Load(275, "igTableGetColumnFlags"); + funcTable.Load(276, "igTableSetColumnEnabled"); + funcTable.Load(277, "igTableSetBgColor"); + funcTable.Load(278, "igColumns"); + funcTable.Load(279, "igNextColumn"); + funcTable.Load(280, "igGetColumnIndex"); + funcTable.Load(281, "igGetColumnWidth"); + funcTable.Load(282, "igSetColumnWidth"); + funcTable.Load(283, "igGetColumnOffset"); + funcTable.Load(284, "igSetColumnOffset"); + funcTable.Load(285, "igGetColumnsCount"); + funcTable.Load(286, "igBeginTabBar"); + funcTable.Load(287, "igEndTabBar"); + funcTable.Load(288, "igBeginTabItem"); + funcTable.Load(289, "igEndTabItem"); + funcTable.Load(290, "igTabItemButton"); + funcTable.Load(291, "igSetTabItemClosed"); + funcTable.Load(292, "igDockSpace"); + funcTable.Load(293, "igDockSpaceOverViewport"); + funcTable.Load(294, "igSetNextWindowDockID"); + funcTable.Load(295, "igSetNextWindowClass"); + funcTable.Load(296, "igGetWindowDockID"); + funcTable.Load(297, "igIsWindowDocked"); + funcTable.Load(298, "igLogToTTY"); + funcTable.Load(299, "igLogToFile"); + funcTable.Load(300, "igLogToClipboard"); + funcTable.Load(301, "igLogFinish"); + funcTable.Load(302, "igLogButtons"); + funcTable.Load(303, "igLogTextV"); + funcTable.Load(304, "igBeginDragDropSource"); + funcTable.Load(305, "igSetDragDropPayload"); + funcTable.Load(306, "igEndDragDropSource"); + funcTable.Load(307, "igBeginDragDropTarget"); + funcTable.Load(308, "igAcceptDragDropPayload"); + funcTable.Load(309, "igEndDragDropTarget"); + funcTable.Load(310, "igGetDragDropPayload"); + funcTable.Load(311, "igBeginDisabled"); + funcTable.Load(312, "igEndDisabled"); + funcTable.Load(313, "igPushClipRect"); + funcTable.Load(314, "igPopClipRect"); + funcTable.Load(315, "igSetItemDefaultFocus"); + funcTable.Load(316, "igSetKeyboardFocusHere"); + funcTable.Load(317, "igIsItemHovered"); + funcTable.Load(318, "igIsItemActive"); + funcTable.Load(319, "igIsItemFocused"); + funcTable.Load(320, "igIsItemClicked"); + funcTable.Load(321, "igIsItemVisible"); + funcTable.Load(322, "igIsItemEdited"); + funcTable.Load(323, "igIsItemActivated"); + funcTable.Load(324, "igIsItemDeactivated"); + funcTable.Load(325, "igIsItemDeactivatedAfterEdit"); + funcTable.Load(326, "igIsItemToggledOpen"); + funcTable.Load(327, "igIsAnyItemHovered"); + funcTable.Load(328, "igIsAnyItemActive"); + funcTable.Load(329, "igIsAnyItemFocused"); + funcTable.Load(330, "igGetItemRectMin"); + funcTable.Load(331, "igGetItemRectMax"); + funcTable.Load(332, "igGetItemRectSize"); + funcTable.Load(333, "igSetItemAllowOverlap"); + funcTable.Load(334, "igGetMainViewport"); + funcTable.Load(335, "igGetBackgroundDrawList_Nil"); + funcTable.Load(336, "igGetForegroundDrawList_Nil"); + funcTable.Load(337, "igGetBackgroundDrawList_ViewportPtr"); + funcTable.Load(338, "igGetForegroundDrawList_ViewportPtr"); + funcTable.Load(339, "igIsRectVisible_Nil"); + funcTable.Load(340, "igIsRectVisible_Vec2"); + funcTable.Load(341, "igGetTime"); + funcTable.Load(342, "igGetFrameCount"); + funcTable.Load(343, "igGetDrawListSharedData"); + funcTable.Load(344, "igGetStyleColorName"); + funcTable.Load(345, "igSetStateStorage"); + funcTable.Load(346, "igGetStateStorage"); + funcTable.Load(347, "igBeginChildFrame"); + funcTable.Load(348, "igEndChildFrame"); + funcTable.Load(349, "igCalcTextSize"); + funcTable.Load(350, "igColorConvertU32ToFloat4"); + funcTable.Load(351, "igColorConvertFloat4ToU32"); + funcTable.Load(352, "igColorConvertRGBtoHSV"); + funcTable.Load(353, "igColorConvertHSVtoRGB"); + funcTable.Load(354, "igIsKeyDown"); + funcTable.Load(355, "igIsKeyPressed"); + funcTable.Load(356, "igIsKeyReleased"); + funcTable.Load(357, "igGetKeyPressedAmount"); + funcTable.Load(358, "igGetKeyName"); + funcTable.Load(359, "igSetNextFrameWantCaptureKeyboard"); + funcTable.Load(360, "igIsMouseDown"); + funcTable.Load(361, "igIsMouseClicked"); + funcTable.Load(362, "igIsMouseReleased"); + funcTable.Load(363, "igIsMouseDoubleClicked"); + funcTable.Load(364, "igGetMouseClickedCount"); + funcTable.Load(365, "igIsMouseHoveringRect"); + funcTable.Load(366, "igIsMousePosValid"); + funcTable.Load(367, "igIsAnyMouseDown"); + funcTable.Load(368, "igGetMousePos"); + funcTable.Load(369, "igGetMousePosOnOpeningCurrentPopup"); + funcTable.Load(370, "igIsMouseDragging"); + funcTable.Load(371, "igGetMouseDragDelta"); + funcTable.Load(372, "igResetMouseDragDelta"); + funcTable.Load(373, "igGetMouseCursor"); + funcTable.Load(374, "igSetMouseCursor"); + funcTable.Load(375, "igSetNextFrameWantCaptureMouse"); + funcTable.Load(376, "igGetClipboardText"); + funcTable.Load(377, "igSetClipboardText"); + funcTable.Load(378, "igLoadIniSettingsFromDisk"); + funcTable.Load(379, "igLoadIniSettingsFromMemory"); + funcTable.Load(380, "igSaveIniSettingsToDisk"); + funcTable.Load(381, "igSaveIniSettingsToMemory"); + funcTable.Load(382, "igDebugTextEncoding"); + funcTable.Load(383, "igDebugCheckVersionAndDataLayout"); + funcTable.Load(384, "igSetAllocatorFunctions"); + funcTable.Load(385, "igGetAllocatorFunctions"); + funcTable.Load(386, "igMemAlloc"); + funcTable.Load(387, "igMemFree"); + funcTable.Load(388, "igGetPlatformIO"); + funcTable.Load(389, "igUpdatePlatformWindows"); + funcTable.Load(390, "igRenderPlatformWindowsDefault"); + funcTable.Load(391, "igDestroyPlatformWindows"); + funcTable.Load(392, "igFindViewportByID"); + funcTable.Load(393, "igFindViewportByPlatformHandle"); + funcTable.Load(394, "ImGuiStyle_ImGuiStyle"); + funcTable.Load(395, "ImGuiStyle_destroy"); + funcTable.Load(396, "ImGuiStyle_ScaleAllSizes"); + funcTable.Load(397, "ImGuiIO_AddKeyEvent"); + funcTable.Load(398, "ImGuiIO_AddKeyAnalogEvent"); + funcTable.Load(399, "ImGuiIO_AddMousePosEvent"); + funcTable.Load(400, "ImGuiIO_AddMouseButtonEvent"); + funcTable.Load(401, "ImGuiIO_AddMouseWheelEvent"); + funcTable.Load(402, "ImGuiIO_AddMouseViewportEvent"); + funcTable.Load(403, "ImGuiIO_AddFocusEvent"); + funcTable.Load(404, "ImGuiIO_AddInputCharacter"); + funcTable.Load(405, "ImGuiIO_AddInputCharacterUTF16"); + funcTable.Load(406, "ImGuiIO_AddInputCharactersUTF8"); + funcTable.Load(407, "ImGuiIO_SetKeyEventNativeData"); + funcTable.Load(408, "ImGuiIO_SetAppAcceptingEvents"); + funcTable.Load(409, "ImGuiIO_ClearInputCharacters"); + funcTable.Load(410, "ImGuiIO_ClearInputKeys"); + funcTable.Load(411, "ImGuiIO_ImGuiIO"); + funcTable.Load(412, "ImGuiIO_destroy"); + funcTable.Load(413, "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"); + funcTable.Load(414, "ImGuiInputTextCallbackData_destroy"); + funcTable.Load(415, "ImGuiInputTextCallbackData_DeleteChars"); + funcTable.Load(416, "ImGuiInputTextCallbackData_InsertChars"); + funcTable.Load(417, "ImGuiInputTextCallbackData_SelectAll"); + funcTable.Load(418, "ImGuiInputTextCallbackData_ClearSelection"); + funcTable.Load(419, "ImGuiInputTextCallbackData_HasSelection"); + funcTable.Load(420, "ImGuiWindowClass_ImGuiWindowClass"); + funcTable.Load(421, "ImGuiWindowClass_destroy"); + funcTable.Load(422, "ImGuiPayload_ImGuiPayload"); + funcTable.Load(423, "ImGuiPayload_destroy"); + funcTable.Load(424, "ImGuiPayload_Clear"); + funcTable.Load(425, "ImGuiPayload_IsDataType"); + funcTable.Load(426, "ImGuiPayload_IsPreview"); + funcTable.Load(427, "ImGuiPayload_IsDelivery"); + funcTable.Load(428, "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"); + funcTable.Load(429, "ImGuiTableColumnSortSpecs_destroy"); + funcTable.Load(430, "ImGuiTableSortSpecs_ImGuiTableSortSpecs"); + funcTable.Load(431, "ImGuiTableSortSpecs_destroy"); + funcTable.Load(432, "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"); + funcTable.Load(433, "ImGuiOnceUponAFrame_destroy"); + funcTable.Load(434, "ImGuiTextFilter_ImGuiTextFilter"); + funcTable.Load(435, "ImGuiTextFilter_destroy"); + funcTable.Load(436, "ImGuiTextFilter_Draw"); + funcTable.Load(437, "ImGuiTextFilter_PassFilter"); + funcTable.Load(438, "ImGuiTextFilter_Build"); + funcTable.Load(439, "ImGuiTextFilter_Clear"); + funcTable.Load(440, "ImGuiTextFilter_IsActive"); + funcTable.Load(441, "ImGuiTextRange_ImGuiTextRange_Nil"); + funcTable.Load(442, "ImGuiTextRange_destroy"); + funcTable.Load(443, "ImGuiTextRange_ImGuiTextRange_Str"); + funcTable.Load(444, "ImGuiTextRange_empty"); + funcTable.Load(445, "ImGuiTextRange_split"); + funcTable.Load(446, "ImGuiTextBuffer_ImGuiTextBuffer"); + funcTable.Load(447, "ImGuiTextBuffer_destroy"); + funcTable.Load(448, "ImGuiTextBuffer_begin"); + funcTable.Load(449, "ImGuiTextBuffer_end"); + funcTable.Load(450, "ImGuiTextBuffer_size"); + funcTable.Load(451, "ImGuiTextBuffer_empty"); + funcTable.Load(452, "ImGuiTextBuffer_clear"); + funcTable.Load(453, "ImGuiTextBuffer_reserve"); + funcTable.Load(454, "ImGuiTextBuffer_c_str"); + funcTable.Load(455, "ImGuiTextBuffer_append"); + funcTable.Load(456, "ImGuiTextBuffer_appendfv"); + funcTable.Load(457, "ImGuiStoragePair_ImGuiStoragePair_Int"); + funcTable.Load(458, "ImGuiStoragePair_destroy"); + funcTable.Load(459, "ImGuiStoragePair_ImGuiStoragePair_Float"); + funcTable.Load(460, "ImGuiStoragePair_ImGuiStoragePair_Ptr"); + funcTable.Load(461, "ImGuiStorage_Clear"); + funcTable.Load(462, "ImGuiStorage_GetInt"); + funcTable.Load(463, "ImGuiStorage_SetInt"); + funcTable.Load(464, "ImGuiStorage_GetBool"); + funcTable.Load(465, "ImGuiStorage_SetBool"); + funcTable.Load(466, "ImGuiStorage_GetFloat"); + funcTable.Load(467, "ImGuiStorage_SetFloat"); + funcTable.Load(468, "ImGuiStorage_GetVoidPtr"); + funcTable.Load(469, "ImGuiStorage_SetVoidPtr"); + funcTable.Load(470, "ImGuiStorage_GetIntRef"); + funcTable.Load(471, "ImGuiStorage_GetBoolRef"); + funcTable.Load(472, "ImGuiStorage_GetFloatRef"); + funcTable.Load(473, "ImGuiStorage_GetVoidPtrRef"); + funcTable.Load(474, "ImGuiStorage_SetAllInt"); + funcTable.Load(475, "ImGuiStorage_BuildSortByKey"); + funcTable.Load(476, "ImGuiListClipper_ImGuiListClipper"); + funcTable.Load(477, "ImGuiListClipper_destroy"); + funcTable.Load(478, "ImGuiListClipper_Begin"); + funcTable.Load(479, "ImGuiListClipper_End"); + funcTable.Load(480, "ImGuiListClipper_Step"); + funcTable.Load(481, "ImGuiListClipper_ForceDisplayRangeByIndices"); + funcTable.Load(482, "ImColor_ImColor_Nil"); + funcTable.Load(483, "ImColor_destroy"); + funcTable.Load(484, "ImColor_ImColor_Float"); + funcTable.Load(485, "ImColor_ImColor_Vec4"); + funcTable.Load(486, "ImColor_ImColor_Int"); + funcTable.Load(487, "ImColor_ImColor_U32"); + funcTable.Load(488, "ImColor_SetHSV"); + funcTable.Load(489, "ImColor_HSV"); + funcTable.Load(490, "ImDrawCmd_ImDrawCmd"); + funcTable.Load(491, "ImDrawCmd_destroy"); + funcTable.Load(492, "ImDrawCmd_GetTexID"); + funcTable.Load(493, "ImDrawListSplitter_ImDrawListSplitter"); + funcTable.Load(494, "ImDrawListSplitter_destroy"); + funcTable.Load(495, "ImDrawListSplitter_Clear"); + funcTable.Load(496, "ImDrawListSplitter_ClearFreeMemory"); + funcTable.Load(497, "ImDrawListSplitter_Split"); + funcTable.Load(498, "ImDrawListSplitter_Merge"); + funcTable.Load(499, "ImDrawListSplitter_SetCurrentChannel"); + funcTable.Load(500, "ImDrawList_ImDrawList"); + funcTable.Load(501, "ImDrawList_destroy"); + funcTable.Load(502, "ImDrawList_PushClipRect"); + funcTable.Load(503, "ImDrawList_PushClipRectFullScreen"); + funcTable.Load(504, "ImDrawList_PopClipRect"); + funcTable.Load(505, "ImDrawList_PushTextureID"); + funcTable.Load(506, "ImDrawList_PopTextureID"); + funcTable.Load(507, "ImDrawList_GetClipRectMin"); + funcTable.Load(508, "ImDrawList_GetClipRectMax"); + funcTable.Load(509, "ImDrawList_AddLine"); + funcTable.Load(510, "ImDrawList_AddRect"); + funcTable.Load(511, "ImDrawList_AddRectFilled"); + funcTable.Load(512, "ImDrawList_AddRectFilledMultiColor"); + funcTable.Load(513, "ImDrawList_AddQuad"); + funcTable.Load(514, "ImDrawList_AddQuadFilled"); + funcTable.Load(515, "ImDrawList_AddTriangle"); + funcTable.Load(516, "ImDrawList_AddTriangleFilled"); + funcTable.Load(517, "ImDrawList_AddCircle"); + funcTable.Load(518, "ImDrawList_AddCircleFilled"); + funcTable.Load(519, "ImDrawList_AddNgon"); + funcTable.Load(520, "ImDrawList_AddNgonFilled"); + funcTable.Load(521, "ImDrawList_AddText_Vec2"); + funcTable.Load(522, "ImDrawList_AddText_FontPtr"); + funcTable.Load(523, "ImDrawList_AddPolyline"); + funcTable.Load(524, "ImDrawList_AddConvexPolyFilled"); + funcTable.Load(525, "ImDrawList_AddBezierCubic"); + funcTable.Load(526, "ImDrawList_AddBezierQuadratic"); + funcTable.Load(527, "ImDrawList_AddImage"); + funcTable.Load(528, "ImDrawList_AddImageQuad"); + funcTable.Load(529, "ImDrawList_AddImageRounded"); + funcTable.Load(530, "ImDrawList_PathClear"); + funcTable.Load(531, "ImDrawList_PathLineTo"); + funcTable.Load(532, "ImDrawList_PathLineToMergeDuplicate"); + funcTable.Load(533, "ImDrawList_PathFillConvex"); + funcTable.Load(534, "ImDrawList_PathStroke"); + funcTable.Load(535, "ImDrawList_PathArcTo"); + funcTable.Load(536, "ImDrawList_PathArcToFast"); + funcTable.Load(537, "ImDrawList_PathBezierCubicCurveTo"); + funcTable.Load(538, "ImDrawList_PathBezierQuadraticCurveTo"); + funcTable.Load(539, "ImDrawList_PathRect"); + funcTable.Load(540, "ImDrawList_AddCallback"); + funcTable.Load(541, "ImDrawList_AddDrawCmd"); + funcTable.Load(542, "ImDrawList_CloneOutput"); + funcTable.Load(543, "ImDrawList_ChannelsSplit"); + funcTable.Load(544, "ImDrawList_ChannelsMerge"); + funcTable.Load(545, "ImDrawList_ChannelsSetCurrent"); + funcTable.Load(546, "ImDrawList_PrimReserve"); + funcTable.Load(547, "ImDrawList_PrimUnreserve"); + funcTable.Load(548, "ImDrawList_PrimRect"); + funcTable.Load(549, "ImDrawList_PrimRectUV"); + funcTable.Load(550, "ImDrawList_PrimQuadUV"); + funcTable.Load(551, "ImDrawList_PrimWriteVtx"); + funcTable.Load(552, "ImDrawList_PrimWriteIdx"); + funcTable.Load(553, "ImDrawList_PrimVtx"); + funcTable.Load(554, "ImDrawList__ResetForNewFrame"); + funcTable.Load(555, "ImDrawList__ClearFreeMemory"); + funcTable.Load(556, "ImDrawList__PopUnusedDrawCmd"); + funcTable.Load(557, "ImDrawList__TryMergeDrawCmds"); + funcTable.Load(558, "ImDrawList__OnChangedClipRect"); + funcTable.Load(559, "ImDrawList__OnChangedTextureID"); + funcTable.Load(560, "ImDrawList__OnChangedVtxOffset"); + funcTable.Load(561, "ImDrawList__CalcCircleAutoSegmentCount"); + funcTable.Load(562, "ImDrawList__PathArcToFastEx"); + funcTable.Load(563, "ImDrawList__PathArcToN"); + funcTable.Load(564, "ImDrawData_ImDrawData"); + funcTable.Load(565, "ImDrawData_destroy"); + funcTable.Load(566, "ImDrawData_Clear"); + funcTable.Load(567, "ImDrawData_DeIndexAllBuffers"); + funcTable.Load(568, "ImDrawData_ScaleClipRects"); + funcTable.Load(569, "ImFontConfig_ImFontConfig"); + funcTable.Load(570, "ImFontConfig_destroy"); + funcTable.Load(571, "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"); + funcTable.Load(572, "ImFontGlyphRangesBuilder_destroy"); + funcTable.Load(573, "ImFontGlyphRangesBuilder_Clear"); + funcTable.Load(574, "ImFontGlyphRangesBuilder_GetBit"); + funcTable.Load(575, "ImFontGlyphRangesBuilder_SetBit"); + funcTable.Load(576, "ImFontGlyphRangesBuilder_AddChar"); + funcTable.Load(577, "ImFontGlyphRangesBuilder_AddText"); + funcTable.Load(578, "ImFontGlyphRangesBuilder_AddRanges"); + funcTable.Load(579, "ImFontGlyphRangesBuilder_BuildRanges"); + funcTable.Load(580, "ImFontAtlasCustomRect_ImFontAtlasCustomRect"); + funcTable.Load(581, "ImFontAtlasCustomRect_destroy"); + funcTable.Load(582, "ImFontAtlasCustomRect_IsPacked"); + funcTable.Load(583, "ImFontAtlas_ImFontAtlas"); + funcTable.Load(584, "ImFontAtlas_destroy"); + funcTable.Load(585, "ImFontAtlas_AddFont"); + funcTable.Load(586, "ImFontAtlas_AddFontDefault"); + funcTable.Load(587, "ImFontAtlas_AddFontFromFileTTF"); + funcTable.Load(588, "ImFontAtlas_AddFontFromMemoryTTF"); + funcTable.Load(589, "ImFontAtlas_AddFontFromMemoryCompressedTTF"); + funcTable.Load(590, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"); + funcTable.Load(591, "ImFontAtlas_ClearInputData"); + funcTable.Load(592, "ImFontAtlas_ClearTexData"); + funcTable.Load(593, "ImFontAtlas_ClearFonts"); + funcTable.Load(594, "ImFontAtlas_Clear"); + funcTable.Load(595, "ImFontAtlas_Build"); + funcTable.Load(596, "ImFontAtlas_GetTexDataAsAlpha8"); + funcTable.Load(597, "ImFontAtlas_GetTexDataAsRGBA32"); + funcTable.Load(598, "ImFontAtlas_IsBuilt"); + funcTable.Load(599, "ImFontAtlas_SetTexID"); + funcTable.Load(600, "ImFontAtlas_ClearTexID"); + funcTable.Load(601, "ImFontAtlas_GetGlyphRangesDefault"); + funcTable.Load(602, "ImFontAtlas_GetGlyphRangesKorean"); + funcTable.Load(603, "ImFontAtlas_GetGlyphRangesJapanese"); + funcTable.Load(604, "ImFontAtlas_GetGlyphRangesChineseFull"); + funcTable.Load(605, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"); + funcTable.Load(606, "ImFontAtlas_GetGlyphRangesCyrillic"); + funcTable.Load(607, "ImFontAtlas_GetGlyphRangesThai"); + funcTable.Load(608, "ImFontAtlas_GetGlyphRangesVietnamese"); + funcTable.Load(609, "ImFontAtlas_AddCustomRectRegular"); + funcTable.Load(610, "ImFontAtlas_AddCustomRectFontGlyph"); + funcTable.Load(611, "ImFontAtlas_GetCustomRectByIndex"); + funcTable.Load(612, "ImFontAtlas_CalcCustomRectUV"); + funcTable.Load(613, "ImFontAtlas_GetMouseCursorTexData"); + funcTable.Load(614, "ImFont_ImFont"); + funcTable.Load(615, "ImFont_destroy"); + funcTable.Load(616, "ImFont_FindGlyph"); + funcTable.Load(617, "ImFont_FindGlyphNoFallback"); + funcTable.Load(618, "ImFont_GetDistanceAdjustmentForPair"); + funcTable.Load(619, "ImFont_GetCharAdvance"); + funcTable.Load(620, "ImFont_IsLoaded"); + funcTable.Load(621, "ImFont_GetDebugName"); + funcTable.Load(622, "ImFont_CalcTextSizeA"); + funcTable.Load(623, "ImFont_CalcWordWrapPositionA"); + funcTable.Load(624, "ImFont_RenderChar"); + funcTable.Load(625, "ImFont_RenderText"); + funcTable.Load(626, "ImFont_BuildLookupTable"); + funcTable.Load(627, "ImFont_ClearOutputData"); + funcTable.Load(628, "ImFont_GrowIndex"); + funcTable.Load(629, "ImFont_AddGlyph"); + funcTable.Load(630, "ImFont_AddRemapChar"); + funcTable.Load(631, "ImFont_SetGlyphVisible"); + funcTable.Load(632, "ImFont_IsGlyphRangeUnused"); + funcTable.Load(633, "ImFont_AddKerningPair"); + funcTable.Load(634, "ImFont_GetDistanceAdjustmentForPairFromHotData"); + funcTable.Load(635, "ImGuiViewport_ImGuiViewport"); + funcTable.Load(636, "ImGuiViewport_destroy"); + funcTable.Load(637, "ImGuiViewport_GetCenter"); + funcTable.Load(638, "ImGuiViewport_GetWorkCenter"); + funcTable.Load(639, "ImGuiPlatformIO_ImGuiPlatformIO"); + funcTable.Load(640, "ImGuiPlatformIO_destroy"); + funcTable.Load(641, "ImGuiPlatformMonitor_ImGuiPlatformMonitor"); + funcTable.Load(642, "ImGuiPlatformMonitor_destroy"); + funcTable.Load(643, "ImGuiPlatformImeData_ImGuiPlatformImeData"); + funcTable.Load(644, "ImGuiPlatformImeData_destroy"); + funcTable.Load(645, "igGetKeyIndex"); + funcTable.Load(646, "ImVec1_destroy"); + funcTable.Load(647, "ImVec2ih_destroy"); + funcTable.Load(648, "ImRect_destroy"); + funcTable.Load(649, "ImDrawListSharedData_destroy"); + funcTable.Load(650, "ImGuiStyleMod_destroy"); + funcTable.Load(651, "ImGuiComboPreviewData_destroy"); + funcTable.Load(652, "ImGuiMenuColumns_destroy"); + funcTable.Load(653, "ImGuiInputTextState_destroy"); + funcTable.Load(654, "ImGuiPopupData_destroy"); + funcTable.Load(655, "ImGuiNextWindowData_destroy"); + funcTable.Load(656, "ImGuiNextItemData_destroy"); + funcTable.Load(657, "ImGuiLastItemData_destroy"); + 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"); + funcTable.Load(891, "ImGuiWindow_destroy"); + funcTable.Load(892, "ImGuiWindow_GetID_Str"); + funcTable.Load(893, "ImGuiWindow_GetID_Ptr"); + funcTable.Load(894, "ImGuiWindow_GetID_Int"); + funcTable.Load(895, "ImGuiWindow_GetIDFromRectangle"); + funcTable.Load(896, "ImGuiWindow_Rect"); + funcTable.Load(897, "ImGuiWindow_CalcFontSize"); + funcTable.Load(898, "ImGuiWindow_TitleBarHeight"); + funcTable.Load(899, "ImGuiWindow_TitleBarRect"); + funcTable.Load(900, "ImGuiWindow_MenuBarHeight"); + funcTable.Load(901, "ImGuiWindow_MenuBarRect"); + funcTable.Load(902, "ImGuiTabItem_ImGuiTabItem"); + funcTable.Load(903, "ImGuiTabBar_ImGuiTabBar"); + funcTable.Load(904, "ImGuiTabBar_GetTabOrder"); + funcTable.Load(905, "ImGuiTabBar_GetTabName"); + funcTable.Load(906, "ImGuiTableColumn_ImGuiTableColumn"); + funcTable.Load(907, "ImGuiTableInstanceData_ImGuiTableInstanceData"); + funcTable.Load(908, "ImGuiTable_ImGuiTable"); + funcTable.Load(909, "ImGuiTable_destroy"); + funcTable.Load(910, "ImGuiTableTempData_ImGuiTableTempData"); + funcTable.Load(911, "ImGuiTableColumnSettings_ImGuiTableColumnSettings"); + funcTable.Load(912, "ImGuiTableSettings_ImGuiTableSettings"); + funcTable.Load(913, "ImGuiTableSettings_GetColumnSettings"); + funcTable.Load(914, "igGetCurrentWindowRead"); + funcTable.Load(915, "igGetCurrentWindow"); + funcTable.Load(916, "igFindWindowByID"); + funcTable.Load(917, "igFindWindowByName"); + funcTable.Load(918, "igUpdateWindowParentAndRootLinks"); + funcTable.Load(919, "igCalcWindowNextAutoFitSize"); + funcTable.Load(920, "igIsWindowChildOf"); + funcTable.Load(921, "igIsWindowWithinBeginStackOf"); + funcTable.Load(922, "igIsWindowAbove"); + funcTable.Load(923, "igIsWindowNavFocusable"); + funcTable.Load(924, "igSetWindowPos_WindowPtr"); + funcTable.Load(925, "igSetWindowSize_WindowPtr"); + funcTable.Load(926, "igSetWindowCollapsed_WindowPtr"); + funcTable.Load(927, "igSetWindowHitTestHole"); + funcTable.Load(928, "igWindowRectAbsToRel"); + funcTable.Load(929, "igWindowRectRelToAbs"); + funcTable.Load(930, "igFocusWindow"); + funcTable.Load(931, "igFocusTopMostWindowUnderOne"); + funcTable.Load(932, "igBringWindowToFocusFront"); + funcTable.Load(933, "igBringWindowToDisplayFront"); + funcTable.Load(934, "igBringWindowToDisplayBack"); + funcTable.Load(935, "igBringWindowToDisplayBehind"); + funcTable.Load(936, "igFindWindowDisplayIndex"); + funcTable.Load(937, "igFindBottomMostVisibleWindowWithinBeginStack"); + funcTable.Load(938, "igSetCurrentFont"); + funcTable.Load(939, "igGetDefaultFont"); + funcTable.Load(940, "igGetForegroundDrawList_WindowPtr"); + funcTable.Load(941, "igInitialize"); + funcTable.Load(942, "igShutdown"); + funcTable.Load(943, "igUpdateInputEvents"); + funcTable.Load(944, "igUpdateHoveredWindowAndCaptureFlags"); + funcTable.Load(945, "igStartMouseMovingWindow"); + funcTable.Load(946, "igStartMouseMovingWindowOrNode"); + funcTable.Load(947, "igUpdateMouseMovingWindowNewFrame"); + funcTable.Load(948, "igUpdateMouseMovingWindowEndFrame"); + funcTable.Load(949, "igAddContextHook"); + funcTable.Load(950, "igRemoveContextHook"); + funcTable.Load(951, "igCallContextHooks"); + funcTable.Load(952, "igTranslateWindowsInViewport"); + funcTable.Load(953, "igScaleWindowsInViewport"); + funcTable.Load(954, "igDestroyPlatformWindow"); + funcTable.Load(955, "igSetWindowViewport"); + funcTable.Load(956, "igSetCurrentViewport"); + funcTable.Load(957, "igGetViewportPlatformMonitor"); + funcTable.Load(958, "igFindHoveredViewportFromPlatformWindowStack"); + funcTable.Load(959, "igMarkIniSettingsDirty_Nil"); + funcTable.Load(960, "igMarkIniSettingsDirty_WindowPtr"); + funcTable.Load(961, "igClearIniSettings"); + funcTable.Load(962, "igCreateNewWindowSettings"); + funcTable.Load(963, "igFindWindowSettings"); + funcTable.Load(964, "igFindOrCreateWindowSettings"); + funcTable.Load(965, "igAddSettingsHandler"); + funcTable.Load(966, "igRemoveSettingsHandler"); + funcTable.Load(967, "igFindSettingsHandler"); + funcTable.Load(968, "igSetNextWindowScroll"); + funcTable.Load(969, "igSetScrollX_WindowPtr"); + funcTable.Load(970, "igSetScrollY_WindowPtr"); + funcTable.Load(971, "igSetScrollFromPosX_WindowPtr"); + funcTable.Load(972, "igSetScrollFromPosY_WindowPtr"); + funcTable.Load(973, "igScrollToItem"); + funcTable.Load(974, "igScrollToRect"); + funcTable.Load(975, "igScrollToRectEx"); + funcTable.Load(976, "igScrollToBringRectIntoView"); + funcTable.Load(977, "igGetItemID"); + funcTable.Load(978, "igGetItemStatusFlags"); + funcTable.Load(979, "igGetItemFlags"); + funcTable.Load(980, "igGetActiveID"); + funcTable.Load(981, "igGetFocusID"); + funcTable.Load(982, "igSetActiveID"); + funcTable.Load(983, "igSetFocusID"); + funcTable.Load(984, "igClearActiveID"); + funcTable.Load(985, "igGetHoveredID"); + funcTable.Load(986, "igSetHoveredID"); + funcTable.Load(987, "igKeepAliveID"); + funcTable.Load(988, "igMarkItemEdited"); + funcTable.Load(989, "igPushOverrideID"); + funcTable.Load(990, "igGetIDWithSeed"); + funcTable.Load(991, "igItemSize_Vec2"); + funcTable.Load(992, "igItemSize_Rect"); + funcTable.Load(993, "igItemAdd"); + funcTable.Load(994, "igItemHoverable"); + funcTable.Load(995, "igIsClippedEx"); + funcTable.Load(996, "igSetLastItemData"); + funcTable.Load(997, "igCalcItemSize"); + funcTable.Load(998, "igCalcWrapWidthForPos"); + funcTable.Load(999, "igPushMultiItemsWidths"); + funcTable.Load(1000, "igIsItemToggledSelection"); + funcTable.Load(1001, "igGetContentRegionMaxAbs"); + funcTable.Load(1002, "igShrinkWidths"); + funcTable.Load(1003, "igPushItemFlag"); + funcTable.Load(1004, "igPopItemFlag"); + funcTable.Load(1005, "igLogBegin"); + funcTable.Load(1006, "igLogToBuffer"); + funcTable.Load(1007, "igLogRenderedText"); + funcTable.Load(1008, "igLogSetNextTextDecoration"); + funcTable.Load(1009, "igBeginChildEx"); + funcTable.Load(1010, "igOpenPopupEx"); + funcTable.Load(1011, "igClosePopupToLevel"); + funcTable.Load(1012, "igClosePopupsOverWindow"); + funcTable.Load(1013, "igClosePopupsExceptModals"); + funcTable.Load(1014, "igIsPopupOpen_ID"); + funcTable.Load(1015, "igBeginPopupEx"); + funcTable.Load(1016, "igBeginTooltipEx"); + funcTable.Load(1017, "igGetPopupAllowedExtentRect"); + funcTable.Load(1018, "igGetTopMostPopupModal"); + funcTable.Load(1019, "igGetTopMostAndVisiblePopupModal"); + funcTable.Load(1020, "igFindBestWindowPosForPopup"); + funcTable.Load(1021, "igFindBestWindowPosForPopupEx"); + funcTable.Load(1022, "igBeginViewportSideBar"); + funcTable.Load(1023, "igBeginMenuEx"); + funcTable.Load(1024, "igMenuItemEx"); + funcTable.Load(1025, "igBeginComboPopup"); + funcTable.Load(1026, "igBeginComboPreview"); + funcTable.Load(1027, "igEndComboPreview"); + funcTable.Load(1028, "igNavInitWindow"); + funcTable.Load(1029, "igNavInitRequestApplyResult"); + funcTable.Load(1030, "igNavMoveRequestButNoResultYet"); + funcTable.Load(1031, "igNavMoveRequestSubmit"); + funcTable.Load(1032, "igNavMoveRequestForward"); + funcTable.Load(1033, "igNavMoveRequestResolveWithLastItem"); + funcTable.Load(1034, "igNavMoveRequestCancel"); + funcTable.Load(1035, "igNavMoveRequestApplyResult"); + funcTable.Load(1036, "igNavMoveRequestTryWrapping"); + funcTable.Load(1037, "igGetNavInputName"); + funcTable.Load(1038, "igGetNavInputAmount"); + funcTable.Load(1039, "igGetNavInputAmount2d"); + funcTable.Load(1040, "igCalcTypematicRepeatAmount"); + funcTable.Load(1041, "igActivateItem"); + funcTable.Load(1042, "igSetNavWindow"); + funcTable.Load(1043, "igSetNavID"); + funcTable.Load(1044, "igPushFocusScope"); + funcTable.Load(1045, "igPopFocusScope"); + funcTable.Load(1046, "igGetFocusedFocusScope"); + funcTable.Load(1047, "igGetFocusScope"); + funcTable.Load(1048, "igIsNamedKey"); + funcTable.Load(1049, "igIsLegacyKey"); + funcTable.Load(1050, "igIsGamepadKey"); + funcTable.Load(1051, "igGetKeyData"); + funcTable.Load(1052, "igSetItemUsingMouseWheel"); + funcTable.Load(1053, "igSetActiveIdUsingNavAndKeys"); + funcTable.Load(1054, "igIsActiveIdUsingNavDir"); + funcTable.Load(1055, "igIsActiveIdUsingNavInput"); + funcTable.Load(1056, "igIsActiveIdUsingKey"); + funcTable.Load(1057, "igSetActiveIdUsingKey"); + funcTable.Load(1058, "igIsMouseDragPastThreshold"); + funcTable.Load(1059, "igIsNavInputDown"); + funcTable.Load(1060, "igIsNavInputTest"); + funcTable.Load(1061, "igGetMergedModFlags"); + funcTable.Load(1062, "igIsKeyPressedMap"); + funcTable.Load(1063, "igDockContextInitialize"); + funcTable.Load(1064, "igDockContextShutdown"); + funcTable.Load(1065, "igDockContextClearNodes"); + funcTable.Load(1066, "igDockContextRebuildNodes"); + funcTable.Load(1067, "igDockContextNewFrameUpdateUndocking"); + funcTable.Load(1068, "igDockContextNewFrameUpdateDocking"); + funcTable.Load(1069, "igDockContextEndFrame"); + funcTable.Load(1070, "igDockContextGenNodeID"); + funcTable.Load(1071, "igDockContextQueueDock"); + funcTable.Load(1072, "igDockContextQueueUndockWindow"); + funcTable.Load(1073, "igDockContextQueueUndockNode"); + funcTable.Load(1074, "igDockContextCalcDropPosForDocking"); + funcTable.Load(1075, "igDockNodeBeginAmendTabBar"); + funcTable.Load(1076, "igDockNodeEndAmendTabBar"); + funcTable.Load(1077, "igDockNodeGetRootNode"); + funcTable.Load(1078, "igDockNodeIsInHierarchyOf"); + funcTable.Load(1079, "igDockNodeGetDepth"); + funcTable.Load(1080, "igDockNodeGetWindowMenuButtonId"); + funcTable.Load(1081, "igGetWindowDockNode"); + funcTable.Load(1082, "igGetWindowAlwaysWantOwnTabBar"); + funcTable.Load(1083, "igBeginDocked"); + funcTable.Load(1084, "igBeginDockableDragDropSource"); + funcTable.Load(1085, "igBeginDockableDragDropTarget"); + funcTable.Load(1086, "igSetWindowDock"); + funcTable.Load(1087, "igDockBuilderDockWindow"); + funcTable.Load(1088, "igDockBuilderGetNode"); + funcTable.Load(1089, "igDockBuilderGetCentralNode"); + funcTable.Load(1090, "igDockBuilderAddNode"); + funcTable.Load(1091, "igDockBuilderRemoveNode"); + funcTable.Load(1092, "igDockBuilderRemoveNodeDockedWindows"); + funcTable.Load(1093, "igDockBuilderRemoveNodeChildNodes"); + funcTable.Load(1094, "igDockBuilderSetNodePos"); + funcTable.Load(1095, "igDockBuilderSetNodeSize"); + funcTable.Load(1096, "igDockBuilderSplitNode"); + funcTable.Load(1097, "igDockBuilderCopyDockSpace"); + funcTable.Load(1098, "igDockBuilderCopyNode"); + funcTable.Load(1099, "igDockBuilderCopyWindowSettings"); + funcTable.Load(1100, "igDockBuilderFinish"); + funcTable.Load(1101, "igIsDragDropActive"); + funcTable.Load(1102, "igBeginDragDropTargetCustom"); + funcTable.Load(1103, "igClearDragDrop"); + funcTable.Load(1104, "igIsDragDropPayloadBeingAccepted"); + funcTable.Load(1105, "igSetWindowClipRectBeforeSetChannel"); + funcTable.Load(1106, "igBeginColumns"); + funcTable.Load(1107, "igEndColumns"); + funcTable.Load(1108, "igPushColumnClipRect"); + funcTable.Load(1109, "igPushColumnsBackground"); + funcTable.Load(1110, "igPopColumnsBackground"); + funcTable.Load(1111, "igGetColumnsID"); + funcTable.Load(1112, "igFindOrCreateColumns"); + funcTable.Load(1113, "igGetColumnOffsetFromNorm"); + funcTable.Load(1114, "igGetColumnNormFromOffset"); + funcTable.Load(1115, "igTableOpenContextMenu"); + funcTable.Load(1116, "igTableSetColumnWidth"); + funcTable.Load(1117, "igTableSetColumnSortDirection"); + funcTable.Load(1118, "igTableGetHoveredColumn"); + funcTable.Load(1119, "igTableGetHeaderRowHeight"); + funcTable.Load(1120, "igTablePushBackgroundChannel"); + funcTable.Load(1121, "igTablePopBackgroundChannel"); + funcTable.Load(1122, "igGetCurrentTable"); + funcTable.Load(1123, "igTableFindByID"); + funcTable.Load(1124, "igBeginTableEx"); + funcTable.Load(1125, "igTableBeginInitMemory"); + funcTable.Load(1126, "igTableBeginApplyRequests"); + funcTable.Load(1127, "igTableSetupDrawChannels"); + funcTable.Load(1128, "igTableUpdateLayout"); + funcTable.Load(1129, "igTableUpdateBorders"); + funcTable.Load(1130, "igTableUpdateColumnsWeightFromWidth"); + funcTable.Load(1131, "igTableDrawBorders"); + funcTable.Load(1132, "igTableDrawContextMenu"); + funcTable.Load(1133, "igTableMergeDrawChannels"); + funcTable.Load(1134, "igTableGetInstanceData"); + funcTable.Load(1135, "igTableSortSpecsSanitize"); + funcTable.Load(1136, "igTableSortSpecsBuild"); + funcTable.Load(1137, "igTableGetColumnNextSortDirection"); + funcTable.Load(1138, "igTableFixColumnSortDirection"); + funcTable.Load(1139, "igTableGetColumnWidthAuto"); + funcTable.Load(1140, "igTableBeginRow"); + funcTable.Load(1141, "igTableEndRow"); + funcTable.Load(1142, "igTableBeginCell"); + funcTable.Load(1143, "igTableEndCell"); + funcTable.Load(1144, "igTableGetCellBgRect"); + funcTable.Load(1145, "igTableGetColumnName_TablePtr"); + funcTable.Load(1146, "igTableGetColumnResizeID"); + funcTable.Load(1147, "igTableGetMaxColumnWidth"); + funcTable.Load(1148, "igTableSetColumnWidthAutoSingle"); + funcTable.Load(1149, "igTableSetColumnWidthAutoAll"); + funcTable.Load(1150, "igTableRemove"); + funcTable.Load(1151, "igTableGcCompactTransientBuffers_TablePtr"); + funcTable.Load(1152, "igTableGcCompactTransientBuffers_TableTempDataPtr"); + funcTable.Load(1153, "igTableGcCompactSettings"); + funcTable.Load(1154, "igTableLoadSettings"); + funcTable.Load(1155, "igTableSaveSettings"); + funcTable.Load(1156, "igTableResetSettings"); + funcTable.Load(1157, "igTableGetBoundSettings"); + funcTable.Load(1158, "igTableSettingsAddSettingsHandler"); + funcTable.Load(1159, "igTableSettingsCreate"); + funcTable.Load(1160, "igTableSettingsFindByID"); + funcTable.Load(1161, "igBeginTabBarEx"); + funcTable.Load(1162, "igTabBarFindTabByID"); + funcTable.Load(1163, "igTabBarFindMostRecentlySelectedTabForActiveWindow"); + funcTable.Load(1164, "igTabBarAddTab"); + funcTable.Load(1165, "igTabBarRemoveTab"); + funcTable.Load(1166, "igTabBarCloseTab"); + funcTable.Load(1167, "igTabBarQueueReorder"); + funcTable.Load(1168, "igTabBarQueueReorderFromMousePos"); + funcTable.Load(1169, "igTabBarProcessReorder"); + funcTable.Load(1170, "igTabItemEx"); + funcTable.Load(1171, "igTabItemCalcSize"); + funcTable.Load(1172, "igTabItemBackground"); + funcTable.Load(1173, "igTabItemLabelAndCloseButton"); + funcTable.Load(1174, "igRenderText"); + funcTable.Load(1175, "igRenderTextWrapped"); + funcTable.Load(1176, "igRenderTextClipped"); + funcTable.Load(1177, "igRenderTextClippedEx"); + funcTable.Load(1178, "igRenderTextEllipsis"); + funcTable.Load(1179, "igRenderFrame"); + funcTable.Load(1180, "igRenderFrameBorder"); + funcTable.Load(1181, "igRenderColorRectWithAlphaCheckerboard"); + funcTable.Load(1182, "igRenderNavHighlight"); + funcTable.Load(1183, "igFindRenderedTextEnd"); + funcTable.Load(1184, "igRenderMouseCursor"); + funcTable.Load(1185, "igRenderArrow"); + funcTable.Load(1186, "igRenderBullet"); + funcTable.Load(1187, "igRenderCheckMark"); + funcTable.Load(1188, "igRenderArrowPointingAt"); + funcTable.Load(1189, "igRenderArrowDockMenu"); + funcTable.Load(1190, "igRenderRectFilledRangeH"); + funcTable.Load(1191, "igRenderRectFilledWithHole"); + funcTable.Load(1192, "igCalcRoundingFlagsForRectInRect"); + funcTable.Load(1193, "igTextEx"); + funcTable.Load(1194, "igButtonEx"); + funcTable.Load(1195, "igCloseButton"); + funcTable.Load(1196, "igCollapseButton"); + funcTable.Load(1197, "igArrowButtonEx"); + funcTable.Load(1198, "igScrollbar"); + funcTable.Load(1199, "igScrollbarEx"); + funcTable.Load(1200, "igImageButtonEx"); + funcTable.Load(1201, "igGetWindowScrollbarRect"); + funcTable.Load(1202, "igGetWindowScrollbarID"); + funcTable.Load(1203, "igGetWindowResizeCornerID"); + funcTable.Load(1204, "igGetWindowResizeBorderID"); + funcTable.Load(1205, "igSeparatorEx"); + funcTable.Load(1206, "igCheckboxFlags_S64Ptr"); + funcTable.Load(1207, "igCheckboxFlags_U64Ptr"); + funcTable.Load(1208, "igButtonBehavior"); + funcTable.Load(1209, "igDragBehavior"); + funcTable.Load(1210, "igSliderBehavior"); + funcTable.Load(1211, "igSplitterBehavior"); + funcTable.Load(1212, "igTreeNodeBehavior"); + funcTable.Load(1213, "igTreeNodeBehaviorIsOpen"); + funcTable.Load(1214, "igTreePushOverrideID"); + funcTable.Load(1215, "igDataTypeGetInfo"); + funcTable.Load(1216, "igDataTypeApplyOp"); + funcTable.Load(1217, "igDataTypeApplyFromText"); + funcTable.Load(1218, "igDataTypeCompare"); + funcTable.Load(1219, "igDataTypeClamp"); + funcTable.Load(1220, "igTempInputScalar"); + funcTable.Load(1221, "igTempInputIsActive"); + funcTable.Load(1222, "igGetInputTextState"); + funcTable.Load(1223, "igCustom_StbTextMakeUndoReplace"); + funcTable.Load(1224, "igCustom_StbTextUndo"); + funcTable.Load(1225, "igColorTooltip"); + funcTable.Load(1226, "igColorEditOptionsPopup"); + funcTable.Load(1227, "igColorPickerOptionsPopup"); + funcTable.Load(1228, "igPlotEx"); + funcTable.Load(1229, "igShadeVertsLinearColorGradientKeepAlpha"); + funcTable.Load(1230, "igShadeVertsLinearUV"); + funcTable.Load(1231, "igGcCompactTransientMiscBuffers"); + funcTable.Load(1232, "igGcCompactTransientWindowBuffers"); + funcTable.Load(1233, "igGcAwakeTransientWindowBuffers"); + funcTable.Load(1234, "igDebugLog"); + funcTable.Load(1235, "igDebugLogV"); + funcTable.Load(1236, "igErrorCheckEndFrameRecover"); + funcTable.Load(1237, "igErrorCheckEndWindowRecover"); + funcTable.Load(1238, "igDebugDrawItemRect"); + funcTable.Load(1239, "igDebugStartItemPicker"); + funcTable.Load(1240, "igShowFontAtlas"); + funcTable.Load(1241, "igDebugHookIdInfo"); + funcTable.Load(1242, "igDebugNodeColumns"); + funcTable.Load(1243, "igDebugNodeDockNode"); + funcTable.Load(1244, "igDebugNodeDrawList"); + funcTable.Load(1245, "igDebugNodeDrawCmdShowMeshAndBoundingBox"); + funcTable.Load(1246, "igDebugNodeFont"); + funcTable.Load(1247, "igDebugNodeFontGlyph"); + funcTable.Load(1248, "igDebugNodeStorage"); + funcTable.Load(1249, "igDebugNodeTabBar"); + funcTable.Load(1250, "igDebugNodeTable"); + funcTable.Load(1251, "igDebugNodeTableSettings"); + funcTable.Load(1252, "igDebugNodeInputTextState"); + funcTable.Load(1253, "igDebugNodeWindow"); + funcTable.Load(1254, "igDebugNodeWindowSettings"); + funcTable.Load(1255, "igDebugNodeWindowsList"); + funcTable.Load(1256, "igDebugNodeWindowsListByBeginStackParent"); + funcTable.Load(1257, "igDebugNodeViewport"); + funcTable.Load(1258, "igDebugRenderViewportThumbnail"); + funcTable.Load(1259, "igImFontAtlasGetBuilderForStbTruetype"); + funcTable.Load(1260, "igImFontAtlasBuildInit"); + funcTable.Load(1261, "igImFontAtlasBuildSetupFont"); + funcTable.Load(1262, "igImFontAtlasBuildPackCustomRects"); + funcTable.Load(1263, "igImFontAtlasBuildFinish"); + funcTable.Load(1264, "igImFontAtlasBuildRender8bppRectFromString"); + funcTable.Load(1265, "igImFontAtlasBuildRender32bppRectFromString"); + funcTable.Load(1266, "igImFontAtlasBuildMultiplyCalcLookupTable"); + funcTable.Load(1267, "igImFontAtlasBuildMultiplyRectAlpha8"); + funcTable.Load(1268, "igInputText"); + funcTable.Load(1269, "igInputTextMultiline"); + funcTable.Load(1270, "igInputTextWithHint"); + funcTable.Load(1271, "igImFormatString"); + funcTable.Load(1272, "igImFormatStringV"); + funcTable.Load(1273, "igImParseFormatTrimDecorations"); + funcTable.Load(1274, "igImTextStrToUtf8"); + funcTable.Load(1275, "igImTextStrFromUtf8"); + funcTable.Load(1276, "igDataTypeFormatString"); + funcTable.Load(1277, "igInputTextEx"); + funcTable.Load(1278, "igTempInputText"); + } + + public static void FreeApi() + { + funcTable.Free(); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs new file mode 100644 index 000000000..e621892ee --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Vector2* ImVec2Native() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[0])(); + #else + return (Vector2*)((delegate* unmanaged[Cdecl])funcTable[0])(); + #endif + } + + /// + /// To be documented. + /// + public static Vector2* ImVec2() + { + Vector2* ret = ImVec2Native(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(Vector2* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[1])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(Vector2* self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref Vector2 self) + { + fixed (Vector2* pself = &self) + { + DestroyNative((Vector2*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Vector2* ImVec2Native(float x, float y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[2])(x, y); + #else + return (Vector2*)((delegate* unmanaged[Cdecl])funcTable[2])(x, y); + #endif + } + + /// + /// To be documented. + /// + public static Vector2* ImVec2(float x, float y) + { + Vector2* ret = ImVec2Native(x, y); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Vector4* ImVec4Native() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[3])(); + #else + return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[3])(); + #endif + } + + /// + /// To be documented. + /// + public static Vector4* ImVec4() + { + Vector4* ret = ImVec4Native(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(Vector4* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[4])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[4])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(Vector4* self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref Vector4 self) + { + fixed (Vector4* pself = &self) + { + DestroyNative((Vector4*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Vector4* ImVec4Native(float x, float y, float z, float w) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[5])(x, y, z, w); + #else + return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[5])(x, y, z, w); + #endif + } + + /// + /// To be documented. + /// + public static Vector4* ImVec4(float x, float y, float z, float w) + { + Vector4* ret = ImVec4Native(x, y, z, w); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiContext* CreateContextNative(ImFontAtlas* sharedFontAtlas) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[6])(sharedFontAtlas); + #else + return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[6])((nint)sharedFontAtlas); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr CreateContext(ImFontAtlasPtr sharedFontAtlas) + { + ImGuiContextPtr ret = CreateContextNative(sharedFontAtlas); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr CreateContext() + { + ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr CreateContext(ref ImFontAtlas sharedFontAtlas) + { + fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) + { + ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)psharedFontAtlas); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyContextNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[7])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[7])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DestroyContext(ImGuiContextPtr ctx) + { + DestroyContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void DestroyContext() + { + DestroyContextNative((ImGuiContext*)(default)); + } + + /// + /// To be documented. + /// + public static void DestroyContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DestroyContextNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiContext* GetCurrentContextNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[8])(); + #else + return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[8])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr GetCurrentContext() + { + ImGuiContextPtr ret = GetCurrentContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCurrentContextNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[9])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[9])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void SetCurrentContext(ImGuiContextPtr ctx) + { + SetCurrentContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void SetCurrentContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + SetCurrentContextNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiIO* GetIONative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[10])(); + #else + return (ImGuiIO*)((delegate* unmanaged[Cdecl])funcTable[10])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiIOPtr GetIO() + { + ImGuiIOPtr ret = GetIONative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStyle* GetStyleNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[11])(); + #else + return (ImGuiStyle*)((delegate* unmanaged[Cdecl])funcTable[11])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStylePtr GetStyle() + { + ImGuiStylePtr ret = GetStyleNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NewFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[12])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[12])(); + #endif + } + + /// + /// To be documented. + /// + public static void NewFrame() + { + NewFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[13])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[13])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndFrame() + { + EndFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[14])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[14])(); + #endif + } + + /// + /// To be documented. + /// + public static void Render() + { + RenderNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawData* GetDrawDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[15])(); + #else + return (ImDrawData*)((delegate* unmanaged[Cdecl])funcTable[15])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawDataPtr GetDrawData() + { + ImDrawDataPtr ret = GetDrawDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowDemoWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[16])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[16])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowDemoWindow(bool* pOpen) + { + ShowDemoWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowDemoWindow() + { + ShowDemoWindowNative((bool*)(default)); + } + + /// + /// 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 void ShowMetricsWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[17])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[17])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow(bool* pOpen) + { + ShowMetricsWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow() + { + ShowMetricsWindowNative((bool*)(default)); + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ShowMetricsWindowNative((bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowDebugLogWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[18])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[18])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowDebugLogWindow(bool* pOpen) + { + ShowDebugLogWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowDebugLogWindow() + { + ShowDebugLogWindowNative((bool*)(default)); + } + + /// + /// To be documented. + /// + public static void ShowDebugLogWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ShowDebugLogWindowNative((bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowStackToolWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[19])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[19])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowStackToolWindow(bool* pOpen) + { + ShowStackToolWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowStackToolWindow() + { + ShowStackToolWindowNative((bool*)(default)); + } + + /// + /// To be documented. + /// + public static void ShowStackToolWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ShowStackToolWindowNative((bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowAboutWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[20])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[20])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowAboutWindow(bool* pOpen) + { + ShowAboutWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowAboutWindow() + { + ShowAboutWindowNative((bool*)(default)); + } + + /// + /// To be documented. + /// + public static void ShowAboutWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ShowAboutWindowNative((bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowStyleEditorNative(ImGuiStyle* reference) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[21])(reference); + #else + ((delegate* unmanaged[Cdecl])funcTable[21])((nint)reference); + #endif + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor(ImGuiStylePtr reference) + { + ShowStyleEditorNative(reference); + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor() + { + ShowStyleEditorNative((ImGuiStyle*)(default)); + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor(ref ImGuiStyle reference) + { + fixed (ImGuiStyle* preference = &reference) + { + ShowStyleEditorNative((ImGuiStyle*)preference); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowStyleSelectorNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[22])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[22])((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 void ShowFontSelectorNative(byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[23])(label); + #else + ((delegate* unmanaged[Cdecl])funcTable[23])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void ShowFontSelector(byte* label) + { + ShowFontSelectorNative(label); + } + + /// + /// To be documented. + /// + public static void ShowFontSelector(ref byte label) + { + fixed (byte* plabel = &label) + { + ShowFontSelectorNative((byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void ShowFontSelector(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + ShowFontSelectorNative((byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void ShowFontSelector(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; + } + ShowFontSelectorNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowUserGuideNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[24])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[24])(); + #endif + } + + /// + /// To be documented. + /// + public static void ShowUserGuide() + { + ShowUserGuideNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetVersionNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[25])(); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[25])(); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetVersion() + { + byte* ret = GetVersionNative(); + return ret; + } + + /// + /// To be documented. + /// + public static string GetVersionS() + { + string ret = Utils.DecodeStringUTF8(GetVersionNative()); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsDarkNative(ImGuiStyle* dst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[26])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[26])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void StyleColorsDark(ImGuiStylePtr dst) + { + StyleColorsDarkNative(dst); + } + + /// + /// To be documented. + /// + public static void StyleColorsDark() + { + StyleColorsDarkNative((ImGuiStyle*)(default)); + } + + /// + /// To be documented. + /// + public static void StyleColorsDark(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + StyleColorsDarkNative((ImGuiStyle*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsLightNative(ImGuiStyle* dst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[27])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[27])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void StyleColorsLight(ImGuiStylePtr dst) + { + StyleColorsLightNative(dst); + } + + /// + /// To be documented. + /// + public static void StyleColorsLight() + { + StyleColorsLightNative((ImGuiStyle*)(default)); + } + + /// + /// To be documented. + /// + public static void StyleColorsLight(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + StyleColorsLightNative((ImGuiStyle*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsClassicNative(ImGuiStyle* dst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[28])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[28])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void StyleColorsClassic(ImGuiStylePtr dst) + { + StyleColorsClassicNative(dst); + } + + /// + /// To be documented. + /// + public static void StyleColorsClassic() + { + StyleColorsClassicNative((ImGuiStyle*)(default)); + } + + /// + /// To be documented. + /// + public static void StyleColorsClassic(ref ImGuiStyle dst) + { + fixed (ImGuiStyle* pdst = &dst) + { + StyleColorsClassicNative((ImGuiStyle*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[29])(name, pOpen, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[29])((nint)name, (nint)pOpen, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + byte ret = BeginNative(name, pOpen, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name, bool* pOpen) + { + byte ret = BeginNative(name, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name) + { + byte ret = BeginNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name, ImGuiWindowFlags flags) + { + byte ret = BeginNative(name, (bool*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name, bool* pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginNative((byte*)pname, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name, bool* pOpen) + { + fixed (byte* pname = &name) + { + byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name) + { + fixed (byte* pname = &name) + { + byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginNative((byte*)pname, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name, bool* pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginNative((byte*)pname, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name, bool* pOpen) + { + fixed (byte* pname = name) + { + byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginNative((byte*)pname, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(string name, bool* pOpen, ImGuiWindowFlags 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 = BeginNative(pStr0, pOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(string name, bool* pOpen) + { + 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 = BeginNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(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; + } + byte ret = BeginNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(string name, ImGuiWindowFlags 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 = BeginNative(pStr0, (bool*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative(name, (bool*)ppOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(byte* name, ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Begin(ref byte name, ref bool pOpen) + { + fixed (byte* pname = &name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Begin(ReadOnlySpan name, ref bool pOpen) + { + fixed (byte* pname = name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Begin(string name, ref bool pOpen, ImGuiWindowFlags 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; + } + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginNative(pStr0, (bool*)ppOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Begin(string name, ref bool pOpen) + { + 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 (bool* ppOpen = &pOpen) + { + byte ret = BeginNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[30])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[30])(); + #endif + } + + /// + /// To be documented. + /// + public static void End() + { + EndNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginChildNative(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[31])(strId, size, border, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[31])((nint)strId, size, border, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, Vector2 size, bool border, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, Vector2 size, bool border) + { + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, Vector2 size) + { + byte ret = BeginChildNative(strId, size, (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, bool border) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, Vector2 size, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(strId, size, (byte)(0), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(byte* strId, bool border, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, Vector2 size, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, Vector2 size, bool border) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, Vector2 size) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, bool border) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, Vector2 size, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ref byte strId, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, Vector2 size, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, Vector2 size, bool border) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, Vector2 size) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, bool border) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, Vector2 size, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(ReadOnlySpan strId, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, Vector2 size, bool border, ImGuiWindowFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, Vector2 size, bool border) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, size, (byte)(0), (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, bool border) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, Vector2 size, ImGuiWindowFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, size, (byte)(0), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, ImGuiWindowFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(string strId, bool border, ImGuiWindowFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginChildNative(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[32])(id, size, border, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[32])(id, size, border, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, Vector2 size, bool border, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, Vector2 size, bool border) + { + byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, Vector2 size) + { + byte ret = BeginChildNative(id, size, (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id) + { + byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, bool border) + { + byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, Vector2 size, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(id, size, (byte)(0), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChild(uint id, bool border, ImGuiWindowFlags flags) + { + byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndChildNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[33])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[33])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndChild() + { + EndChildNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowAppearingNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[34])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[34])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowAppearing() + { + byte ret = IsWindowAppearingNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowCollapsedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[35])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[35])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowCollapsed() + { + byte ret = IsWindowCollapsedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowFocusedNative(ImGuiFocusedFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[36])(flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[36])(flags); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowFocused(ImGuiFocusedFlags flags) + { + byte ret = IsWindowFocusedNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowFocused() + { + byte ret = IsWindowFocusedNative((ImGuiFocusedFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowHoveredNative(ImGuiHoveredFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[37])(flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[37])(flags); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowHovered(ImGuiHoveredFlags flags) + { + byte ret = IsWindowHoveredNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowHovered() + { + byte ret = IsWindowHoveredNative((ImGuiHoveredFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetWindowDrawListNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[38])(); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[38])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetWindowDrawList() + { + ImDrawListPtr ret = GetWindowDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetWindowDpiScaleNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[39])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[39])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetWindowDpiScale() + { + float ret = GetWindowDpiScaleNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWindowPosNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[40])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[40])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetWindowPos() + { + Vector2 ret; + GetWindowPosNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWindowPos(Vector2* pOut) + { + GetWindowPosNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetWindowPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetWindowPosNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWindowSizeNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[41])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[41])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetWindowSize() + { + Vector2 ret; + GetWindowSizeNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWindowSize(Vector2* pOut) + { + GetWindowSizeNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetWindowSize(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetWindowSizeNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetWindowWidthNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[42])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[42])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetWindowWidth() + { + float ret = GetWindowWidthNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetWindowHeightNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[43])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[43])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetWindowHeight() + { + float ret = GetWindowHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewport* GetWindowViewportNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[44])(); + #else + return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[44])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPtr GetWindowViewport() + { + ImGuiViewportPtr ret = GetWindowViewportNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowPosNative(Vector2 pos, ImGuiCond cond, Vector2 pivot) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[45])(pos, cond, pivot); + #else + ((delegate* unmanaged[Cdecl])funcTable[45])(pos, cond, pivot); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) + { + SetNextWindowPosNative(pos, cond, pivot); + } + + /// + /// To be documented. + /// + public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond) + { + SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void SetNextWindowPos(Vector2 pos) + { + SetNextWindowPosNative(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void SetNextWindowPos(Vector2 pos, Vector2 pivot) + { + SetNextWindowPosNative(pos, (ImGuiCond)(0), pivot); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowSizeNative(Vector2 size, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[46])(size, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[46])(size, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) + { + SetNextWindowSizeNative(size, cond); + } + + /// + /// To be documented. + /// + public static void SetNextWindowSize(Vector2 size) + { + SetNextWindowSizeNative(size, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowSizeConstraintsNative(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[47])(sizeMin, sizeMax, (delegate*)Utils.GetFunctionPointerForDelegate(customCallback), customCallbackData); + #else + ((delegate* unmanaged[Cdecl])funcTable[47])(sizeMin, sizeMax, (nint)Utils.GetFunctionPointerForDelegate(customCallback), (nint)customCallbackData); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); + } + + /// + /// To be documented. + /// + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); + } + + /// + /// To be documented. + /// + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); + } + + /// + /// To be documented. + /// + public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowContentSizeNative(Vector2 size) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[48])(size); + #else + ((delegate* unmanaged[Cdecl])funcTable[48])(size); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowContentSize(Vector2 size) + { + SetNextWindowContentSizeNative(size); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowCollapsedNative(byte collapsed, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[49])(collapsed, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[49])(collapsed, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) + { + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void SetNextWindowCollapsed(bool collapsed) + { + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowFocusNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[50])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[50])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowFocus() + { + SetNextWindowFocusNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowBgAlphaNative(float alpha) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[51])(alpha); + #else + ((delegate* unmanaged[Cdecl])funcTable[51])(alpha); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowBgAlpha(float alpha) + { + SetNextWindowBgAlphaNative(alpha); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowViewportNative(uint viewportId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[52])(viewportId); + #else + ((delegate* unmanaged[Cdecl])funcTable[52])(viewportId); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowViewport(uint viewportId) + { + SetNextWindowViewportNative(viewportId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowPosNative(Vector2 pos, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[53])(pos, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[53])(pos, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowPos(Vector2 pos, ImGuiCond cond) + { + SetWindowPosNative(pos, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowPos(Vector2 pos) + { + SetWindowPosNative(pos, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowSizeNative(Vector2 size, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[54])(size, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[54])(size, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowSize(Vector2 size, ImGuiCond cond) + { + SetWindowSizeNative(size, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowSize(Vector2 size) + { + SetWindowSizeNative(size, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowCollapsedNative(byte collapsed, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[55])(collapsed, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[55])(collapsed, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond) + { + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(bool collapsed) + { + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowFocusNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[56])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[56])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowFocus() + { + SetWindowFocusNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowFontScaleNative(float scale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[57])(scale); + #else + ((delegate* unmanaged[Cdecl])funcTable[57])(scale); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowFontScale(float scale) + { + SetWindowFontScaleNative(scale); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowPosNative(byte* name, Vector2 pos, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[58])(name, pos, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[58])((nint)name, pos, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowPos(byte* name, Vector2 pos, ImGuiCond cond) + { + SetWindowPosNative(name, pos, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowPos(byte* name, Vector2 pos) + { + SetWindowPosNative(name, pos, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ref byte name, Vector2 pos, ImGuiCond cond) + { + fixed (byte* pname = &name) + { + SetWindowPosNative((byte*)pname, pos, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ref byte name, Vector2 pos) + { + fixed (byte* pname = &name) + { + SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ReadOnlySpan name, Vector2 pos, ImGuiCond cond) + { + fixed (byte* pname = name) + { + SetWindowPosNative((byte*)pname, pos, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ReadOnlySpan name, Vector2 pos) + { + fixed (byte* pname = name) + { + SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(string name, Vector2 pos, ImGuiCond cond) + { + 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; + } + SetWindowPosNative(pStr0, pos, cond); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(string name, Vector2 pos) + { + 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; + } + SetWindowPosNative(pStr0, pos, (ImGuiCond)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowSizeNative(byte* name, Vector2 size, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[59])(name, size, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[59])((nint)name, size, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowSize(byte* name, Vector2 size, ImGuiCond cond) + { + SetWindowSizeNative(name, size, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowSize(byte* name, Vector2 size) + { + SetWindowSizeNative(name, size, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ref byte name, Vector2 size, ImGuiCond cond) + { + fixed (byte* pname = &name) + { + SetWindowSizeNative((byte*)pname, size, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ref byte name, Vector2 size) + { + fixed (byte* pname = &name) + { + SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ReadOnlySpan name, Vector2 size, ImGuiCond cond) + { + fixed (byte* pname = name) + { + SetWindowSizeNative((byte*)pname, size, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ReadOnlySpan name, Vector2 size) + { + fixed (byte* pname = name) + { + SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(string name, Vector2 size, ImGuiCond cond) + { + 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; + } + SetWindowSizeNative(pStr0, size, cond); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(string name, Vector2 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; + } + SetWindowSizeNative(pStr0, size, (ImGuiCond)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowCollapsedNative(byte* name, byte collapsed, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[60])(name, collapsed, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[60])((nint)name, collapsed, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(byte* name, bool collapsed, ImGuiCond cond) + { + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(byte* name, bool collapsed) + { + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ref byte name, bool collapsed, ImGuiCond cond) + { + fixed (byte* pname = &name) + { + SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ref byte name, bool collapsed) + { + fixed (byte* pname = &name) + { + SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ReadOnlySpan name, bool collapsed, ImGuiCond cond) + { + fixed (byte* pname = name) + { + SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ReadOnlySpan name, bool collapsed) + { + fixed (byte* pname = name) + { + SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(string name, bool collapsed, ImGuiCond cond) + { + 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; + } + SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, cond); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(string name, bool collapsed) + { + 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; + } + SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowFocusNative(byte* name) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[61])(name); + #else + ((delegate* unmanaged[Cdecl])funcTable[61])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowFocus(byte* name) + { + SetWindowFocusNative(name); + } + + /// + /// To be documented. + /// + public static void SetWindowFocus(ref byte name) + { + fixed (byte* pname = &name) + { + SetWindowFocusNative((byte*)pname); + } + } + + /// + /// To be documented. + /// + public static void SetWindowFocus(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + SetWindowFocusNative((byte*)pname); + } + } + + /// + /// To be documented. + /// + public static void SetWindowFocus(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; + } + SetWindowFocusNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetContentRegionAvailNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[62])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[62])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetContentRegionAvail() + { + Vector2 ret; + GetContentRegionAvailNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetContentRegionAvail(Vector2* pOut) + { + GetContentRegionAvailNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetContentRegionAvail(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetContentRegionAvailNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetContentRegionMaxNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[63])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[63])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetContentRegionMax() + { + Vector2 ret; + GetContentRegionMaxNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetContentRegionMax(Vector2* pOut) + { + GetContentRegionMaxNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetContentRegionMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetContentRegionMaxNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWindowContentRegionMinNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[64])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[64])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetWindowContentRegionMin() + { + Vector2 ret; + GetWindowContentRegionMinNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWindowContentRegionMin(Vector2* pOut) + { + GetWindowContentRegionMinNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetWindowContentRegionMin(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetWindowContentRegionMinNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWindowContentRegionMaxNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[65])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[65])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetWindowContentRegionMax() + { + Vector2 ret; + GetWindowContentRegionMaxNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWindowContentRegionMax(Vector2* pOut) + { + GetWindowContentRegionMaxNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetWindowContentRegionMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetWindowContentRegionMaxNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetScrollXNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[66])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[66])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetScrollX() + { + float ret = GetScrollXNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetScrollYNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[67])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[67])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetScrollY() + { + float ret = GetScrollYNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollXNative(float scrollX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[68])(scrollX); + #else + ((delegate* unmanaged[Cdecl])funcTable[68])(scrollX); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollX(float scrollX) + { + SetScrollXNative(scrollX); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollYNative(float scrollY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[69])(scrollY); + #else + ((delegate* unmanaged[Cdecl])funcTable[69])(scrollY); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollY(float scrollY) + { + SetScrollYNative(scrollY); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetScrollMaxXNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[70])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[70])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetScrollMaxX() + { + float ret = GetScrollMaxXNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetScrollMaxYNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[71])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[71])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetScrollMaxY() + { + float ret = GetScrollMaxYNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollHereXNative(float centerXRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[72])(centerXRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[72])(centerXRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollHereX(float centerXRatio) + { + SetScrollHereXNative(centerXRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollHereX() + { + SetScrollHereXNative((float)(0.5f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollHereYNative(float centerYRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[73])(centerYRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[73])(centerYRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollHereY(float centerYRatio) + { + SetScrollHereYNative(centerYRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollHereY() + { + SetScrollHereYNative((float)(0.5f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollFromPosXNative(float localX, float centerXRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[74])(localX, centerXRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[74])(localX, centerXRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosX(float localX, float centerXRatio) + { + SetScrollFromPosXNative(localX, centerXRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosX(float localX) + { + SetScrollFromPosXNative(localX, (float)(0.5f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollFromPosYNative(float localY, float centerYRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[75])(localY, centerYRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[75])(localY, centerYRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosY(float localY, float centerYRatio) + { + SetScrollFromPosYNative(localY, centerYRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosY(float localY) + { + SetScrollFromPosYNative(localY, (float)(0.5f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushFontNative(ImFont* font) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[76])(font); + #else + ((delegate* unmanaged[Cdecl])funcTable[76])((nint)font); + #endif + } + + /// + /// To be documented. + /// + public static void PushFont(ImFontPtr font) + { + PushFontNative(font); + } + + /// + /// To be documented. + /// + public static void PushFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + PushFontNative((ImFont*)pfont); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopFontNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[77])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[77])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopFont() + { + PopFontNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleColorNative(ImGuiCol idx, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[78])(idx, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[78])(idx, col); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleColor(ImGuiCol idx, uint col) + { + PushStyleColorNative(idx, col); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleColorNative(ImGuiCol idx, Vector4 col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[79])(idx, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[79])(idx, col); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleColor(ImGuiCol 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[80])(count); + #else + ((delegate* unmanaged[Cdecl])funcTable[80])(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(ImGuiStyleVar idx, float val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[81])(idx, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[81])(idx, val); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleVar(ImGuiStyleVar idx, float val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleVarNative(ImGuiStyleVar idx, Vector2 val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[82])(idx, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[82])(idx, val); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleVar(ImGuiStyleVar 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[83])(count); + #else + ((delegate* unmanaged[Cdecl])funcTable[83])(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 PushAllowKeyboardFocusNative(byte allowKeyboardFocus) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[84])(allowKeyboardFocus); + #else + ((delegate* unmanaged[Cdecl])funcTable[84])(allowKeyboardFocus); + #endif + } + + /// + /// To be documented. + /// + public static void PushAllowKeyboardFocus(bool allowKeyboardFocus) + { + PushAllowKeyboardFocusNative(allowKeyboardFocus ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopAllowKeyboardFocusNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[85])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[85])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopAllowKeyboardFocus() + { + PopAllowKeyboardFocusNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushButtonRepeatNative(byte repeat) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[86])(repeat); + #else + ((delegate* unmanaged[Cdecl])funcTable[86])(repeat); + #endif + } + + /// + /// To be documented. + /// + public static void PushButtonRepeat(bool repeat) + { + PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopButtonRepeatNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[87])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[87])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopButtonRepeat() + { + PopButtonRepeatNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushItemWidthNative(float itemWidth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[88])(itemWidth); + #else + ((delegate* unmanaged[Cdecl])funcTable[88])(itemWidth); + #endif + } + + /// + /// To be documented. + /// + public static void PushItemWidth(float itemWidth) + { + PushItemWidthNative(itemWidth); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopItemWidthNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[89])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[89])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopItemWidth() + { + PopItemWidthNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextItemWidthNative(float itemWidth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[90])(itemWidth); + #else + ((delegate* unmanaged[Cdecl])funcTable[90])(itemWidth); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextItemWidth(float itemWidth) + { + SetNextItemWidthNative(itemWidth); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float CalcItemWidthNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[91])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[91])(); + #endif + } + + /// + /// To be documented. + /// + public static float CalcItemWidth() + { + float ret = CalcItemWidthNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushTextWrapPosNative(float wrapLocalPosX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[92])(wrapLocalPosX); + #else + ((delegate* unmanaged[Cdecl])funcTable[92])(wrapLocalPosX); + #endif + } + + /// + /// To be documented. + /// + public static void PushTextWrapPos(float wrapLocalPosX) + { + PushTextWrapPosNative(wrapLocalPosX); + } + + /// + /// To be documented. + /// + public static void PushTextWrapPos() + { + PushTextWrapPosNative((float)(0.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopTextWrapPosNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[93])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[93])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopTextWrapPos() + { + PopTextWrapPosNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* GetFontNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[94])(); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[94])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr GetFont() + { + ImFontPtr ret = GetFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetFontSizeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[95])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[95])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetFontSize() + { + float ret = GetFontSizeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImTextureID GetFontTexIdWhitePixelNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[96])(); + #else + return (ImTextureID)((delegate* unmanaged[Cdecl])funcTable[96])(); + #endif + } + + /// + /// To be documented. + /// + public static ImTextureID GetFontTexIdWhitePixel() + { + ImTextureID ret = GetFontTexIdWhitePixelNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetFontTexUvWhitePixelNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[97])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[97])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetFontTexUvWhitePixel() + { + Vector2 ret; + GetFontTexUvWhitePixelNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetFontTexUvWhitePixel(Vector2* pOut) + { + GetFontTexUvWhitePixelNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetFontTexUvWhitePixel(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetFontTexUvWhitePixelNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetColorU32Native(ImGuiCol idx, float alphaMul) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[98])(idx, alphaMul); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[98])(idx, alphaMul); + #endif + } + + /// + /// To be documented. + /// + public static uint GetColorU32(ImGuiCol idx, float alphaMul) + { + uint ret = GetColorU32Native(idx, alphaMul); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetColorU32(ImGuiCol idx) + { + uint ret = GetColorU32Native(idx, (float)(1.0f)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetColorU32Native(Vector4 col) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[99])(col); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[99])(col); + #endif + } + + /// + /// To be documented. + /// + public static uint GetColorU32(Vector4 col) + { + uint ret = GetColorU32Native(col); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetColorU32Native(uint col) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[100])(col); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[100])(col); + #endif + } + + /// + /// To be documented. + /// + public static uint GetColorU32(uint col) + { + uint ret = GetColorU32Native(col); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Vector4* GetStyleColorVec4Native(ImGuiCol idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[101])(idx); + #else + return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[101])(idx); + #endif + } + + /// + /// To be documented. + /// + public static Vector4* GetStyleColorVec4(ImGuiCol idx) + { + Vector4* ret = GetStyleColorVec4Native(idx); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SeparatorNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[102])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[102])(); + #endif + } + + /// + /// To be documented. + /// + public static void Separator() + { + SeparatorNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SameLineNative(float offsetFromStartX, float spacing) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[103])(offsetFromStartX, spacing); + #else + ((delegate* unmanaged[Cdecl])funcTable[103])(offsetFromStartX, spacing); + #endif + } + + /// + /// To be documented. + /// + public static void SameLine(float offsetFromStartX, float spacing) + { + SameLineNative(offsetFromStartX, spacing); + } + + /// + /// To be documented. + /// + public static void SameLine(float offsetFromStartX) + { + SameLineNative(offsetFromStartX, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static void SameLine() + { + SameLineNative((float)(0.0f), (float)(-1.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NewLineNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[104])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[104])(); + #endif + } + + /// + /// To be documented. + /// + public static void NewLine() + { + NewLineNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SpacingNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[105])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[105])(); + #endif + } + + /// + /// To be documented. + /// + public static void Spacing() + { + SpacingNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DummyNative(Vector2 size) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[106])(size); + #else + ((delegate* unmanaged[Cdecl])funcTable[106])(size); + #endif + } + + /// + /// To be documented. + /// + public static void Dummy(Vector2 size) + { + DummyNative(size); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void IndentNative(float indentW) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[107])(indentW); + #else + ((delegate* unmanaged[Cdecl])funcTable[107])(indentW); + #endif + } + + /// + /// To be documented. + /// + public static void Indent(float indentW) + { + IndentNative(indentW); + } + + /// + /// To be documented. + /// + public static void Indent() + { + IndentNative((float)(0.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UnindentNative(float indentW) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[108])(indentW); + #else + ((delegate* unmanaged[Cdecl])funcTable[108])(indentW); + #endif + } + + /// + /// To be documented. + /// + public static void Unindent(float indentW) + { + UnindentNative(indentW); + } + + /// + /// To be documented. + /// + public static void Unindent() + { + UnindentNative((float)(0.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginGroupNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[109])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[109])(); + #endif + } + + /// + /// To be documented. + /// + public static void BeginGroup() + { + BeginGroupNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndGroupNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[110])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[110])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndGroup() + { + EndGroupNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCursorPosNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[111])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[111])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetCursorPos() + { + Vector2 ret; + GetCursorPosNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetCursorPos(Vector2* pOut) + { + GetCursorPosNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetCursorPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetCursorPosNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetCursorPosXNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[112])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[112])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetCursorPosX() + { + float ret = GetCursorPosXNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetCursorPosYNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[113])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[113])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetCursorPosY() + { + float ret = GetCursorPosYNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCursorPosNative(Vector2 localPos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[114])(localPos); + #else + ((delegate* unmanaged[Cdecl])funcTable[114])(localPos); + #endif + } + + /// + /// To be documented. + /// + public static void SetCursorPos(Vector2 localPos) + { + SetCursorPosNative(localPos); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCursorPosXNative(float localX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[115])(localX); + #else + ((delegate* unmanaged[Cdecl])funcTable[115])(localX); + #endif + } + + /// + /// To be documented. + /// + public static void SetCursorPosX(float localX) + { + SetCursorPosXNative(localX); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCursorPosYNative(float localY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[116])(localY); + #else + ((delegate* unmanaged[Cdecl])funcTable[116])(localY); + #endif + } + + /// + /// To be documented. + /// + public static void SetCursorPosY(float localY) + { + SetCursorPosYNative(localY); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCursorStartPosNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[117])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[117])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetCursorStartPos() + { + Vector2 ret; + GetCursorStartPosNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetCursorStartPos(Vector2* pOut) + { + GetCursorStartPosNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetCursorStartPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetCursorStartPosNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCursorScreenPosNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[118])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[118])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetCursorScreenPos() + { + Vector2 ret; + GetCursorScreenPosNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetCursorScreenPos(Vector2* pOut) + { + GetCursorScreenPosNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetCursorScreenPos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetCursorScreenPosNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCursorScreenPosNative(Vector2 pos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[119])(pos); + #else + ((delegate* unmanaged[Cdecl])funcTable[119])(pos); + #endif + } + + /// + /// To be documented. + /// + public static void SetCursorScreenPos(Vector2 pos) + { + SetCursorScreenPosNative(pos); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AlignTextToFramePaddingNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[120])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[120])(); + #endif + } + + /// + /// To be documented. + /// + public static void AlignTextToFramePadding() + { + AlignTextToFramePaddingNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetTextLineHeightNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[121])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[121])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetTextLineHeight() + { + float ret = GetTextLineHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetTextLineHeightWithSpacingNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[122])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[122])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetTextLineHeightWithSpacing() + { + float ret = GetTextLineHeightWithSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetFrameHeightNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[123])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[123])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetFrameHeight() + { + float ret = GetFrameHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetFrameHeightWithSpacingNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[124])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[124])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetFrameHeightWithSpacing() + { + float ret = GetFrameHeightWithSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushIDNative(byte* strId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[125])(strId); + #else + ((delegate* unmanaged[Cdecl])funcTable[125])((nint)strId); + #endif + } + + /// + /// To be documented. + /// + public static void PushID(byte* strId) + { + PushIDNative(strId); + } + + /// + /// To be documented. + /// + public static void PushID(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + PushIDNative((byte*)pstrId); + } + } + + /// + /// To be documented. + /// + public static void PushID(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + PushIDNative((byte*)pstrId); + } + } + + /// + /// To be documented. + /// + public static void PushID(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PushIDNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushIDNative(byte* strIdBegin, byte* strIdEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[126])(strIdBegin, strIdEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[126])((nint)strIdBegin, (nint)strIdEnd); + #endif + } + + /// + /// To be documented. + /// + public static void PushID(byte* strIdBegin, byte* strIdEnd) + { + PushIDNative(strIdBegin, strIdEnd); + } + + /// + /// To be documented. + /// + public static void PushID(ref byte strIdBegin, byte* strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + PushIDNative((byte*)pstrIdBegin, strIdEnd); + } + } + + /// + /// To be documented. + /// + public static void PushID(ReadOnlySpan strIdBegin, byte* strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + PushIDNative((byte*)pstrIdBegin, strIdEnd); + } + } + + /// + /// To be documented. + /// + public static void PushID(string strIdBegin, byte* strIdEnd) + { + 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; + } + PushIDNative(pStr0, strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PushID(byte* strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + PushIDNative(strIdBegin, (byte*)pstrIdEnd); + } + } + + /// + /// To be documented. + /// + public static void PushID(byte* strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + PushIDNative(strIdBegin, (byte*)pstrIdEnd); + } + } + + /// + /// To be documented. + /// + public static void PushID(byte* strIdBegin, string strIdEnd) + { + 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; + } + PushIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PushID(ref byte strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs new file mode 100644 index 000000000..802511d7d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs @@ -0,0 +1,5042 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PushID(string strIdBegin, string strIdEnd) + { + 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; + } + PushIDNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PushID(ref byte strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(ref byte strIdBegin, string strIdEnd) + { + 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; + } + PushIDNative((byte*)pstrIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(ReadOnlySpan strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(ReadOnlySpan strIdBegin, string strIdEnd) + { + 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; + } + PushIDNative((byte*)pstrIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(string strIdBegin, ref byte strIdEnd) + { + 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) + { + PushIDNative(pStr0, (byte*)pstrIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PushID(string strIdBegin, ReadOnlySpan strIdEnd) + { + 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) + { + PushIDNative(pStr0, (byte*)pstrIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushIDNative(void* ptrId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[127])(ptrId); + #else + ((delegate* unmanaged[Cdecl])funcTable[127])((nint)ptrId); + #endif + } + + /// + /// To be documented. + /// + public static void PushID(void* ptrId) + { + PushIDNative(ptrId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushIDNative(int intId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[128])(intId); + #else + ((delegate* unmanaged[Cdecl])funcTable[128])(intId); + #endif + } + + /// + /// To be documented. + /// + public static void PushID(int intId) + { + PushIDNative(intId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopIDNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[129])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[129])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopID() + { + PopIDNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(byte* strId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[130])(strId); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[130])((nint)strId); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(byte* strId) + { + uint ret = GetIDNative(strId); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + uint ret = GetIDNative((byte*)pstrId); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + uint ret = GetIDNative((byte*)pstrId); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(byte* strIdBegin, byte* strIdEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[131])(strIdBegin, strIdEnd); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[131])((nint)strIdBegin, (nint)strIdEnd); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(byte* strIdBegin, byte* strIdEnd) + { + uint ret = GetIDNative(strIdBegin, strIdEnd); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref byte strIdBegin, byte* strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ReadOnlySpan strIdBegin, byte* strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(string strIdBegin, byte* strIdEnd) + { + 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 = GetIDNative(pStr0, strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(byte* strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(byte* strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(byte* strIdBegin, string strIdEnd) + { + 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 = GetIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref byte strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(string strIdBegin, string strIdEnd) + { + 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 = GetIDNative(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 byte strIdBegin, ReadOnlySpan strIdEnd) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref byte strIdBegin, string strIdEnd) + { + 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 = GetIDNative((byte*)pstrIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ReadOnlySpan strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ReadOnlySpan strIdBegin, string strIdEnd) + { + 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 = GetIDNative((byte*)pstrIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(string strIdBegin, ref byte strIdEnd) + { + 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 = GetIDNative(pStr0, (byte*)pstrIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(string strIdBegin, ReadOnlySpan strIdEnd) + { + 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 = GetIDNative(pStr0, (byte*)pstrIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(void* ptrId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[132])(ptrId); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[132])((nint)ptrId); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(void* ptrId) + { + uint ret = GetIDNative(ptrId); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextUnformattedNative(byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[133])(text, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[133])((nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void TextUnformatted(byte* text, byte* textEnd) + { + TextUnformattedNative(text, textEnd); + } + + /// + /// To be documented. + /// + public static void TextUnformatted(byte* text) + { + TextUnformattedNative(text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + TextUnformattedNative((byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ref byte text) + { + fixed (byte* ptext = &text) + { + TextUnformattedNative((byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + TextUnformattedNative((byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + TextUnformattedNative((byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative(pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative(pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + TextUnformattedNative(text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + TextUnformattedNative(text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative((byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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; + } + TextUnformattedNative((byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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) + { + TextUnformattedNative(pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextUnformatted(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) + { + TextUnformattedNative(pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[134])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[134])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void Text(byte* fmt) + { + TextNative(fmt); + } + + /// + /// To be documented. + /// + public static void Text(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Text(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TextNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Text(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; + } + TextNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[135])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[135])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TextV(byte* fmt, nuint args) + { + TextVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void TextV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextV(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; + } + TextVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextColoredNative(Vector4 col, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[136])(col, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[136])(col, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void TextColored(Vector4 col, byte* fmt) + { + TextColoredNative(col, fmt); + } + + /// + /// To be documented. + /// + public static void TextColored(Vector4 col, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextColoredNative(col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextColored(Vector4 col, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TextColoredNative(col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextColored(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; + } + TextColoredNative(col, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextColoredVNative(Vector4 col, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[137])(col, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[137])(col, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TextColoredV(Vector4 col, byte* fmt, nuint args) + { + TextColoredVNative(col, fmt, args); + } + + /// + /// To be documented. + /// + public static void TextColoredV(Vector4 col, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextColoredVNative(col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextColoredV(Vector4 col, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TextColoredVNative(col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextColoredV(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; + } + TextColoredVNative(col, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextDisabledNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[138])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[138])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void TextDisabled(byte* fmt) + { + TextDisabledNative(fmt); + } + + /// + /// To be documented. + /// + public static void TextDisabled(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextDisabledNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextDisabled(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TextDisabledNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextDisabled(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; + } + TextDisabledNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextDisabledVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[139])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[139])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TextDisabledV(byte* fmt, nuint args) + { + TextDisabledVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void TextDisabledV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextDisabledVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextDisabledV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TextDisabledVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextDisabledV(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; + } + TextDisabledVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextWrappedNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[140])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[140])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void TextWrapped(byte* fmt) + { + TextWrappedNative(fmt); + } + + /// + /// To be documented. + /// + public static void TextWrapped(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextWrappedNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextWrapped(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TextWrappedNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TextWrapped(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; + } + TextWrappedNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextWrappedVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[141])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[141])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TextWrappedV(byte* fmt, nuint args) + { + TextWrappedVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void TextWrappedV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextWrappedVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextWrappedV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TextWrappedVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TextWrappedV(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; + } + TextWrappedVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LabelTextNative(byte* label, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[142])(label, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[142])((nint)label, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void LabelText(byte* label, byte* fmt) + { + LabelTextNative(label, fmt); + } + + /// + /// To be documented. + /// + public static void LabelText(ref byte label, byte* fmt) + { + fixed (byte* plabel = &label) + { + LabelTextNative((byte*)plabel, fmt); + } + } + + /// + /// To be documented. + /// + public static void LabelText(ReadOnlySpan label, byte* fmt) + { + fixed (byte* plabel = label) + { + LabelTextNative((byte*)plabel, fmt); + } + } + + /// + /// To be documented. + /// + public static void LabelText(string label, byte* fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextNative(pStr0, fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelText(byte* label, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + LabelTextNative(label, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void LabelText(byte* label, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + LabelTextNative(label, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void LabelText(byte* label, 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; + } + LabelTextNative(label, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelText(ref byte label, ref byte fmt) + { + fixed (byte* plabel = &label) + { + fixed (byte* pfmt = &fmt) + { + LabelTextNative((byte*)plabel, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(ReadOnlySpan label, ReadOnlySpan fmt) + { + fixed (byte* plabel = label) + { + fixed (byte* pfmt = fmt) + { + LabelTextNative((byte*)plabel, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(string label, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (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; + } + LabelTextNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelText(ref byte label, ReadOnlySpan fmt) + { + fixed (byte* plabel = &label) + { + fixed (byte* pfmt = fmt) + { + LabelTextNative((byte*)plabel, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(ref byte label, string fmt) + { + fixed (byte* plabel = &label) + { + 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; + } + LabelTextNative((byte*)plabel, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(ReadOnlySpan label, ref byte fmt) + { + fixed (byte* plabel = label) + { + fixed (byte* pfmt = &fmt) + { + LabelTextNative((byte*)plabel, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(ReadOnlySpan label, string fmt) + { + fixed (byte* plabel = label) + { + 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; + } + LabelTextNative((byte*)plabel, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(string label, ref byte fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + LabelTextNative(pStr0, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelText(string label, ReadOnlySpan fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + LabelTextNative(pStr0, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LabelTextVNative(byte* label, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[143])(label, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[143])((nint)label, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void LabelTextV(byte* label, byte* fmt, nuint args) + { + LabelTextVNative(label, fmt, args); + } + + /// + /// To be documented. + /// + public static void LabelTextV(ref byte label, byte* fmt, nuint args) + { + fixed (byte* plabel = &label) + { + LabelTextVNative((byte*)plabel, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ReadOnlySpan label, byte* fmt, nuint args) + { + fixed (byte* plabel = label) + { + LabelTextVNative((byte*)plabel, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(string label, byte* fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextVNative(pStr0, fmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(byte* label, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + LabelTextVNative(label, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(byte* label, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + LabelTextVNative(label, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(byte* label, 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; + } + LabelTextVNative(label, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ref byte label, ref byte fmt, nuint args) + { + fixed (byte* plabel = &label) + { + fixed (byte* pfmt = &fmt) + { + LabelTextVNative((byte*)plabel, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ReadOnlySpan label, ReadOnlySpan fmt, nuint args) + { + fixed (byte* plabel = label) + { + fixed (byte* pfmt = fmt) + { + LabelTextVNative((byte*)plabel, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(string label, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (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; + } + LabelTextVNative(pStr0, pStr1, args); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ref byte label, ReadOnlySpan fmt, nuint args) + { + fixed (byte* plabel = &label) + { + fixed (byte* pfmt = fmt) + { + LabelTextVNative((byte*)plabel, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ref byte label, string fmt, nuint args) + { + fixed (byte* plabel = &label) + { + 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; + } + LabelTextVNative((byte*)plabel, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ReadOnlySpan label, ref byte fmt, nuint args) + { + fixed (byte* plabel = label) + { + fixed (byte* pfmt = &fmt) + { + LabelTextVNative((byte*)plabel, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(ReadOnlySpan label, string fmt, nuint args) + { + fixed (byte* plabel = label) + { + 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; + } + LabelTextVNative((byte*)plabel, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(string label, ref byte fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + LabelTextVNative(pStr0, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LabelTextV(string label, ReadOnlySpan fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + LabelTextVNative(pStr0, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BulletTextNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[144])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[144])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void BulletText(byte* fmt) + { + BulletTextNative(fmt); + } + + /// + /// To be documented. + /// + public static void BulletText(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + BulletTextNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void BulletText(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + BulletTextNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void BulletText(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; + } + BulletTextNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BulletTextVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[145])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[145])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void BulletTextV(byte* fmt, nuint args) + { + BulletTextVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void BulletTextV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + BulletTextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void BulletTextV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + BulletTextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void BulletTextV(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; + } + BulletTextVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ButtonNative(byte* label, Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[146])(label, size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[146])((nint)label, size); + #endif + } + + /// + /// To be documented. + /// + public static bool Button(byte* label, Vector2 size) + { + byte ret = ButtonNative(label, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Button(byte* label) + { + byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Button(ref byte label, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonNative((byte*)plabel, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Button(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Button(ReadOnlySpan label, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = ButtonNative((byte*)plabel, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Button(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Button(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 = ButtonNative(pStr0, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Button(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 = ButtonNative(pStr0, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SmallButtonNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[147])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[147])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static bool SmallButton(byte* label) + { + byte ret = SmallButtonNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SmallButton(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = SmallButtonNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SmallButton(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = SmallButtonNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SmallButton(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 = SmallButtonNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InvisibleButtonNative(byte* strId, Vector2 size, ImGuiButtonFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[148])(strId, size, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[148])((nint)strId, size, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(byte* strId, Vector2 size, ImGuiButtonFlags flags) + { + byte ret = InvisibleButtonNative(strId, size, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(byte* strId, Vector2 size) + { + byte ret = InvisibleButtonNative(strId, size, (ImGuiButtonFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(ref byte strId, Vector2 size, ImGuiButtonFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(ref byte strId, Vector2 size) + { + fixed (byte* pstrId = &strId) + { + byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(ReadOnlySpan strId, Vector2 size, ImGuiButtonFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(ReadOnlySpan strId, Vector2 size) + { + fixed (byte* pstrId = strId) + { + byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(string strId, Vector2 size, ImGuiButtonFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InvisibleButtonNative(pStr0, size, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InvisibleButton(string strId, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InvisibleButtonNative(pStr0, size, (ImGuiButtonFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ArrowButtonNative(byte* strId, ImGuiDir dir) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[149])(strId, dir); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[149])((nint)strId, dir); + #endif + } + + /// + /// To be documented. + /// + public static bool ArrowButton(byte* strId, ImGuiDir dir) + { + byte ret = ArrowButtonNative(strId, dir); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ArrowButton(ref byte strId, ImGuiDir dir) + { + fixed (byte* pstrId = &strId) + { + byte ret = ArrowButtonNative((byte*)pstrId, dir); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButton(ReadOnlySpan strId, ImGuiDir dir) + { + fixed (byte* pstrId = strId) + { + byte ret = ArrowButtonNative((byte*)pstrId, dir); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButton(string strId, ImGuiDir dir) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ArrowButtonNative(pStr0, dir); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImageNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); + #else + ((delegate* unmanaged[Cdecl])funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); + #endif + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) + { + ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) + { + ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0) + { + ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size) + { + ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) + { + ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol) + { + ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) + { + ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + + /// + /// To be documented. + /// + public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) + { + ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImageButtonNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); + #endif + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CheckboxNative(byte* label, bool* v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[152])(label, v); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[152])((nint)label, (nint)v); + #endif + } + + /// + /// To be documented. + /// + public static bool Checkbox(byte* label, bool* v) + { + byte ret = CheckboxNative(label, v); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Checkbox(ref byte label, bool* v) + { + fixed (byte* plabel = &label) + { + byte ret = CheckboxNative((byte*)plabel, v); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Checkbox(ReadOnlySpan label, bool* v) + { + fixed (byte* plabel = label) + { + byte ret = CheckboxNative((byte*)plabel, v); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Checkbox(string label, bool* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = CheckboxNative(pStr0, v); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Checkbox(byte* label, ref bool v) + { + fixed (bool* pv = &v) + { + byte ret = CheckboxNative(label, (bool*)pv); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Checkbox(ref byte label, ref bool v) + { + fixed (byte* plabel = &label) + { + fixed (bool* pv = &v) + { + byte ret = CheckboxNative((byte*)plabel, (bool*)pv); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Checkbox(ReadOnlySpan label, ref bool v) + { + fixed (byte* plabel = label) + { + fixed (bool* pv = &v) + { + byte ret = CheckboxNative((byte*)plabel, (bool*)pv); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Checkbox(string label, ref bool v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + byte ret = CheckboxNative(pStr0, (bool*)pv); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[153])(label, flags, flagsValue); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[153])((nint)label, (nint)flags, flagsValue); + #endif + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, int* flags, int flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, int* flags, int flagsValue) + { + fixed (byte* plabel = &label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, int* flags, int flagsValue) + { + fixed (byte* plabel = label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, int* flags, int 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; + } + byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, ref int flags, int flagsValue) + { + fixed (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, ref int flags, int flagsValue) + { + fixed (byte* plabel = &label) + { + fixed (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, ref int flags, int flagsValue) + { + fixed (byte* plabel = label) + { + fixed (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, ref int flags, int 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 (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative(pStr0, (int*)pflags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[154])(label, flags, flagsValue); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[154])((nint)label, (nint)flags, flagsValue); + #endif + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, uint* flags, uint flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, uint* flags, uint flagsValue) + { + fixed (byte* plabel = &label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, uint* flags, uint flagsValue) + { + fixed (byte* plabel = label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, uint* flags, uint 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; + } + byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, ref uint flags, uint flagsValue) + { + fixed (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, ref uint flags, uint flagsValue) + { + fixed (byte* plabel = &label) + { + fixed (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, ref uint flags, uint flagsValue) + { + fixed (byte* plabel = label) + { + fixed (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, ref uint flags, uint 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 (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative(pStr0, (uint*)pflags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte RadioButtonNative(byte* label, byte active) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[155])(label, active); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[155])((nint)label, active); + #endif + } + + /// + /// To be documented. + /// + public static bool RadioButton(byte* label, bool active) + { + byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool RadioButton(ref byte label, bool active) + { + fixed (byte* plabel = &label) + { + byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(ReadOnlySpan label, bool active) + { + fixed (byte* plabel = label) + { + byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(string label, bool active) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = RadioButtonNative(pStr0, active ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte RadioButtonNative(byte* label, int* v, int vButton) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[156])(label, v, vButton); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[156])((nint)label, (nint)v, vButton); + #endif + } + + /// + /// To be documented. + /// + public static bool RadioButton(byte* label, int* v, int vButton) + { + byte ret = RadioButtonNative(label, v, vButton); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool RadioButton(ref byte label, int* v, int vButton) + { + fixed (byte* plabel = &label) + { + byte ret = RadioButtonNative((byte*)plabel, v, vButton); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(ReadOnlySpan label, int* v, int vButton) + { + fixed (byte* plabel = label) + { + byte ret = RadioButtonNative((byte*)plabel, v, vButton); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(string label, int* v, int vButton) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = RadioButtonNative(pStr0, v, vButton); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool RadioButton(byte* label, ref int v, int vButton) + { + fixed (int* pv = &v) + { + byte ret = RadioButtonNative(label, (int*)pv, vButton); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(ref byte label, ref int v, int vButton) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(ReadOnlySpan label, ref int v, int vButton) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool RadioButton(string label, ref int v, int vButton) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = RadioButtonNative(pStr0, (int*)pv, vButton); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[157])(fraction, sizeArg, overlay); + #else + ((delegate* unmanaged[Cdecl])funcTable[157])(fraction, sizeArg, (nint)overlay); + #endif + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, Vector2 sizeArg, byte* overlay) + { + ProgressBarNative(fraction, sizeArg, overlay); + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, Vector2 sizeArg) + { + ProgressBarNative(fraction, sizeArg, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, byte* overlay) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, Vector2 sizeArg, ref byte overlay) + { + fixed (byte* poverlay = &overlay) + { + ProgressBarNative(fraction, sizeArg, (byte*)poverlay); + } + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, ref byte overlay) + { + fixed (byte* poverlay = &overlay) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); + } + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, Vector2 sizeArg, ReadOnlySpan overlay) + { + fixed (byte* poverlay = overlay) + { + ProgressBarNative(fraction, sizeArg, (byte*)poverlay); + } + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, ReadOnlySpan overlay) + { + fixed (byte* poverlay = overlay) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); + } + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, Vector2 sizeArg, string overlay) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, sizeArg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ProgressBar(float fraction, string overlay) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BulletNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[158])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[158])(); + #endif + } + + /// + /// To be documented. + /// + public static void Bullet() + { + BulletNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginComboNative(byte* label, byte* previewValue, ImGuiComboFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[159])(label, previewValue, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[159])((nint)label, (nint)previewValue, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, byte* previewValue, ImGuiComboFlags flags) + { + byte ret = BeginComboNative(label, previewValue, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, byte* previewValue) + { + byte ret = BeginComboNative(label, previewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, byte* previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = BeginComboNative((byte*)plabel, previewValue, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, byte* previewValue) + { + fixed (byte* plabel = &label) + { + byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, byte* previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = BeginComboNative((byte*)plabel, previewValue, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, byte* previewValue) + { + fixed (byte* plabel = label) + { + byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, byte* previewValue, ImGuiComboFlags 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 = BeginComboNative(pStr0, previewValue, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, byte* previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = BeginComboNative(pStr0, previewValue, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, ref byte previewValue, ImGuiComboFlags flags) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, ref byte previewValue) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, ReadOnlySpan previewValue, ImGuiComboFlags flags) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, ReadOnlySpan previewValue) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, string previewValue, ImGuiComboFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative(label, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(byte* label, string previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative(label, pStr0, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, ref byte previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, ref byte previewValue) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, ReadOnlySpan previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, ReadOnlySpan previewValue) + { + fixed (byte* plabel = label) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, string previewValue, ImGuiComboFlags 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 (previewValue != null) + { + pStrSize1 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = BeginComboNative(pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, string previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (previewValue != null) + { + pStrSize1 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = BeginComboNative(pStr0, pStr1, (ImGuiComboFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, ReadOnlySpan previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, ReadOnlySpan previewValue) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, string previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative((byte*)plabel, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ref byte label, string previewValue) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, ref byte previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, ref byte previewValue) + { + fixed (byte* plabel = label) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, string previewValue, ImGuiComboFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative((byte*)plabel, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(ReadOnlySpan label, string previewValue) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, ref byte previewValue, ImGuiComboFlags 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* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, ref byte previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, ReadOnlySpan previewValue, ImGuiComboFlags 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* ppreviewValue = previewValue) + { + byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginCombo(string label, ReadOnlySpan previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppreviewValue = previewValue) + { + byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndComboNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[160])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[160])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndCombo() + { + EndComboNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[161])(label, currentItem, items, itemsCount, popupMaxHeightInItems); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[161])((nint)label, (nint)currentItem, (nint)items, itemsCount, popupMaxHeightInItems); + #endif + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount) + { + byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, items, itemsCount, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, byte** items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, items, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs new file mode 100644 index 000000000..ef419aeab --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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 Combo(byte* label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, byte** items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, byte** items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, string[] items, int itemsCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, string[] items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, string[] items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, string[] items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[162])(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[162])((nint)label, (nint)currentItem, (nint)itemsSeparatedByZeros, popupMaxHeightInItems); + #endif + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, byte* itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, byte* itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, byte* itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, byte* itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, byte* itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, byte* itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, byte* itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, currentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, string itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, currentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (itemsSeparatedByZeros != null) + { + pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ComboNative(pStr0, currentItem, pStr1, popupMaxHeightInItems); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, string itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (itemsSeparatedByZeros != null) + { + pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ComboNative(pStr0, currentItem, pStr1, (int)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, currentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, string itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, currentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, currentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, string itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, currentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, ref byte itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, ref byte itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, string itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, popupMaxHeightInItems); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, string itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, (int)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, string itemsSeparatedByZeros) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, string itemsSeparatedByZeros) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, ref byte itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, ReadOnlySpan itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ComboNative(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, int, int, bool>, void*, int, int, byte>)funcTable[163])(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[163])((nint)label, (nint)currentItem, (nint)itemsGetter, (nint)data, itemsCount, popupMaxHeightInItems); + #endif + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = &label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = label) + { + byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(string label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(byte* label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ref byte label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(ReadOnlySpan label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Combo(string label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[164])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[164])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, byte* format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, ImGuiSliderFlags flags) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, 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 = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, 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 = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags 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; + } + bool ret = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, ImGuiSliderFlags 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; + } + bool ret = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, byte* format, ImGuiSliderFlags 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 = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, 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* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, 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* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, 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 = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, 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 = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, 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 = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs new file mode 100644 index 000000000..55fe51cd2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, 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 = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, 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 = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, 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 = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, 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 = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, 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 = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, 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 = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, 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 = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, 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 = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, 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 = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, 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 = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, 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 = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, 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 = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, 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 = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, float* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(byte* label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, 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* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, 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* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ref byte label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(ReadOnlySpan label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat(string label, ref float v, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[165])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[165])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed) + { + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v) + { + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, byte* format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, ImGuiSliderFlags flags) + { + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs new file mode 100644 index 000000000..5dcd62653 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat2(ReadOnlySpan label, float* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, 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 = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, 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 = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags 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; + } + bool ret = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, ImGuiSliderFlags 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; + } + bool ret = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, byte* format, ImGuiSliderFlags 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 = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, byte* format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, byte* format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, 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* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, 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* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, 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 = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, 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 = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, 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 = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, 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 = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, 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 = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, 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 = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, 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 = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, 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 = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, 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 = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs new file mode 100644 index 000000000..83c463f32 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat2(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, 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 = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, 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 = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, 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 = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, float* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, string format) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, string format) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, string format) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref Vector2 v, string format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(byte* label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, string format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref Vector2 v, string format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ref byte label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(ReadOnlySpan label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, 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* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, 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* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat2(string label, ref float v, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + 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 DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[166])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[166])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, byte* format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, ImGuiSliderFlags flags) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, 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 = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, 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 = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags 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; + } + bool ret = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, ImGuiSliderFlags 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; + } + bool ret = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, byte* format, ImGuiSliderFlags 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 = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs new file mode 100644 index 000000000..4c6e00a26 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs @@ -0,0 +1,5052 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat3(byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, byte* format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, byte* format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, 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* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, 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* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, 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 = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, 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 = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, 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 = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, 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 = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, 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 = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, 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 = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, 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 = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, 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 = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, 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 = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, 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 = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, 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 = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, 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 = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, float* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, string format) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs new file mode 100644 index 000000000..ac357a46b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat3(byte* label, ref Vector3 v, float vSpeed, string format) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, string format) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref Vector3 v, string format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(byte* label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, string format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref Vector3 v, string format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ref byte label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(ReadOnlySpan label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, 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* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, 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* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat3(string label, ref float v, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + 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 DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[167])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[167])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed) + { + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v) + { + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, byte* format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, ImGuiSliderFlags flags) + { + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, 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 = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, 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 = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags 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; + } + bool ret = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, ImGuiSliderFlags 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; + } + bool ret = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, byte* format, ImGuiSliderFlags 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 = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs new file mode 100644 index 000000000..9afd36d0b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat4(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, byte* format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, byte* format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, 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* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, 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 = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, 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 = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, 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 = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, 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 = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, 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 = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, 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 = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, 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 = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, float* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, 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 = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, 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 = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, 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 = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, 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 = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, 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 = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, float* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, string format) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, string format) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, string format) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref Vector4 v, string format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(byte* label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs new file mode 100644 index 000000000..51ccc2022 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs @@ -0,0 +1,5035 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, string format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref Vector4 v, string format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ref byte label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(ReadOnlySpan label, ref float v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, 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* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloat4(string label, ref float v, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + 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 DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[168])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[168])((nint)label, (nint)vCurrentMin, (nint)vCurrentMax, vSpeed, vMin, vMax, (nint)format, (nint)formatMax, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags 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; + } + bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags 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; + } + bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs new file mode 100644 index 000000000..a8b281f57 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs new file mode 100644 index 000000000..69bddbacc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, 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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs new file mode 100644 index 000000000..c8f5a60a3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs new file mode 100644 index 000000000..4406c8c35 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs new file mode 100644 index 000000000..50cafdd04 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs @@ -0,0 +1,5049 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs new file mode 100644 index 000000000..c236a100a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs new file mode 100644 index 000000000..0b7320f8e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs new file mode 100644 index 000000000..83455d0b6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs new file mode 100644 index 000000000..315438676 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs new file mode 100644 index 000000000..7c3600fc5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs new file mode 100644 index 000000000..534f3f04a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs new file mode 100644 index 000000000..9b3c2a49e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs @@ -0,0 +1,5070 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs new file mode 100644 index 000000000..b399d7276 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs new file mode 100644 index 000000000..ba08d3b40 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs new file mode 100644 index 000000000..e17d7b88e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); + 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 DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs new file mode 100644 index 000000000..e8fa9de84 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(ReadOnlySpan label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); + 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 DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[169])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[169])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed) + { + bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v) + { + bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, 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 = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, 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 = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs new file mode 100644 index 000000000..13fe574fb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs @@ -0,0 +1,5046 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt(string label, int* v, 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 = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, 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 = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, 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 = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, 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 = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, 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 = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, 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 = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, 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 = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, 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 = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, 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 = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, 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 = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, 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 = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, 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 = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, 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 = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs new file mode 100644 index 000000000..25c283442 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, 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 = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, 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 = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, 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 = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, 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 = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, 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 = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, 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 = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, 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 = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[170])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[170])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed) + { + bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v) + { + bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs new file mode 100644 index 000000000..44e790633 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, 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 = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, 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 = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, 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 = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, 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 = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, 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 = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, 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 = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, 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 = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, 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 = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, 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 = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs new file mode 100644 index 000000000..6c0907127 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt2(string label, int* v, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, 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 = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, 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 = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, 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 = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, 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 = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, 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 = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, 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 = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, 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 = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, 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 = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, 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 = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, 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 = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs new file mode 100644 index 000000000..8aa47663b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs @@ -0,0 +1,5041 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt2(ReadOnlySpan label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[171])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[171])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed) + { + bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v) + { + bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, 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 = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, 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 = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs new file mode 100644 index 000000000..d0808309d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt3(string label, ref int v, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, 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 = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, 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 = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, 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 = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, 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 = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, 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 = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, 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 = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, 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 = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, 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 = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, 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 = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, 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 = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, 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 = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, 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 = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, 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 = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, 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 = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, 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 = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, 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 = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, 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 = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs new file mode 100644 index 000000000..a76981b47 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[172])(label, v, vSpeed, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[172])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed) + { + bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v) + { + bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, 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 = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, 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 = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs new file mode 100644 index 000000000..5665093dc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt4(string label, int* v, int vMin, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, 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 = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, 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 = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, 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 = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, 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 = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, 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 = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, 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 = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, 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 = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, 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 = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, 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 = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, 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 = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, 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 = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs new file mode 100644 index 000000000..56500bdce --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt4(ReadOnlySpan label, int* v, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, 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 = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, 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 = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, 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 = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, 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 = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, 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 = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, 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 = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs new file mode 100644 index 000000000..e927d8082 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[173])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[173])((nint)label, (nint)vCurrentMin, (nint)vCurrentMax, vSpeed, vMin, vMax, (nint)format, (nint)formatMax, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs new file mode 100644 index 000000000..21deff228 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs new file mode 100644 index 000000000..ddc929b65 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs new file mode 100644 index 000000000..d9174e662 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs new file mode 100644 index 000000000..8e4ba485c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs new file mode 100644 index 000000000..6f42a126e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs new file mode 100644 index 000000000..4e6be1620 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs new file mode 100644 index 000000000..adf4493f6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs new file mode 100644 index 000000000..2b588b10f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, byte* formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs new file mode 100644 index 000000000..49d765f5d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs new file mode 100644 index 000000000..3b5225a10 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs new file mode 100644 index 000000000..b6dc4b42b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs @@ -0,0 +1,5061 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs new file mode 100644 index 000000000..7137bd220 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs new file mode 100644 index 000000000..8352132ae --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + 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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs new file mode 100644 index 000000000..961696389 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs new file mode 100644 index 000000000..0e9df3685 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs new file mode 100644 index 000000000..d83b9ff8f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs new file mode 100644 index 000000000..7e48a4952 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs @@ -0,0 +1,5067 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs new file mode 100644 index 000000000..80fe0728b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs new file mode 100644 index 000000000..072fc48f6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs @@ -0,0 +1,5067 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs new file mode 100644 index 000000000..83ecf762d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs new file mode 100644 index 000000000..6b011fb40 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs @@ -0,0 +1,5091 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs new file mode 100644 index 000000000..d782d04e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); + 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pStr2 = null; + int pStrSize2 = 0; + if (formatMax != null) + { + pStrSize2 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); + 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 DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs new file mode 100644 index 000000000..d5cd11b61 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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* pformatMax = formatMax) + { + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(ReadOnlySpan label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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 (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs new file mode 100644 index 000000000..a0a10ad1b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs @@ -0,0 +1,5044 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan format, string formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = format) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan formatMax, ImGuiSliderFlags 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 (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + 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; + } + fixed (byte* pformatMax = formatMax) + { + byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); + 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 DragScalarNative(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[174])(label, dataType, pData, vSpeed, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[174])((nint)label, dataType, (nint)pData, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs new file mode 100644 index 000000000..2caa743e9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs @@ -0,0 +1,5059 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragScalar(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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, 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 = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[175])(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[175])((nint)label, dataType, (nint)pData, components, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs new file mode 100644 index 000000000..549bd11ab --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs @@ -0,0 +1,5036 @@ +// ------------------------------------------------------------------------------ +// +// 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 DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, 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 = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[176])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[176])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = SliderFloatNative(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, 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 = SliderFloatNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, 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 = SliderFloatNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, 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 = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, 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 = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, float* v, float vMin, float vMax, 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 = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, 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 = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, float* v, float vMin, float vMax, 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 = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + 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 = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(ReadOnlySpan label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[177])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[177])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = SliderFloat2Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, 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 = SliderFloat2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax) + { + fixed (Vector2* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, 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 (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs new file mode 100644 index 000000000..3a4924846 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs @@ -0,0 +1,5063 @@ +// ------------------------------------------------------------------------------ +// +// 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 SliderFloat2(string label, ref float v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, 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 = SliderFloat2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, 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 = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, 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 = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, float* v, float vMin, float vMax, 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 = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, 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 = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, float* v, float vMin, float vMax, 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 = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, string format) + { + fixed (Vector2* pv = &v) + { + 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 = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector2* pv = &v) + { + 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 = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, 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 (Vector2* pv = &v) + { + 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 = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(ReadOnlySpan label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + 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 = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + 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 SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[178])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[178])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = SliderFloat3Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, 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 = SliderFloat3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax) + { + fixed (Vector3* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, 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 (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, 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 = SliderFloat3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, 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 = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, 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 = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, float* v, float vMin, float vMax, 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 = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, 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 = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, float* v, float vMin, float vMax, 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 = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, string format) + { + fixed (Vector3* pv = &v) + { + 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 = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector3* pv = &v) + { + 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 = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, 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 (Vector3* pv = &v) + { + 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 = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(ReadOnlySpan label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + 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 = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + 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 SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[179])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[179])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = SliderFloat4Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, 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 = SliderFloat4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (float* pv = v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (float* pv = v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, 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* pv = &v) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, 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 = SliderFloat4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, 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 = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs new file mode 100644 index 000000000..b402f476a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs @@ -0,0 +1,5047 @@ +// ------------------------------------------------------------------------------ +// +// 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 SliderFloat4(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, 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 = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, float* v, float vMin, float vMax, 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 = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, 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 = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, float* v, float vMin, float vMax, 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 = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, string format) + { + fixed (Vector4* pv = &v) + { + 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 = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ReadOnlySpan v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (Vector4* pv = &v) + { + 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 = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, 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* pv = &v) + { + 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 = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(ReadOnlySpan label, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, 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* pv = &v) + { + 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 = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + 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 SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[180])(label, vRad, vDegreesMin, vDegreesMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[180])((nint)label, (nint)vRad, vDegreesMin, vDegreesMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, byte* format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, ImGuiSliderFlags flags) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, 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 = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags 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; + } + bool ret = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ImGuiSliderFlags 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; + } + bool ret = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, ImGuiSliderFlags 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; + } + bool ret = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, byte* format, ImGuiSliderFlags 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 = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, 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* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, 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* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, 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* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, byte* format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, 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 = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, 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 = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, float* vRad, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, 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 = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, 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 = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, 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 = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, float* vRad, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, 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 = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, 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 = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, float* vRad, string format, ImGuiSliderFlags 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; + } + byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, 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 = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, 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 = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, 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 = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, float* vRad, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, ReadOnlySpan format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, string format) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, string format) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs new file mode 100644 index 000000000..37831b3c6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs @@ -0,0 +1,5048 @@ +// ------------------------------------------------------------------------------ +// +// 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 SliderAngle(byte* label, ref float vRad, string format, ImGuiSliderFlags flags) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, 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* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, 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* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, 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* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, string format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + 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 = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ref byte label, ref float vRad, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(ReadOnlySpan label, ref float vRad, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pvRad = &vRad) + { + 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 = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, 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* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, 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* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, 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* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, ref byte format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, 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* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, 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* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, 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* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderAngle(string label, ref float vRad, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pvRad = &vRad) + { + fixed (byte* pformat = format) + { + byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[181])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[181])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderIntNative(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = SliderIntNative(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, 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 = SliderIntNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderInt(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = SliderInt(pStr0, v, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, int* v, int vMin, int vMax, 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 = SliderIntNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderIntNative(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, 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 = SliderIntNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, 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 = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, 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 = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, int* v, int vMin, int vMax, 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 = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[182])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[182])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = SliderInt2Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, 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 = SliderInt2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, 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 = SliderInt2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, 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 = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, 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 = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, 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 = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, int* v, int vMin, int vMax, 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 = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs new file mode 100644 index 000000000..02748639e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 SliderInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt2(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[183])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[183])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = SliderInt3Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, 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 = SliderInt3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, 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 = SliderInt3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, 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 = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, 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 = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, 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 = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, int* v, int vMin, int vMax, 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 = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt3(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[184])(label, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[184])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = SliderInt4Native(pStr0, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, 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 = SliderInt4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (int* pv = v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (int* pv = v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, 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 = SliderInt4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, 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 = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, 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 = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, int* v, int vMin, int vMax, 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 = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, 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 = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, int* v, int vMin, int vMax, 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 = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ReadOnlySpan v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(ReadOnlySpan label, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderInt4(string label, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[185])(label, dataType, pData, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[185])((nint)label, dataType, (nint)pData, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs new file mode 100644 index 000000000..976d82f2d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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 SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[186])(label, dataType, pData, components, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[186])((nint)label, dataType, (nint)pData, components, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, 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 = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[187])(label, size, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[187])((nint)label, size, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags 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; + } + bool ret = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags 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 (float* pv = &v) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, 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* pv = &v) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags 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 (float* pv = &v) + { + bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, 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 = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags 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 (float* pv = &v) + { + 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 = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, 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* pv = &v) + { + 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 = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(ReadOnlySpan label, Vector2 size, ref float v, float vMin, float vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[188])(label, size, v, vMin, vMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[188])((nint)label, size, (nint)v, vMin, vMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 = VSliderIntNative(pStr0, size, v, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags 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; + } + bool ret = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, byte* format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags 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 (int* pv = &v) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags 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 (int* pv = &v) + { + bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, 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 = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags 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 (int* pv = &v) + { + 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 = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + 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 = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(ReadOnlySpan label, Vector2 size, ref int v, int vMin, int vMax, string format) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + 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 = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan format, ImGuiSliderFlags 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, 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 (int* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte VSliderScalarNative(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[189])(label, size, dataType, pData, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[189])((nint)label, size, dataType, (nint)pData, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + fixed (byte* plabel = label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs new file mode 100644 index 000000000..326a92c51 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs @@ -0,0 +1,5044 @@ +// ------------------------------------------------------------------------------ +// +// 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 VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(ReadOnlySpan label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags 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) + { + byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags 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) + { + byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, 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 = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[190])(label, v, step, stepFast, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[190])((nint)label, (nint)v, step, stepFast, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloatNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, byte* format) + { + byte ret = InputFloatNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, byte* format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, byte* format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, ImGuiInputTextFlags flags) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, ImGuiInputTextFlags flags) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, byte* format, 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 = InputFloatNative(pStr0, v, step, stepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, 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 = InputFloatNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, 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 = InputFloatNative(pStr0, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, 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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, 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; + } + bool ret = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, 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; + } + bool ret = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, 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; + } + bool ret = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, byte* format, 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 = InputFloatNative(pStr0, v, step, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, byte* format, 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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, 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* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, 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* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, 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* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, 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 (float* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, 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 (float* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, 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 (float* pv = &v) + { + bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, float stepFast, 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 = InputFloatNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, 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 = InputFloatNative(label, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, 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 = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, float step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, string format, 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 (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 = InputFloatNative(pStr0, v, step, stepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, 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 = InputFloatNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, 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 = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, 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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, string format, 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 (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 = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, string format, 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 (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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, float stepFast, 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 = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, 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 = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, 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 = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, float step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, float stepFast, 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 = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, 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 = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, 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 = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, float step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, ref byte format, 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* pformat = &format) + { + byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, 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 = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, 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 = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, 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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, ref byte format, 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* pformat = &format) + { + byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, ref byte format, 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* pformat = &format) + { + byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, float stepFast, 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 = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, 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 = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, 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 = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, float step, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, float* v, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, float stepFast, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, float step, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(byte* label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, string format, 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 (float* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, 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* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, 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* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, 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* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, string format, 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 (float* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, string format, 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 (float* pv = &v) + { + 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 = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs new file mode 100644 index 000000000..5c2296c12 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// 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 InputFloat(ref byte label, ref float v, float step, float stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, float step, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, float stepFast, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, float step, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(ReadOnlySpan label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, float stepFast, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, float step, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat(string label, ref float v, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputFloat2Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[191])(label, v, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[191])((nint)label, (nint)v, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloat2Native(label, v, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, byte* format) + { + byte ret = InputFloat2Native(label, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v) + { + bool ret = InputFloat2(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, ImGuiInputTextFlags flags) + { + bool ret = InputFloat2(label, v, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat2Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat2Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat2Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat2Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, byte* format, 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 = InputFloat2Native(pStr0, v, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, 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 = InputFloat2Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat2(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, 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; + } + bool ret = InputFloat2(pStr0, v, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v, byte* format, ImGuiInputTextFlags flags) + { + fixed (Vector2* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v) + { + fixed (Vector2* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v, ImGuiInputTextFlags flags) + { + fixed (Vector2* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v, byte* format, 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 (Vector2* pv = &v) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v, 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 (Vector2* pv = &v) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* pv = &v) + { + bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v, 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 (Vector2* pv = &v) + { + bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, 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* pv = &v) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, 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 (float* pv = &v) + { + bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat2Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, float* v, 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 = InputFloat2Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, string format, 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 (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 = InputFloat2Native(pStr0, v, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, 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 = InputFloat2Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat2Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, float* v, 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 = InputFloat2Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat2Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, float* v, 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 = InputFloat2Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, ref byte format, 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* pformat = &format) + { + byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, 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 = InputFloat2Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, float* v, 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 = InputFloat2Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v, string format, ImGuiInputTextFlags flags) + { + fixed (Vector2* pv = &v) + { + 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 = InputFloat2Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref Vector2 v, string format) + { + fixed (Vector2* pv = &v) + { + 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 = InputFloat2Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v, string format, 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 (Vector2* pv = &v) + { + 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 = InputFloat2Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref Vector2 v, 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 (Vector2* pv = &v) + { + 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 = InputFloat2Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, string format, 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 (float* pv = &v) + { + 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 = InputFloat2Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat2(string label, ref float v, 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* pv = &v) + { + 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 = InputFloat2Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + 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 InputFloat3Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[192])(label, v, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[192])((nint)label, (nint)v, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloat3Native(label, v, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, byte* format) + { + byte ret = InputFloat3Native(label, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v) + { + bool ret = InputFloat3(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, ImGuiInputTextFlags flags) + { + bool ret = InputFloat3(label, v, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat3Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat3Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat3Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat3Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, byte* format, 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 = InputFloat3Native(pStr0, v, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, 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 = InputFloat3Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat3(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, 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; + } + bool ret = InputFloat3(pStr0, v, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v, byte* format, ImGuiInputTextFlags flags) + { + fixed (Vector3* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v, ImGuiInputTextFlags flags) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v, byte* format, 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 (Vector3* pv = &v) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v, 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 (Vector3* pv = &v) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v, 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 (Vector3* pv = &v) + { + bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, 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* pv = &v) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, 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 (float* pv = &v) + { + bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat3Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, float* v, 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 = InputFloat3Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, string format, 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 (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 = InputFloat3Native(pStr0, v, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, 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 = InputFloat3Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat3Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, float* v, 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 = InputFloat3Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat3Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, float* v, 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 = InputFloat3Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, ref byte format, 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* pformat = &format) + { + byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, 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 = InputFloat3Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, float* v, 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 = InputFloat3Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v, string format, ImGuiInputTextFlags flags) + { + fixed (Vector3* pv = &v) + { + 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 = InputFloat3Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref Vector3 v, string format) + { + fixed (Vector3* pv = &v) + { + 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 = InputFloat3Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs new file mode 100644 index 000000000..3c04206a6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 InputFloat3(byte* label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v, string format, 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 (Vector3* pv = &v) + { + 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 = InputFloat3Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref Vector3 v, 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 (Vector3* pv = &v) + { + 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 = InputFloat3Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, string format, 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 (float* pv = &v) + { + 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 = InputFloat3Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat3(string label, ref float v, 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* pv = &v) + { + 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 = InputFloat3Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + 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 InputFloat4Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[193])(label, v, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[193])((nint)label, (nint)v, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputFloat4Native(label, v, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, byte* format) + { + byte ret = InputFloat4Native(label, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v) + { + bool ret = InputFloat4(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, ImGuiInputTextFlags flags) + { + bool ret = InputFloat4(label, v, (string)"%.3f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat4Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputFloat4Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat4Native((byte*)plabel, v, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputFloat4Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, byte* format, 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 = InputFloat4Native(pStr0, v, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, 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 = InputFloat4Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputFloat4(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, 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; + } + bool ret = InputFloat4(pStr0, v, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v, byte* format) + { + fixed (float* pv = v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v) + { + fixed (float* pv = v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v, byte* format, ImGuiInputTextFlags flags) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v, ImGuiInputTextFlags flags) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v, byte* format, 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 (Vector4* pv = &v) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v, 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* pv = &v) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v, 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 (Vector4* pv = &v) + { + bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, byte* format, 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 (float* pv = &v) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, 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* pv = &v) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pv = &v) + { + bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, 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 (float* pv = &v) + { + bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat4Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, float* v, 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 = InputFloat4Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, string format, 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 (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 = InputFloat4Native(pStr0, v, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, 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 = InputFloat4Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat4Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, float* v, 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 = InputFloat4Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputFloat4Native((byte*)plabel, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, float* v, 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 = InputFloat4Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, ref byte format, 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* pformat = &format) + { + byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, 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 = InputFloat4Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, float* v, 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 = InputFloat4Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v, string format, ImGuiInputTextFlags flags) + { + fixed (Vector4* pv = &v) + { + 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 = InputFloat4Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref Vector4 v, string format) + { + fixed (Vector4* pv = &v) + { + 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 = InputFloat4Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, ReadOnlySpan format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ReadOnlySpan v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v, string format, 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 (Vector4* pv = &v) + { + 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 = InputFloat4Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref Vector4 v, 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* pv = &v) + { + 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 = InputFloat4Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ref byte label, ref float v, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(ReadOnlySpan label, ref float v, string format) + { + fixed (byte* plabel = label) + { + fixed (float* pv = &v) + { + 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 = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, ref byte format, 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 (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, ReadOnlySpan format, 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 (float* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, 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* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, string format, 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 (float* pv = &v) + { + 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 = InputFloat4Native(pStr0, (float*)pv, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputFloat4(string label, ref float v, 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* pv = &v) + { + 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 = InputFloat4Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); + 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 InputIntNative(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[194])(label, v, step, stepFast, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[194])((nint)label, (nint)v, step, stepFast, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) + { + byte ret = InputIntNative(label, v, step, stepFast, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v, int step, int stepFast) + { + byte ret = InputIntNative(label, v, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v, int step) + { + byte ret = InputIntNative(label, v, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v) + { + byte ret = InputIntNative(label, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v, int step, ImGuiInputTextFlags flags) + { + byte ret = InputIntNative(label, v, step, (int)(100), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, int* v, ImGuiInputTextFlags flags) + { + byte ret = InputIntNative(label, v, (int)(1), (int)(100), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, step, stepFast, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v, int step, int stepFast) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v, int step) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v, int step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, step, stepFast, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v, int step, int stepFast) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v, int step) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v, int step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v, int step, int stepFast, 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 = InputIntNative(pStr0, v, step, stepFast, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v, int step, int stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputIntNative(pStr0, v, step, stepFast, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v, int step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputIntNative(pStr0, v, step, (int)(100), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputIntNative(pStr0, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v, int step, 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 = InputIntNative(pStr0, v, step, (int)(100), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, int* v, 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 = InputIntNative(pStr0, v, (int)(1), (int)(100), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, stepFast, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v, int step, int stepFast) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v, int step) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v, int step, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(byte* label, ref int v, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v, int step, int stepFast) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v, int step) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v, int step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ref byte label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v, int step, int stepFast) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v, int step) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v, int step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(ReadOnlySpan label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v, int step, int stepFast, 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 (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v, int step, int stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v, int step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v, int step, 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 (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt(string label, ref int v, 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 (int* pv = &v) + { + byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputInt2Native(byte* label, int* v, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[195])(label, v, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[195])((nint)label, (nint)v, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, int* v, ImGuiInputTextFlags flags) + { + byte ret = InputInt2Native(label, v, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, int* v) + { + byte ret = InputInt2Native(label, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt2(ref byte label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt2Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt2Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputInt2Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + byte ret = InputInt2Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(string label, int* v, 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 = InputInt2Native(pStr0, v, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt2(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputInt2Native(pStr0, v, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, ref int v, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (int* pv = v) + { + byte ret = InputInt2Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + byte ret = InputInt2Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ref byte label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(string label, ref int v, 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 (int* pv = &v) + { + byte ret = InputInt2Native(pStr0, (int*)pv, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputInt2Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt2(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputInt3Native(byte* label, int* v, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[196])(label, v, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[196])((nint)label, (nint)v, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, int* v, ImGuiInputTextFlags flags) + { + byte ret = InputInt3Native(label, v, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, int* v) + { + byte ret = InputInt3Native(label, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt3(ref byte label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt3Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt3Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputInt3Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + byte ret = InputInt3Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(string label, int* v, 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 = InputInt3Native(pStr0, v, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt3(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputInt3Native(pStr0, v, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, ref int v, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (int* pv = v) + { + byte ret = InputInt3Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + byte ret = InputInt3Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ref byte label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(string label, ref int v, 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 (int* pv = &v) + { + byte ret = InputInt3Native(pStr0, (int*)pv, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputInt3Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt3(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputInt4Native(byte* label, int* v, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[197])(label, v, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[197])((nint)label, (nint)v, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, int* v, ImGuiInputTextFlags flags) + { + byte ret = InputInt4Native(label, v, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, int* v) + { + byte ret = InputInt4Native(label, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt4(ref byte label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt4Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ref byte label, int* v) + { + fixed (byte* plabel = &label) + { + byte ret = InputInt4Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, int* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputInt4Native((byte*)plabel, v, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, int* v) + { + fixed (byte* plabel = label) + { + byte ret = InputInt4Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(string label, int* v, 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 = InputInt4Native(pStr0, v, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt4(string label, int* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputInt4Native(pStr0, v, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, ref int v, ImGuiInputTextFlags flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (int* pv = v) + { + byte ret = InputInt4Native(label, (int*)pv, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(byte* label, ReadOnlySpan v) + { + fixed (int* pv = v) + { + byte ret = InputInt4Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ref byte label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ref byte label, ref int v) + { + fixed (byte* plabel = &label) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, ReadOnlySpan v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, ReadOnlySpan v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(string label, ref int v, 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 (int* pv = &v) + { + byte ret = InputInt4Native(pStr0, (int*)pv, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(string label, ref int v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pv = &v) + { + byte ret = InputInt4Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, ref int v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputInt4(ReadOnlySpan label, ref int v) + { + fixed (byte* plabel = label) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs new file mode 100644 index 000000000..a01e0c39b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[198])(label, v, step, stepFast, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[198])((nint)label, (nint)v, step, stepFast, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, byte* format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, byte* format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, byte* format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, ImGuiInputTextFlags flags) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, ImGuiInputTextFlags flags) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, byte* format, 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 = InputDoubleNative(pStr0, v, step, stepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, 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 = InputDoubleNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, 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 = InputDoubleNative(pStr0, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, 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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, 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; + } + bool ret = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, 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; + } + bool ret = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, 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; + } + bool ret = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, byte* format, 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 = InputDoubleNative(pStr0, v, step, (double)(0.0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, byte* format, 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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, byte* format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, byte* format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, byte* format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, byte* format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, byte* format, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, 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 (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, 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 (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, 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 (double* pv = &v) + { + bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, byte* format, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, byte* format, 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 (double* pv = &v) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, double stepFast, 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 = InputDoubleNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, 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 = InputDoubleNative(label, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, 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 = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, double step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, double* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, string format, 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 (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 = InputDoubleNative(pStr0, v, step, stepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, 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 = InputDoubleNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, 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 = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, 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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, string format, 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 (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 = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, string format, 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 (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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, double stepFast, 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 = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, 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 = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, 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 = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, double step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, double* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, double stepFast, 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 = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, 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 = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, 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 = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, double step, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, double* v, string format, ImGuiInputTextFlags 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; + } + byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, ref byte format, 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* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, 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 = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, 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 = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, 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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, ref byte format, 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* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, ref byte format, 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* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, double stepFast, 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 = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, 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 = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, 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 = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, double step, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, double* v, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ReadOnlySpan format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, ReadOnlySpan format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, ReadOnlySpan format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, double stepFast, string format) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, string format) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, string format) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, double step, string format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(byte* label, ref double v, string format, ImGuiInputTextFlags flags) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, string format, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, string format, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, string format, 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 (double* pv = &v) + { + 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 = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, string format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, string format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, string format) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, double step, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ref byte label, ref double v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, double stepFast, string format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, string format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, string format) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, double step, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(ReadOnlySpan label, ref double v, string format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (double* pv = &v) + { + 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 = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs new file mode 100644 index 000000000..626b44154 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// 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 InputDouble(string label, ref double v, double step, double stepFast, ref byte format, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, ref byte format, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, ref byte format, 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 (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, ReadOnlySpan format, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, double stepFast, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, double step, ReadOnlySpan format, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputDouble(string label, ref double v, ReadOnlySpan format, 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 (double* pv = &v) + { + fixed (byte* pformat = format) + { + byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[199])(label, dataType, pData, pStep, pStepFast, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[199])((nint)label, dataType, (nint)pData, (nint)pStep, (nint)pStepFast, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, 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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, byte* format, 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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, 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 (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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, string format, 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 (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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, string format, 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 (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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, 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 = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, 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 = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(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 = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[200])(label, dataType, pData, components, pStep, pStepFast, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[200])((nint)label, dataType, (nint)pData, components, (nint)pStep, (nint)pStepFast, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, 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 (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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, 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 (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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format, 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 (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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs new file mode 100644 index 000000000..8f7315bc7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs @@ -0,0 +1,5041 @@ +// ------------------------------------------------------------------------------ +// +// 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 InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags 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; + } + byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format, 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* pformat = &format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, 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 = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, 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 = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, 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* pformat = format) + { + byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColorEdit3Native(byte* label, float* col, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[201])(label, col, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[201])((nint)label, (nint)col, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, float* col, ImGuiColorEditFlags flags) + { + byte ret = ColorEdit3Native(label, col, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, float* col) + { + byte ret = ColorEdit3Native(label, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ref byte label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ColorEdit3Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ref byte label, float* col) + { + fixed (byte* plabel = &label) + { + byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = ColorEdit3Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, float* col) + { + fixed (byte* plabel = label) + { + byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, float* col, ImGuiColorEditFlags 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 = ColorEdit3Native(pStr0, col, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, float* col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorEdit3Native(pStr0, col, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ReadOnlySpan col) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(byte* label, ref Vector3 col) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ref byte label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ref byte label, ref float col) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, ReadOnlySpan col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, ref Vector3 col, ImGuiColorEditFlags 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 (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, ref Vector3 col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(ReadOnlySpan label, ref float col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, ref float col, ImGuiColorEditFlags 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 (float* pcol = &col) + { + byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit3(string label, ref float col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColorEdit4Native(byte* label, float* col, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[202])(label, col, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[202])((nint)label, (nint)col, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, float* col, ImGuiColorEditFlags flags) + { + byte ret = ColorEdit4Native(label, col, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, float* col) + { + byte ret = ColorEdit4Native(label, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ref byte label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ColorEdit4Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ref byte label, float* col) + { + fixed (byte* plabel = &label) + { + byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = ColorEdit4Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, float* col) + { + fixed (byte* plabel = label) + { + byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, float* col, ImGuiColorEditFlags 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 = ColorEdit4Native(pStr0, col, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, float* col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorEdit4Native(pStr0, col, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ReadOnlySpan col) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(byte* label, ref Vector4 col) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ref byte label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ref byte label, ref float col) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, ReadOnlySpan col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, ref Vector4 col, ImGuiColorEditFlags 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 (Vector4* pcol = &col) + { + byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, ref Vector4 col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(ReadOnlySpan label, ref float col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, ref float col, ImGuiColorEditFlags 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 (float* pcol = &col) + { + byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorEdit4(string label, ref float col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColorPicker3Native(byte* label, float* col, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[203])(label, col, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[203])((nint)label, (nint)col, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, float* col, ImGuiColorEditFlags flags) + { + byte ret = ColorPicker3Native(label, col, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, float* col) + { + byte ret = ColorPicker3Native(label, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ref byte label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker3Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ref byte label, float* col) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker3Native((byte*)plabel, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, float* col) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, float* col, ImGuiColorEditFlags 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 = ColorPicker3Native(pStr0, col, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, float* col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorPicker3Native(pStr0, col, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ReadOnlySpan col) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(byte* label, ref Vector3 col) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ref byte label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ref byte label, ref float col) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, ReadOnlySpan col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, ref Vector3 col, ImGuiColorEditFlags 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 (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, ref Vector3 col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(ReadOnlySpan label, ref float col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, ref float col, ImGuiColorEditFlags 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 (float* pcol = &col) + { + byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker3(string label, ref float col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColorPicker4Native(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[204])(label, col, flags, refCol); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[204])((nint)label, (nint)col, flags, (nint)refCol); + #endif + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + byte ret = ColorPicker4Native(label, col, flags, refCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col) + { + byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col, float* refCol) + { + byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col, float* refCol) + { + fixed (byte* plabel = &label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col, float* refCol) + { + fixed (byte* plabel = label) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorPicker4Native(pStr0, col, flags, refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags 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 = ColorPicker4Native(pStr0, col, flags, (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col, float* refCol) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col, float* refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, float* refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags 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 (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags, float* refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col, float* refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags 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 (float* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col, float* refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, float* col, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, float* col, ref float refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, float* col, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, col, flags, (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, float* col, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref float col, ref float refCol) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (float* pcol = col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ReadOnlySpan col, ref float refCol) + { + fixed (float* pcol = col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (Vector4* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(byte* label, ref Vector4 col, ref float refCol) + { + fixed (Vector4* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ref byte label, ref float col, ref float refCol) + { + fixed (byte* plabel = &label) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref Vector4 col, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(ReadOnlySpan label, ref float col, ref float refCol) + { + fixed (byte* plabel = label) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColorPicker4(string label, ref float col, ref float refCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColorButtonNative(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[205])(descId, col, flags, size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[205])((nint)descId, col, flags, size); + #endif + } + + /// + /// To be documented. + /// + public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, flags, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags) + { + byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(byte* descId, Vector4 col) + { + byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(byte* descId, Vector4 col, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + fixed (byte* pdescId = &descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags) + { + fixed (byte* pdescId = &descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ref byte descId, Vector4 col) + { + fixed (byte* pdescId = &descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ref byte descId, Vector4 col, Vector2 size) + { + fixed (byte* pdescId = &descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ReadOnlySpan descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + fixed (byte* pdescId = descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ReadOnlySpan descId, Vector4 col, ImGuiColorEditFlags flags) + { + fixed (byte* pdescId = descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ReadOnlySpan descId, Vector4 col) + { + fixed (byte* pdescId = descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(ReadOnlySpan descId, Vector4 col, Vector2 size) + { + fixed (byte* pdescId = descId) + { + byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (descId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(descId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColorButtonNative(pStr0, col, flags, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (descId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(descId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColorButtonNative(pStr0, col, flags, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(string descId, Vector4 col) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (descId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(descId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColorButton(string descId, Vector4 col, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (descId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(descId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetColorEditOptionsNative(ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[206])(flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[206])(flags); + #endif + } + + /// + /// To be documented. + /// + public static void SetColorEditOptions(ImGuiColorEditFlags flags) + { + SetColorEditOptionsNative(flags); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[207])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[207])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNode(byte* label) + { + byte ret = TreeNodeNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNode(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = TreeNodeNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(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 = TreeNodeNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeNative(byte* strId, byte* fmt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[208])(strId, fmt); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[208])((nint)strId, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNode(byte* strId, byte* fmt) + { + byte ret = TreeNodeNative(strId, fmt); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNode(ref byte strId, byte* fmt) + { + fixed (byte* pstrId = &strId) + { + byte ret = TreeNodeNative((byte*)pstrId, fmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ReadOnlySpan strId, byte* fmt) + { + fixed (byte* pstrId = strId) + { + byte ret = TreeNodeNative((byte*)pstrId, fmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(string strId, byte* fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeNative(pStr0, fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNode(byte* strId, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative(strId, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(byte* strId, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeNative(strId, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(byte* strId, 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; + } + byte ret = TreeNodeNative(strId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNode(ref byte strId, ref byte fmt) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ReadOnlySpan strId, ReadOnlySpan fmt) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(string strId, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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; + } + byte ret = TreeNodeNative(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 TreeNode(ref byte strId, ReadOnlySpan fmt) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ref byte strId, string fmt) + { + fixed (byte* pstrId = &strId) + { + 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; + } + byte ret = TreeNodeNative((byte*)pstrId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ReadOnlySpan strId, ref byte fmt) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(ReadOnlySpan strId, string fmt) + { + fixed (byte* pstrId = strId) + { + 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; + } + byte ret = TreeNodeNative((byte*)pstrId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(string strId, ref byte fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative(pStr0, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(string strId, ReadOnlySpan fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeNative(pStr0, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeNative(void* ptrId, byte* fmt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[209])(ptrId, fmt); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[209])((nint)ptrId, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNode(void* ptrId, byte* fmt) + { + byte ret = TreeNodeNative(ptrId, fmt); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNode(void* ptrId, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative(ptrId, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(void* ptrId, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeNative(ptrId, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNode(void* ptrId, 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; + } + byte ret = TreeNodeNative(ptrId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeVNative(byte* strId, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[210])(strId, fmt, args); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[210])((nint)strId, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(byte* strId, byte* fmt, nuint args) + { + byte ret = TreeNodeVNative(strId, fmt, args); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ref byte strId, byte* fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ReadOnlySpan strId, byte* fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(string strId, byte* fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeVNative(pStr0, fmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(byte* strId, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(byte* strId, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(byte* strId, 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; + } + byte ret = TreeNodeVNative(strId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ref byte strId, ref byte fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ReadOnlySpan strId, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(string strId, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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; + } + byte ret = TreeNodeVNative(pStr0, pStr1, args); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ref byte strId, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ref byte strId, string fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + 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; + } + byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ReadOnlySpan strId, ref byte fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(ReadOnlySpan strId, string fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + 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; + } + byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(string strId, ref byte fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(string strId, ReadOnlySpan fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[211])(ptrId, fmt, args); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[211])((nint)ptrId, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(void* ptrId, byte* fmt, nuint args) + { + byte ret = TreeNodeVNative(ptrId, fmt, args); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(void* ptrId, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(void* ptrId, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeV(void* ptrId, 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; + } + byte ret = TreeNodeVNative(ptrId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeExNative(byte* label, ImGuiTreeNodeFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[212])(label, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[212])((nint)label, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* label, ImGuiTreeNodeFlags flags) + { + byte ret = TreeNodeExNative(label, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* label) + { + byte ret = TreeNodeExNative(label, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte label, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeExNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan label, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = TreeNodeExNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(string label, ImGuiTreeNodeFlags 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 = TreeNodeExNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(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 = TreeNodeExNative(pStr0, (ImGuiTreeNodeFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeExNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[213])(strId, flags, fmt); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[213])((nint)strId, flags, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + byte ret = TreeNodeExNative(strId, flags, fmt); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + fixed (byte* pstrId = &strId) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + fixed (byte* pstrId = strId) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, byte* fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeExNative(pStr0, flags, fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, 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; + } + byte ret = TreeNodeExNative(strId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ref byte fmt) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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; + } + byte ret = TreeNodeExNative(pStr0, flags, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, string fmt) + { + fixed (byte* pstrId = &strId) + { + 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; + } + byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ref byte fmt) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, string fmt) + { + fixed (byte* pstrId = strId) + { + 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; + } + byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ref byte fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeExNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[214])(ptrId, flags, fmt); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[214])((nint)ptrId, flags, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) + { + byte ret = TreeNodeExNative(ptrId, flags, fmt); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, 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; + } + byte ret = TreeNodeExNative(ptrId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs new file mode 100644 index 000000000..6db5329e7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeExVNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[215])(strId, flags, fmt, args); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[215])((nint)strId, flags, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + byte ret = TreeNodeExVNative(strId, flags, fmt, args); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, fmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, fmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeExVNative(pStr0, flags, fmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, 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; + } + byte ret = TreeNodeExVNative(strId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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; + } + byte ret = TreeNodeExVNative(pStr0, flags, pStr1, args); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) + { + fixed (byte* pstrId = &strId) + { + 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; + } + byte ret = TreeNodeExVNative((byte*)pstrId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) + { + fixed (byte* pstrId = strId) + { + 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; + } + byte ret = TreeNodeExVNative((byte*)pstrId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative(pStr0, flags, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExVNative(pStr0, flags, (byte*)pfmt, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeExVNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[216])(ptrId, flags, fmt, args); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[216])((nint)ptrId, flags, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) + { + byte ret = TreeNodeExVNative(ptrId, flags, fmt, args); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative(ptrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + byte ret = TreeNodeExVNative(ptrId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, 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; + } + byte ret = TreeNodeExVNative(ptrId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TreePushNative(byte* strId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[217])(strId); + #else + ((delegate* unmanaged[Cdecl])funcTable[217])((nint)strId); + #endif + } + + /// + /// To be documented. + /// + public static void TreePush(byte* strId) + { + TreePushNative(strId); + } + + /// + /// To be documented. + /// + public static void TreePush(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + TreePushNative((byte*)pstrId); + } + } + + /// + /// To be documented. + /// + public static void TreePush(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + TreePushNative((byte*)pstrId); + } + } + + /// + /// To be documented. + /// + public static void TreePush(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TreePushNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TreePushNative(void* ptrId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[218])(ptrId); + #else + ((delegate* unmanaged[Cdecl])funcTable[218])((nint)ptrId); + #endif + } + + /// + /// To be documented. + /// + public static void TreePush(void* ptrId) + { + TreePushNative(ptrId); + } + + /// + /// To be documented. + /// + public static void TreePush() + { + TreePushNative((void*)(default)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TreePopNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[219])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[219])(); + #endif + } + + /// + /// To be documented. + /// + public static void TreePop() + { + TreePopNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetTreeNodeToLabelSpacingNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[220])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[220])(); + #endif + } + + /// + /// To be documented. + /// + public static float GetTreeNodeToLabelSpacing() + { + float ret = GetTreeNodeToLabelSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CollapsingHeaderNative(byte* label, ImGuiTreeNodeFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[221])(label, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[221])((nint)label, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label, ImGuiTreeNodeFlags flags) + { + byte ret = CollapsingHeaderNative(label, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label) + { + byte ret = CollapsingHeaderNative(label, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(string label, ImGuiTreeNodeFlags 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 = CollapsingHeaderNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(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 = CollapsingHeaderNative(pStr0, (ImGuiTreeNodeFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CollapsingHeaderNative(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[222])(label, pVisible, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[222])((nint)label, (nint)pVisible, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) + { + byte ret = CollapsingHeaderNative(label, pVisible, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label, bool* pVisible) + { + byte ret = CollapsingHeaderNative(label, pVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label, bool* pVisible, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label, bool* pVisible) + { + fixed (byte* plabel = &label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label, bool* pVisible, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label, bool* pVisible) + { + fixed (byte* plabel = label) + { + byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(string label, bool* pVisible, ImGuiTreeNodeFlags 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 = CollapsingHeaderNative(pStr0, pVisible, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(string label, bool* pVisible) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = CollapsingHeaderNative(pStr0, pVisible, (ImGuiTreeNodeFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label, ref bool pVisible, ImGuiTreeNodeFlags flags) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(label, (bool*)ppVisible, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(byte* label, ref bool pVisible) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(label, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label, ref bool pVisible, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ref byte label, ref bool pVisible) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label, ref bool pVisible, ImGuiTreeNodeFlags flags) + { + fixed (byte* plabel = label) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(ReadOnlySpan label, ref bool pVisible) + { + fixed (byte* plabel = label) + { + fixed (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(string label, ref bool pVisible, ImGuiTreeNodeFlags 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 (bool* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(pStr0, (bool*)ppVisible, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CollapsingHeader(string label, ref bool pVisible) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(pStr0, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextItemOpenNative(byte isOpen, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[223])(isOpen, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[223])(isOpen, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextItemOpen(bool isOpen, ImGuiCond cond) + { + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void SetNextItemOpen(bool isOpen) + { + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SelectableNative(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[224])(label, selected, flags, size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[224])((nint)label, selected, flags, size); + #endif + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool selected, ImGuiSelectableFlags flags, Vector2 size) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool selected, ImGuiSelectableFlags flags) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool selected) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label) + { + byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ImGuiSelectableFlags flags) + { + byte ret = SelectableNative(label, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool selected, Vector2 size) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, Vector2 size) + { + byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ImGuiSelectableFlags flags, Vector2 size) + { + byte ret = SelectableNative(label, (byte)(0), flags, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool selected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool selected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool selected) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool selected, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool selected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool selected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool selected) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool selected, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool selected, ImGuiSelectableFlags flags, 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 = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool selected, ImGuiSelectableFlags 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 = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, 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 = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(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 = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ImGuiSelectableFlags 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 = SelectableNative(pStr0, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool selected, 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 = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(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 = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ImGuiSelectableFlags flags, 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 = SelectableNative(pStr0, (byte)(0), flags, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SelectableNative(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[225])(label, pSelected, flags, size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[225])((nint)label, (nint)pSelected, flags, size); + #endif + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + byte ret = SelectableNative(label, pSelected, flags, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags) + { + byte ret = SelectableNative(label, pSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool* pSelected) + { + byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, bool* pSelected, Vector2 size) + { + byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool* pSelected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool* pSelected) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, bool* pSelected, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool* pSelected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool* pSelected) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, bool* pSelected, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool* pSelected, ImGuiSelectableFlags flags, 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 = SelectableNative(pStr0, pSelected, flags, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool* pSelected, ImGuiSelectableFlags 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 = SelectableNative(pStr0, pSelected, flags, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, bool* pSelected, 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 = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (bool*)ppSelected, flags, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ref bool pSelected, ImGuiSelectableFlags flags) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ref bool pSelected) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(byte* label, ref bool pSelected, Vector2 size) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, size); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ref bool pSelected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ref bool pSelected) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ref byte label, ref bool pSelected, Vector2 size) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, size); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ref bool pSelected, ImGuiSelectableFlags flags) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ref bool pSelected) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(ReadOnlySpan label, ref bool pSelected, Vector2 size) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ref bool pSelected, ImGuiSelectableFlags flags, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(pStr0, (bool*)ppSelected, flags, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ref bool pSelected, ImGuiSelectableFlags 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 (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(pStr0, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ref bool pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* ppSelected = &pSelected) + { + byte ret = SelectableNative(pStr0, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Selectable(string label, ref bool pSelected, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = SelectableNative(pStr0, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginListBoxNative(byte* label, Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[226])(label, size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[226])((nint)label, size); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginListBox(byte* label, Vector2 size) + { + byte ret = BeginListBoxNative(label, size); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginListBox(byte* label) + { + byte ret = BeginListBoxNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginListBox(ref byte label, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = BeginListBoxNative((byte*)plabel, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginListBox(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = BeginListBoxNative((byte*)plabel, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginListBox(ReadOnlySpan label, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = BeginListBoxNative((byte*)plabel, size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginListBox(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = BeginListBoxNative((byte*)plabel, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginListBox(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 = BeginListBoxNative(pStr0, size); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginListBox(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 = BeginListBoxNative(pStr0, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndListBoxNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[227])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[227])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndListBox() + { + EndListBoxNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[228])(label, currentItem, items, itemsCount, heightInItems); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[228])((nint)label, (nint)currentItem, (nint)items, itemsCount, heightInItems); + #endif + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, heightInItems); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, byte** items, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (byte* plabel = &label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, int* currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = &label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (byte* plabel = label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ListBoxNative(pStr0, currentItem, items, itemsCount, heightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, byte** items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ListBoxNative(pStr0, currentItem, items, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, byte** items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, ref int currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, ref int currentItem, byte** items, int itemsCount) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, heightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, byte** items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, string[] items, int itemsCount, int heightInItems) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, string[] items, int itemsCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, string[] items, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, string[] items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, string[] items, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, string[] items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, string[] items, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, string[] items, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ListBoxNative(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, int, int, bool>, void*, int, int, byte>)funcTable[229])(label, currentItem, itemsGetter, data, itemsCount, heightInItems); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[229])((nint)label, (nint)currentItem, (nint)itemsGetter, (nint)data, itemsCount, heightInItems); + #endif + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + fixed (byte* plabel = &label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = &label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + fixed (byte* plabel = label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = label) + { + byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, heightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, int* currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(byte* label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ref byte label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = &label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(ReadOnlySpan label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + fixed (byte* plabel = label) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ListBox(string label, ref int currentItem, delegate*, void*, int, int, bool> itemsGetter, void* data, int itemsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[230])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[230])((nint)label, (nint)values, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs new file mode 100644 index 000000000..42b353de9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs @@ -0,0 +1,5046 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotLines(string label, float* values, int valuesCount, float scaleMin, float 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs new file mode 100644 index 000000000..92299675a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs @@ -0,0 +1,5036 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotLines(byte* label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs new file mode 100644 index 000000000..9fc4436d9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs new file mode 100644 index 000000000..adb20d774 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs @@ -0,0 +1,5042 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLinesNative(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 graphSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)funcTable[231])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[231])((nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs new file mode 100644 index 000000000..ce322e404 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLines(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[232])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[232])((nint)label, (nint)values, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs new file mode 100644 index 000000000..0ca617f07 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs new file mode 100644 index 000000000..d80364a26 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs @@ -0,0 +1,5052 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs new file mode 100644 index 000000000..ad883522c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + 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; + } + PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs new file mode 100644 index 000000000..e0afd447f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + 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; + } + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = &label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* plabel = label) + { + fixed (float* pvalues = &values) + { + 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; + } + PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* pvalues = &values) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotHistogramNative(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 graphSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)funcTable[233])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[233])((nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize); + #endif + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs new file mode 100644 index 000000000..bc9395e89 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float 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; + } + 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + 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; + } + PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(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 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float 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; + } + fixed (byte* poverlayText = overlayText) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHistogram(string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ValueNative(byte* prefix, byte b) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[234])(prefix, b); + #else + ((delegate* unmanaged[Cdecl])funcTable[234])((nint)prefix, b); + #endif + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, bool b) + { + ValueNative(prefix, b ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, bool b) + { + fixed (byte* pprefix = &prefix) + { + ValueNative((byte*)pprefix, b ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, bool b) + { + fixed (byte* pprefix = prefix) + { + ValueNative((byte*)pprefix, b ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, bool b) + { + 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; + } + ValueNative(pStr0, b ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ValueNative(byte* prefix, int v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[235])(prefix, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[235])((nint)prefix, v); + #endif + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, int v) + { + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, int v) + { + fixed (byte* pprefix = &prefix) + { + ValueNative((byte*)pprefix, v); + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, int v) + { + fixed (byte* pprefix = prefix) + { + ValueNative((byte*)pprefix, v); + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, int v) + { + 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; + } + ValueNative(pStr0, v); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ValueNative(byte* prefix, uint v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[236])(prefix, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[236])((nint)prefix, v); + #endif + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, uint v) + { + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, uint v) + { + fixed (byte* pprefix = &prefix) + { + ValueNative((byte*)pprefix, v); + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, uint v) + { + fixed (byte* pprefix = prefix) + { + ValueNative((byte*)pprefix, v); + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, uint v) + { + 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; + } + ValueNative(pStr0, v); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ValueNative(byte* prefix, float v, byte* floatFormat) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[237])(prefix, v, floatFormat); + #else + ((delegate* unmanaged[Cdecl])funcTable[237])((nint)prefix, v, (nint)floatFormat); + #endif + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, float v, byte* floatFormat) + { + ValueNative(prefix, v, floatFormat); + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, float v) + { + ValueNative(prefix, v, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, float v, byte* floatFormat) + { + fixed (byte* pprefix = &prefix) + { + ValueNative((byte*)pprefix, v, floatFormat); + } + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, float v) + { + fixed (byte* pprefix = &prefix) + { + ValueNative((byte*)pprefix, v, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, float v, byte* floatFormat) + { + fixed (byte* pprefix = prefix) + { + ValueNative((byte*)pprefix, v, floatFormat); + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, float v) + { + fixed (byte* pprefix = prefix) + { + ValueNative((byte*)pprefix, v, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, float v, byte* floatFormat) + { + 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; + } + ValueNative(pStr0, v, floatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, float v) + { + 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; + } + ValueNative(pStr0, v, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, float v, ref byte floatFormat) + { + fixed (byte* pfloatFormat = &floatFormat) + { + ValueNative(prefix, v, (byte*)pfloatFormat); + } + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, float v, ReadOnlySpan floatFormat) + { + fixed (byte* pfloatFormat = floatFormat) + { + ValueNative(prefix, v, (byte*)pfloatFormat); + } + } + + /// + /// To be documented. + /// + public static void Value(byte* prefix, float v, string floatFormat) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (floatFormat != null) + { + pStrSize0 = Utils.GetByteCountUTF8(floatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ValueNative(prefix, v, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, float v, ref byte floatFormat) + { + fixed (byte* pprefix = &prefix) + { + fixed (byte* pfloatFormat = &floatFormat) + { + ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); + } + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, float v, ReadOnlySpan floatFormat) + { + fixed (byte* pprefix = prefix) + { + fixed (byte* pfloatFormat = floatFormat) + { + ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); + } + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, float v, string floatFormat) + { + 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 (floatFormat != null) + { + pStrSize1 = Utils.GetByteCountUTF8(floatFormat); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(floatFormat, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ValueNative(pStr0, v, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, float v, ReadOnlySpan floatFormat) + { + fixed (byte* pprefix = &prefix) + { + fixed (byte* pfloatFormat = floatFormat) + { + ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); + } + } + } + + /// + /// To be documented. + /// + public static void Value(ref byte prefix, float v, string floatFormat) + { + fixed (byte* pprefix = &prefix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (floatFormat != null) + { + pStrSize0 = Utils.GetByteCountUTF8(floatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ValueNative((byte*)pprefix, v, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, float v, ref byte floatFormat) + { + fixed (byte* pprefix = prefix) + { + fixed (byte* pfloatFormat = &floatFormat) + { + ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); + } + } + } + + /// + /// To be documented. + /// + public static void Value(ReadOnlySpan prefix, float v, string floatFormat) + { + fixed (byte* pprefix = prefix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (floatFormat != null) + { + pStrSize0 = Utils.GetByteCountUTF8(floatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ValueNative((byte*)pprefix, v, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, float v, ref byte floatFormat) + { + 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; + } + fixed (byte* pfloatFormat = &floatFormat) + { + ValueNative(pStr0, v, (byte*)pfloatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void Value(string prefix, float v, ReadOnlySpan floatFormat) + { + 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; + } + fixed (byte* pfloatFormat = floatFormat) + { + ValueNative(pStr0, v, (byte*)pfloatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginMenuBarNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[238])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[238])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginMenuBar() + { + byte ret = BeginMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndMenuBarNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[239])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[239])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndMenuBar() + { + EndMenuBarNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginMainMenuBarNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[240])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[240])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginMainMenuBar() + { + byte ret = BeginMainMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndMainMenuBarNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[241])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[241])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndMainMenuBar() + { + EndMainMenuBarNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginMenuNative(byte* label, byte enabled) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[242])(label, enabled); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[242])((nint)label, enabled); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginMenu(byte* label, bool enabled) + { + byte ret = BeginMenuNative(label, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenu(byte* label) + { + byte ret = BeginMenuNative(label, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenu(ref byte label, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = BeginMenuNative((byte*)plabel, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenu(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = BeginMenuNative((byte*)plabel, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenu(ReadOnlySpan label, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = BeginMenuNative((byte*)plabel, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenu(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = BeginMenuNative((byte*)plabel, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenu(string label, 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 = BeginMenuNative(pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenu(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 = BeginMenuNative(pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndMenuNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[243])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[243])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndMenu() + { + EndMenuNative(); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs new file mode 100644 index 000000000..d65e8e7a1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[244])(label, shortcut, selected, enabled); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[244])((nint)label, (nint)shortcut, selected, enabled); + #endif + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, bool selected) + { + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut) + { + byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label) + { + byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, bool selected) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, bool selected) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, bool selected) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, 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 ret = MenuItemNative(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 MenuItem(string label, 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 ret = MenuItemNative(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 MenuItem(string label, 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 ret = MenuItemNative(pStr0, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(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 = MenuItemNative(pStr0, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(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 MenuItem(byte* label, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut, bool selected) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, 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 = MenuItemNative(label, 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 MenuItem(byte* label, 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 = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, 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 = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(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 MenuItem(ref byte label, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ReadOnlySpan shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, 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 = MenuItemNative((byte*)plabel, 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 MenuItem(ref byte label, 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 = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, 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 = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, 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 = MenuItemNative((byte*)plabel, 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 MenuItem(ReadOnlySpan label, 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 = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, 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 = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(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 MenuItem(string label, 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 = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte MenuItemNative(byte* label, byte* shortcut, bool* pSelected, byte enabled) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[245])(label, shortcut, pSelected, enabled); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[245])((nint)label, (nint)shortcut, (nint)pSelected, enabled); + #endif + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected, bool enabled) + { + byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected) + { + byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool* pSelected) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, byte* shortcut, bool* pSelected, 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 = MenuItemNative(pStr0, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, byte* shortcut, bool* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = MenuItemNative(pStr0, shortcut, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool* pSelected) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, string shortcut, bool* pSelected, 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 = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, string shortcut, bool* pSelected) + { + 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 = MenuItemNative(label, pStr0, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool* pSelected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, string shortcut, bool* pSelected, 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 = MenuItemNative(pStr0, pStr1, pSelected, 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 MenuItem(string label, string shortcut, bool* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = MenuItemNative(pStr0, pStr1, pSelected, (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 MenuItem(ref byte label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool* pSelected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, string shortcut, bool* pSelected, 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 = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, string shortcut, bool* pSelected) + { + 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 = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool* pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool* pSelected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, string shortcut, bool* pSelected, 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 = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, string shortcut, bool* pSelected) + { + 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 = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ref byte shortcut, bool* pSelected, 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 = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ref byte shortcut, bool* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ReadOnlySpan shortcut, bool* pSelected, 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 = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ReadOnlySpan shortcut, bool* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected, bool enabled) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, byte* shortcut, ref bool pSelected) + { + fixed (byte* plabel = label) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, byte* shortcut, ref bool pSelected, 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 (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, byte* shortcut, ref bool pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, ReadOnlySpan shortcut, ref bool pSelected) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, string shortcut, ref bool pSelected, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(byte* label, string shortcut, ref bool pSelected) + { + 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, ref bool pSelected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, string shortcut, ref bool pSelected, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, 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 MenuItem(string label, string shortcut, ref bool pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, (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 MenuItem(ref byte label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, ref bool pSelected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected) + { + 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, ref bool pSelected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, ref bool pSelected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, string shortcut, ref bool pSelected, 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(ReadOnlySpan label, string shortcut, ref bool pSelected) + { + 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; + } + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected, 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) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ReadOnlySpan shortcut, ref bool pSelected, 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) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItem(string label, ReadOnlySpan shortcut, ref bool pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + fixed (bool* ppSelected = &pSelected) + { + byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginTooltipNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[246])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[246])(); + #endif + } + + /// + /// To be documented. + /// + public static void BeginTooltip() + { + BeginTooltipNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndTooltipNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[247])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[247])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndTooltip() + { + EndTooltipNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetTooltipNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[248])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[248])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void SetTooltip(byte* fmt) + { + SetTooltipNative(fmt); + } + + /// + /// To be documented. + /// + public static void SetTooltip(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + SetTooltipNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void SetTooltip(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + SetTooltipNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void SetTooltip(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; + } + SetTooltipNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetTooltipVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[249])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[249])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void SetTooltipV(byte* fmt, nuint args) + { + SetTooltipVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void SetTooltipV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + SetTooltipVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void SetTooltipV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + SetTooltipVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void SetTooltipV(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; + } + SetTooltipVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupNative(byte* strId, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[250])(strId, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[250])((nint)strId, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopup(byte* strId, ImGuiWindowFlags flags) + { + byte ret = BeginPopupNative(strId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopup(byte* strId) + { + byte ret = BeginPopupNative(strId, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopup(ref byte strId, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopup(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopup(ReadOnlySpan strId, ImGuiWindowFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopup(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopup(string strId, ImGuiWindowFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopup(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupNative(pStr0, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupModalNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[251])(name, pOpen, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[251])((nint)name, (nint)pOpen, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name, bool* pOpen, ImGuiWindowFlags flags) + { + byte ret = BeginPopupModalNative(name, pOpen, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name, bool* pOpen) + { + byte ret = BeginPopupModalNative(name, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name) + { + byte ret = BeginPopupModalNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name, ImGuiWindowFlags flags) + { + byte ret = BeginPopupModalNative(name, (bool*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name, bool* pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name, bool* pOpen) + { + fixed (byte* pname = &name) + { + byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name) + { + fixed (byte* pname = &name) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name, bool* pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name, bool* pOpen) + { + fixed (byte* pname = name) + { + byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(string name, bool* pOpen, ImGuiWindowFlags 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 = BeginPopupModalNative(pStr0, pOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(string name, bool* pOpen) + { + 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 = BeginPopupModalNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(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; + } + byte ret = BeginPopupModalNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(string name, ImGuiWindowFlags 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 = BeginPopupModalNative(pStr0, (bool*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(name, (bool*)ppOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(byte* name, ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ref byte name, ref bool pOpen) + { + fixed (byte* pname = &name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name, ref bool pOpen, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(ReadOnlySpan name, ref bool pOpen) + { + fixed (byte* pname = name) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(string name, ref bool pOpen, ImGuiWindowFlags 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; + } + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupModal(string name, ref bool pOpen) + { + 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 (bool* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndPopupNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[252])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[252])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndPopup() + { + EndPopupNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OpenPopupNative(byte* strId, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[253])(strId, popupFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[253])((nint)strId, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static void OpenPopup(byte* strId, ImGuiPopupFlags popupFlags) + { + OpenPopupNative(strId, popupFlags); + } + + /// + /// To be documented. + /// + public static void OpenPopup(byte* strId) + { + OpenPopupNative(strId, (ImGuiPopupFlags)(0)); + } + + /// + /// To be documented. + /// + public static void OpenPopup(ref byte strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = &strId) + { + OpenPopupNative((byte*)pstrId, popupFlags); + } + } + + /// + /// To be documented. + /// + public static void OpenPopup(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void OpenPopup(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = strId) + { + OpenPopupNative((byte*)pstrId, popupFlags); + } + } + + /// + /// To be documented. + /// + public static void OpenPopup(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void OpenPopup(string strId, ImGuiPopupFlags popupFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + OpenPopupNative(pStr0, popupFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void OpenPopup(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + OpenPopupNative(pStr0, (ImGuiPopupFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OpenPopupNative(uint id, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[254])(id, popupFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[254])(id, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags) + { + OpenPopupNative(id, popupFlags); + } + + /// + /// To be documented. + /// + public static void OpenPopup(uint id) + { + OpenPopupNative(id, (ImGuiPopupFlags)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OpenPopupOnItemClickNative(byte* strId, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[255])(strId, popupFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[255])((nint)strId, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(byte* strId, ImGuiPopupFlags popupFlags) + { + OpenPopupOnItemClickNative(strId, popupFlags); + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(byte* strId) + { + OpenPopupOnItemClickNative(strId, (ImGuiPopupFlags)(1)); + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick() + { + OpenPopupOnItemClickNative((byte*)(default), (ImGuiPopupFlags)(1)); + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(ImGuiPopupFlags popupFlags) + { + OpenPopupOnItemClickNative((byte*)(default), popupFlags); + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(ref byte strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = &strId) + { + OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); + } + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + } + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = strId) + { + OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); + } + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + } + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(string strId, ImGuiPopupFlags popupFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + OpenPopupOnItemClickNative(pStr0, popupFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void OpenPopupOnItemClick(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + OpenPopupOnItemClickNative(pStr0, (ImGuiPopupFlags)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CloseCurrentPopupNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[256])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[256])(); + #endif + } + + /// + /// To be documented. + /// + public static void CloseCurrentPopup() + { + CloseCurrentPopupNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupContextItemNative(byte* strId, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[257])(strId, popupFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[257])((nint)strId, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(byte* strId, ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextItemNative(strId, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(byte* strId) + { + byte ret = BeginPopupContextItemNative(strId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem() + { + byte ret = BeginPopupContextItemNative((byte*)(default), (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextItemNative((byte*)(default), popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(ref byte strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(string strId, ImGuiPopupFlags popupFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextItemNative(pStr0, popupFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextItem(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextItemNative(pStr0, (ImGuiPopupFlags)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupContextWindowNative(byte* strId, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[258])(strId, popupFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[258])((nint)strId, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(byte* strId, ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextWindowNative(strId, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(byte* strId) + { + byte ret = BeginPopupContextWindowNative(strId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow() + { + byte ret = BeginPopupContextWindowNative((byte*)(default), (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextWindowNative((byte*)(default), popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(ref byte strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(string strId, ImGuiPopupFlags popupFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextWindowNative(pStr0, popupFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextWindow(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextWindowNative(pStr0, (ImGuiPopupFlags)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupContextVoidNative(byte* strId, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[259])(strId, popupFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[259])((nint)strId, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(byte* strId, ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextVoidNative(strId, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(byte* strId) + { + byte ret = BeginPopupContextVoidNative(strId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid() + { + byte ret = BeginPopupContextVoidNative((byte*)(default), (ImGuiPopupFlags)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(ImGuiPopupFlags popupFlags) + { + byte ret = BeginPopupContextVoidNative((byte*)(default), popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(ref byte strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(string strId, ImGuiPopupFlags popupFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextVoidNative(pStr0, popupFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPopupContextVoid(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginPopupContextVoidNative(pStr0, (ImGuiPopupFlags)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPopupOpenNative(byte* strId, ImGuiPopupFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[260])(strId, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[260])((nint)strId, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(byte* strId, ImGuiPopupFlags flags) + { + byte ret = IsPopupOpenNative(strId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(byte* strId) + { + byte ret = IsPopupOpenNative(strId, (ImGuiPopupFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(ref byte strId, ImGuiPopupFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = IsPopupOpenNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(ReadOnlySpan strId, ImGuiPopupFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = IsPopupOpenNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(string strId, ImGuiPopupFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsPopupOpenNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsPopupOpenNative(pStr0, (ImGuiPopupFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginTableNative(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[261])(strId, column, flags, outerSize, innerWidth); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[261])((nint)strId, column, flags, outerSize, innerWidth); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize) + { + byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags) + { + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column) + { + byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, Vector2 outerSize) + { + byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, float innerWidth) + { + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, float innerWidth) + { + byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(byte* strId, int column, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, Vector2 outerSize) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, float innerWidth) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, float innerWidth) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ref byte strId, int column, Vector2 outerSize, float innerWidth) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, Vector2 outerSize) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, Vector2 outerSize) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, float innerWidth) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, float innerWidth) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(ReadOnlySpan strId, int column, Vector2 outerSize, float innerWidth) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, flags, outerSize, innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, flags, outerSize, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, ImGuiTableFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, Vector2 outerSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTable(string strId, int column, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs new file mode 100644 index 000000000..53742fa7f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs @@ -0,0 +1,5035 @@ +// ------------------------------------------------------------------------------ +// +// 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 BeginTable(string strId, int column, Vector2 outerSize, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndTableNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[262])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[262])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndTable() + { + EndTableNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableNextRowNative(ImGuiTableRowFlags rowFlags, float minRowHeight) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[263])(rowFlags, minRowHeight); + #else + ((delegate* unmanaged[Cdecl])funcTable[263])(rowFlags, minRowHeight); + #endif + } + + /// + /// To be documented. + /// + public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) + { + TableNextRowNative(rowFlags, minRowHeight); + } + + /// + /// To be documented. + /// + public static void TableNextRow(ImGuiTableRowFlags rowFlags) + { + TableNextRowNative(rowFlags, (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static void TableNextRow() + { + TableNextRowNative((ImGuiTableRowFlags)(0), (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static void TableNextRow(float minRowHeight) + { + TableNextRowNative((ImGuiTableRowFlags)(0), minRowHeight); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TableNextColumnNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[264])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[264])(); + #endif + } + + /// + /// To be documented. + /// + public static bool TableNextColumn() + { + byte ret = TableNextColumnNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TableSetColumnIndexNative(int columnN) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[265])(columnN); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[265])(columnN); + #endif + } + + /// + /// To be documented. + /// + public static bool TableSetColumnIndex(int columnN) + { + byte ret = TableSetColumnIndexNative(columnN); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetupColumnNative(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[266])(label, flags, initWidthOrWeight, userId); + #else + ((delegate* unmanaged[Cdecl])funcTable[266])((nint)label, flags, initWidthOrWeight, userId); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + TableSetupColumnNative(label, flags, initWidthOrWeight, userId); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight) + { + TableSetupColumnNative(label, flags, initWidthOrWeight, (uint)(0)); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags) + { + TableSetupColumnNative(label, flags, (float)(0.0f), (uint)(0)); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label) + { + TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, float initWidthOrWeight) + { + TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, uint userId) + { + TableSetupColumnNative(label, flags, (float)(0.0f), userId); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, uint userId) + { + TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(byte* label, float initWidthOrWeight, uint userId) + { + TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, float initWidthOrWeight) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, uint userId) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, uint userId) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ref byte label, float initWidthOrWeight, uint userId) + { + fixed (byte* plabel = &label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, float initWidthOrWeight) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, float initWidthOrWeight) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, uint userId) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, uint userId) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(ReadOnlySpan label, float initWidthOrWeight, uint userId) + { + fixed (byte* plabel = label) + { + TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, flags, initWidthOrWeight, userId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, flags, initWidthOrWeight, (uint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, ImGuiTableColumnFlags 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; + } + TableSetupColumnNative(pStr0, flags, (float)(0.0f), (uint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(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; + } + TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, float initWidthOrWeight) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, uint userId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, flags, (float)(0.0f), userId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, uint userId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TableSetupColumn(string label, float initWidthOrWeight, uint userId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetupScrollFreezeNative(int cols, int rows) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[267])(cols, rows); + #else + ((delegate* unmanaged[Cdecl])funcTable[267])(cols, rows); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetupScrollFreeze(int cols, int rows) + { + TableSetupScrollFreezeNative(cols, rows); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableHeadersRowNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[268])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[268])(); + #endif + } + + /// + /// To be documented. + /// + public static void TableHeadersRow() + { + TableHeadersRowNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableHeaderNative(byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[269])(label); + #else + ((delegate* unmanaged[Cdecl])funcTable[269])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void TableHeader(byte* label) + { + TableHeaderNative(label); + } + + /// + /// To be documented. + /// + public static void TableHeader(ref byte label) + { + fixed (byte* plabel = &label) + { + TableHeaderNative((byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void TableHeader(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + TableHeaderNative((byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void TableHeader(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; + } + TableHeaderNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSortSpecs* TableGetSortSpecsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[270])(); + #else + return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[270])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableSortSpecsPtr TableGetSortSpecs() + { + ImGuiTableSortSpecsPtr ret = TableGetSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int TableGetColumnCountNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[271])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[271])(); + #endif + } + + /// + /// To be documented. + /// + public static int TableGetColumnCount() + { + int ret = TableGetColumnCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int TableGetColumnIndexNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[272])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[272])(); + #endif + } + + /// + /// To be documented. + /// + public static int TableGetColumnIndex() + { + int ret = TableGetColumnIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int TableGetRowIndexNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[273])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[273])(); + #endif + } + + /// + /// To be documented. + /// + public static int TableGetRowIndex() + { + int ret = TableGetRowIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* TableGetColumnNameNative(int columnN) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[274])(columnN); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[274])(columnN); + #endif + } + + /// + /// To be documented. + /// + public static byte* TableGetColumnName(int columnN) + { + byte* ret = TableGetColumnNameNative(columnN); + return ret; + } + + /// + /// To be documented. + /// + public static byte* TableGetColumnName() + { + byte* ret = TableGetColumnNameNative((int)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static string TableGetColumnNameS() + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); + return ret; + } + + /// + /// To be documented. + /// + public static string TableGetColumnNameS(int columnN) + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(columnN)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableColumnFlags TableGetColumnFlagsNative(int columnN) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[275])(columnN); + #else + return (ImGuiTableColumnFlags)((delegate* unmanaged[Cdecl])funcTable[275])(columnN); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) + { + ImGuiTableColumnFlags ret = TableGetColumnFlagsNative(columnN); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnFlags TableGetColumnFlags() + { + ImGuiTableColumnFlags ret = TableGetColumnFlagsNative((int)(-1)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetColumnEnabledNative(int columnN, byte v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[276])(columnN, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[276])(columnN, v); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetColumnEnabled(int columnN, bool v) + { + TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetBgColorNative(ImGuiTableBgTarget target, uint color, int columnN) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[277])(target, color, columnN); + #else + ((delegate* unmanaged[Cdecl])funcTable[277])(target, color, columnN); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) + { + TableSetBgColorNative(target, color, columnN); + } + + /// + /// To be documented. + /// + public static void TableSetBgColor(ImGuiTableBgTarget target, uint color) + { + TableSetBgColorNative(target, color, (int)(-1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColumnsNative(int count, byte* id, byte border) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[278])(count, id, border); + #else + ((delegate* unmanaged[Cdecl])funcTable[278])(count, (nint)id, border); + #endif + } + + /// + /// To be documented. + /// + public static void Columns(int count, byte* id, bool border) + { + ColumnsNative(count, id, border ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Columns(int count, byte* id) + { + ColumnsNative(count, id, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void Columns(int count) + { + ColumnsNative(count, (byte*)(default), (byte)(1)); + } + + /// + /// To be documented. + /// + public static void Columns() + { + ColumnsNative((int)(1), (byte*)(default), (byte)(1)); + } + + /// + /// To be documented. + /// + public static void Columns(byte* id) + { + ColumnsNative((int)(1), id, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void Columns(int count, bool border) + { + ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Columns(bool border) + { + ColumnsNative((int)(1), (byte*)(default), border ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Columns(byte* id, bool border) + { + ColumnsNative((int)(1), id, border ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Columns(int count, ref byte id, bool border) + { + fixed (byte* pid = &id) + { + ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Columns(int count, ref byte id) + { + fixed (byte* pid = &id) + { + ColumnsNative(count, (byte*)pid, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void Columns(ref byte id) + { + fixed (byte* pid = &id) + { + ColumnsNative((int)(1), (byte*)pid, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void Columns(ref byte id, bool border) + { + fixed (byte* pid = &id) + { + ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Columns(int count, ReadOnlySpan id, bool border) + { + fixed (byte* pid = id) + { + ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Columns(int count, ReadOnlySpan id) + { + fixed (byte* pid = id) + { + ColumnsNative(count, (byte*)pid, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void Columns(ReadOnlySpan id) + { + fixed (byte* pid = id) + { + ColumnsNative((int)(1), (byte*)pid, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void Columns(ReadOnlySpan id, bool border) + { + fixed (byte* pid = id) + { + ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void Columns(int count, string id, bool border) + { + 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; + } + ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Columns(int count, string id) + { + 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; + } + ColumnsNative(count, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Columns(string id) + { + 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; + } + ColumnsNative((int)(1), pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Columns(string id, bool border) + { + 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; + } + ColumnsNative((int)(1), pStr0, border ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NextColumnNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[279])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[279])(); + #endif + } + + /// + /// To be documented. + /// + public static void NextColumn() + { + NextColumnNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetColumnIndexNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[280])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[280])(); + #endif + } + + /// + /// To be documented. + /// + public static int GetColumnIndex() + { + int ret = GetColumnIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetColumnWidthNative(int columnIndex) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[281])(columnIndex); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[281])(columnIndex); + #endif + } + + /// + /// To be documented. + /// + public static float GetColumnWidth(int columnIndex) + { + float ret = GetColumnWidthNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + public static float GetColumnWidth() + { + float ret = GetColumnWidthNative((int)(-1)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetColumnWidthNative(int columnIndex, float width) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[282])(columnIndex, width); + #else + ((delegate* unmanaged[Cdecl])funcTable[282])(columnIndex, width); + #endif + } + + /// + /// To be documented. + /// + public static void SetColumnWidth(int columnIndex, float width) + { + SetColumnWidthNative(columnIndex, width); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetColumnOffsetNative(int columnIndex) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[283])(columnIndex); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[283])(columnIndex); + #endif + } + + /// + /// To be documented. + /// + public static float GetColumnOffset(int columnIndex) + { + float ret = GetColumnOffsetNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + public static float GetColumnOffset() + { + float ret = GetColumnOffsetNative((int)(-1)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetColumnOffsetNative(int columnIndex, float offsetX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[284])(columnIndex, offsetX); + #else + ((delegate* unmanaged[Cdecl])funcTable[284])(columnIndex, offsetX); + #endif + } + + /// + /// To be documented. + /// + public static void SetColumnOffset(int columnIndex, float offsetX) + { + SetColumnOffsetNative(columnIndex, offsetX); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetColumnsCountNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[285])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[285])(); + #endif + } + + /// + /// To be documented. + /// + public static int GetColumnsCount() + { + int ret = GetColumnsCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginTabBarNative(byte* strId, ImGuiTabBarFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[286])(strId, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[286])((nint)strId, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(byte* strId, ImGuiTabBarFlags flags) + { + byte ret = BeginTabBarNative(strId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(byte* strId) + { + byte ret = BeginTabBarNative(strId, (ImGuiTabBarFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(ref byte strId, ImGuiTabBarFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTabBarNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(ref byte strId) + { + fixed (byte* pstrId = &strId) + { + byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(ReadOnlySpan strId, ImGuiTabBarFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTabBarNative((byte*)pstrId, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(ReadOnlySpan strId) + { + fixed (byte* pstrId = strId) + { + byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(string strId, ImGuiTabBarFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTabBarNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabBar(string strId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTabBarNative(pStr0, (ImGuiTabBarFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndTabBarNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[287])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[287])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndTabBar() + { + EndTabBarNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginTabItemNative(byte* label, bool* pOpen, ImGuiTabItemFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[288])(label, pOpen, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[288])((nint)label, (nint)pOpen, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label, bool* pOpen, ImGuiTabItemFlags flags) + { + byte ret = BeginTabItemNative(label, pOpen, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label, bool* pOpen) + { + byte ret = BeginTabItemNative(label, pOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label) + { + byte ret = BeginTabItemNative(label, (bool*)(default), (ImGuiTabItemFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label, ImGuiTabItemFlags flags) + { + byte ret = BeginTabItemNative(label, (bool*)(default), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label, bool* pOpen, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label, bool* pOpen) + { + fixed (byte* plabel = &label) + { + byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label, bool* pOpen) + { + fixed (byte* plabel = label) + { + byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(string label, bool* pOpen, ImGuiTabItemFlags 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 = BeginTabItemNative(pStr0, pOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(string label, bool* pOpen) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = BeginTabItemNative(pStr0, pOpen, (ImGuiTabItemFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(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 = BeginTabItemNative(pStr0, (bool*)(default), (ImGuiTabItemFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(string label, ImGuiTabItemFlags 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 = BeginTabItemNative(pStr0, (bool*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label, ref bool pOpen, ImGuiTabItemFlags flags) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative(label, (bool*)ppOpen, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(byte* label, ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative(label, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label, ref bool pOpen, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ref byte label, ref bool pOpen) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(ReadOnlySpan label, ref bool pOpen) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(string label, ref bool pOpen, ImGuiTabItemFlags 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 (bool* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative(pStr0, (bool*)ppOpen, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabItem(string label, ref bool pOpen) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = BeginTabItemNative(pStr0, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndTabItemNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[289])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[289])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndTabItem() + { + EndTabItemNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TabItemButtonNative(byte* label, ImGuiTabItemFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[290])(label, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[290])((nint)label, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool TabItemButton(byte* label, ImGuiTabItemFlags flags) + { + byte ret = TabItemButtonNative(label, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabItemButton(byte* label) + { + byte ret = TabItemButtonNative(label, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabItemButton(ref byte label, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = TabItemButtonNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemButton(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemButton(ReadOnlySpan label, ImGuiTabItemFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = TabItemButtonNative((byte*)plabel, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemButton(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemButton(string label, ImGuiTabItemFlags 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 = TabItemButtonNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabItemButton(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 = TabItemButtonNative(pStr0, (ImGuiTabItemFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetTabItemClosedNative(byte* tabOrDockedWindowLabel) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[291])(tabOrDockedWindowLabel); + #else + ((delegate* unmanaged[Cdecl])funcTable[291])((nint)tabOrDockedWindowLabel); + #endif + } + + /// + /// To be documented. + /// + public static void SetTabItemClosed(byte* tabOrDockedWindowLabel) + { + SetTabItemClosedNative(tabOrDockedWindowLabel); + } + + /// + /// To be documented. + /// + public static void SetTabItemClosed(ref byte tabOrDockedWindowLabel) + { + fixed (byte* ptabOrDockedWindowLabel = &tabOrDockedWindowLabel) + { + SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); + } + } + + /// + /// To be documented. + /// + public static void SetTabItemClosed(ReadOnlySpan tabOrDockedWindowLabel) + { + fixed (byte* ptabOrDockedWindowLabel = tabOrDockedWindowLabel) + { + SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); + } + } + + /// + /// To be documented. + /// + public static void SetTabItemClosed(string tabOrDockedWindowLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (tabOrDockedWindowLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(tabOrDockedWindowLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(tabOrDockedWindowLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetTabItemClosedNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockSpaceNative(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[292])(id, size, flags, windowClass); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[292])(id, size, flags, (nint)windowClass); + #endif + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceNative(id, size, flags, windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) + { + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size) + { + uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, Vector2 size, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockSpaceOverViewportNative(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[293])(viewport, flags, windowClass); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[293])((nint)viewport, flags, (nint)windowClass); + #endif + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport) + { + uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport() + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, windowClass); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, windowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiWindowClassPtr windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowDockIDNative(uint dockId, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[294])(dockId, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[294])(dockId, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) + { + SetNextWindowDockIDNative(dockId, cond); + } + + /// + /// To be documented. + /// + public static void SetNextWindowDockID(uint dockId) + { + SetNextWindowDockIDNative(dockId, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowClassNative(ImGuiWindowClass* windowClass) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[295])(windowClass); + #else + ((delegate* unmanaged[Cdecl])funcTable[295])((nint)windowClass); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowClass(ImGuiWindowClassPtr windowClass) + { + SetNextWindowClassNative(windowClass); + } + + /// + /// To be documented. + /// + public static void SetNextWindowClass(ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + SetNextWindowClassNative((ImGuiWindowClass*)pwindowClass); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetWindowDockIDNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[296])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[296])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetWindowDockID() + { + uint ret = GetWindowDockIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowDockedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[297])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[297])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowDocked() + { + byte ret = IsWindowDockedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogToTTYNative(int autoOpenDepth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[298])(autoOpenDepth); + #else + ((delegate* unmanaged[Cdecl])funcTable[298])(autoOpenDepth); + #endif + } + + /// + /// To be documented. + /// + public static void LogToTTY(int autoOpenDepth) + { + LogToTTYNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + public static void LogToTTY() + { + LogToTTYNative((int)(-1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogToFileNative(int autoOpenDepth, byte* filename) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[299])(autoOpenDepth, filename); + #else + ((delegate* unmanaged[Cdecl])funcTable[299])(autoOpenDepth, (nint)filename); + #endif + } + + /// + /// To be documented. + /// + public static void LogToFile(int autoOpenDepth, byte* filename) + { + LogToFileNative(autoOpenDepth, filename); + } + + /// + /// To be documented. + /// + public static void LogToFile(int autoOpenDepth) + { + LogToFileNative(autoOpenDepth, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void LogToFile() + { + LogToFileNative((int)(-1), (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void LogToFile(byte* filename) + { + LogToFileNative((int)(-1), filename); + } + + /// + /// To be documented. + /// + public static void LogToFile(int autoOpenDepth, ref byte filename) + { + fixed (byte* pfilename = &filename) + { + LogToFileNative(autoOpenDepth, (byte*)pfilename); + } + } + + /// + /// To be documented. + /// + public static void LogToFile(ref byte filename) + { + fixed (byte* pfilename = &filename) + { + LogToFileNative((int)(-1), (byte*)pfilename); + } + } + + /// + /// To be documented. + /// + public static void LogToFile(int autoOpenDepth, ReadOnlySpan filename) + { + fixed (byte* pfilename = filename) + { + LogToFileNative(autoOpenDepth, (byte*)pfilename); + } + } + + /// + /// To be documented. + /// + public static void LogToFile(ReadOnlySpan filename) + { + fixed (byte* pfilename = filename) + { + LogToFileNative((int)(-1), (byte*)pfilename); + } + } + + /// + /// To be documented. + /// + public static void LogToFile(int autoOpenDepth, string filename) + { + 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; + } + LogToFileNative(autoOpenDepth, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogToFile(string filename) + { + 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; + } + LogToFileNative((int)(-1), pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogToClipboardNative(int autoOpenDepth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[300])(autoOpenDepth); + #else + ((delegate* unmanaged[Cdecl])funcTable[300])(autoOpenDepth); + #endif + } + + /// + /// To be documented. + /// + public static void LogToClipboard(int autoOpenDepth) + { + LogToClipboardNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + public static void LogToClipboard() + { + LogToClipboardNative((int)(-1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogFinishNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[301])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[301])(); + #endif + } + + /// + /// To be documented. + /// + public static void LogFinish() + { + LogFinishNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogButtonsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[302])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[302])(); + #endif + } + + /// + /// To be documented. + /// + public static void LogButtons() + { + LogButtonsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogTextVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[303])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[303])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void LogTextV(byte* fmt, nuint args) + { + LogTextVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void LogTextV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + LogTextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void LogTextV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + LogTextVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void LogTextV(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; + } + LogTextVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropSourceNative(ImGuiDragDropFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[304])(flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[304])(flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSource(ImGuiDragDropFlags flags) + { + byte ret = BeginDragDropSourceNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSource() + { + byte ret = BeginDragDropSourceNative((ImGuiDragDropFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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); + #else + 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, nuint sz, ImGuiCond cond) + { + byte ret = SetDragDropPayloadNative(type, data, sz, cond); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetDragDropPayload(byte* type, void* data, nuint sz) + { + byte ret = SetDragDropPayloadNative(type, data, sz, (ImGuiCond)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetDragDropPayload(ref byte type, void* data, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndDragDropSourceNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[306])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[306])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndDragDropSource() + { + EndDragDropSourceNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropTargetNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[307])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[307])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropTarget() + { + byte ret = BeginDragDropTargetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPayload* AcceptDragDropPayloadNative(byte* type, ImGuiDragDropFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[308])(type, flags); + #else + return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[308])((nint)type, flags); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, flags); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, (ImGuiDragDropFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type, ImGuiDragDropFlags flags) + { + fixed (byte* ptype = &type) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type) + { + fixed (byte* ptype = &type) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan type, ImGuiDragDropFlags flags) + { + fixed (byte* ptype = type) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan type) + { + fixed (byte* ptype = type) + { + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(string type, ImGuiDragDropFlags flags) + { + 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; + } + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr AcceptDragDropPayload(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; + } + ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, (ImGuiDragDropFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndDragDropTargetNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[309])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[309])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndDragDropTarget() + { + EndDragDropTargetNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPayload* GetDragDropPayloadNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[310])(); + #else + return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[310])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr GetDragDropPayload() + { + ImGuiPayloadPtr ret = GetDragDropPayloadNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginDisabledNative(byte disabled) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[311])(disabled); + #else + ((delegate* unmanaged[Cdecl])funcTable[311])(disabled); + #endif + } + + /// + /// To be documented. + /// + public static void BeginDisabled(bool disabled) + { + BeginDisabledNative(disabled ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void BeginDisabled() + { + BeginDisabledNative((byte)(1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndDisabledNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[312])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[312])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndDisabled() + { + EndDisabledNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushClipRectNative(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); + #endif + } + + /// + /// To be documented. + /// + public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopClipRectNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[314])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[314])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopClipRect() + { + PopClipRectNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetItemDefaultFocusNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[315])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[315])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetItemDefaultFocus() + { + SetItemDefaultFocusNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetKeyboardFocusHereNative(int offset) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[316])(offset); + #else + ((delegate* unmanaged[Cdecl])funcTable[316])(offset); + #endif + } + + /// + /// To be documented. + /// + public static void SetKeyboardFocusHere(int offset) + { + SetKeyboardFocusHereNative(offset); + } + + /// + /// To be documented. + /// + public static void SetKeyboardFocusHere() + { + SetKeyboardFocusHereNative((int)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemHoveredNative(ImGuiHoveredFlags 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 IsItemHovered(ImGuiHoveredFlags flags) + { + byte ret = IsItemHoveredNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsItemHovered() + { + byte ret = IsItemHoveredNative((ImGuiHoveredFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemActiveNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[318])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[318])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemActive() + { + byte ret = IsItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemFocusedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[319])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[319])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemFocused() + { + byte ret = IsItemFocusedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemClickedNative(ImGuiMouseButton mouseButton) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[320])(mouseButton); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[320])(mouseButton); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemClicked(ImGuiMouseButton mouseButton) + { + byte ret = IsItemClickedNative(mouseButton); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsItemClicked() + { + byte ret = IsItemClickedNative((ImGuiMouseButton)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemVisibleNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[321])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[321])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemVisible() + { + byte ret = IsItemVisibleNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemEditedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[322])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[322])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemEdited() + { + byte ret = IsItemEditedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemActivatedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[323])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[323])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemActivated() + { + byte ret = IsItemActivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemDeactivatedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[324])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[324])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemDeactivated() + { + byte ret = IsItemDeactivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemDeactivatedAfterEditNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[325])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[325])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemDeactivatedAfterEdit() + { + byte ret = IsItemDeactivatedAfterEditNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemToggledOpenNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[326])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[326])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemToggledOpen() + { + byte ret = IsItemToggledOpenNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAnyItemHoveredNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[327])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[327])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsAnyItemHovered() + { + byte ret = IsAnyItemHoveredNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAnyItemActiveNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[328])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[328])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsAnyItemActive() + { + byte ret = IsAnyItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAnyItemFocusedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[329])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[329])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsAnyItemFocused() + { + byte ret = IsAnyItemFocusedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetItemRectMinNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[330])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[330])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetItemRectMin() + { + Vector2 ret; + GetItemRectMinNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetItemRectMin(Vector2* pOut) + { + GetItemRectMinNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetItemRectMin(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetItemRectMinNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetItemRectMaxNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[331])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[331])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetItemRectMax() + { + Vector2 ret; + GetItemRectMaxNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetItemRectMax(Vector2* pOut) + { + GetItemRectMaxNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetItemRectMax(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetItemRectMaxNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetItemRectSizeNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[332])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[332])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetItemRectSize() + { + Vector2 ret; + GetItemRectSizeNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetItemRectSize(Vector2* pOut) + { + GetItemRectSizeNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetItemRectSize(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetItemRectSizeNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetItemAllowOverlapNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[333])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[333])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetItemAllowOverlap() + { + SetItemAllowOverlapNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewport* GetMainViewportNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[334])(); + #else + return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[334])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPtr GetMainViewport() + { + ImGuiViewportPtr ret = GetMainViewportNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetBackgroundDrawListNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[335])(); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[335])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetBackgroundDrawList() + { + ImDrawListPtr ret = GetBackgroundDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetForegroundDrawListNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[336])(); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[336])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetForegroundDrawList() + { + ImDrawListPtr ret = GetForegroundDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetBackgroundDrawListNative(ImGuiViewport* viewport) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[337])(viewport); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[337])((nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) + { + ImDrawListPtr ret = GetBackgroundDrawListNative(viewport); + return ret; + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetBackgroundDrawList(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImDrawListPtr ret = GetBackgroundDrawListNative((ImGuiViewport*)pviewport); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetForegroundDrawListNative(ImGuiViewport* viewport) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[338])(viewport); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[338])((nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) + { + ImDrawListPtr ret = GetForegroundDrawListNative(viewport); + return ret; + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetForegroundDrawList(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiViewport*)pviewport); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsRectVisibleNative(Vector2 size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[339])(size); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[339])(size); + #endif + } + + /// + /// To be documented. + /// + public static bool IsRectVisible(Vector2 size) + { + byte ret = IsRectVisibleNative(size); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsRectVisibleNative(Vector2 rectMin, Vector2 rectMax) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[340])(rectMin, rectMax); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[340])(rectMin, rectMax); + #endif + } + + /// + /// To be documented. + /// + public static bool IsRectVisible(Vector2 rectMin, Vector2 rectMax) + { + byte ret = IsRectVisibleNative(rectMin, rectMax); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double GetTimeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[341])(); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[341])(); + #endif + } + + /// + /// To be documented. + /// + public static double GetTime() + { + double ret = GetTimeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetFrameCountNative() + { + #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 GetFrameCount() + { + int ret = GetFrameCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawListSharedData* GetDrawListSharedDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[343])(); + #else + return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl])funcTable[343])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListSharedDataPtr GetDrawListSharedData() + { + ImDrawListSharedDataPtr ret = GetDrawListSharedDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetStyleColorNameNative(ImGuiCol idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[344])(idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[344])(idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetStyleColorName(ImGuiCol idx) + { + byte* ret = GetStyleColorNameNative(idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetStyleColorNameS(ImGuiCol idx) + { + string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetStateStorageNative(ImGuiStorage* storage) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[345])(storage); + #else + ((delegate* unmanaged[Cdecl])funcTable[345])((nint)storage); + #endif + } + + /// + /// To be documented. + /// + public static void SetStateStorage(ImGuiStoragePtr storage) + { + SetStateStorageNative(storage); + } + + /// + /// To be documented. + /// + public static void SetStateStorage(ref ImGuiStorage storage) + { + fixed (ImGuiStorage* pstorage = &storage) + { + SetStateStorageNative((ImGuiStorage*)pstorage); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStorage* GetStateStorageNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[346])(); + #else + return (ImGuiStorage*)((delegate* unmanaged[Cdecl])funcTable[346])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStoragePtr GetStateStorage() + { + ImGuiStoragePtr ret = GetStateStorageNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginChildFrameNative(uint id, Vector2 size, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[347])(id, size, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[347])(id, size, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) + { + byte ret = BeginChildFrameNative(id, size, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChildFrame(uint id, Vector2 size) + { + byte ret = BeginChildFrameNative(id, size, (ImGuiWindowFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndChildFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[348])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[348])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndChildFrame() + { + EndChildFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[349])(pOut, text, textEnd, hideTextAfterDoubleHash, wrapWidth); + #else + ((delegate* unmanaged[Cdecl])funcTable[349])((nint)pOut, (nint)text, (nint)textEnd, hideTextAfterDoubleHash, wrapWidth); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, byte* textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, textEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, float wrapWidth) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, byte* textEnd, float wrapWidth) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, textEnd, (byte)(0), wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash, float wrapWidth) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) + { + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, float wrapWidth) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, float wrapWidth) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte 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(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, float wrapWidth) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, float wrapWidth) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + 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 new file mode 100644 index 000000000..03da217ab --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 CalcTextSize(string text, byte* textEnd, 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, textEnd, hideTextAfterDoubleHash ? (byte)1 : (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* 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; + } + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, 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; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, byte* textEnd, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, bool hideTextAfterDoubleHash) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, text, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, string textEnd, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + CalcTextSizeNative(&ret, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, text, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(byte* text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, 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; + } + CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, float wrapWidth) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, pStr1, (byte)(0), (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, string textEnd, 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; + } + 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; + CalcTextSizeNative(&ret, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, pStr1, (byte)(0), wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ref byte text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, ref byte textEnd, 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; + } + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (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, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, ref byte textEnd, bool hideTextAfterDoubleHash, 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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, ReadOnlySpan textEnd, 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; + } + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (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, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, 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) + { + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd) + { + 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; + } + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, float wrapWidth) + { + 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; + } + 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; + } + CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (Vector2* ppOut = &pOut) + { + 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; + } + CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd) + { + 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; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, float wrapWidth) + { + 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; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + 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; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan textEnd) + { + 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; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan textEnd, float wrapWidth) + { + 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; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd, 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; + } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, string textEnd, 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; + } + 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; + } + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, string textEnd, bool hideTextAfterDoubleHash) + { + 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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; + } + CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd, 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; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan textEnd, bool hideTextAfterDoubleHash, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan textEnd, 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; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, 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) + { + CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorConvertU32ToFloat4Native(Vector4* pOut, uint input) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[350])(pOut, input); + #else + ((delegate* unmanaged[Cdecl])funcTable[350])((nint)pOut, input); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 ColorConvertU32ToFloat4(uint input) + { + Vector4 ret; + ColorConvertU32ToFloat4Native(&ret, input); + return ret; + } + + /// + /// To be documented. + /// + public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) + { + ColorConvertU32ToFloat4Native(pOut, input); + } + + /// + /// To be documented. + /// + public static void ColorConvertU32ToFloat4(ref Vector4 pOut, uint input) + { + fixed (Vector4* ppOut = &pOut) + { + ColorConvertU32ToFloat4Native((Vector4*)ppOut, input); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ColorConvertFloat4ToU32Native(Vector4 input) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[351])(input); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[351])(input); + #endif + } + + /// + /// To be documented. + /// + public static uint ColorConvertFloat4ToU32(Vector4 input) + { + uint ret = ColorConvertFloat4ToU32Native(input); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorConvertRGBtoHSVNative(float r, float g, float b, float* outH, float* outS, float* outV) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[352])(r, g, b, outH, outS, outV); + #else + ((delegate* unmanaged[Cdecl])funcTable[352])(r, g, b, (nint)outH, (nint)outS, (nint)outV); + #endif + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, outV); + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, float* outV) + { + fixed (float* poutH = &outH) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, outV); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, float* outV) + { + fixed (float* poutS = &outS) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, outV); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, float* outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, outV); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, ref float outV) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, (float*)poutV); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, (float*)poutV); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, ref float outV) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, (float*)poutV); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorConvertHSVtoRGBNative(float h, float s, float v, float* outR, float* outG, float* outB) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[353])(h, s, v, outR, outG, outB); + #else + ((delegate* unmanaged[Cdecl])funcTable[353])(h, s, v, (nint)outR, (nint)outG, (nint)outB); + #endif + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, outB); + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, float* outB) + { + fixed (float* poutR = &outR) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, outB); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, float* outB) + { + fixed (float* poutG = &outG) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, outB); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, float* outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, outB); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, ref float outB) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, (float*)poutB); + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, (float*)poutB); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, ref float outB) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, (float*)poutB); + } + } + } + + /// + /// To be documented. + /// + public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); + } + } + } + } + + /// + /// 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 new file mode 100644 index 000000000..a87351fac --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs @@ -0,0 +1,5040 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextFrameWantCaptureKeyboardNative(byte wantCaptureKeyboard) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[359])(wantCaptureKeyboard); + #else + ((delegate* unmanaged[Cdecl])funcTable[359])(wantCaptureKeyboard); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextFrameWantCaptureKeyboard(bool wantCaptureKeyboard) + { + SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseDownNative(ImGuiMouseButton button) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[360])(button); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[360])(button); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseDown(ImGuiMouseButton button) + { + byte ret = IsMouseDownNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseClickedNative(ImGuiMouseButton button, byte repeat) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[361])(button, repeat); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[361])(button, repeat); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseClicked(ImGuiMouseButton button, bool repeat) + { + byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMouseClicked(ImGuiMouseButton button) + { + byte ret = IsMouseClickedNative(button, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseReleasedNative(ImGuiMouseButton button) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[362])(button); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[362])(button); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseReleased(ImGuiMouseButton button) + { + byte ret = IsMouseReleasedNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseDoubleClickedNative(ImGuiMouseButton button) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[363])(button); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[363])(button); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseDoubleClicked(ImGuiMouseButton button) + { + byte ret = IsMouseDoubleClickedNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetMouseClickedCountNative(ImGuiMouseButton button) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[364])(button); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[364])(button); + #endif + } + + /// + /// To be documented. + /// + public static int GetMouseClickedCount(ImGuiMouseButton button) + { + int ret = GetMouseClickedCountNative(button); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseHoveringRectNative(Vector2 rMin, Vector2 rMax, byte clip) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[365])(rMin, rMax, clip); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[365])(rMin, rMax, clip); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, bool clip) + { + byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax) + { + byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMousePosValidNative(Vector2* mousePos) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[366])(mousePos); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[366])((nint)mousePos); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMousePosValid(Vector2* mousePos) + { + byte ret = IsMousePosValidNative(mousePos); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMousePosValid() + { + byte ret = IsMousePosValidNative((Vector2*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMousePosValid(ref Vector2 mousePos) + { + fixed (Vector2* pmousePos = &mousePos) + { + byte ret = IsMousePosValidNative((Vector2*)pmousePos); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAnyMouseDownNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[367])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[367])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsAnyMouseDown() + { + byte ret = IsAnyMouseDownNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetMousePosNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[368])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[368])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetMousePos() + { + Vector2 ret; + GetMousePosNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetMousePos(Vector2* pOut) + { + GetMousePosNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetMousePos(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetMousePosNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetMousePosOnOpeningCurrentPopupNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[369])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[369])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetMousePosOnOpeningCurrentPopup() + { + Vector2 ret; + GetMousePosOnOpeningCurrentPopupNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) + { + GetMousePosOnOpeningCurrentPopupNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetMousePosOnOpeningCurrentPopup(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetMousePosOnOpeningCurrentPopupNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseDraggingNative(ImGuiMouseButton button, float lockThreshold) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[370])(button, lockThreshold); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[370])(button, lockThreshold); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseDragging(ImGuiMouseButton button, float lockThreshold) + { + byte ret = IsMouseDraggingNative(button, lockThreshold); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMouseDragging(ImGuiMouseButton button) + { + byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetMouseDragDeltaNative(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[371])(pOut, button, lockThreshold); + #else + ((delegate* unmanaged[Cdecl])funcTable[371])((nint)pOut, button, lockThreshold); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetMouseDragDelta() + { + Vector2 ret; + GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 GetMouseDragDelta(ImGuiMouseButton button) + { + Vector2 ret; + GetMouseDragDeltaNative(&ret, button, (float)(-1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(Vector2* pOut) + { + GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static Vector2 GetMouseDragDelta(float lockThreshold) + { + Vector2 ret; + GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), lockThreshold); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 GetMouseDragDelta(ImGuiMouseButton button, float lockThreshold) + { + Vector2 ret; + GetMouseDragDeltaNative(&ret, button, lockThreshold); + return ret; + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) + { + GetMouseDragDeltaNative(pOut, button, lockThreshold); + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button) + { + GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(Vector2* pOut, float lockThreshold) + { + GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), lockThreshold); + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button, float lockThreshold) + { + fixed (Vector2* ppOut = &pOut) + { + GetMouseDragDeltaNative((Vector2*)ppOut, button, lockThreshold); + } + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button) + { + fixed (Vector2* ppOut = &pOut) + { + GetMouseDragDeltaNative((Vector2*)ppOut, button, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public static void GetMouseDragDelta(ref Vector2 pOut, float lockThreshold) + { + fixed (Vector2* ppOut = &pOut) + { + GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetMouseDragDeltaNative(ImGuiMouseButton button) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[372])(button); + #else + ((delegate* unmanaged[Cdecl])funcTable[372])(button); + #endif + } + + /// + /// To be documented. + /// + public static void ResetMouseDragDelta(ImGuiMouseButton button) + { + ResetMouseDragDeltaNative(button); + } + + /// + /// To be documented. + /// + public static void ResetMouseDragDelta() + { + ResetMouseDragDeltaNative((ImGuiMouseButton)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiMouseCursor GetMouseCursorNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[373])(); + #else + return (ImGuiMouseCursor)((delegate* unmanaged[Cdecl])funcTable[373])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiMouseCursor GetMouseCursor() + { + ImGuiMouseCursor ret = GetMouseCursorNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetMouseCursorNative(ImGuiMouseCursor cursorType) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[374])(cursorType); + #else + ((delegate* unmanaged[Cdecl])funcTable[374])(cursorType); + #endif + } + + /// + /// To be documented. + /// + public static void SetMouseCursor(ImGuiMouseCursor cursorType) + { + SetMouseCursorNative(cursorType); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextFrameWantCaptureMouseNative(byte wantCaptureMouse) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[375])(wantCaptureMouse); + #else + ((delegate* unmanaged[Cdecl])funcTable[375])(wantCaptureMouse); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextFrameWantCaptureMouse(bool wantCaptureMouse) + { + SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetClipboardTextNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[376])(); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[376])(); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetClipboardText() + { + byte* ret = GetClipboardTextNative(); + return ret; + } + + /// + /// To be documented. + /// + public static string GetClipboardTextS() + { + string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetClipboardTextNative(byte* text) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[377])(text); + #else + ((delegate* unmanaged[Cdecl])funcTable[377])((nint)text); + #endif + } + + /// + /// To be documented. + /// + public static void SetClipboardText(byte* text) + { + SetClipboardTextNative(text); + } + + /// + /// To be documented. + /// + public static void SetClipboardText(ref byte text) + { + fixed (byte* ptext = &text) + { + SetClipboardTextNative((byte*)ptext); + } + } + + /// + /// To be documented. + /// + public static void SetClipboardText(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + SetClipboardTextNative((byte*)ptext); + } + } + + /// + /// To be documented. + /// + public static void SetClipboardText(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; + } + SetClipboardTextNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LoadIniSettingsFromDiskNative(byte* iniFilename) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[378])(iniFilename); + #else + ((delegate* unmanaged[Cdecl])funcTable[378])((nint)iniFilename); + #endif + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromDisk(byte* iniFilename) + { + LoadIniSettingsFromDiskNative(iniFilename); + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromDisk(ref byte iniFilename) + { + fixed (byte* piniFilename = &iniFilename) + { + LoadIniSettingsFromDiskNative((byte*)piniFilename); + } + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromDisk(ReadOnlySpan iniFilename) + { + fixed (byte* piniFilename = iniFilename) + { + LoadIniSettingsFromDiskNative((byte*)piniFilename); + } + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromDisk(string iniFilename) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (iniFilename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(iniFilename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LoadIniSettingsFromDiskNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[379])(iniData, iniSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[379])((nint)iniData, iniSize); + #endif + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) + { + LoadIniSettingsFromMemoryNative(iniData, iniSize); + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromMemory(byte* iniData) + { + LoadIniSettingsFromMemoryNative(iniData, (nuint)(0)); + } + + /// + /// 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(ref byte iniData) + { + fixed (byte* piniData = &iniData) + { + LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); + } + } + + /// + /// 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(ReadOnlySpan iniData) + { + fixed (byte* piniData = iniData) + { + LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); + } + } + + /// + /// 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); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LoadIniSettingsFromMemory(string iniData) + { + 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, (nuint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SaveIniSettingsToDiskNative(byte* iniFilename) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[380])(iniFilename); + #else + ((delegate* unmanaged[Cdecl])funcTable[380])((nint)iniFilename); + #endif + } + + /// + /// To be documented. + /// + public static void SaveIniSettingsToDisk(byte* iniFilename) + { + SaveIniSettingsToDiskNative(iniFilename); + } + + /// + /// To be documented. + /// + public static void SaveIniSettingsToDisk(ref byte iniFilename) + { + fixed (byte* piniFilename = &iniFilename) + { + SaveIniSettingsToDiskNative((byte*)piniFilename); + } + } + + /// + /// To be documented. + /// + public static void SaveIniSettingsToDisk(ReadOnlySpan iniFilename) + { + fixed (byte* piniFilename = iniFilename) + { + SaveIniSettingsToDiskNative((byte*)piniFilename); + } + } + + /// + /// To be documented. + /// + public static void SaveIniSettingsToDisk(string iniFilename) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (iniFilename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(iniFilename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SaveIniSettingsToDiskNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[381])(outIniSize); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[381])((nint)outIniSize); + #endif + } + + /// + /// To be documented. + /// + public static byte* SaveIniSettingsToMemory(nuint* outIniSize) + { + byte* ret = SaveIniSettingsToMemoryNative(outIniSize); + return ret; + } + + /// + /// To be documented. + /// + public static byte* SaveIniSettingsToMemory() + { + byte* ret = SaveIniSettingsToMemoryNative((nuint*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static string SaveIniSettingsToMemoryS() + { + string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)(default))); + return ret; + } + + /// + /// To be documented. + /// + public static string SaveIniSettingsToMemoryS(nuint* outIniSize) + { + string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative(outIniSize)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugTextEncodingNative(byte* text) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[382])(text); + #else + ((delegate* unmanaged[Cdecl])funcTable[382])((nint)text); + #endif + } + + /// + /// To be documented. + /// + public static void DebugTextEncoding(byte* text) + { + DebugTextEncodingNative(text); + } + + /// + /// To be documented. + /// + public static void DebugTextEncoding(ref byte text) + { + fixed (byte* ptext = &text) + { + DebugTextEncodingNative((byte*)ptext); + } + } + + /// + /// To be documented. + /// + public static void DebugTextEncoding(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + DebugTextEncodingNative((byte*)ptext); + } + } + + /// + /// To be documented. + /// + public static void DebugTextEncoding(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; + } + DebugTextEncodingNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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); + #else + 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, 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(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) + { + 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; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs new file mode 100644 index 000000000..af94b80dc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 PassFilter(ref ImGuiTextFilter self, string text, ReadOnlySpan 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BuildNative(ImGuiTextFilter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[438])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[438])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Build(ImGuiTextFilterPtr self) + { + BuildNative(self); + } + + /// + /// To be documented. + /// + public static void Build(ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + BuildNative((ImGuiTextFilter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImGuiTextFilter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[439])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[439])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImGuiTextFilterPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + ClearNative((ImGuiTextFilter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsActiveNative(ImGuiTextFilter* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[440])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[440])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsActive(ImGuiTextFilterPtr self) + { + byte ret = IsActiveNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsActive(ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte ret = IsActiveNative((ImGuiTextFilter*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTextRange* ImGuiTextRangeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[441])(); + #else + return (ImGuiTextRange*)((delegate* unmanaged[Cdecl])funcTable[441])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange() + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTextRange* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[442])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[442])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTextRangePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTextRange self) + { + fixed (ImGuiTextRange* pself = &self) + { + DestroyNative((ImGuiTextRange*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTextRange* ImGuiTextRangeNative(byte* b, byte* e) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[443])(b, e); + #else + return (ImGuiTextRange*)((delegate* unmanaged[Cdecl])funcTable[443])((nint)b, (nint)e); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(byte* b, byte* e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, e); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, byte* e) + { + fixed (byte* pb = &b) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, byte* e) + { + fixed (byte* pb = b) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(string b, byte* e) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (b != null) + { + pStrSize0 = Utils.GetByteCountUTF8(b); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, e); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ref byte e) + { + fixed (byte* pe = &e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ReadOnlySpan e) + { + fixed (byte* pe = e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(byte* b, string e) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (e != null) + { + pStrSize0 = Utils.GetByteCountUTF8(e); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ref byte e) + { + fixed (byte* pb = &b) + { + fixed (byte* pe = &e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, ReadOnlySpan e) + { + fixed (byte* pb = b) + { + fixed (byte* pe = e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(string b, string e) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (b != null) + { + pStrSize0 = Utils.GetByteCountUTF8(b); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (e != null) + { + pStrSize1 = Utils.GetByteCountUTF8(e); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(e, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ReadOnlySpan e) + { + fixed (byte* pb = &b) + { + fixed (byte* pe = e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, string e) + { + fixed (byte* pb = &b) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (e != null) + { + pStrSize0 = Utils.GetByteCountUTF8(e); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, ref byte e) + { + fixed (byte* pb = b) + { + fixed (byte* pe = &e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, string e) + { + fixed (byte* pb = b) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (e != null) + { + pStrSize0 = Utils.GetByteCountUTF8(e); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(string b, ref byte e) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (b != null) + { + pStrSize0 = Utils.GetByteCountUTF8(b); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pe = &e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextRangePtr ImGuiTextRange(string b, ReadOnlySpan e) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (b != null) + { + pStrSize0 = Utils.GetByteCountUTF8(b); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pe = e) + { + ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte emptyNative(ImGuiTextRange* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[444])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[444])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool empty(ImGuiTextRangePtr self) + { + byte ret = emptyNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool empty(ref ImGuiTextRange self) + { + fixed (ImGuiTextRange* pself = &self) + { + byte ret = emptyNative((ImGuiTextRange*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void splitNative(ImGuiTextRange* self, byte separator, ImVector* output) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[445])(self, separator, output); + #else + ((delegate* unmanaged[Cdecl])funcTable[445])((nint)self, separator, (nint)output); + #endif + } + + /// + /// To be documented. + /// + public static void split(ImGuiTextRangePtr self, byte separator, ImVector* output) + { + splitNative(self, separator, output); + } + + /// + /// To be documented. + /// + public static void split(ref ImGuiTextRange self, byte separator, ImVector* output) + { + fixed (ImGuiTextRange* pself = &self) + { + splitNative((ImGuiTextRange*)pself, separator, output); + } + } + + /// + /// To be documented. + /// + public static void split(ImGuiTextRangePtr self, byte separator, ref ImVector output) + { + fixed (ImVector* poutput = &output) + { + splitNative(self, separator, (ImVector*)poutput); + } + } + + /// + /// To be documented. + /// + public static void split(ref ImGuiTextRange self, byte separator, ref ImVector output) + { + fixed (ImGuiTextRange* pself = &self) + { + fixed (ImVector* poutput = &output) + { + splitNative((ImGuiTextRange*)pself, separator, (ImVector*)poutput); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTextBuffer* ImGuiTextBufferNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[446])(); + #else + return (ImGuiTextBuffer*)((delegate* unmanaged[Cdecl])funcTable[446])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTextBufferPtr ImGuiTextBuffer() + { + ImGuiTextBufferPtr ret = ImGuiTextBufferNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[447])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[447])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTextBufferPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + DestroyNative((ImGuiTextBuffer*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* beginNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[448])(self); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[448])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static byte* begin(ImGuiTextBufferPtr self) + { + byte* ret = beginNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static string beginS(ImGuiTextBufferPtr self) + { + string ret = Utils.DecodeStringUTF8(beginNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* begin(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* ret = beginNative((ImGuiTextBuffer*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string beginS(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + string ret = Utils.DecodeStringUTF8(beginNative((ImGuiTextBuffer*)pself)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* endNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[449])(self); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[449])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static byte* end(ImGuiTextBufferPtr self) + { + byte* ret = endNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static string endS(ImGuiTextBufferPtr self) + { + string ret = Utils.DecodeStringUTF8(endNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* end(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* ret = endNative((ImGuiTextBuffer*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string endS(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + string ret = Utils.DecodeStringUTF8(endNative((ImGuiTextBuffer*)pself)); + 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 new file mode 100644 index 000000000..f96378d21 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs @@ -0,0 +1,5050 @@ +// ------------------------------------------------------------------------------ +// +// 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 void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, 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, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, 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, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, 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, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, string 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; + } + 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, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[522])(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[522])((nint)self, (nint)font, fontSize, pos, col, (nint)textBegin, (nint)textEnd, wrapWidth, (nint)cpuFineClipRect); + #endif + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (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) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (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, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, 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) + { + fixed (ImFont* pfont = &font) + { + 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 new file mode 100644 index 000000000..d92aff9e9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs @@ -0,0 +1,5073 @@ +// ------------------------------------------------------------------------------ +// +// 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 void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string 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; + } + 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, (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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string 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; + } + 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, (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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* 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; + } + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, 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, string textBegin, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, 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, 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 new file mode 100644 index 000000000..f2226190c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte 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, ref byte 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, ref byte textBegin, string textEnd, float wrapWidth, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan 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, ReadOnlySpan 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, string textEnd, float wrapWidth, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, 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, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (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, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (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, string textBegin, string 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; + } + 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, 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(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string 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; + } + 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, 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. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (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, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* 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 (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* 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 (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (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, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* 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 (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, 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, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* 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 (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, 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, 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 new file mode 100644 index 000000000..108b26583 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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 void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, string text, string 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; + } + 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((ImFontGlyphRangesBuilder*)pself, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* 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; + } + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan 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. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* 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; + } + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, string text, ref 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; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, string text, ReadOnlySpan 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; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddRangesNative(ImFontGlyphRangesBuilder* self, ushort* ranges) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[578])(self, ranges); + #else + ((delegate* unmanaged[Cdecl])funcTable[578])((nint)self, (nint)ranges); + #endif + } + + /// + /// To be documented. + /// + public static void AddRanges(ImFontGlyphRangesBuilderPtr self, ushort* ranges) + { + AddRangesNative(self, ranges); + } + + /// + /// To be documented. + /// + public static void AddRanges(ref ImFontGlyphRangesBuilder self, ushort* ranges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + AddRangesNative((ImFontGlyphRangesBuilder*)pself, ranges); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BuildRangesNative(ImFontGlyphRangesBuilder* self, ImVector* outRanges) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[579])(self, outRanges); + #else + ((delegate* unmanaged[Cdecl])funcTable[579])((nint)self, (nint)outRanges); + #endif + } + + /// + /// To be documented. + /// + public static void BuildRanges(ImFontGlyphRangesBuilderPtr self, ImVector* outRanges) + { + BuildRangesNative(self, outRanges); + } + + /// + /// To be documented. + /// + public static void BuildRanges(ref ImFontGlyphRangesBuilder self, ImVector* outRanges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + BuildRangesNative((ImFontGlyphRangesBuilder*)pself, outRanges); + } + } + + /// + /// To be documented. + /// + public static void BuildRanges(ImFontGlyphRangesBuilderPtr self, ref ImVector outRanges) + { + fixed (ImVector* poutRanges = &outRanges) + { + BuildRangesNative(self, (ImVector*)poutRanges); + } + } + + /// + /// To be documented. + /// + public static void BuildRanges(ref ImFontGlyphRangesBuilder self, ref ImVector outRanges) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (ImVector* poutRanges = &outRanges) + { + BuildRangesNative((ImFontGlyphRangesBuilder*)pself, (ImVector*)poutRanges); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontAtlasCustomRect* ImFontAtlasCustomRectNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[580])(); + #else + return (ImFontAtlasCustomRect*)((delegate* unmanaged[Cdecl])funcTable[580])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontAtlasCustomRectPtr ImFontAtlasCustomRect() + { + ImFontAtlasCustomRectPtr ret = ImFontAtlasCustomRectNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImFontAtlasCustomRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[581])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[581])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImFontAtlasCustomRectPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImFontAtlasCustomRect self) + { + fixed (ImFontAtlasCustomRect* pself = &self) + { + DestroyNative((ImFontAtlasCustomRect*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPackedNative(ImFontAtlasCustomRect* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[582])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[582])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPacked(ImFontAtlasCustomRectPtr self) + { + byte ret = IsPackedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsPacked(ref ImFontAtlasCustomRect self) + { + fixed (ImFontAtlasCustomRect* pself = &self) + { + byte ret = IsPackedNative((ImFontAtlasCustomRect*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontAtlas* ImFontAtlasNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[583])(); + #else + return (ImFontAtlas*)((delegate* unmanaged[Cdecl])funcTable[583])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontAtlasPtr ImFontAtlas() + { + ImFontAtlasPtr ret = ImFontAtlasNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[584])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[584])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImFontAtlasPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + DestroyNative((ImFontAtlas*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontNative(ImFontAtlas* self, ImFontConfig* fontCfg) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[585])(self, fontCfg); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[585])((nint)self, (nint)fontCfg); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFont(ImFontAtlasPtr self, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontNative(self, fontCfg); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFont(ref ImFontAtlas self, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontNative((ImFontAtlas*)pself, fontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFont(ImFontAtlasPtr self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontNative(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFont(ref ImFontAtlas self, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontDefaultNative(ImFontAtlas* self, ImFontConfig* fontCfg) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[586])(self, fontCfg); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[586])((nint)self, (nint)fontCfg); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ImFontAtlasPtr self, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontDefaultNative(self, fontCfg); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ImFontAtlasPtr self) + { + ImFontPtr ret = AddFontDefaultNative(self, (ImFontConfig*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ref ImFontAtlas self, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, fontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ImFontAtlasPtr self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontDefaultNative(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontDefault(ref ImFontAtlas self, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[587])(self, filename, sizePixels, fontCfg, glyphRanges); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[587])((nint)self, (nint)filename, sizePixels, (nint)fontCfg, (nint)glyphRanges); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + 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 new file mode 100644 index 000000000..4fbd264fa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs @@ -0,0 +1,5051 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 new file mode 100644 index 000000000..6cf409e14 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + 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; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + } + } + } + + /// + /// 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) + { + 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) + { + 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; + } + } + + /// + /// 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 new file mode 100644 index 000000000..48aa04e39 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs @@ -0,0 +1,5068 @@ +// ------------------------------------------------------------------------------ +// +// 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 CalcTextSizeA(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) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(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) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(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) + { + 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; + } + } + } + + /// + /// To be documented. + /// + 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) + { + fixed (byte* ptextBegin = &textBegin) + { + 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; + } + } + } + } + } + + /// + /// To be documented. + /// + 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) + { + 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, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (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, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + 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; + } + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(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) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (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, 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) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (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, 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) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, 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, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte 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, 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, string textBegin, string 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; + } + 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, (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); + 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, 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, 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); + } + } + } + } + } + + /// + /// 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; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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); + } + } + } + } + + /// + /// 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) + { + 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) + { + 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs new file mode 100644 index 000000000..5335f6ec9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs @@ -0,0 +1,5033 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + DestroyNative((ImGuiViewport*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCenterNative(Vector2* pOut, ImGuiViewport* self) + { + #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) + { + 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 + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs new file mode 100644 index 000000000..d92677067 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs @@ -0,0 +1,1255 @@ +// ------------------------------------------------------------------------------ +// +// 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 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 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/Handles/ImFileHandle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Handles/ImFileHandle.cs new file mode 100644 index 000000000..709f7b546 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Handles/ImFileHandle.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public readonly partial struct ImFileHandle : IEquatable + { + public ImFileHandle(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static ImFileHandle Null => new ImFileHandle(0); + public static implicit operator ImFileHandle(nint handle) => new ImFileHandle(handle); + public static bool operator ==(ImFileHandle left, ImFileHandle right) => left.Handle == right.Handle; + public static bool operator !=(ImFileHandle left, ImFileHandle right) => left.Handle != right.Handle; + public static bool operator ==(ImFileHandle left, nint right) => left.Handle == right; + public static bool operator !=(ImFileHandle left, nint right) => left.Handle != right; + public bool Equals(ImFileHandle other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is ImFileHandle handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFileHandle [0x{0}]", Handle.ToString("X")); + #endif + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs new file mode 100644 index 000000000..94a5fbdba --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN + { + /// + /// To be documented. + /// + public uint Storage_0; + public uint Storage_1; + public uint Storage_2; + public uint Storage_3; + public uint Storage_4; + + + /// + /// To be documented. + /// + public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) + { + if (storage != default(uint*)) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + + /// + /// To be documented. + /// + public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span storage = default) + { + if (storage != default(Span)) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs new file mode 100644 index 000000000..df34d1705 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitVector + { + /// + /// To be documented. + /// + public ImVector Storage; + + + /// + /// To be documented. + /// + public unsafe ImBitVector(ImVector storage = default) + { + Storage = storage; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImBitVectorPtr : IEquatable + { + public ImBitVectorPtr(ImBitVector* handle) { Handle = handle; } + + public ImBitVector* Handle; + + public bool IsNull => Handle == null; + + public static ImBitVectorPtr Null => new ImBitVectorPtr(null); + + public ImBitVector this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImBitVectorPtr(ImBitVector* handle) => new ImBitVectorPtr(handle); + + public static implicit operator ImBitVector*(ImBitVectorPtr handle) => handle.Handle; + + public static bool operator ==(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImBitVectorPtr left, ImBitVector* right) => left.Handle == right; + + public static bool operator !=(ImBitVectorPtr left, ImBitVector* right) => left.Handle != right; + + public bool Equals(ImBitVectorPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImBitVectorPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImBitVectorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Storage => ref Unsafe.AsRef>(&Handle->Storage); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs new file mode 100644 index 000000000..a8ec1d70b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiTableSettings + { + /// + /// To be documented. + /// + public ImVector Buf; + + + /// + /// To be documented. + /// + public unsafe ImChunkStreamImGuiTableSettings(ImVector buf = default) + { + Buf = buf; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs new file mode 100644 index 000000000..952c2250a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiWindowSettings + { + /// + /// To be documented. + /// + public ImVector Buf; + + + /// + /// To be documented. + /// + public unsafe ImChunkStreamImGuiWindowSettings(ImVector buf = default) + { + Buf = buf; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs new file mode 100644 index 000000000..3edcd3c9b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs @@ -0,0 +1,184 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImColor + { + /// + /// To be documented. + /// + public Vector4 Value; + + + /// + /// To be documented. + /// + public unsafe ImColor(Vector4 value = default) + { + Value = value; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImColor* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void HSV(float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGui.HSVNative(@this, h, s, v, a); + } + } + + /// + /// To be documented. + /// + public unsafe void HSV(float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGui.HSVNative(@this, h, s, v, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void SetHSV(float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGui.SetHSVNative(@this, h, s, v, a); + } + } + + /// + /// To be documented. + /// + public unsafe void SetHSV(float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGui.SetHSVNative(@this, h, s, v, (float)(1.0f)); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImColorPtr : IEquatable + { + public ImColorPtr(ImColor* handle) { Handle = handle; } + + public ImColor* Handle; + + public bool IsNull => Handle == null; + + public static ImColorPtr Null => new ImColorPtr(null); + + public ImColor this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImColorPtr(ImColor* handle) => new ImColorPtr(handle); + + public static implicit operator ImColor*(ImColorPtr handle) => handle.Handle; + + public static bool operator ==(ImColorPtr left, ImColorPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImColorPtr left, ImColorPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImColorPtr left, ImColor* right) => left.Handle == right; + + public static bool operator !=(ImColorPtr left, ImColor* right) => left.Handle != right; + + public bool Equals(ImColorPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImColorPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImColorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector4 Value => ref Unsafe.AsRef(&Handle->Value); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void HSV(float h, float s, float v, float a) + { + ImGui.HSVNative(Handle, h, s, v, a); + } + + /// + /// To be documented. + /// + public unsafe void HSV(float h, float s, float v) + { + ImGui.HSVNative(Handle, h, s, v, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void SetHSV(float h, float s, float v, float a) + { + ImGui.SetHSVNative(Handle, h, s, v, a); + } + + /// + /// To be documented. + /// + public unsafe void SetHSV(float h, float s, float v) + { + ImGui.SetHSVNative(Handle, h, s, v, (float)(1.0f)); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs new file mode 100644 index 000000000..b2495dff2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + /// + /// To be documented. + /// + public ImVector CmdBuffer; + + /// + /// To be documented. + /// + public ImVector IdxBuffer; + + + /// + /// To be documented. + /// + public unsafe ImDrawChannel(ImVector cmdBuffer = default, ImVector idxBuffer = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawChannelPtr : IEquatable + { + public ImDrawChannelPtr(ImDrawChannel* handle) { Handle = handle; } + + public ImDrawChannel* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawChannelPtr Null => new ImDrawChannelPtr(null); + + public ImDrawChannel this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawChannelPtr(ImDrawChannel* handle) => new ImDrawChannelPtr(handle); + + public static implicit operator ImDrawChannel*(ImDrawChannelPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle == right; + + public static bool operator !=(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle != right; + + public bool Equals(ImDrawChannelPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawChannelPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawChannelPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector CmdBuffer => ref Unsafe.AsRef>(&Handle->CmdBuffer); + /// + /// To be documented. + /// + public ref ImVector IdxBuffer => ref Unsafe.AsRef>(&Handle->IdxBuffer); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs new file mode 100644 index 000000000..84094be46 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs @@ -0,0 +1,188 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmd + { + /// + /// To be documented. + /// + public Vector4 ClipRect; + + /// + /// To be documented. + /// + public ImTextureID TextureId; + + /// + /// To be documented. + /// + public uint VtxOffset; + + /// + /// To be documented. + /// + public uint IdxOffset; + + /// + /// To be documented. + /// + public uint ElemCount; + + /// + /// To be documented. + /// + public unsafe void* UserCallback; + /// + /// To be documented. + /// + public unsafe void* UserCallbackData; + + + /// + /// To be documented. + /// + public unsafe ImDrawCmd(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, ImDrawCallback userCallback = default, void* userCallbackData = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + IdxOffset = idxOffset; + ElemCount = elemCount; + UserCallback = (void*)Marshal.GetFunctionPointerForDelegate(userCallback); + UserCallbackData = userCallbackData; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImDrawCmd* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe ImTextureID GetTexID() + { + fixed (ImDrawCmd* @this = &this) + { + ImTextureID ret = ImGui.GetTexIDNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawCmdPtr : IEquatable + { + public ImDrawCmdPtr(ImDrawCmd* handle) { Handle = handle; } + + public ImDrawCmd* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawCmdPtr Null => new ImDrawCmdPtr(null); + + public ImDrawCmd this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawCmdPtr(ImDrawCmd* handle) => new ImDrawCmdPtr(handle); + + public static implicit operator ImDrawCmd*(ImDrawCmdPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle == right; + + public static bool operator !=(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle != right; + + public bool Equals(ImDrawCmdPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawCmdPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawCmdPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector4 ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + /// + /// To be documented. + /// + public ref ImTextureID TextureId => ref Unsafe.AsRef(&Handle->TextureId); + /// + /// To be documented. + /// + public ref uint VtxOffset => ref Unsafe.AsRef(&Handle->VtxOffset); + /// + /// To be documented. + /// + public ref uint IdxOffset => ref Unsafe.AsRef(&Handle->IdxOffset); + /// + /// To be documented. + /// + public ref uint ElemCount => ref Unsafe.AsRef(&Handle->ElemCount); + /// + /// To be documented. + /// + public void* UserCallback { get => Handle->UserCallback; set => Handle->UserCallback = value; } + /// + /// To be documented. + /// + public void* UserCallbackData { get => Handle->UserCallbackData; set => Handle->UserCallbackData = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe ImTextureID GetTexID() + { + ImTextureID ret = ImGui.GetTexIDNative(Handle); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs new file mode 100644 index 000000000..1bc35e4c1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmdHeader + { + /// + /// To be documented. + /// + public Vector4 ClipRect; + + /// + /// To be documented. + /// + public ImTextureID TextureId; + + /// + /// To be documented. + /// + public uint VtxOffset; + + + /// + /// To be documented. + /// + public unsafe ImDrawCmdHeader(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs new file mode 100644 index 000000000..9d32ddbf7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs @@ -0,0 +1,245 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawData + { + /// + /// To be documented. + /// + public byte Valid; + + /// + /// To be documented. + /// + public int CmdListsCount; + + /// + /// To be documented. + /// + public int TotalIdxCount; + + /// + /// To be documented. + /// + public int TotalVtxCount; + + /// + /// To be documented. + /// + public unsafe ImDrawList** CmdLists; + + /// + /// To be documented. + /// + public Vector2 DisplayPos; + + /// + /// To be documented. + /// + public Vector2 DisplaySize; + + /// + /// To be documented. + /// + public Vector2 FramebufferScale; + + /// + /// To be documented. + /// + public unsafe ImGuiViewport* OwnerViewport; + + + /// + /// To be documented. + /// + public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImDrawListPtrPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) + { + Valid = valid ? (byte)1 : (byte)0; + CmdListsCount = cmdListsCount; + TotalIdxCount = totalIdxCount; + TotalVtxCount = totalVtxCount; + CmdLists = cmdLists; + DisplayPos = displayPos; + DisplaySize = displaySize; + FramebufferScale = framebufferScale; + OwnerViewport = ownerViewport; + } + + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImDrawData* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void DeIndexAllBuffers() + { + fixed (ImDrawData* @this = &this) + { + ImGui.DeIndexAllBuffersNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImDrawData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ScaleClipRects(Vector2 fbScale) + { + fixed (ImDrawData* @this = &this) + { + ImGui.ScaleClipRectsNative(@this, fbScale); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawDataPtr : IEquatable + { + public ImDrawDataPtr(ImDrawData* handle) { Handle = handle; } + + public ImDrawData* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawDataPtr Null => new ImDrawDataPtr(null); + + public ImDrawData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawDataPtr(ImDrawData* handle) => new ImDrawDataPtr(handle); + + public static implicit operator ImDrawData*(ImDrawDataPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawDataPtr left, ImDrawData* right) => left.Handle == right; + + public static bool operator !=(ImDrawDataPtr left, ImDrawData* right) => left.Handle != right; + + public bool Equals(ImDrawDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool Valid => ref Unsafe.AsRef(&Handle->Valid); + /// + /// To be documented. + /// + public ref int CmdListsCount => ref Unsafe.AsRef(&Handle->CmdListsCount); + /// + /// To be documented. + /// + public ref int TotalIdxCount => ref Unsafe.AsRef(&Handle->TotalIdxCount); + /// + /// To be documented. + /// + public ref int TotalVtxCount => ref Unsafe.AsRef(&Handle->TotalVtxCount); + /// + /// To be documented. + /// + public ref ImDrawListPtrPtr CmdLists => ref Unsafe.AsRef(&Handle->CmdLists); + /// + /// To be documented. + /// + public ref Vector2 DisplayPos => ref Unsafe.AsRef(&Handle->DisplayPos); + /// + /// To be documented. + /// + public ref Vector2 DisplaySize => ref Unsafe.AsRef(&Handle->DisplaySize); + /// + /// To be documented. + /// + public ref Vector2 FramebufferScale => ref Unsafe.AsRef(&Handle->FramebufferScale); + /// + /// To be documented. + /// + public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef(&Handle->OwnerViewport); + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void DeIndexAllBuffers() + { + ImGui.DeIndexAllBuffersNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ScaleClipRects(Vector2 fbScale) + { + ImGui.ScaleClipRectsNative(Handle, fbScale); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs new file mode 100644 index 000000000..616b34a3e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs @@ -0,0 +1,127 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawDataBuilder + { + /// + /// To be documented. + /// + public ImVector Layers_0; + public ImVector Layers_1; + + + /// + /// To be documented. + /// + public unsafe ImDrawDataBuilder(ImVector* layers = default) + { + if (layers != default(ImVector*)) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + } + + /// + /// To be documented. + /// + public unsafe ImDrawDataBuilder(Span> layers = default) + { + if (layers != default(Span>)) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span> Layers + + { + get + { + fixed (ImVector* p = &this.Layers_0) + { + return new Span>(p, 2); + } + } + } + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawDataBuilderPtr : IEquatable + { + public ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) { Handle = handle; } + + public ImDrawDataBuilder* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawDataBuilderPtr Null => new ImDrawDataBuilderPtr(null); + + public ImDrawDataBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) => new ImDrawDataBuilderPtr(handle); + + public static implicit operator ImDrawDataBuilder*(ImDrawDataBuilderPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle == right; + + public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle != right; + + public bool Equals(ImDrawDataBuilderPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawDataBuilderPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawDataBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public unsafe Span> Layers + + { + get + { + return new Span>(&Handle->Layers_0, 2); + } + } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs new file mode 100644 index 000000000..c5a444006 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs @@ -0,0 +1,14741 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawList + { + /// + /// To be documented. + /// + public ImVector CmdBuffer; + + /// + /// To be documented. + /// + public ImVector IdxBuffer; + + /// + /// To be documented. + /// + public ImVector VtxBuffer; + + /// + /// To be documented. + /// + public ImDrawListFlags Flags; + + /// + /// To be documented. + /// + public uint VtxCurrentIdx; + + /// + /// To be documented. + /// + public unsafe ImDrawListSharedData* Data; + + /// + /// To be documented. + /// + public unsafe byte* OwnerName; + + /// + /// To be documented. + /// + public unsafe ImDrawVert* VtxWritePtr; + + /// + /// To be documented. + /// + public unsafe ushort* IdxWritePtr; + + /// + /// To be documented. + /// + public ImVector ClipRectStack; + + /// + /// To be documented. + /// + public ImVector TextureIdStack; + + /// + /// To be documented. + /// + public ImVector Path; + + /// + /// To be documented. + /// + public ImDrawCmdHeader CmdHeader; + + /// + /// To be documented. + /// + public ImDrawListSplitter Splitter; + + /// + /// To be documented. + /// + public float FringeScale; + + + /// + /// To be documented. + /// + public unsafe ImDrawList(ImVector cmdBuffer = default, ImVector idxBuffer = default, ImVector vtxBuffer = default, ImDrawListFlags flags = default, uint vtxCurrentIdx = default, ImDrawListSharedData* data = default, byte* ownerName = default, ImDrawVert* vtxWritePtr = default, ushort* idxWritePtr = default, ImVector clipRectStack = default, ImVector textureIdStack = default, ImVector path = default, ImDrawCmdHeader cmdHeader = default, ImDrawListSplitter splitter = default, float fringeScale = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + VtxBuffer = vtxBuffer; + Flags = flags; + VtxCurrentIdx = vtxCurrentIdx; + Data = data; + OwnerName = ownerName; + VtxWritePtr = vtxWritePtr; + IdxWritePtr = idxWritePtr; + ClipRectStack = clipRectStack; + TextureIdStack = textureIdStack; + Path = path; + CmdHeader = cmdHeader; + Splitter = splitter; + FringeScale = fringeScale; + } + + + /// + /// To be documented. + /// + public unsafe int _CalcCircleAutoSegmentCount(float radius) + { + fixed (ImDrawList* @this = &this) + { + int ret = ImGui._CalcCircleAutoSegmentCountNative(@this, radius); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void _ClearFreeMemory() + { + fixed (ImDrawList* @this = &this) + { + ImGui._ClearFreeMemoryNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedClipRectNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedTextureIDNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedVtxOffset() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedVtxOffsetNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + fixed (ImDrawList* @this = &this) + { + ImGui._PathArcToFastExNative(@this, center, radius, aMinSample, aMaxSample, aStep); + } + } + + /// + /// To be documented. + /// + public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui._PathArcToNNative(@this, center, radius, aMin, aMax, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void _PopUnusedDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGui._PopUnusedDrawCmdNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _ResetForNewFrame() + { + fixed (ImDrawList* @this = &this) + { + ImGui._ResetForNewFrameNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void _TryMergeDrawCmds() + { + fixed (ImDrawList* @this = &this) + { + ImGui._TryMergeDrawCmdsNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCallbackNative(@this, callback, callbackData); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, numSegments, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, (int)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, (int)(0), thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleFilledNative(@this, center, radius, col, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleFilledNative(@this, center, radius, col, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddConvexPolyFilledNative(@this, points, numPoints, col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddConvexPolyFilledNative(@this, (Vector2*)ppoints, numPoints, col); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddDrawCmdNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, 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 unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + } + + /// + /// To be documented. + /// + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddLineNative(@this, p1, p2, col, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddLineNative(@this, p1, p2, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonNative(@this, center, radius, col, numSegments, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonNative(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonFilledNative(@this, center, radius, col, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddPolylineNative(@this, points, numPoints, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddPolylineNative(@this, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadFilledNative(@this, p1, p2, p3, p4, col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, flags); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), flags); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledMultiColorNative(@this, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, pos, col, textBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, 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. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (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 unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + 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) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleNative(@this, p1, p2, p3, col, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleNative(@this, p1, p2, p3, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleFilledNative(@this, p1, p2, p3, col); + } + } + + /// + /// To be documented. + /// + public unsafe void ChannelsMerge() + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsMergeNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ChannelsSetCurrent(int n) + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsSetCurrentNative(@this, n); + } + } + + /// + /// To be documented. + /// + public unsafe void ChannelsSplit(int count) + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsSplitNative(@this, count); + } + } + + /// + /// To be documented. + /// + public unsafe ImDrawList* CloneOutput() + { + fixed (ImDrawList* @this = &this) + { + ImDrawList* ret = ImGui.CloneOutputNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImDrawList* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToNative(@this, center, radius, aMin, aMax, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToNative(@this, center, radius, aMin, aMax, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToFastNative(@this, center, radius, aMinOf12, aMaxOf12); + } + } + + /// + /// To be documented. + /// + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, numSegments); + } + } + + /// + /// To be documented. + /// + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, (int)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathClear() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PathFillConvex(uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathFillConvexNative(@this, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PathLineTo(Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathLineToNative(@this, pos); + } + } + + /// + /// To be documented. + /// + public unsafe void PathLineToMergeDuplicate(Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathLineToMergeDuplicateNative(@this, pos); + } + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, rounding, flags); + } + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), flags); + } + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, ImDrawFlags flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void PopClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PopClipRectNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PopTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PopTextureIDNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimQuadUVNative(@this, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimRectNative(@this, a, b, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimRectUVNative(@this, a, b, uvA, uvB, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimReserve(int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimReserveNative(@this, idxCount, vtxCount); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimUnreserve(int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimUnreserveNative(@this, idxCount, vtxCount); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimVtxNative(@this, pos, uv, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimWriteIdx(ushort idx) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimWriteIdxNative(@this, idx); + } + } + + /// + /// To be documented. + /// + public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimWriteVtxNative(@this, pos, uv, col); + } + } + + /// + /// To be documented. + /// + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void PushClipRectFullScreen() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectFullScreenNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PushTextureID(ImTextureID textureId) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushTextureIDNative(@this, textureId); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawListPtr : IEquatable + { + public ImDrawListPtr(ImDrawList* handle) { Handle = handle; } + + public ImDrawList* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawListPtr Null => new ImDrawListPtr(null); + + public ImDrawList this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawListPtr(ImDrawList* handle) => new ImDrawListPtr(handle); + + public static implicit operator ImDrawList*(ImDrawListPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawListPtr left, ImDrawListPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawListPtr left, ImDrawListPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawListPtr left, ImDrawList* right) => left.Handle == right; + + public static bool operator !=(ImDrawListPtr left, ImDrawList* right) => left.Handle != right; + + public bool Equals(ImDrawListPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawListPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawListPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector CmdBuffer => ref Unsafe.AsRef>(&Handle->CmdBuffer); + /// + /// To be documented. + /// + public ref ImVector IdxBuffer => ref Unsafe.AsRef>(&Handle->IdxBuffer); + /// + /// To be documented. + /// + public ref ImVector VtxBuffer => ref Unsafe.AsRef>(&Handle->VtxBuffer); + /// + /// To be documented. + /// + public ref ImDrawListFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref uint VtxCurrentIdx => ref Unsafe.AsRef(&Handle->VtxCurrentIdx); + /// + /// To be documented. + /// + public ref ImDrawListSharedDataPtr Data => ref Unsafe.AsRef(&Handle->Data); + /// + /// To be documented. + /// + public byte* OwnerName { get => Handle->OwnerName; set => Handle->OwnerName = value; } + /// + /// To be documented. + /// + public ref ImDrawVertPtr VtxWritePtr => ref Unsafe.AsRef(&Handle->VtxWritePtr); + /// + /// To be documented. + /// + public ushort* IdxWritePtr { get => Handle->IdxWritePtr; set => Handle->IdxWritePtr = value; } + /// + /// To be documented. + /// + public ref ImVector ClipRectStack => ref Unsafe.AsRef>(&Handle->ClipRectStack); + /// + /// To be documented. + /// + public ref ImVector TextureIdStack => ref Unsafe.AsRef>(&Handle->TextureIdStack); + /// + /// To be documented. + /// + public ref ImVector Path => ref Unsafe.AsRef>(&Handle->Path); + /// + /// To be documented. + /// + public ref ImDrawCmdHeader CmdHeader => ref Unsafe.AsRef(&Handle->CmdHeader); + /// + /// To be documented. + /// + public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef(&Handle->Splitter); + /// + /// To be documented. + /// + public ref float FringeScale => ref Unsafe.AsRef(&Handle->FringeScale); + /// + /// To be documented. + /// + public unsafe int _CalcCircleAutoSegmentCount(float radius) + { + int ret = ImGui._CalcCircleAutoSegmentCountNative(Handle, radius); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void _ClearFreeMemory() + { + ImGui._ClearFreeMemoryNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedClipRect() + { + ImGui._OnChangedClipRectNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedTextureID() + { + ImGui._OnChangedTextureIDNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _OnChangedVtxOffset() + { + ImGui._OnChangedVtxOffsetNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + ImGui._PathArcToFastExNative(Handle, center, radius, aMinSample, aMaxSample, aStep); + } + + /// + /// To be documented. + /// + public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGui._PathArcToNNative(Handle, center, radius, aMin, aMax, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void _PopUnusedDrawCmd() + { + ImGui._PopUnusedDrawCmdNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _ResetForNewFrame() + { + ImGui._ResetForNewFrameNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void _TryMergeDrawCmds() + { + ImGui._TryMergeDrawCmdsNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + ImGui.AddBezierCubicNative(Handle, p1, p2, p3, p4, col, thickness, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGui.AddBezierCubicNative(Handle, p1, p2, p3, p4, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + ImGui.AddBezierQuadraticNative(Handle, p1, p2, p3, col, thickness, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGui.AddBezierQuadraticNative(Handle, p1, p2, p3, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) + { + ImGui.AddCallbackNative(Handle, callback, callbackData); + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGui.AddCircleNative(Handle, center, radius, col, numSegments, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) + { + ImGui.AddCircleNative(Handle, center, radius, col, numSegments, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col) + { + ImGui.AddCircleNative(Handle, center, radius, col, (int)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) + { + ImGui.AddCircleNative(Handle, center, radius, col, (int)(0), thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) + { + ImGui.AddCircleFilledNative(Handle, center, radius, col, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) + { + ImGui.AddCircleFilledNative(Handle, center, radius, col, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) + { + ImGui.AddConvexPolyFilledNative(Handle, points, numPoints, col); + } + + /// + /// To be documented. + /// + public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddConvexPolyFilledNative(Handle, (Vector2*)ppoints, numPoints, col); + } + } + + /// + /// To be documented. + /// + public unsafe void AddDrawCmd() + { + ImGui.AddDrawCmdNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + + /// + /// To be documented. + /// + public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + ImGui.AddImageQuadNative(Handle, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGui.AddImageQuadNative(Handle, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + ImGui.AddImageQuadNative(Handle, 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 unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGui.AddImageQuadNative(Handle, 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 unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + ImGui.AddImageRoundedNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + + /// + /// To be documented. + /// + public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + ImGui.AddImageRoundedNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) + { + ImGui.AddLineNative(Handle, p1, p2, col, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) + { + ImGui.AddLineNative(Handle, p1, p2, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) + { + ImGui.AddNgonNative(Handle, center, radius, col, numSegments, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) + { + ImGui.AddNgonNative(Handle, center, radius, col, numSegments, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) + { + ImGui.AddNgonFilledNative(Handle, center, radius, col, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + ImGui.AddPolylineNative(Handle, points, numPoints, col, flags, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddPolylineNative(Handle, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + ImGui.AddQuadNative(Handle, p1, p2, p3, p4, col, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGui.AddQuadNative(Handle, p1, p2, p3, p4, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + ImGui.AddQuadFilledNative(Handle, p1, p2, p3, p4, col); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, flags, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + ImGui.AddRectFilledNative(Handle, pMin, pMax, col, rounding, flags); + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + ImGui.AddRectFilledNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) + { + ImGui.AddRectFilledNative(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + ImGui.AddRectFilledNative(Handle, pMin, pMax, col, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + ImGui.AddRectFilledMultiColorNative(Handle, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + ImGui.AddTextNative(Handle, pos, col, textBegin, textEnd); + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin) + { + ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, 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 unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, 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 unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, 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 unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, 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 unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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; + } + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, 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 unsafe void AddText(ImFont* 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) + { + ImGui.AddTextNative(Handle, 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. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref 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; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (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 unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + ImGui.AddTriangleNative(Handle, p1, p2, p3, col, thickness); + } + + /// + /// To be documented. + /// + public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGui.AddTriangleNative(Handle, p1, p2, p3, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + ImGui.AddTriangleFilledNative(Handle, p1, p2, p3, col); + } + + /// + /// To be documented. + /// + public unsafe void ChannelsMerge() + { + ImGui.ChannelsMergeNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ChannelsSetCurrent(int n) + { + ImGui.ChannelsSetCurrentNative(Handle, n); + } + + /// + /// To be documented. + /// + public unsafe void ChannelsSplit(int count) + { + ImGui.ChannelsSplitNative(Handle, count); + } + + /// + /// To be documented. + /// + public unsafe ImDrawListPtr CloneOutput() + { + ImDrawListPtr ret = ImGui.CloneOutputNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + ImGui.PathArcToNative(Handle, center, radius, aMin, aMax, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) + { + ImGui.PathArcToNative(Handle, center, radius, aMin, aMax, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + ImGui.PathArcToFastNative(Handle, center, radius, aMinOf12, aMaxOf12); + } + + /// + /// To be documented. + /// + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + ImGui.PathBezierCubicCurveToNative(Handle, p2, p3, p4, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) + { + ImGui.PathBezierCubicCurveToNative(Handle, p2, p3, p4, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) + { + ImGui.PathBezierQuadraticCurveToNative(Handle, p2, p3, numSegments); + } + + /// + /// To be documented. + /// + public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) + { + ImGui.PathBezierQuadraticCurveToNative(Handle, p2, p3, (int)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PathClear() + { + ImGui.PathClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PathFillConvex(uint col) + { + ImGui.PathFillConvexNative(Handle, col); + } + + /// + /// To be documented. + /// + public unsafe void PathLineTo(Vector2 pos) + { + ImGui.PathLineToNative(Handle, pos); + } + + /// + /// To be documented. + /// + public unsafe void PathLineToMergeDuplicate(Vector2 pos) + { + ImGui.PathLineToMergeDuplicateNative(Handle, pos); + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + ImGui.PathRectNative(Handle, rectMin, rectMax, rounding, flags); + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) + { + ImGui.PathRectNative(Handle, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) + { + ImGui.PathRectNative(Handle, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + ImGui.PathRectNative(Handle, rectMin, rectMax, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) + { + ImGui.PathStrokeNative(Handle, col, flags, thickness); + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, ImDrawFlags flags) + { + ImGui.PathStrokeNative(Handle, col, flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col) + { + ImGui.PathStrokeNative(Handle, col, (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void PathStroke(uint col, float thickness) + { + ImGui.PathStrokeNative(Handle, col, (ImDrawFlags)(0), thickness); + } + + /// + /// To be documented. + /// + public unsafe void PopClipRect() + { + ImGui.PopClipRectNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PopTextureID() + { + ImGui.PopTextureIDNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + ImGui.PrimQuadUVNative(Handle, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + + /// + /// To be documented. + /// + public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) + { + ImGui.PrimRectNative(Handle, a, b, col); + } + + /// + /// To be documented. + /// + public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + ImGui.PrimRectUVNative(Handle, a, b, uvA, uvB, col); + } + + /// + /// To be documented. + /// + public unsafe void PrimReserve(int idxCount, int vtxCount) + { + ImGui.PrimReserveNative(Handle, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + public unsafe void PrimUnreserve(int idxCount, int vtxCount) + { + ImGui.PrimUnreserveNative(Handle, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) + { + ImGui.PrimVtxNative(Handle, pos, uv, col); + } + + /// + /// To be documented. + /// + public unsafe void PrimWriteIdx(ushort idx) + { + ImGui.PrimWriteIdxNative(Handle, idx); + } + + /// + /// To be documented. + /// + public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) + { + ImGui.PrimWriteVtxNative(Handle, pos, uv, col); + } + + /// + /// To be documented. + /// + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + ImGui.PushClipRectNative(Handle, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) + { + ImGui.PushClipRectNative(Handle, clipRectMin, clipRectMax, (byte)(0)); + } + + /// + /// To be documented. + /// + public unsafe void PushClipRectFullScreen() + { + ImGui.PushClipRectFullScreenNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PushTextureID(ImTextureID textureId) + { + ImGui.PushTextureIDNative(Handle, textureId); + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawListPtrPtr : IEquatable + { + public ImDrawListPtrPtr(ImDrawList** handle) { Handle = handle; } + + public ImDrawList** Handle; + + public bool IsNull => Handle == null; + + public static ImDrawListPtrPtr Null => new ImDrawListPtrPtr(null); + + public ImDrawList* this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawListPtrPtr(ImDrawList** handle) => new ImDrawListPtrPtr(handle); + + public static implicit operator ImDrawList**(ImDrawListPtrPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle == right; + + public static bool operator !=(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle != right; + + public bool Equals(ImDrawListPtrPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawListPtrPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawListPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs new file mode 100644 index 000000000..43a947209 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs @@ -0,0 +1,607 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSharedData + { + /// + /// To be documented. + /// + public ImTextureID TexIdCommon; + + /// + /// To be documented. + /// + public Vector2 TexUvWhitePixel; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public float CurveTessellationTol; + + /// + /// To be documented. + /// + public float CircleSegmentMaxError; + + /// + /// To be documented. + /// + public Vector4 ClipRectFullscreen; + + /// + /// To be documented. + /// + public ImDrawListFlags InitialFlags; + + /// + /// To be documented. + /// + public Vector2 ArcFastVtx_0; + public Vector2 ArcFastVtx_1; + public Vector2 ArcFastVtx_2; + public Vector2 ArcFastVtx_3; + public Vector2 ArcFastVtx_4; + public Vector2 ArcFastVtx_5; + public Vector2 ArcFastVtx_6; + public Vector2 ArcFastVtx_7; + public Vector2 ArcFastVtx_8; + public Vector2 ArcFastVtx_9; + public Vector2 ArcFastVtx_10; + public Vector2 ArcFastVtx_11; + public Vector2 ArcFastVtx_12; + public Vector2 ArcFastVtx_13; + public Vector2 ArcFastVtx_14; + public Vector2 ArcFastVtx_15; + public Vector2 ArcFastVtx_16; + public Vector2 ArcFastVtx_17; + public Vector2 ArcFastVtx_18; + public Vector2 ArcFastVtx_19; + public Vector2 ArcFastVtx_20; + public Vector2 ArcFastVtx_21; + public Vector2 ArcFastVtx_22; + public Vector2 ArcFastVtx_23; + public Vector2 ArcFastVtx_24; + public Vector2 ArcFastVtx_25; + public Vector2 ArcFastVtx_26; + public Vector2 ArcFastVtx_27; + public Vector2 ArcFastVtx_28; + public Vector2 ArcFastVtx_29; + public Vector2 ArcFastVtx_30; + public Vector2 ArcFastVtx_31; + public Vector2 ArcFastVtx_32; + public Vector2 ArcFastVtx_33; + public Vector2 ArcFastVtx_34; + public Vector2 ArcFastVtx_35; + public Vector2 ArcFastVtx_36; + public Vector2 ArcFastVtx_37; + public Vector2 ArcFastVtx_38; + public Vector2 ArcFastVtx_39; + public Vector2 ArcFastVtx_40; + public Vector2 ArcFastVtx_41; + public Vector2 ArcFastVtx_42; + public Vector2 ArcFastVtx_43; + public Vector2 ArcFastVtx_44; + public Vector2 ArcFastVtx_45; + public Vector2 ArcFastVtx_46; + public Vector2 ArcFastVtx_47; + + /// + /// To be documented. + /// + public float ArcFastRadiusCutoff; + + /// + /// To be documented. + /// + public byte CircleSegmentCounts_0; + public byte CircleSegmentCounts_1; + public byte CircleSegmentCounts_2; + public byte CircleSegmentCounts_3; + public byte CircleSegmentCounts_4; + public byte CircleSegmentCounts_5; + public byte CircleSegmentCounts_6; + public byte CircleSegmentCounts_7; + public byte CircleSegmentCounts_8; + public byte CircleSegmentCounts_9; + public byte CircleSegmentCounts_10; + public byte CircleSegmentCounts_11; + public byte CircleSegmentCounts_12; + public byte CircleSegmentCounts_13; + public byte CircleSegmentCounts_14; + public byte CircleSegmentCounts_15; + public byte CircleSegmentCounts_16; + public byte CircleSegmentCounts_17; + public byte CircleSegmentCounts_18; + public byte CircleSegmentCounts_19; + public byte CircleSegmentCounts_20; + public byte CircleSegmentCounts_21; + public byte CircleSegmentCounts_22; + public byte CircleSegmentCounts_23; + public byte CircleSegmentCounts_24; + public byte CircleSegmentCounts_25; + public byte CircleSegmentCounts_26; + public byte CircleSegmentCounts_27; + public byte CircleSegmentCounts_28; + public byte CircleSegmentCounts_29; + public byte CircleSegmentCounts_30; + public byte CircleSegmentCounts_31; + public byte CircleSegmentCounts_32; + public byte CircleSegmentCounts_33; + public byte CircleSegmentCounts_34; + public byte CircleSegmentCounts_35; + public byte CircleSegmentCounts_36; + public byte CircleSegmentCounts_37; + public byte CircleSegmentCounts_38; + public byte CircleSegmentCounts_39; + public byte CircleSegmentCounts_40; + public byte CircleSegmentCounts_41; + public byte CircleSegmentCounts_42; + public byte CircleSegmentCounts_43; + public byte CircleSegmentCounts_44; + public byte CircleSegmentCounts_45; + public byte CircleSegmentCounts_46; + public byte CircleSegmentCounts_47; + public byte CircleSegmentCounts_48; + public byte CircleSegmentCounts_49; + public byte CircleSegmentCounts_50; + public byte CircleSegmentCounts_51; + public byte CircleSegmentCounts_52; + public byte CircleSegmentCounts_53; + public byte CircleSegmentCounts_54; + public byte CircleSegmentCounts_55; + public byte CircleSegmentCounts_56; + public byte CircleSegmentCounts_57; + public byte CircleSegmentCounts_58; + public byte CircleSegmentCounts_59; + public byte CircleSegmentCounts_60; + public byte CircleSegmentCounts_61; + public byte CircleSegmentCounts_62; + public byte CircleSegmentCounts_63; + + /// + /// To be documented. + /// + public unsafe Vector4* TexUvLines; + + + /// + /// To be documented. + /// + public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexIdCommon = texIdCommon; + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + if (arcFastVtx != default(Vector2*)) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default(byte*)) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + + /// + /// To be documented. + /// + public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Span arcFastVtx = default, float arcFastRadiusCutoff = default, Span circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexIdCommon = texIdCommon; + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + if (arcFastVtx != default(Span)) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default(Span)) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + + + /// + /// To be documented. + /// + public unsafe Span ArcFastVtx + + { + get + { + fixed (Vector2* p = &this.ArcFastVtx_0) + { + return new Span(p, 48); + } + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImDrawListSharedData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawListSharedDataPtr : IEquatable + { + public ImDrawListSharedDataPtr(ImDrawListSharedData* handle) { Handle = handle; } + + public ImDrawListSharedData* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawListSharedDataPtr Null => new ImDrawListSharedDataPtr(null); + + public ImDrawListSharedData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawListSharedDataPtr(ImDrawListSharedData* handle) => new ImDrawListSharedDataPtr(handle); + + public static implicit operator ImDrawListSharedData*(ImDrawListSharedDataPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle == right; + + public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle != right; + + public bool Equals(ImDrawListSharedDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawListSharedDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawListSharedDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImTextureID TexIdCommon => ref Unsafe.AsRef(&Handle->TexIdCommon); + /// + /// To be documented. + /// + public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef(&Handle->TexUvWhitePixel); + /// + /// To be documented. + /// + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + /// + /// To be documented. + /// + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + /// + /// To be documented. + /// + public ref float CurveTessellationTol => ref Unsafe.AsRef(&Handle->CurveTessellationTol); + /// + /// To be documented. + /// + public ref float CircleSegmentMaxError => ref Unsafe.AsRef(&Handle->CircleSegmentMaxError); + /// + /// To be documented. + /// + public ref Vector4 ClipRectFullscreen => ref Unsafe.AsRef(&Handle->ClipRectFullscreen); + /// + /// To be documented. + /// + public ref ImDrawListFlags InitialFlags => ref Unsafe.AsRef(&Handle->InitialFlags); + /// + /// To be documented. + /// + public unsafe Span ArcFastVtx + + { + get + { + return new Span(&Handle->ArcFastVtx_0, 48); + } + } + /// + /// To be documented. + /// + public ref float ArcFastRadiusCutoff => ref Unsafe.AsRef(&Handle->ArcFastRadiusCutoff); + /// + /// To be documented. + /// + public unsafe Span CircleSegmentCounts + + { + get + { + return new Span(&Handle->CircleSegmentCounts_0, 64); + } + } + /// + /// To be documented. + /// + public Vector4* TexUvLines { get => Handle->TexUvLines; set => Handle->TexUvLines = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs new file mode 100644 index 000000000..3b3c5f827 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs @@ -0,0 +1,298 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSplitter + { + /// + /// To be documented. + /// + public int Current; + + /// + /// To be documented. + /// + public int Count; + + /// + /// To be documented. + /// + public ImVector Channels; + + + /// + /// To be documented. + /// + public unsafe ImDrawListSplitter(int current = default, int count = default, ImVector channels = default) + { + Current = current; + Count = count; + Channels = channels; + } + + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearFreeMemory() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.ClearFreeMemoryNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Merge(ImDrawListPtr drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.MergeNative(@this, drawList); + } + } + + /// + /// To be documented. + /// + public unsafe void Merge(ref ImDrawList drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.MergeNative(@this, (ImDrawList*)pdrawList); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.SetCurrentChannelNative(@this, drawList, channelIdx); + } + } + + /// + /// To be documented. + /// + public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SetCurrentChannelNative(@this, (ImDrawList*)pdrawList, channelIdx); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Split(ImDrawListPtr drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.SplitNative(@this, drawList, count); + } + } + + /// + /// To be documented. + /// + public unsafe void Split(ref ImDrawList drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SplitNative(@this, (ImDrawList*)pdrawList, count); + } + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawListSplitterPtr : IEquatable + { + public ImDrawListSplitterPtr(ImDrawListSplitter* handle) { Handle = handle; } + + public ImDrawListSplitter* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawListSplitterPtr Null => new ImDrawListSplitterPtr(null); + + public ImDrawListSplitter this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* handle) => new ImDrawListSplitterPtr(handle); + + public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle == right; + + public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle != right; + + public bool Equals(ImDrawListSplitterPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawListSplitterPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawListSplitterPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int Current => ref Unsafe.AsRef(&Handle->Current); + /// + /// To be documented. + /// + public ref int Count => ref Unsafe.AsRef(&Handle->Count); + /// + /// To be documented. + /// + public ref ImVector Channels => ref Unsafe.AsRef>(&Handle->Channels); + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearFreeMemory() + { + ImGui.ClearFreeMemoryNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Merge(ImDrawListPtr drawList) + { + ImGui.MergeNative(Handle, drawList); + } + + /// + /// To be documented. + /// + public unsafe void Merge(ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.MergeNative(Handle, (ImDrawList*)pdrawList); + } + } + + /// + /// To be documented. + /// + public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) + { + ImGui.SetCurrentChannelNative(Handle, drawList, channelIdx); + } + + /// + /// To be documented. + /// + public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SetCurrentChannelNative(Handle, (ImDrawList*)pdrawList, channelIdx); + } + } + + /// + /// To be documented. + /// + public unsafe void Split(ImDrawListPtr drawList, int count) + { + ImGui.SplitNative(Handle, drawList, count); + } + + /// + /// To be documented. + /// + public unsafe void Split(ref ImDrawList drawList, int count) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SplitNative(Handle, (ImDrawList*)pdrawList, count); + } + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs new file mode 100644 index 000000000..cb482eb52 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs @@ -0,0 +1,109 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawVert + { + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Uv; + + /// + /// To be documented. + /// + public uint Col; + + + /// + /// To be documented. + /// + public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) + { + Pos = pos; + Uv = uv; + Col = col; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImDrawVertPtr : IEquatable + { + public ImDrawVertPtr(ImDrawVert* handle) { Handle = handle; } + + public ImDrawVert* Handle; + + public bool IsNull => Handle == null; + + public static ImDrawVertPtr Null => new ImDrawVertPtr(null); + + public ImDrawVert this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImDrawVertPtr(ImDrawVert* handle) => new ImDrawVertPtr(handle); + + public static implicit operator ImDrawVert*(ImDrawVertPtr handle) => handle.Handle; + + public static bool operator ==(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImDrawVertPtr left, ImDrawVert* right) => left.Handle == right; + + public static bool operator !=(ImDrawVertPtr left, ImDrawVert* right) => left.Handle != right; + + public bool Equals(ImDrawVertPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImDrawVertPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImDrawVertPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref Vector2 Uv => ref Unsafe.AsRef(&Handle->Uv); + /// + /// To be documented. + /// + public ref uint Col => ref Unsafe.AsRef(&Handle->Col); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs new file mode 100644 index 000000000..4f6afb82c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs @@ -0,0 +1,8629 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFont + { + /// + /// To be documented. + /// + public ImVector IndexedHotData; + + /// + /// To be documented. + /// + public ImVector FrequentKerningPairs; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public ImVector IndexLookup; + + /// + /// To be documented. + /// + public ImVector Glyphs; + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FallbackGlyph; + + /// + /// To be documented. + /// + public unsafe ImFontGlyphHotData* FallbackHotData; + + /// + /// To be documented. + /// + public ImVector KerningPairs; + + /// + /// To be documented. + /// + public unsafe ImFontAtlas* ContainerAtlas; + + /// + /// To be documented. + /// + public unsafe ImFontConfig* ConfigData; + + /// + /// To be documented. + /// + public short ConfigDataCount; + + /// + /// To be documented. + /// + public ushort FallbackChar; + + /// + /// To be documented. + /// + public ushort EllipsisChar; + + /// + /// To be documented. + /// + public ushort DotChar; + + /// + /// To be documented. + /// + public byte DirtyLookupTables; + + /// + /// To be documented. + /// + public float Scale; + + /// + /// To be documented. + /// + public float Ascent; + + /// + /// To be documented. + /// + public float Descent; + + /// + /// To be documented. + /// + public int MetricsTotalSurface; + + /// + /// To be documented. + /// + public byte Used4kPagesMap_0; + public byte Used4kPagesMap_1; + + + /// + /// To be documented. + /// + public unsafe ImFont(ImVector indexedHotData = default, ImVector frequentKerningPairs = default, float fontSize = default, ImVector indexLookup = default, ImVector glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) + { + IndexedHotData = indexedHotData; + FrequentKerningPairs = frequentKerningPairs; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + FallbackHotData = fallbackHotData; + KerningPairs = kerningPairs; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + DotChar = dotChar; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default(byte*)) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + + /// + /// To be documented. + /// + public unsafe ImFont(ImVector indexedHotData = default, ImVector frequentKerningPairs = default, float fontSize = default, ImVector indexLookup = default, ImVector glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span used4KPagesMap = default) + { + IndexedHotData = indexedHotData; + FrequentKerningPairs = frequentKerningPairs; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + FallbackHotData = fallbackHotData; + KerningPairs = kerningPairs; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + DotChar = dotChar; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default(Span)) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + + + /// + /// To be documented. + /// + public unsafe void AddGlyph(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* @this = &this) + { + ImGui.AddGlyphNative(@this, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + /// + /// To be documented. + /// + public unsafe void AddGlyph(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* @this = &this) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + ImGui.AddGlyphNative(@this, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) + { + fixed (ImFont* @this = &this) + { + ImGui.AddKerningPairNative(@this, leftC, rightC, distanceAdjustment); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) + { + fixed (ImFont* @this = &this) + { + ImGui.AddRemapCharNative(@this, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRemapChar(ushort dst, ushort src) + { + fixed (ImFont* @this = &this) + { + ImGui.AddRemapCharNative(@this, dst, src, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public unsafe void BuildLookupTable() + { + fixed (ImFont* @this = &this) + { + ImGui.BuildLookupTableNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, string text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, string text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe void ClearOutputData() + { + fixed (ImFont* @this = &this) + { + ImGui.ClearOutputDataNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImFont* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FindGlyph(ushort c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGui.FindGlyphNative(@this, c); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGui.FindGlyphNoFallbackNative(@this, c); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetCharAdvance(ushort c) + { + fixed (ImFont* @this = &this) + { + float ret = ImGui.GetCharAdvanceNative(@this, c); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetDebugName() + { + fixed (ImFont* @this = &this) + { + byte* ret = ImGui.GetDebugNameNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetDebugNameS() + { + fixed (ImFont* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.GetDebugNameNative(@this)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) + { + fixed (ImFont* @this = &this) + { + float ret = ImGui.GetDistanceAdjustmentForPairNative(@this, leftC, rightC); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) + { + fixed (ImFont* @this = &this) + { + float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(@this, leftC, rightCInfo); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFont* @this = &this) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(@this, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe void GrowIndex(int newSize) + { + fixed (ImFont* @this = &this) + { + ImGui.GrowIndexNative(@this, newSize); + } + } + + /// + /// To be documented. + /// + public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) + { + fixed (ImFont* @this = &this) + { + byte ret = ImGui.IsGlyphRangeUnusedNative(@this, cBegin, cLast); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsLoaded() + { + fixed (ImFont* @this = &this) + { + byte ret = ImGui.IsLoadedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderCharNative(@this, drawList, size, pos, col, c); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderCharNative(@this, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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) + { + ImGui.RenderTextNative(@this, 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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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; + } + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + 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) + { + ImGui.RenderTextNative(@this, (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 unsafe void SetGlyphVisible(ushort c, bool visible) + { + fixed (ImFont* @this = &this) + { + ImGui.SetGlyphVisibleNative(@this, c, visible ? (byte)1 : (byte)0); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontPtr : IEquatable + { + public ImFontPtr(ImFont* handle) { Handle = handle; } + + public ImFont* Handle; + + public bool IsNull => Handle == null; + + public static ImFontPtr Null => new ImFontPtr(null); + + public ImFont this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontPtr(ImFont* handle) => new ImFontPtr(handle); + + public static implicit operator ImFont*(ImFontPtr handle) => handle.Handle; + + public static bool operator ==(ImFontPtr left, ImFontPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontPtr left, ImFontPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontPtr left, ImFont* right) => left.Handle == right; + + public static bool operator !=(ImFontPtr left, ImFont* right) => left.Handle != right; + + public bool Equals(ImFontPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector IndexedHotData => ref Unsafe.AsRef>(&Handle->IndexedHotData); + /// + /// To be documented. + /// + public ref ImVector FrequentKerningPairs => ref Unsafe.AsRef>(&Handle->FrequentKerningPairs); + /// + /// To be documented. + /// + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + /// + /// To be documented. + /// + public ref ImVector IndexLookup => ref Unsafe.AsRef>(&Handle->IndexLookup); + /// + /// To be documented. + /// + public ref ImVector Glyphs => ref Unsafe.AsRef>(&Handle->Glyphs); + /// + /// To be documented. + /// + public ref ImFontGlyphPtr FallbackGlyph => ref Unsafe.AsRef(&Handle->FallbackGlyph); + /// + /// To be documented. + /// + public ref ImFontGlyphHotDataPtr FallbackHotData => ref Unsafe.AsRef(&Handle->FallbackHotData); + /// + /// To be documented. + /// + public ref ImVector KerningPairs => ref Unsafe.AsRef>(&Handle->KerningPairs); + /// + /// To be documented. + /// + public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef(&Handle->ContainerAtlas); + /// + /// To be documented. + /// + public ref ImFontConfigPtr ConfigData => ref Unsafe.AsRef(&Handle->ConfigData); + /// + /// To be documented. + /// + public ref short ConfigDataCount => ref Unsafe.AsRef(&Handle->ConfigDataCount); + /// + /// To be documented. + /// + public ref ushort FallbackChar => ref Unsafe.AsRef(&Handle->FallbackChar); + /// + /// To be documented. + /// + public ref ushort EllipsisChar => ref Unsafe.AsRef(&Handle->EllipsisChar); + /// + /// To be documented. + /// + public ref ushort DotChar => ref Unsafe.AsRef(&Handle->DotChar); + /// + /// To be documented. + /// + public ref bool DirtyLookupTables => ref Unsafe.AsRef(&Handle->DirtyLookupTables); + /// + /// To be documented. + /// + public ref float Scale => ref Unsafe.AsRef(&Handle->Scale); + /// + /// To be documented. + /// + public ref float Ascent => ref Unsafe.AsRef(&Handle->Ascent); + /// + /// To be documented. + /// + public ref float Descent => ref Unsafe.AsRef(&Handle->Descent); + /// + /// To be documented. + /// + public ref int MetricsTotalSurface => ref Unsafe.AsRef(&Handle->MetricsTotalSurface); + /// + /// To be documented. + /// + public unsafe Span Used4kPagesMap + + { + get + { + return new Span(&Handle->Used4kPagesMap_0, 2); + } + } + /// + /// To be documented. + /// + public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + ImGui.AddGlyphNative(Handle, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + + /// + /// To be documented. + /// + public unsafe void AddGlyph(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) + { + ImGui.AddGlyphNative(Handle, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + /// + /// To be documented. + /// + public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) + { + ImGui.AddKerningPairNative(Handle, leftC, rightC, distanceAdjustment); + } + + /// + /// To be documented. + /// + public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) + { + ImGui.AddRemapCharNative(Handle, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void AddRemapChar(ushort dst, ushort src) + { + ImGui.AddRemapCharNative(Handle, dst, src, (byte)(1)); + } + + /// + /// To be documented. + /// + public unsafe void BuildLookupTable() + { + ImGui.BuildLookupTableNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, byte* textEnd, float wrapWidth) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, textEnd, wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, byte* textEnd, float wrapWidth) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, textEnd, wrapWidth)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* CalcWordWrapPositionA(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 = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string CalcWordWrapPositionAS(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(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void ClearOutputData() + { + ImGui.ClearOutputDataNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FindGlyph(ushort c) + { + ImFontGlyph* ret = ImGui.FindGlyphNative(Handle, c); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) + { + ImFontGlyph* ret = ImGui.FindGlyphNoFallbackNative(Handle, c); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetCharAdvance(ushort c) + { + float ret = ImGui.GetCharAdvanceNative(Handle, c); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetDebugName() + { + byte* ret = ImGui.GetDebugNameNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetDebugNameS() + { + string ret = Utils.DecodeStringUTF8(ImGui.GetDebugNameNative(Handle)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) + { + float ret = ImGui.GetDistanceAdjustmentForPairNative(Handle, leftC, rightC); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) + { + float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(Handle, leftC, rightCInfo); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) + { + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) + { + float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(Handle, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void GrowIndex(int newSize) + { + ImGui.GrowIndexNative(Handle, newSize); + } + + /// + /// To be documented. + /// + public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) + { + byte ret = ImGui.IsGlyphRangeUnusedNative(Handle, cBegin, cLast); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsLoaded() + { + byte ret = ImGui.IsLoadedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + ImGui.RenderCharNative(Handle, drawList, size, pos, col, c); + } + + /// + /// To be documented. + /// + public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderCharNative(Handle, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, 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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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; + } + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void RenderText(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) + { + ImGui.RenderTextNative(Handle, (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 unsafe void SetGlyphVisible(ushort c, bool visible) + { + ImGui.SetGlyphVisibleNative(Handle, c, visible ? (byte)1 : (byte)0); + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontPtrPtr : IEquatable + { + public ImFontPtrPtr(ImFont** handle) { Handle = handle; } + + public ImFont** Handle; + + public bool IsNull => Handle == null; + + public static ImFontPtrPtr Null => new ImFontPtrPtr(null); + + public ImFont* this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontPtrPtr(ImFont** handle) => new ImFontPtrPtr(handle); + + public static implicit operator ImFont**(ImFontPtrPtr handle) => handle.Handle; + + public static bool operator ==(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontPtrPtr left, ImFont** right) => left.Handle == right; + + public static bool operator !=(ImFontPtrPtr left, ImFont** right) => left.Handle != right; + + public bool Equals(ImFontPtrPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontPtrPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs new file mode 100644 index 000000000..faf7bc68c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs @@ -0,0 +1,6898 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlas + { + /// + /// To be documented. + /// + public ImFontAtlasFlags Flags; + + /// + /// To be documented. + /// + public ImVector Textures; + + /// + /// To be documented. + /// + public int TexDesiredWidth; + + /// + /// To be documented. + /// + public int TexDesiredHeight; + + /// + /// To be documented. + /// + public int TexGlyphPadding; + + /// + /// To be documented. + /// + public byte Locked; + + /// + /// To be documented. + /// + public byte TexReady; + + /// + /// To be documented. + /// + public byte TexPixelsUseColors; + + /// + /// To be documented. + /// + public int TexWidth; + + /// + /// To be documented. + /// + public int TexHeight; + + /// + /// To be documented. + /// + public Vector2 TexUvScale; + + /// + /// To be documented. + /// + public Vector2 TexUvWhitePixel; + + /// + /// To be documented. + /// + public ImVector Fonts; + + /// + /// To be documented. + /// + public ImVector CustomRects; + + /// + /// To be documented. + /// + public ImVector ConfigData; + + /// + /// To be documented. + /// + public Vector4 TexUvLines_0; + public Vector4 TexUvLines_1; + public Vector4 TexUvLines_2; + public Vector4 TexUvLines_3; + public Vector4 TexUvLines_4; + public Vector4 TexUvLines_5; + public Vector4 TexUvLines_6; + public Vector4 TexUvLines_7; + public Vector4 TexUvLines_8; + public Vector4 TexUvLines_9; + public Vector4 TexUvLines_10; + public Vector4 TexUvLines_11; + public Vector4 TexUvLines_12; + public Vector4 TexUvLines_13; + public Vector4 TexUvLines_14; + public Vector4 TexUvLines_15; + public Vector4 TexUvLines_16; + public Vector4 TexUvLines_17; + public Vector4 TexUvLines_18; + public Vector4 TexUvLines_19; + public Vector4 TexUvLines_20; + public Vector4 TexUvLines_21; + public Vector4 TexUvLines_22; + public Vector4 TexUvLines_23; + public Vector4 TexUvLines_24; + public Vector4 TexUvLines_25; + public Vector4 TexUvLines_26; + public Vector4 TexUvLines_27; + public Vector4 TexUvLines_28; + public Vector4 TexUvLines_29; + public Vector4 TexUvLines_30; + public Vector4 TexUvLines_31; + public Vector4 TexUvLines_32; + public Vector4 TexUvLines_33; + public Vector4 TexUvLines_34; + public Vector4 TexUvLines_35; + public Vector4 TexUvLines_36; + public Vector4 TexUvLines_37; + public Vector4 TexUvLines_38; + public Vector4 TexUvLines_39; + public Vector4 TexUvLines_40; + public Vector4 TexUvLines_41; + public Vector4 TexUvLines_42; + public Vector4 TexUvLines_43; + public Vector4 TexUvLines_44; + public Vector4 TexUvLines_45; + public Vector4 TexUvLines_46; + public Vector4 TexUvLines_47; + public Vector4 TexUvLines_48; + public Vector4 TexUvLines_49; + public Vector4 TexUvLines_50; + public Vector4 TexUvLines_51; + public Vector4 TexUvLines_52; + public Vector4 TexUvLines_53; + public Vector4 TexUvLines_54; + public Vector4 TexUvLines_55; + public Vector4 TexUvLines_56; + public Vector4 TexUvLines_57; + public Vector4 TexUvLines_58; + public Vector4 TexUvLines_59; + public Vector4 TexUvLines_60; + public Vector4 TexUvLines_61; + public Vector4 TexUvLines_62; + public Vector4 TexUvLines_63; + + /// + /// To be documented. + /// + public unsafe ImFontBuilderIO* FontBuilderIO; + + /// + /// To be documented. + /// + public uint FontBuilderFlags; + + /// + /// To be documented. + /// + public int TextureIndexCommon; + + /// + /// To be documented. + /// + public int PackIdCommon; + + /// + /// To be documented. + /// + public ImFontAtlasCustomRect RectMouseCursors; + + /// + /// To be documented. + /// + public ImFontAtlasCustomRect RectLines; + + + /// + /// To be documented. + /// + public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector fonts = default, ImVector customRects = default, ImVector configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) + { + Flags = flags; + Textures = textures; + TexDesiredWidth = texDesiredWidth; + TexDesiredHeight = texDesiredHeight; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default(Vector4*)) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + TextureIndexCommon = textureIndexCommon; + PackIdCommon = packIdCommon; + RectMouseCursors = rectMouseCursors; + RectLines = rectLines; + } + + /// + /// To be documented. + /// + public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector fonts = default, ImVector customRects = default, ImVector configData = default, Span texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) + { + Flags = flags; + Textures = textures; + TexDesiredWidth = texDesiredWidth; + TexDesiredHeight = texDesiredHeight; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default(Span)) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + TextureIndexCommon = textureIndexCommon; + PackIdCommon = packIdCommon; + RectMouseCursors = rectMouseCursors; + RectLines = rectLines; + } + + + /// + /// To be documented. + /// + public unsafe Span TexUvLines + + { + get + { + fixed (Vector4* p = &this.TexUvLines_0) + { + return new Span(p, 64); + } + } + } + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, offset); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectRegular(int width, int height) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectRegularNative(@this, width, height); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontNative(@this, fontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontNative(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontDefaultNative(@this, fontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault() + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg, 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg) + { + 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels) + { + 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg, 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) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg) + { + 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) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels) + { + 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, 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) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + 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) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool Build() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.BuildNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, (Vector2*)poutUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearFonts() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearFontsNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearInputData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearInputDataNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearTexData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearTexDataNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearTexID(ImTextureID nullId) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearTexIDNative(@this, nullId); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontAtlasCustomRect* ret = ImGui.GetCustomRectByIndexNative(@this, index); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesChineseFull() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesChineseFullNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesChineseSimplifiedCommonNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesCyrillic() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesCyrillicNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesDefault() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesDefaultNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesJapanese() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesJapaneseNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesKorean() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesKoreanNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesThai() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesThaiNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesVietnamese() + { + fixed (ImFontAtlas* @this = &this) + { + ushort* ret = ImGui.GetGlyphRangesVietnameseNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool IsBuilt() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.IsBuiltNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void SetTexID(int textureIndex, ImTextureID id) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.SetTexIDNative(@this, textureIndex, id); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontAtlasPtr : IEquatable + { + public ImFontAtlasPtr(ImFontAtlas* handle) { Handle = handle; } + + public ImFontAtlas* Handle; + + public bool IsNull => Handle == null; + + public static ImFontAtlasPtr Null => new ImFontAtlasPtr(null); + + public ImFontAtlas this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontAtlasPtr(ImFontAtlas* handle) => new ImFontAtlasPtr(handle); + + public static implicit operator ImFontAtlas*(ImFontAtlasPtr handle) => handle.Handle; + + public static bool operator ==(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle == right; + + public static bool operator !=(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle != right; + + public bool Equals(ImFontAtlasPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontAtlasPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontAtlasPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImVector Textures => ref Unsafe.AsRef>(&Handle->Textures); + /// + /// To be documented. + /// + public ref int TexDesiredWidth => ref Unsafe.AsRef(&Handle->TexDesiredWidth); + /// + /// To be documented. + /// + public ref int TexDesiredHeight => ref Unsafe.AsRef(&Handle->TexDesiredHeight); + /// + /// To be documented. + /// + public ref int TexGlyphPadding => ref Unsafe.AsRef(&Handle->TexGlyphPadding); + /// + /// To be documented. + /// + public ref bool Locked => ref Unsafe.AsRef(&Handle->Locked); + /// + /// To be documented. + /// + public ref bool TexReady => ref Unsafe.AsRef(&Handle->TexReady); + /// + /// To be documented. + /// + public ref bool TexPixelsUseColors => ref Unsafe.AsRef(&Handle->TexPixelsUseColors); + /// + /// To be documented. + /// + public ref int TexWidth => ref Unsafe.AsRef(&Handle->TexWidth); + /// + /// To be documented. + /// + public ref int TexHeight => ref Unsafe.AsRef(&Handle->TexHeight); + /// + /// To be documented. + /// + public ref Vector2 TexUvScale => ref Unsafe.AsRef(&Handle->TexUvScale); + /// + /// To be documented. + /// + public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef(&Handle->TexUvWhitePixel); + /// + /// To be documented. + /// + public ref ImVector Fonts => ref Unsafe.AsRef>(&Handle->Fonts); + /// + /// To be documented. + /// + public ref ImVector CustomRects => ref Unsafe.AsRef>(&Handle->CustomRects); + /// + /// To be documented. + /// + public ref ImVector ConfigData => ref Unsafe.AsRef>(&Handle->ConfigData); + /// + /// To be documented. + /// + public unsafe Span TexUvLines + + { + get + { + return new Span(&Handle->TexUvLines_0, 64); + } + } + /// + /// To be documented. + /// + public ref ImFontBuilderIOPtr FontBuilderIO => ref Unsafe.AsRef(&Handle->FontBuilderIO); + /// + /// To be documented. + /// + public ref uint FontBuilderFlags => ref Unsafe.AsRef(&Handle->FontBuilderFlags); + /// + /// To be documented. + /// + public ref int TextureIndexCommon => ref Unsafe.AsRef(&Handle->TextureIndexCommon); + /// + /// To be documented. + /// + public ref int PackIdCommon => ref Unsafe.AsRef(&Handle->PackIdCommon); + /// + /// To be documented. + /// + public ref ImFontAtlasCustomRect RectMouseCursors => ref Unsafe.AsRef(&Handle->RectMouseCursors); + /// + /// To be documented. + /// + public ref ImFontAtlasCustomRect RectLines => ref Unsafe.AsRef(&Handle->RectLines); + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + int ret = ImGui.AddCustomRectFontGlyphNative(Handle, font, id, width, height, advanceX, offset); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) + { + int ret = ImGui.AddCustomRectFontGlyphNative(Handle, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(Handle, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(Handle, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int AddCustomRectRegular(int width, int height) + { + int ret = ImGui.AddCustomRectRegularNative(Handle, width, height); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontNative(Handle, fontCfg); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontNative(Handle, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, fontCfg); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault() + { + ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, (ImFontConfig*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(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 = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(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 = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(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 = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromFileTTF(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 = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, 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; + } + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(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 = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(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 = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(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 = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(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 = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool Build() + { + byte ret = ImGui.BuildNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + ImGui.CalcCustomRectUVNative(Handle, rect, outUvMin, outUvMax); + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(Handle, rect, (Vector2*)poutUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(Handle, rect, outUvMin, (Vector2*)poutUvMax); + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(Handle, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + + /// + /// To be documented. + /// + public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearFonts() + { + ImGui.ClearFontsNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearInputData() + { + ImGui.ClearInputDataNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearTexData() + { + ImGui.ClearTexDataNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearTexID(ImTextureID nullId) + { + ImGui.ClearTexIDNative(Handle, nullId); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) + { + ImFontAtlasCustomRect* ret = ImGui.GetCustomRectByIndexNative(Handle, index); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesChineseFull() + { + ushort* ret = ImGui.GetGlyphRangesChineseFullNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() + { + ushort* ret = ImGui.GetGlyphRangesChineseSimplifiedCommonNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesCyrillic() + { + ushort* ret = ImGui.GetGlyphRangesCyrillicNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesDefault() + { + ushort* ret = ImGui.GetGlyphRangesDefaultNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesJapanese() + { + ushort* ret = ImGui.GetGlyphRangesJapaneseNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesKorean() + { + ushort* ret = ImGui.GetGlyphRangesKoreanNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesThai() + { + ushort* ret = ImGui.GetGlyphRangesThaiNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ushort* GetGlyphRangesVietnamese() + { + ushort* ret = ImGui.GetGlyphRangesVietnameseNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool GetMouseCursorTexData(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 = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(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) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(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) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(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) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(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) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsAlpha8(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) + { + ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(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) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(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) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(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) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(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) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void GetTexDataAsRGBA32(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) + { + ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool IsBuilt() + { + byte ret = ImGui.IsBuiltNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void SetTexID(int textureIndex, ImTextureID id) + { + ImGui.SetTexIDNative(Handle, textureIndex, id); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs new file mode 100644 index 000000000..7fdea287f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlasCustomRect + { + /// + /// To be documented. + /// + public ushort Width; + + /// + /// To be documented. + /// + public ushort Height; + + /// + /// To be documented. + /// + public ushort X; + + /// + /// To be documented. + /// + public ushort Y; + + public uint RawBits0; + /// + /// To be documented. + /// + public float GlyphAdvanceX; + + /// + /// To be documented. + /// + public Vector2 GlyphOffset; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + + /// + /// To be documented. + /// + public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint reserved = default, uint textureIndex = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFontPtr font = default) + { + Width = width; + Height = height; + X = x; + Y = y; + Reserved = reserved; + TextureIndex = textureIndex; + GlyphID = glyphId; + GlyphAdvanceX = glyphAdvanceX; + GlyphOffset = glyphOffset; + Font = font; + } + + + 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. + /// + public unsafe void Destroy() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool IsPacked() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + byte ret = ImGui.IsPackedNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontAtlasCustomRectPtr : IEquatable + { + public ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) { Handle = handle; } + + public ImFontAtlasCustomRect* Handle; + + public bool IsNull => Handle == null; + + public static ImFontAtlasCustomRectPtr Null => new ImFontAtlasCustomRectPtr(null); + + public ImFontAtlasCustomRect this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) => new ImFontAtlasCustomRectPtr(handle); + + public static implicit operator ImFontAtlasCustomRect*(ImFontAtlasCustomRectPtr handle) => handle.Handle; + + public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle == right; + + public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle != right; + + public bool Equals(ImFontAtlasCustomRectPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontAtlasCustomRectPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontAtlasCustomRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ushort Width => ref Unsafe.AsRef(&Handle->Width); + /// + /// To be documented. + /// + public ref ushort Height => ref Unsafe.AsRef(&Handle->Height); + /// + /// To be documented. + /// + public ref ushort X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public ref ushort Y => ref Unsafe.AsRef(&Handle->Y); + /// + /// To be documented. + /// + public uint Reserved { get => Handle->Reserved; set => Handle->Reserved = value; } + /// + /// To be documented. + /// + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } + /// + /// To be documented. + /// + public uint GlyphID { get => Handle->GlyphID; set => Handle->GlyphID = value; } + /// + /// To be documented. + /// + public ref float GlyphAdvanceX => ref Unsafe.AsRef(&Handle->GlyphAdvanceX); + /// + /// To be documented. + /// + public ref Vector2 GlyphOffset => ref Unsafe.AsRef(&Handle->GlyphOffset); + /// + /// To be documented. + /// + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool IsPacked() + { + byte ret = ImGui.IsPackedNative(Handle); + return ret != 0; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs new file mode 100644 index 000000000..3111f28b5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs @@ -0,0 +1,109 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlasTexture + { + /// + /// To be documented. + /// + public ImTextureID TexID; + + /// + /// To be documented. + /// + public unsafe byte* TexPixelsAlpha8; + + /// + /// To be documented. + /// + public unsafe uint* TexPixelsRGBA32; + + + /// + /// To be documented. + /// + public unsafe ImFontAtlasTexture(ImTextureID texId = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default) + { + TexID = texId; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontAtlasTexturePtr : IEquatable + { + public ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) { Handle = handle; } + + public ImFontAtlasTexture* Handle; + + public bool IsNull => Handle == null; + + public static ImFontAtlasTexturePtr Null => new ImFontAtlasTexturePtr(null); + + public ImFontAtlasTexture this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) => new ImFontAtlasTexturePtr(handle); + + public static implicit operator ImFontAtlasTexture*(ImFontAtlasTexturePtr handle) => handle.Handle; + + public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle == right; + + public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle != right; + + public bool Equals(ImFontAtlasTexturePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontAtlasTexturePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontAtlasTexturePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImTextureID TexID => ref Unsafe.AsRef(&Handle->TexID); + /// + /// To be documented. + /// + public byte* TexPixelsAlpha8 { get => Handle->TexPixelsAlpha8; set => Handle->TexPixelsAlpha8 = value; } + /// + /// To be documented. + /// + public uint* TexPixelsRGBA32 { get => Handle->TexPixelsRGBA32; set => Handle->TexPixelsRGBA32 = value; } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs new file mode 100644 index 000000000..2255c9782 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontBuilderIO + { + /// + /// To be documented. + /// + public unsafe void* FontBuilderBuild; + + + /// + /// To be documented. + /// + public unsafe ImFontBuilderIO(delegate* fontbuilderBuild = default) + { + FontBuilderBuild = (void*)fontbuilderBuild; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontBuilderIOPtr : IEquatable + { + public ImFontBuilderIOPtr(ImFontBuilderIO* handle) { Handle = handle; } + + public ImFontBuilderIO* Handle; + + public bool IsNull => Handle == null; + + public static ImFontBuilderIOPtr Null => new ImFontBuilderIOPtr(null); + + public ImFontBuilderIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontBuilderIOPtr(ImFontBuilderIO* handle) => new ImFontBuilderIOPtr(handle); + + public static implicit operator ImFontBuilderIO*(ImFontBuilderIOPtr handle) => handle.Handle; + + public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle == right; + + public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle != right; + + public bool Equals(ImFontBuilderIOPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontBuilderIOPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontBuilderIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public void* FontBuilderBuild { get => Handle->FontBuilderBuild; set => Handle->FontBuilderBuild = value; } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs new file mode 100644 index 000000000..d83585a93 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs @@ -0,0 +1,455 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontConfig + { + /// + /// To be documented. + /// + public unsafe void* FontData; + + /// + /// To be documented. + /// + public int FontDataSize; + + /// + /// To be documented. + /// + public byte FontDataOwnedByAtlas; + + /// + /// To be documented. + /// + public int FontNo; + + /// + /// To be documented. + /// + public float SizePixels; + + /// + /// To be documented. + /// + public int OversampleH; + + /// + /// To be documented. + /// + public int OversampleV; + + /// + /// To be documented. + /// + public byte PixelSnapH; + + /// + /// To be documented. + /// + public Vector2 GlyphExtraSpacing; + + /// + /// To be documented. + /// + public Vector2 GlyphOffset; + + /// + /// To be documented. + /// + public unsafe ushort* GlyphRanges; + + /// + /// To be documented. + /// + public float GlyphMinAdvanceX; + + /// + /// To be documented. + /// + public float GlyphMaxAdvanceX; + + /// + /// To be documented. + /// + public byte MergeMode; + + /// + /// To be documented. + /// + public uint FontBuilderFlags; + + /// + /// To be documented. + /// + public float RasterizerMultiply; + + /// + /// To be documented. + /// + public float RasterizerGamma; + + /// + /// To be documented. + /// + public ushort EllipsisChar; + + /// + /// To be documented. + /// + public byte Name_0; + public byte Name_1; + public byte Name_2; + public byte Name_3; + public byte Name_4; + public byte Name_5; + public byte Name_6; + public byte Name_7; + public byte Name_8; + public byte Name_9; + public byte Name_10; + public byte Name_11; + public byte Name_12; + public byte Name_13; + public byte Name_14; + public byte Name_15; + public byte Name_16; + public byte Name_17; + public byte Name_18; + public byte Name_19; + public byte Name_20; + public byte Name_21; + public byte Name_22; + public byte Name_23; + public byte Name_24; + public byte Name_25; + public byte Name_26; + public byte Name_27; + public byte Name_28; + public byte Name_29; + public byte Name_30; + public byte Name_31; + public byte Name_32; + public byte Name_33; + public byte Name_34; + public byte Name_35; + public byte Name_36; + public byte Name_37; + public byte Name_38; + public byte Name_39; + + /// + /// To be documented. + /// + public unsafe ImFont* DstFont; + + + /// + /// To be documented. + /// + public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, byte* name = default, ImFontPtr dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + RasterizerGamma = rasterizerGamma; + EllipsisChar = ellipsisChar; + if (name != default(byte*)) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + + /// + /// To be documented. + /// + public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, Span name = default, ImFontPtr dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + RasterizerGamma = rasterizerGamma; + EllipsisChar = ellipsisChar; + if (name != default(Span)) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImFontConfig* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontConfigPtr : IEquatable + { + public ImFontConfigPtr(ImFontConfig* handle) { Handle = handle; } + + public ImFontConfig* Handle; + + public bool IsNull => Handle == null; + + public static ImFontConfigPtr Null => new ImFontConfigPtr(null); + + public ImFontConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontConfigPtr(ImFontConfig* handle) => new ImFontConfigPtr(handle); + + public static implicit operator ImFontConfig*(ImFontConfigPtr handle) => handle.Handle; + + public static bool operator ==(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontConfigPtr left, ImFontConfig* right) => left.Handle == right; + + public static bool operator !=(ImFontConfigPtr left, ImFontConfig* right) => left.Handle != right; + + public bool Equals(ImFontConfigPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontConfigPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public void* FontData { get => Handle->FontData; set => Handle->FontData = value; } + /// + /// To be documented. + /// + public ref int FontDataSize => ref Unsafe.AsRef(&Handle->FontDataSize); + /// + /// To be documented. + /// + public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef(&Handle->FontDataOwnedByAtlas); + /// + /// To be documented. + /// + public ref int FontNo => ref Unsafe.AsRef(&Handle->FontNo); + /// + /// To be documented. + /// + public ref float SizePixels => ref Unsafe.AsRef(&Handle->SizePixels); + /// + /// To be documented. + /// + public ref int OversampleH => ref Unsafe.AsRef(&Handle->OversampleH); + /// + /// To be documented. + /// + public ref int OversampleV => ref Unsafe.AsRef(&Handle->OversampleV); + /// + /// To be documented. + /// + public ref bool PixelSnapH => ref Unsafe.AsRef(&Handle->PixelSnapH); + /// + /// To be documented. + /// + public ref Vector2 GlyphExtraSpacing => ref Unsafe.AsRef(&Handle->GlyphExtraSpacing); + /// + /// To be documented. + /// + public ref Vector2 GlyphOffset => ref Unsafe.AsRef(&Handle->GlyphOffset); + /// + /// To be documented. + /// + public ushort* GlyphRanges { get => Handle->GlyphRanges; set => Handle->GlyphRanges = value; } + /// + /// To be documented. + /// + public ref float GlyphMinAdvanceX => ref Unsafe.AsRef(&Handle->GlyphMinAdvanceX); + /// + /// To be documented. + /// + public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef(&Handle->GlyphMaxAdvanceX); + /// + /// To be documented. + /// + public ref bool MergeMode => ref Unsafe.AsRef(&Handle->MergeMode); + /// + /// To be documented. + /// + public ref uint FontBuilderFlags => ref Unsafe.AsRef(&Handle->FontBuilderFlags); + /// + /// To be documented. + /// + public ref float RasterizerMultiply => ref Unsafe.AsRef(&Handle->RasterizerMultiply); + /// + /// To be documented. + /// + public ref float RasterizerGamma => ref Unsafe.AsRef(&Handle->RasterizerGamma); + /// + /// To be documented. + /// + public ref ushort EllipsisChar => ref Unsafe.AsRef(&Handle->EllipsisChar); + /// + /// To be documented. + /// + public unsafe Span Name + + { + get + { + return new Span(&Handle->Name_0, 40); + } + } + /// + /// To be documented. + /// + public ref ImFontPtr DstFont => ref Unsafe.AsRef(&Handle->DstFont); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs new file mode 100644 index 000000000..ba0305be6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs @@ -0,0 +1,198 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyph + { + public uint RawBits0; + /// + /// To be documented. + /// + public float AdvanceX; + + /// + /// To be documented. + /// + public float X0; + + /// + /// To be documented. + /// + public float Y0; + + /// + /// To be documented. + /// + public float X1; + + /// + /// To be documented. + /// + public float Y1; + + /// + /// To be documented. + /// + public float U0; + + /// + /// To be documented. + /// + public float V0; + + /// + /// To be documented. + /// + public float U1; + + /// + /// To be documented. + /// + public float V1; + + + /// + /// To be documented. + /// + public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint textureIndex = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) + { + Colored = colored; + Visible = visible; + TextureIndex = textureIndex; + Codepoint = codepoint; + AdvanceX = advanceX; + X0 = x0; + Y0 = y0; + X1 = x1; + Y1 = y1; + U0 = u0; + V0 = v0; + U1 = u1; + V1 = v1; + } + + + 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); } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontGlyphPtr : IEquatable + { + public ImFontGlyphPtr(ImFontGlyph* handle) { Handle = handle; } + + public ImFontGlyph* Handle; + + public bool IsNull => Handle == null; + + public static ImFontGlyphPtr Null => new ImFontGlyphPtr(null); + + public ImFontGlyph this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontGlyphPtr(ImFontGlyph* handle) => new ImFontGlyphPtr(handle); + + public static implicit operator ImFontGlyph*(ImFontGlyphPtr handle) => handle.Handle; + + public static bool operator ==(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle == right; + + public static bool operator !=(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle != right; + + public bool Equals(ImFontGlyphPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontGlyphPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontGlyphPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public uint Colored { get => Handle->Colored; set => Handle->Colored = value; } + /// + /// To be documented. + /// + public uint Visible { get => Handle->Visible; set => Handle->Visible = value; } + /// + /// To be documented. + /// + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } + /// + /// To be documented. + /// + public uint Codepoint { get => Handle->Codepoint; set => Handle->Codepoint = value; } + /// + /// To be documented. + /// + public ref float AdvanceX => ref Unsafe.AsRef(&Handle->AdvanceX); + /// + /// To be documented. + /// + public ref float X0 => ref Unsafe.AsRef(&Handle->X0); + /// + /// To be documented. + /// + public ref float Y0 => ref Unsafe.AsRef(&Handle->Y0); + /// + /// To be documented. + /// + public ref float X1 => ref Unsafe.AsRef(&Handle->X1); + /// + /// To be documented. + /// + public ref float Y1 => ref Unsafe.AsRef(&Handle->Y1); + /// + /// To be documented. + /// + public ref float U0 => ref Unsafe.AsRef(&Handle->U0); + /// + /// To be documented. + /// + public ref float V0 => ref Unsafe.AsRef(&Handle->V0); + /// + /// To be documented. + /// + public ref float U1 => ref Unsafe.AsRef(&Handle->U1); + /// + /// To be documented. + /// + public ref float V1 => ref Unsafe.AsRef(&Handle->V1); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs new file mode 100644 index 000000000..c1ce2d80d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs @@ -0,0 +1,121 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyphHotData + { + /// + /// To be documented. + /// + public float AdvanceX; + + /// + /// To be documented. + /// + public float OccupiedWidth; + + public uint RawBits0; + + /// + /// To be documented. + /// + public unsafe ImFontGlyphHotData(float advanceX = default, float occupiedWidth = default, uint kerningPairUseBisect = default, uint kerningPairOffset = default, uint kerningPairCount = default) + { + AdvanceX = advanceX; + OccupiedWidth = occupiedWidth; + KerningPairUseBisect = kerningPairUseBisect; + KerningPairOffset = kerningPairOffset; + KerningPairCount = kerningPairCount; + } + + + 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); } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontGlyphHotDataPtr : IEquatable + { + public ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) { Handle = handle; } + + public ImFontGlyphHotData* Handle; + + public bool IsNull => Handle == null; + + public static ImFontGlyphHotDataPtr Null => new ImFontGlyphHotDataPtr(null); + + public ImFontGlyphHotData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) => new ImFontGlyphHotDataPtr(handle); + + public static implicit operator ImFontGlyphHotData*(ImFontGlyphHotDataPtr handle) => handle.Handle; + + public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle == right; + + public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle != right; + + public bool Equals(ImFontGlyphHotDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontGlyphHotDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontGlyphHotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float AdvanceX => ref Unsafe.AsRef(&Handle->AdvanceX); + /// + /// To be documented. + /// + public ref float OccupiedWidth => ref Unsafe.AsRef(&Handle->OccupiedWidth); + /// + /// To be documented. + /// + public uint KerningPairUseBisect { get => Handle->KerningPairUseBisect; set => Handle->KerningPairUseBisect = value; } + /// + /// To be documented. + /// + public uint KerningPairOffset { get => Handle->KerningPairOffset; set => Handle->KerningPairOffset = value; } + /// + /// To be documented. + /// + 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 new file mode 100644 index 000000000..b738aa74e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs @@ -0,0 +1,1115 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyphRangesBuilder + { + /// + /// To be documented. + /// + public ImVector UsedChars; + + + /// + /// To be documented. + /// + public unsafe ImFontGlyphRangesBuilder(ImVector usedChars = default) + { + UsedChars = usedChars; + } + + + /// + /// To be documented. + /// + public unsafe void AddChar(ushort c) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddCharNative(@this, c); + } + } + + /// + /// To be documented. + /// + public unsafe void AddRanges(ushort* ranges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddRangesNative(@this, ranges); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddTextNative(@this, text, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddTextNative(@this, text, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(@this, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = text) + { + ImGui.AddTextNative(@this, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = text) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(string text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(string text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(string text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.AddTextNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + 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; + } + ImGui.AddTextNative(@this, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(string text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(string text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.AddTextNative(@this, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void BuildRanges(ImVector* outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.BuildRangesNative(@this, outRanges); + } + } + + /// + /// To be documented. + /// + public unsafe void BuildRanges(ref ImVector outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGui.BuildRangesNative(@this, (ImVector*)poutRanges); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool GetBit(nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte ret = ImGui.GetBitNative(@this, n); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void SetBit(nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.SetBitNative(@this, n); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontGlyphRangesBuilderPtr : IEquatable + { + public ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) { Handle = handle; } + + public ImFontGlyphRangesBuilder* Handle; + + public bool IsNull => Handle == null; + + public static ImFontGlyphRangesBuilderPtr Null => new ImFontGlyphRangesBuilderPtr(null); + + public ImFontGlyphRangesBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) => new ImFontGlyphRangesBuilderPtr(handle); + + public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr handle) => handle.Handle; + + public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle == right; + + public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle != right; + + public bool Equals(ImFontGlyphRangesBuilderPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontGlyphRangesBuilderPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontGlyphRangesBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector UsedChars => ref Unsafe.AsRef>(&Handle->UsedChars); + /// + /// To be documented. + /// + public unsafe void AddChar(ushort c) + { + ImGui.AddCharNative(Handle, c); + } + + /// + /// To be documented. + /// + public unsafe void AddRanges(ushort* ranges) + { + ImGui.AddRangesNative(Handle, ranges); + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, byte* textEnd) + { + ImGui.AddTextNative(Handle, text, textEnd); + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text) + { + ImGui.AddTextNative(Handle, text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(Handle, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + ImGui.AddTextNative(Handle, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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; + } + ImGui.AddTextNative(Handle, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddText(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) + { + ImGui.AddTextNative(Handle, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void BuildRanges(ImVector* outRanges) + { + ImGui.BuildRangesNative(Handle, outRanges); + } + + /// + /// To be documented. + /// + public unsafe void BuildRanges(ref ImVector outRanges) + { + fixed (ImVector* poutRanges = &outRanges) + { + ImGui.BuildRangesNative(Handle, (ImVector*)poutRanges); + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool GetBit(nuint n) + { + byte ret = ImGui.GetBitNative(Handle, n); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void SetBit(nuint n) + { + ImGui.SetBitNative(Handle, n); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs new file mode 100644 index 000000000..36e316fe3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs @@ -0,0 +1,109 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontKerningPair + { + /// + /// To be documented. + /// + public ushort Left; + + /// + /// To be documented. + /// + public ushort Right; + + /// + /// To be documented. + /// + public float AdvanceXAdjustment; + + + /// + /// To be documented. + /// + public unsafe ImFontKerningPair(ushort left = default, ushort right = default, float advanceXAdjustment = default) + { + Left = left; + Right = right; + AdvanceXAdjustment = advanceXAdjustment; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImFontKerningPairPtr : IEquatable + { + public ImFontKerningPairPtr(ImFontKerningPair* handle) { Handle = handle; } + + public ImFontKerningPair* Handle; + + public bool IsNull => Handle == null; + + public static ImFontKerningPairPtr Null => new ImFontKerningPairPtr(null); + + public ImFontKerningPair this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImFontKerningPairPtr(ImFontKerningPair* handle) => new ImFontKerningPairPtr(handle); + + public static implicit operator ImFontKerningPair*(ImFontKerningPairPtr handle) => handle.Handle; + + public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle == right; + + public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle != right; + + public bool Equals(ImFontKerningPairPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImFontKerningPairPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImFontKerningPairPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ushort Left => ref Unsafe.AsRef(&Handle->Left); + /// + /// To be documented. + /// + public ref ushort Right => ref Unsafe.AsRef(&Handle->Right); + /// + /// To be documented. + /// + public ref float AdvanceXAdjustment => ref Unsafe.AsRef(&Handle->AdvanceXAdjustment); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs new file mode 100644 index 000000000..bcefa2cd2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiColorMod + { + /// + /// To be documented. + /// + public ImGuiCol Col; + + /// + /// To be documented. + /// + public Vector4 BackupValue; + + + /// + /// To be documented. + /// + public unsafe ImGuiColorMod(ImGuiCol col = default, Vector4 backupValue = default) + { + Col = col; + BackupValue = backupValue; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiColorModPtr : IEquatable + { + public ImGuiColorModPtr(ImGuiColorMod* handle) { Handle = handle; } + + public ImGuiColorMod* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiColorModPtr Null => new ImGuiColorModPtr(null); + + public ImGuiColorMod this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiColorModPtr(ImGuiColorMod* handle) => new ImGuiColorModPtr(handle); + + public static implicit operator ImGuiColorMod*(ImGuiColorModPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle == right; + + public static bool operator !=(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle != right; + + public bool Equals(ImGuiColorModPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiColorModPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiColorModPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiCol Col => ref Unsafe.AsRef(&Handle->Col); + /// + /// To be documented. + /// + public ref Vector4 BackupValue => ref Unsafe.AsRef(&Handle->BackupValue); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs new file mode 100644 index 000000000..037aa2705 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs @@ -0,0 +1,158 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiComboPreviewData + { + /// + /// To be documented. + /// + public ImRect PreviewRect; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPosPrevLine; + + /// + /// To be documented. + /// + public float BackupPrevLineTextBaseOffset; + + /// + /// To be documented. + /// + public ImGuiLayoutType BackupLayout; + + + /// + /// To be documented. + /// + public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, ImGuiLayoutType backupLayout = default) + { + PreviewRect = previewRect; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; + BackupLayout = backupLayout; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiComboPreviewData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiComboPreviewDataPtr : IEquatable + { + public ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) { Handle = handle; } + + public ImGuiComboPreviewData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiComboPreviewDataPtr Null => new ImGuiComboPreviewDataPtr(null); + + public ImGuiComboPreviewData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) => new ImGuiComboPreviewDataPtr(handle); + + public static implicit operator ImGuiComboPreviewData*(ImGuiComboPreviewDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle == right; + + public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle != right; + + public bool Equals(ImGuiComboPreviewDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiComboPreviewDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiComboPreviewDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImRect PreviewRect => ref Unsafe.AsRef(&Handle->PreviewRect); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef(&Handle->BackupCursorMaxPos); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorPosPrevLine => ref Unsafe.AsRef(&Handle->BackupCursorPosPrevLine); + /// + /// To be documented. + /// + public ref float BackupPrevLineTextBaseOffset => ref Unsafe.AsRef(&Handle->BackupPrevLineTextBaseOffset); + /// + /// To be documented. + /// + public ref ImGuiLayoutType BackupLayout => ref Unsafe.AsRef(&Handle->BackupLayout); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs new file mode 100644 index 000000000..1990fe6d5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs @@ -0,0 +1,3085 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContext + { + /// + /// To be documented. + /// + public byte Initialized; + + /// + /// To be documented. + /// + public byte FontAtlasOwnedByContext; + + /// + /// To be documented. + /// + public ImGuiIO IO; + + /// + /// To be documented. + /// + public ImGuiPlatformIO PlatformIO; + + /// + /// To be documented. + /// + public ImVector InputEventsQueue; + + /// + /// To be documented. + /// + public ImVector InputEventsTrail; + + /// + /// To be documented. + /// + public ImGuiStyle Style; + + /// + /// To be documented. + /// + public ImGuiConfigFlags ConfigFlagsCurrFrame; + + /// + /// To be documented. + /// + public ImGuiConfigFlags ConfigFlagsLastFrame; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public float FontBaseSize; + + /// + /// To be documented. + /// + public ImDrawListSharedData DrawListSharedData; + + /// + /// To be documented. + /// + public double Time; + + /// + /// To be documented. + /// + public int FrameCount; + + /// + /// To be documented. + /// + public int FrameCountEnded; + + /// + /// To be documented. + /// + public int FrameCountPlatformEnded; + + /// + /// To be documented. + /// + public int FrameCountRendered; + + /// + /// To be documented. + /// + public byte WithinFrameScope; + + /// + /// To be documented. + /// + public byte WithinFrameScopeWithImplicitWindow; + + /// + /// To be documented. + /// + public byte WithinEndChild; + + /// + /// To be documented. + /// + public byte GcCompactAll; + + /// + /// To be documented. + /// + public byte TestEngineHookItems; + + /// + /// To be documented. + /// + public unsafe void* TestEngine; + + /// + /// To be documented. + /// + public ImVector Windows; + + /// + /// To be documented. + /// + public ImVector WindowsFocusOrder; + + /// + /// To be documented. + /// + public ImVector WindowsTempSortBuffer; + + /// + /// To be documented. + /// + public ImVector CurrentWindowStack; + + /// + /// To be documented. + /// + public ImGuiStorage WindowsById; + + /// + /// To be documented. + /// + public int WindowsActiveCount; + + /// + /// To be documented. + /// + public Vector2 WindowsHoverPadding; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* CurrentWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HoveredWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* HoveredDockNode; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* MovingWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* WheelingWindow; + + /// + /// To be documented. + /// + public Vector2 WheelingWindowRefMousePos; + + /// + /// To be documented. + /// + public float WheelingWindowTimer; + + /// + /// To be documented. + /// + public uint DebugHookIdInfo; + + /// + /// To be documented. + /// + public uint HoveredId; + + /// + /// To be documented. + /// + public uint HoveredIdPreviousFrame; + + /// + /// To be documented. + /// + public byte HoveredIdAllowOverlap; + + /// + /// To be documented. + /// + public byte HoveredIdUsingMouseWheel; + + /// + /// To be documented. + /// + public byte HoveredIdPreviousFrameUsingMouseWheel; + + /// + /// To be documented. + /// + public byte HoveredIdDisabled; + + /// + /// To be documented. + /// + public float HoveredIdTimer; + + /// + /// To be documented. + /// + public float HoveredIdNotActiveTimer; + + /// + /// To be documented. + /// + public uint ActiveId; + + /// + /// To be documented. + /// + public uint ActiveIdIsAlive; + + /// + /// To be documented. + /// + public float ActiveIdTimer; + + /// + /// To be documented. + /// + public byte ActiveIdIsJustActivated; + + /// + /// To be documented. + /// + public byte ActiveIdAllowOverlap; + + /// + /// To be documented. + /// + public byte ActiveIdNoClearOnFocusLoss; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenPressedBefore; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenEditedBefore; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenEditedThisFrame; + + /// + /// To be documented. + /// + public Vector2 ActiveIdClickOffset; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ActiveIdWindow; + + /// + /// To be documented. + /// + public ImGuiInputSource ActiveIdSource; + + /// + /// To be documented. + /// + public int ActiveIdMouseButton; + + /// + /// To be documented. + /// + public uint ActiveIdPreviousFrame; + + /// + /// To be documented. + /// + public byte ActiveIdPreviousFrameIsAlive; + + /// + /// To be documented. + /// + public byte ActiveIdPreviousFrameHasBeenEditedBefore; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; + + /// + /// To be documented. + /// + public uint LastActiveId; + + /// + /// To be documented. + /// + public float LastActiveIdTimer; + + /// + /// To be documented. + /// + public byte ActiveIdUsingMouseWheel; + + /// + /// To be documented. + /// + public uint ActiveIdUsingNavDirMask; + + /// + /// To be documented. + /// + public uint ActiveIdUsingNavInputMask; + + /// + /// To be documented. + /// + public nuint ActiveIdUsingKeyInputMask; + + /// + /// To be documented. + /// + public ImGuiItemFlags CurrentItemFlags; + + /// + /// To be documented. + /// + public ImGuiNextItemData NextItemData; + + /// + /// To be documented. + /// + public ImGuiLastItemData LastItemData; + + /// + /// To be documented. + /// + public ImGuiNextWindowData NextWindowData; + + /// + /// To be documented. + /// + public ImVector ColorStack; + + /// + /// To be documented. + /// + public ImVector StyleVarStack; + + /// + /// To be documented. + /// + public ImVector FontStack; + + /// + /// To be documented. + /// + public ImVector FocusScopeStack; + + /// + /// To be documented. + /// + public ImVector ItemFlagsStack; + + /// + /// To be documented. + /// + public ImVector GroupStack; + + /// + /// To be documented. + /// + public ImVector OpenPopupStack; + + /// + /// To be documented. + /// + public ImVector BeginPopupStack; + + /// + /// To be documented. + /// + public int BeginMenuCount; + + /// + /// To be documented. + /// + public ImVector Viewports; + + /// + /// To be documented. + /// + public float CurrentDpiScale; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* CurrentViewport; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* MouseViewport; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* MouseLastHoveredViewport; + + /// + /// To be documented. + /// + public uint PlatformLastFocusedViewportId; + + /// + /// To be documented. + /// + public ImGuiPlatformMonitor FallbackMonitor; + + /// + /// To be documented. + /// + public int ViewportFrontMostStampCount; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindow; + + /// + /// To be documented. + /// + public uint NavId; + + /// + /// To be documented. + /// + public uint NavFocusScopeId; + + /// + /// To be documented. + /// + public uint NavActivateId; + + /// + /// To be documented. + /// + public uint NavActivateDownId; + + /// + /// To be documented. + /// + public uint NavActivatePressedId; + + /// + /// To be documented. + /// + public uint NavActivateInputId; + + /// + /// To be documented. + /// + public ImGuiActivateFlags NavActivateFlags; + + /// + /// To be documented. + /// + public uint NavJustMovedToId; + + /// + /// To be documented. + /// + public uint NavJustMovedToFocusScopeId; + + /// + /// To be documented. + /// + public ImGuiModFlags NavJustMovedToKeyMods; + + /// + /// To be documented. + /// + public uint NavNextActivateId; + + /// + /// To be documented. + /// + public ImGuiActivateFlags NavNextActivateFlags; + + /// + /// To be documented. + /// + public ImGuiInputSource NavInputSource; + + /// + /// To be documented. + /// + public ImGuiNavLayer NavLayer; + + /// + /// To be documented. + /// + public byte NavIdIsAlive; + + /// + /// To be documented. + /// + public byte NavMousePosDirty; + + /// + /// To be documented. + /// + public byte NavDisableHighlight; + + /// + /// To be documented. + /// + public byte NavDisableMouseHover; + + /// + /// To be documented. + /// + public byte NavAnyRequest; + + /// + /// To be documented. + /// + public byte NavInitRequest; + + /// + /// To be documented. + /// + public byte NavInitRequestFromMove; + + /// + /// To be documented. + /// + public uint NavInitResultId; + + /// + /// To be documented. + /// + public ImRect NavInitResultRectRel; + + /// + /// To be documented. + /// + public byte NavMoveSubmitted; + + /// + /// To be documented. + /// + public byte NavMoveScoringItems; + + /// + /// To be documented. + /// + public byte NavMoveForwardToNextFrame; + + /// + /// To be documented. + /// + public ImGuiNavMoveFlags NavMoveFlags; + + /// + /// To be documented. + /// + public ImGuiScrollFlags NavMoveScrollFlags; + + /// + /// To be documented. + /// + public ImGuiModFlags NavMoveKeyMods; + + /// + /// To be documented. + /// + public ImGuiDir NavMoveDir; + + /// + /// To be documented. + /// + public ImGuiDir NavMoveDirForDebug; + + /// + /// To be documented. + /// + public ImGuiDir NavMoveClipDir; + + /// + /// To be documented. + /// + public ImRect NavScoringRect; + + /// + /// To be documented. + /// + public ImRect NavScoringNoClipRect; + + /// + /// To be documented. + /// + public int NavScoringDebugCount; + + /// + /// To be documented. + /// + public int NavTabbingDir; + + /// + /// To be documented. + /// + public int NavTabbingCounter; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultLocal; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultLocalVisible; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultOther; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavTabbingResultFirst; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingTarget; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingTargetAnim; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingListWindow; + + /// + /// To be documented. + /// + public float NavWindowingTimer; + + /// + /// To be documented. + /// + public float NavWindowingHighlightAlpha; + + /// + /// To be documented. + /// + public byte NavWindowingToggleLayer; + + /// + /// To be documented. + /// + public float DimBgRatio; + + /// + /// To be documented. + /// + public ImGuiMouseCursor MouseCursor; + + /// + /// To be documented. + /// + public byte DragDropActive; + + /// + /// To be documented. + /// + public byte DragDropWithinSource; + + /// + /// To be documented. + /// + public byte DragDropWithinTarget; + + /// + /// To be documented. + /// + public ImGuiDragDropFlags DragDropSourceFlags; + + /// + /// To be documented. + /// + public int DragDropSourceFrameCount; + + /// + /// To be documented. + /// + public int DragDropMouseButton; + + /// + /// To be documented. + /// + public ImGuiPayload DragDropPayload; + + /// + /// To be documented. + /// + public ImRect DragDropTargetRect; + + /// + /// To be documented. + /// + public uint DragDropTargetId; + + /// + /// To be documented. + /// + public ImGuiDragDropFlags DragDropAcceptFlags; + + /// + /// To be documented. + /// + public float DragDropAcceptIdCurrRectSurface; + + /// + /// To be documented. + /// + public uint DragDropAcceptIdCurr; + + /// + /// To be documented. + /// + public uint DragDropAcceptIdPrev; + + /// + /// To be documented. + /// + public int DragDropAcceptFrameCount; + + /// + /// To be documented. + /// + public uint DragDropHoldJustPressedId; + + /// + /// To be documented. + /// + public ImVector DragDropPayloadBufHeap; + + /// + /// To be documented. + /// + public byte DragDropPayloadBufLocal_0; + public byte DragDropPayloadBufLocal_1; + public byte DragDropPayloadBufLocal_2; + public byte DragDropPayloadBufLocal_3; + public byte DragDropPayloadBufLocal_4; + public byte DragDropPayloadBufLocal_5; + public byte DragDropPayloadBufLocal_6; + public byte DragDropPayloadBufLocal_7; + public byte DragDropPayloadBufLocal_8; + public byte DragDropPayloadBufLocal_9; + public byte DragDropPayloadBufLocal_10; + public byte DragDropPayloadBufLocal_11; + public byte DragDropPayloadBufLocal_12; + public byte DragDropPayloadBufLocal_13; + public byte DragDropPayloadBufLocal_14; + public byte DragDropPayloadBufLocal_15; + + /// + /// To be documented. + /// + public int ClipperTempDataStacked; + + /// + /// To be documented. + /// + public ImVector ClipperTempData; + + /// + /// To be documented. + /// + public unsafe ImGuiTable* CurrentTable; + + /// + /// To be documented. + /// + public int TablesTempDataStacked; + + /// + /// To be documented. + /// + public ImVector TablesTempData; + + /// + /// To be documented. + /// + public ImPoolImGuiTable Tables; + + /// + /// To be documented. + /// + public ImVector TablesLastTimeActive; + + /// + /// To be documented. + /// + public ImVector DrawChannelsTempMergeBuffer; + + /// + /// To be documented. + /// + public unsafe ImGuiTabBar* CurrentTabBar; + + /// + /// To be documented. + /// + public ImPoolImGuiTabBar TabBars; + + /// + /// To be documented. + /// + public ImVector CurrentTabBarStack; + + /// + /// To be documented. + /// + public ImVector ShrinkWidthBuffer; + + /// + /// To be documented. + /// + public Vector2 MouseLastValidPos; + + /// + /// To be documented. + /// + public ImGuiInputTextState InputTextState; + + /// + /// To be documented. + /// + public ImFont InputTextPasswordFont; + + /// + /// To be documented. + /// + public uint TempInputId; + + /// + /// To be documented. + /// + public ImGuiColorEditFlags ColorEditOptions; + + /// + /// To be documented. + /// + public float ColorEditLastHue; + + /// + /// To be documented. + /// + public float ColorEditLastSat; + + /// + /// To be documented. + /// + public uint ColorEditLastColor; + + /// + /// To be documented. + /// + public Vector4 ColorPickerRef; + + /// + /// To be documented. + /// + public ImGuiComboPreviewData ComboPreviewData; + + /// + /// To be documented. + /// + public float SliderGrabClickOffset; + + /// + /// To be documented. + /// + public float SliderCurrentAccum; + + /// + /// To be documented. + /// + public byte SliderCurrentAccumDirty; + + /// + /// To be documented. + /// + public byte DragCurrentAccumDirty; + + /// + /// To be documented. + /// + public float DragCurrentAccum; + + /// + /// To be documented. + /// + public float DragSpeedDefaultRatio; + + /// + /// To be documented. + /// + public float ScrollbarClickDeltaToGrabCenter; + + /// + /// To be documented. + /// + public float DisabledAlphaBackup; + + /// + /// To be documented. + /// + public short DisabledStackSize; + + /// + /// To be documented. + /// + public short TooltipOverrideCount; + + /// + /// To be documented. + /// + public float TooltipSlowDelay; + + /// + /// To be documented. + /// + public ImVector ClipboardHandlerData; + + /// + /// To be documented. + /// + public ImVector MenusIdSubmittedThisFrame; + + /// + /// To be documented. + /// + public ImGuiPlatformImeData PlatformImeData; + + /// + /// To be documented. + /// + public ImGuiPlatformImeData PlatformImeDataPrev; + + /// + /// To be documented. + /// + public uint PlatformImeViewport; + + /// + /// To be documented. + /// + public byte PlatformLocaleDecimalPoint; + + /// + /// To be documented. + /// + public ImGuiDockContext DockContext; + + /// + /// To be documented. + /// + public byte SettingsLoaded; + + /// + /// To be documented. + /// + public float SettingsDirtyTimer; + + /// + /// To be documented. + /// + public ImGuiTextBuffer SettingsIniData; + + /// + /// To be documented. + /// + public ImVector SettingsHandlers; + + /// + /// To be documented. + /// + public ImChunkStreamImGuiWindowSettings SettingsWindows; + + /// + /// To be documented. + /// + public ImChunkStreamImGuiTableSettings SettingsTables; + + /// + /// To be documented. + /// + public ImVector Hooks; + + /// + /// To be documented. + /// + public uint HookIdNext; + + /// + /// To be documented. + /// + public byte LogEnabled; + + /// + /// To be documented. + /// + public ImGuiLogType LogType; + + /// + /// To be documented. + /// + public ImFileHandle LogFile; + + /// + /// To be documented. + /// + public ImGuiTextBuffer LogBuffer; + + /// + /// To be documented. + /// + public unsafe byte* LogNextPrefix; + + /// + /// To be documented. + /// + public unsafe byte* LogNextSuffix; + + /// + /// To be documented. + /// + public float LogLinePosY; + + /// + /// To be documented. + /// + public byte LogLineFirstItem; + + /// + /// To be documented. + /// + public int LogDepthRef; + + /// + /// To be documented. + /// + public int LogDepthToExpand; + + /// + /// To be documented. + /// + public int LogDepthToExpandDefault; + + /// + /// To be documented. + /// + public ImGuiDebugLogFlags DebugLogFlags; + + /// + /// To be documented. + /// + public ImGuiTextBuffer DebugLogBuf; + + /// + /// To be documented. + /// + public byte DebugItemPickerActive; + + /// + /// To be documented. + /// + public uint DebugItemPickerBreakId; + + /// + /// To be documented. + /// + public ImGuiMetricsConfig DebugMetricsConfig; + + /// + /// To be documented. + /// + public ImGuiStackTool DebugStackTool; + + /// + /// To be documented. + /// + public float FramerateSecPerFrame_0; + public float FramerateSecPerFrame_1; + public float FramerateSecPerFrame_2; + public float FramerateSecPerFrame_3; + public float FramerateSecPerFrame_4; + public float FramerateSecPerFrame_5; + public float FramerateSecPerFrame_6; + public float FramerateSecPerFrame_7; + public float FramerateSecPerFrame_8; + public float FramerateSecPerFrame_9; + public float FramerateSecPerFrame_10; + public float FramerateSecPerFrame_11; + public float FramerateSecPerFrame_12; + public float FramerateSecPerFrame_13; + public float FramerateSecPerFrame_14; + public float FramerateSecPerFrame_15; + public float FramerateSecPerFrame_16; + public float FramerateSecPerFrame_17; + public float FramerateSecPerFrame_18; + public float FramerateSecPerFrame_19; + public float FramerateSecPerFrame_20; + public float FramerateSecPerFrame_21; + public float FramerateSecPerFrame_22; + public float FramerateSecPerFrame_23; + public float FramerateSecPerFrame_24; + public float FramerateSecPerFrame_25; + public float FramerateSecPerFrame_26; + public float FramerateSecPerFrame_27; + public float FramerateSecPerFrame_28; + public float FramerateSecPerFrame_29; + public float FramerateSecPerFrame_30; + public float FramerateSecPerFrame_31; + public float FramerateSecPerFrame_32; + public float FramerateSecPerFrame_33; + public float FramerateSecPerFrame_34; + public float FramerateSecPerFrame_35; + public float FramerateSecPerFrame_36; + public float FramerateSecPerFrame_37; + public float FramerateSecPerFrame_38; + public float FramerateSecPerFrame_39; + public float FramerateSecPerFrame_40; + public float FramerateSecPerFrame_41; + public float FramerateSecPerFrame_42; + public float FramerateSecPerFrame_43; + public float FramerateSecPerFrame_44; + public float FramerateSecPerFrame_45; + public float FramerateSecPerFrame_46; + public float FramerateSecPerFrame_47; + public float FramerateSecPerFrame_48; + public float FramerateSecPerFrame_49; + public float FramerateSecPerFrame_50; + public float FramerateSecPerFrame_51; + public float FramerateSecPerFrame_52; + public float FramerateSecPerFrame_53; + public float FramerateSecPerFrame_54; + public float FramerateSecPerFrame_55; + public float FramerateSecPerFrame_56; + public float FramerateSecPerFrame_57; + public float FramerateSecPerFrame_58; + public float FramerateSecPerFrame_59; + public float FramerateSecPerFrame_60; + public float FramerateSecPerFrame_61; + public float FramerateSecPerFrame_62; + public float FramerateSecPerFrame_63; + public float FramerateSecPerFrame_64; + public float FramerateSecPerFrame_65; + public float FramerateSecPerFrame_66; + public float FramerateSecPerFrame_67; + public float FramerateSecPerFrame_68; + public float FramerateSecPerFrame_69; + public float FramerateSecPerFrame_70; + public float FramerateSecPerFrame_71; + public float FramerateSecPerFrame_72; + public float FramerateSecPerFrame_73; + public float FramerateSecPerFrame_74; + public float FramerateSecPerFrame_75; + public float FramerateSecPerFrame_76; + public float FramerateSecPerFrame_77; + public float FramerateSecPerFrame_78; + public float FramerateSecPerFrame_79; + public float FramerateSecPerFrame_80; + public float FramerateSecPerFrame_81; + public float FramerateSecPerFrame_82; + public float FramerateSecPerFrame_83; + public float FramerateSecPerFrame_84; + public float FramerateSecPerFrame_85; + public float FramerateSecPerFrame_86; + public float FramerateSecPerFrame_87; + public float FramerateSecPerFrame_88; + public float FramerateSecPerFrame_89; + public float FramerateSecPerFrame_90; + public float FramerateSecPerFrame_91; + public float FramerateSecPerFrame_92; + public float FramerateSecPerFrame_93; + public float FramerateSecPerFrame_94; + public float FramerateSecPerFrame_95; + public float FramerateSecPerFrame_96; + public float FramerateSecPerFrame_97; + public float FramerateSecPerFrame_98; + public float FramerateSecPerFrame_99; + public float FramerateSecPerFrame_100; + public float FramerateSecPerFrame_101; + public float FramerateSecPerFrame_102; + public float FramerateSecPerFrame_103; + public float FramerateSecPerFrame_104; + public float FramerateSecPerFrame_105; + public float FramerateSecPerFrame_106; + public float FramerateSecPerFrame_107; + public float FramerateSecPerFrame_108; + public float FramerateSecPerFrame_109; + public float FramerateSecPerFrame_110; + public float FramerateSecPerFrame_111; + public float FramerateSecPerFrame_112; + public float FramerateSecPerFrame_113; + public float FramerateSecPerFrame_114; + public float FramerateSecPerFrame_115; + public float FramerateSecPerFrame_116; + public float FramerateSecPerFrame_117; + public float FramerateSecPerFrame_118; + public float FramerateSecPerFrame_119; + + /// + /// To be documented. + /// + public int FramerateSecPerFrameIdx; + + /// + /// To be documented. + /// + public int FramerateSecPerFrameCount; + + /// + /// To be documented. + /// + public float FramerateSecPerFrameAccum; + + /// + /// To be documented. + /// + public int WantCaptureMouseNextFrame; + + /// + /// To be documented. + /// + public int WantCaptureKeyboardNextFrame; + + /// + /// To be documented. + /// + public int WantTextInputNextFrame; + + /// + /// To be documented. + /// + public ImVector TempBuffer; + + + /// + /// 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) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + HoveredDockNode = hoveredDockNode; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowTimer = wheelingWindowTimer; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; + CurrentItemFlags = currentItemFlags; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportFrontMostStampCount = viewportFrontMostStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateInputId = navActivateInputId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResultId = navInitResultId; + NavInitResultRectRel = navInitResultRectRel; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + DimBgRatio = dimBgRatio; + MouseCursor = mouseCursor; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default(byte*)) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditLastHue = colorEditLastHue; + ColorEditLastSat = colorEditLastSat; + ColorEditLastColor = colorEditLastColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + TooltipOverrideCount = tooltipOverrideCount; + TooltipSlowDelay = tooltipSlowDelay; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + DockContext = dockContext; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugStackTool = debugStackTool; + if (framerateSecPerFrame != default(float*)) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + FramerateSecPerFrame_60 = framerateSecPerFrame[60]; + FramerateSecPerFrame_61 = framerateSecPerFrame[61]; + FramerateSecPerFrame_62 = framerateSecPerFrame[62]; + FramerateSecPerFrame_63 = framerateSecPerFrame[63]; + FramerateSecPerFrame_64 = framerateSecPerFrame[64]; + FramerateSecPerFrame_65 = framerateSecPerFrame[65]; + FramerateSecPerFrame_66 = framerateSecPerFrame[66]; + FramerateSecPerFrame_67 = framerateSecPerFrame[67]; + FramerateSecPerFrame_68 = framerateSecPerFrame[68]; + FramerateSecPerFrame_69 = framerateSecPerFrame[69]; + FramerateSecPerFrame_70 = framerateSecPerFrame[70]; + FramerateSecPerFrame_71 = framerateSecPerFrame[71]; + FramerateSecPerFrame_72 = framerateSecPerFrame[72]; + FramerateSecPerFrame_73 = framerateSecPerFrame[73]; + FramerateSecPerFrame_74 = framerateSecPerFrame[74]; + FramerateSecPerFrame_75 = framerateSecPerFrame[75]; + FramerateSecPerFrame_76 = framerateSecPerFrame[76]; + FramerateSecPerFrame_77 = framerateSecPerFrame[77]; + FramerateSecPerFrame_78 = framerateSecPerFrame[78]; + FramerateSecPerFrame_79 = framerateSecPerFrame[79]; + FramerateSecPerFrame_80 = framerateSecPerFrame[80]; + FramerateSecPerFrame_81 = framerateSecPerFrame[81]; + FramerateSecPerFrame_82 = framerateSecPerFrame[82]; + FramerateSecPerFrame_83 = framerateSecPerFrame[83]; + FramerateSecPerFrame_84 = framerateSecPerFrame[84]; + FramerateSecPerFrame_85 = framerateSecPerFrame[85]; + FramerateSecPerFrame_86 = framerateSecPerFrame[86]; + FramerateSecPerFrame_87 = framerateSecPerFrame[87]; + FramerateSecPerFrame_88 = framerateSecPerFrame[88]; + FramerateSecPerFrame_89 = framerateSecPerFrame[89]; + FramerateSecPerFrame_90 = framerateSecPerFrame[90]; + FramerateSecPerFrame_91 = framerateSecPerFrame[91]; + FramerateSecPerFrame_92 = framerateSecPerFrame[92]; + FramerateSecPerFrame_93 = framerateSecPerFrame[93]; + FramerateSecPerFrame_94 = framerateSecPerFrame[94]; + FramerateSecPerFrame_95 = framerateSecPerFrame[95]; + FramerateSecPerFrame_96 = framerateSecPerFrame[96]; + FramerateSecPerFrame_97 = framerateSecPerFrame[97]; + FramerateSecPerFrame_98 = framerateSecPerFrame[98]; + FramerateSecPerFrame_99 = framerateSecPerFrame[99]; + FramerateSecPerFrame_100 = framerateSecPerFrame[100]; + FramerateSecPerFrame_101 = framerateSecPerFrame[101]; + FramerateSecPerFrame_102 = framerateSecPerFrame[102]; + FramerateSecPerFrame_103 = framerateSecPerFrame[103]; + FramerateSecPerFrame_104 = framerateSecPerFrame[104]; + FramerateSecPerFrame_105 = framerateSecPerFrame[105]; + FramerateSecPerFrame_106 = framerateSecPerFrame[106]; + FramerateSecPerFrame_107 = framerateSecPerFrame[107]; + FramerateSecPerFrame_108 = framerateSecPerFrame[108]; + FramerateSecPerFrame_109 = framerateSecPerFrame[109]; + FramerateSecPerFrame_110 = framerateSecPerFrame[110]; + FramerateSecPerFrame_111 = framerateSecPerFrame[111]; + FramerateSecPerFrame_112 = framerateSecPerFrame[112]; + FramerateSecPerFrame_113 = framerateSecPerFrame[113]; + FramerateSecPerFrame_114 = framerateSecPerFrame[114]; + FramerateSecPerFrame_115 = framerateSecPerFrame[115]; + FramerateSecPerFrame_116 = framerateSecPerFrame[116]; + FramerateSecPerFrame_117 = framerateSecPerFrame[117]; + FramerateSecPerFrame_118 = framerateSecPerFrame[118]; + FramerateSecPerFrame_119 = framerateSecPerFrame[119]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + + /// + /// 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) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + HoveredDockNode = hoveredDockNode; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowTimer = wheelingWindowTimer; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; + CurrentItemFlags = currentItemFlags; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportFrontMostStampCount = viewportFrontMostStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateInputId = navActivateInputId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResultId = navInitResultId; + NavInitResultRectRel = navInitResultRectRel; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + DimBgRatio = dimBgRatio; + MouseCursor = mouseCursor; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default(Span)) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditLastHue = colorEditLastHue; + ColorEditLastSat = colorEditLastSat; + ColorEditLastColor = colorEditLastColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + TooltipOverrideCount = tooltipOverrideCount; + TooltipSlowDelay = tooltipSlowDelay; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + DockContext = dockContext; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugStackTool = debugStackTool; + if (framerateSecPerFrame != default(Span)) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + FramerateSecPerFrame_60 = framerateSecPerFrame[60]; + FramerateSecPerFrame_61 = framerateSecPerFrame[61]; + FramerateSecPerFrame_62 = framerateSecPerFrame[62]; + FramerateSecPerFrame_63 = framerateSecPerFrame[63]; + FramerateSecPerFrame_64 = framerateSecPerFrame[64]; + FramerateSecPerFrame_65 = framerateSecPerFrame[65]; + FramerateSecPerFrame_66 = framerateSecPerFrame[66]; + FramerateSecPerFrame_67 = framerateSecPerFrame[67]; + FramerateSecPerFrame_68 = framerateSecPerFrame[68]; + FramerateSecPerFrame_69 = framerateSecPerFrame[69]; + FramerateSecPerFrame_70 = framerateSecPerFrame[70]; + FramerateSecPerFrame_71 = framerateSecPerFrame[71]; + FramerateSecPerFrame_72 = framerateSecPerFrame[72]; + FramerateSecPerFrame_73 = framerateSecPerFrame[73]; + FramerateSecPerFrame_74 = framerateSecPerFrame[74]; + FramerateSecPerFrame_75 = framerateSecPerFrame[75]; + FramerateSecPerFrame_76 = framerateSecPerFrame[76]; + FramerateSecPerFrame_77 = framerateSecPerFrame[77]; + FramerateSecPerFrame_78 = framerateSecPerFrame[78]; + FramerateSecPerFrame_79 = framerateSecPerFrame[79]; + FramerateSecPerFrame_80 = framerateSecPerFrame[80]; + FramerateSecPerFrame_81 = framerateSecPerFrame[81]; + FramerateSecPerFrame_82 = framerateSecPerFrame[82]; + FramerateSecPerFrame_83 = framerateSecPerFrame[83]; + FramerateSecPerFrame_84 = framerateSecPerFrame[84]; + FramerateSecPerFrame_85 = framerateSecPerFrame[85]; + FramerateSecPerFrame_86 = framerateSecPerFrame[86]; + FramerateSecPerFrame_87 = framerateSecPerFrame[87]; + FramerateSecPerFrame_88 = framerateSecPerFrame[88]; + FramerateSecPerFrame_89 = framerateSecPerFrame[89]; + FramerateSecPerFrame_90 = framerateSecPerFrame[90]; + FramerateSecPerFrame_91 = framerateSecPerFrame[91]; + FramerateSecPerFrame_92 = framerateSecPerFrame[92]; + FramerateSecPerFrame_93 = framerateSecPerFrame[93]; + FramerateSecPerFrame_94 = framerateSecPerFrame[94]; + FramerateSecPerFrame_95 = framerateSecPerFrame[95]; + FramerateSecPerFrame_96 = framerateSecPerFrame[96]; + FramerateSecPerFrame_97 = framerateSecPerFrame[97]; + FramerateSecPerFrame_98 = framerateSecPerFrame[98]; + FramerateSecPerFrame_99 = framerateSecPerFrame[99]; + FramerateSecPerFrame_100 = framerateSecPerFrame[100]; + FramerateSecPerFrame_101 = framerateSecPerFrame[101]; + FramerateSecPerFrame_102 = framerateSecPerFrame[102]; + FramerateSecPerFrame_103 = framerateSecPerFrame[103]; + FramerateSecPerFrame_104 = framerateSecPerFrame[104]; + FramerateSecPerFrame_105 = framerateSecPerFrame[105]; + FramerateSecPerFrame_106 = framerateSecPerFrame[106]; + FramerateSecPerFrame_107 = framerateSecPerFrame[107]; + FramerateSecPerFrame_108 = framerateSecPerFrame[108]; + FramerateSecPerFrame_109 = framerateSecPerFrame[109]; + FramerateSecPerFrame_110 = framerateSecPerFrame[110]; + FramerateSecPerFrame_111 = framerateSecPerFrame[111]; + FramerateSecPerFrame_112 = framerateSecPerFrame[112]; + FramerateSecPerFrame_113 = framerateSecPerFrame[113]; + FramerateSecPerFrame_114 = framerateSecPerFrame[114]; + FramerateSecPerFrame_115 = framerateSecPerFrame[115]; + FramerateSecPerFrame_116 = framerateSecPerFrame[116]; + FramerateSecPerFrame_117 = framerateSecPerFrame[117]; + FramerateSecPerFrame_118 = framerateSecPerFrame[118]; + FramerateSecPerFrame_119 = framerateSecPerFrame[119]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiContext* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiContextPtr : IEquatable + { + public ImGuiContextPtr(ImGuiContext* handle) { Handle = handle; } + + public ImGuiContext* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiContextPtr Null => new ImGuiContextPtr(null); + + public ImGuiContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiContextPtr(ImGuiContext* handle) => new ImGuiContextPtr(handle); + + public static implicit operator ImGuiContext*(ImGuiContextPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiContextPtr left, ImGuiContext* right) => left.Handle == right; + + public static bool operator !=(ImGuiContextPtr left, ImGuiContext* right) => left.Handle != right; + + public bool Equals(ImGuiContextPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiContextPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool Initialized => ref Unsafe.AsRef(&Handle->Initialized); + /// + /// To be documented. + /// + public ref bool FontAtlasOwnedByContext => ref Unsafe.AsRef(&Handle->FontAtlasOwnedByContext); + /// + /// To be documented. + /// + public ref ImGuiIO IO => ref Unsafe.AsRef(&Handle->IO); + /// + /// To be documented. + /// + public ref ImGuiPlatformIO PlatformIO => ref Unsafe.AsRef(&Handle->PlatformIO); + /// + /// To be documented. + /// + public ref ImVector InputEventsQueue => ref Unsafe.AsRef>(&Handle->InputEventsQueue); + /// + /// To be documented. + /// + public ref ImVector InputEventsTrail => ref Unsafe.AsRef>(&Handle->InputEventsTrail); + /// + /// To be documented. + /// + public ref ImGuiStyle Style => ref Unsafe.AsRef(&Handle->Style); + /// + /// To be documented. + /// + public ref ImGuiConfigFlags ConfigFlagsCurrFrame => ref Unsafe.AsRef(&Handle->ConfigFlagsCurrFrame); + /// + /// To be documented. + /// + public ref ImGuiConfigFlags ConfigFlagsLastFrame => ref Unsafe.AsRef(&Handle->ConfigFlagsLastFrame); + /// + /// To be documented. + /// + public ref ImFontPtr Font => ref Unsafe.AsRef(&Handle->Font); + /// + /// To be documented. + /// + public ref float FontSize => ref Unsafe.AsRef(&Handle->FontSize); + /// + /// To be documented. + /// + public ref float FontBaseSize => ref Unsafe.AsRef(&Handle->FontBaseSize); + /// + /// To be documented. + /// + public ref ImDrawListSharedData DrawListSharedData => ref Unsafe.AsRef(&Handle->DrawListSharedData); + /// + /// To be documented. + /// + public ref double Time => ref Unsafe.AsRef(&Handle->Time); + /// + /// To be documented. + /// + public ref int FrameCount => ref Unsafe.AsRef(&Handle->FrameCount); + /// + /// To be documented. + /// + public ref int FrameCountEnded => ref Unsafe.AsRef(&Handle->FrameCountEnded); + /// + /// To be documented. + /// + public ref int FrameCountPlatformEnded => ref Unsafe.AsRef(&Handle->FrameCountPlatformEnded); + /// + /// To be documented. + /// + public ref int FrameCountRendered => ref Unsafe.AsRef(&Handle->FrameCountRendered); + /// + /// To be documented. + /// + public ref bool WithinFrameScope => ref Unsafe.AsRef(&Handle->WithinFrameScope); + /// + /// To be documented. + /// + public ref bool WithinFrameScopeWithImplicitWindow => ref Unsafe.AsRef(&Handle->WithinFrameScopeWithImplicitWindow); + /// + /// To be documented. + /// + public ref bool WithinEndChild => ref Unsafe.AsRef(&Handle->WithinEndChild); + /// + /// To be documented. + /// + public ref bool GcCompactAll => ref Unsafe.AsRef(&Handle->GcCompactAll); + /// + /// To be documented. + /// + public ref bool TestEngineHookItems => ref Unsafe.AsRef(&Handle->TestEngineHookItems); + /// + /// To be documented. + /// + public void* TestEngine { get => Handle->TestEngine; set => Handle->TestEngine = value; } + /// + /// To be documented. + /// + public ref ImVector Windows => ref Unsafe.AsRef>(&Handle->Windows); + /// + /// To be documented. + /// + public ref ImVector WindowsFocusOrder => ref Unsafe.AsRef>(&Handle->WindowsFocusOrder); + /// + /// To be documented. + /// + public ref ImVector WindowsTempSortBuffer => ref Unsafe.AsRef>(&Handle->WindowsTempSortBuffer); + /// + /// To be documented. + /// + public ref ImVector CurrentWindowStack => ref Unsafe.AsRef>(&Handle->CurrentWindowStack); + /// + /// To be documented. + /// + public ref ImGuiStorage WindowsById => ref Unsafe.AsRef(&Handle->WindowsById); + /// + /// To be documented. + /// + public ref int WindowsActiveCount => ref Unsafe.AsRef(&Handle->WindowsActiveCount); + /// + /// To be documented. + /// + public ref Vector2 WindowsHoverPadding => ref Unsafe.AsRef(&Handle->WindowsHoverPadding); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr CurrentWindow => ref Unsafe.AsRef(&Handle->CurrentWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr HoveredWindow => ref Unsafe.AsRef(&Handle->HoveredWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr HoveredWindowUnderMovingWindow => ref Unsafe.AsRef(&Handle->HoveredWindowUnderMovingWindow); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr HoveredDockNode => ref Unsafe.AsRef(&Handle->HoveredDockNode); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr MovingWindow => ref Unsafe.AsRef(&Handle->MovingWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr WheelingWindow => ref Unsafe.AsRef(&Handle->WheelingWindow); + /// + /// To be documented. + /// + public ref Vector2 WheelingWindowRefMousePos => ref Unsafe.AsRef(&Handle->WheelingWindowRefMousePos); + /// + /// To be documented. + /// + public ref float WheelingWindowTimer => ref Unsafe.AsRef(&Handle->WheelingWindowTimer); + /// + /// To be documented. + /// + public ref uint DebugHookIdInfo => ref Unsafe.AsRef(&Handle->DebugHookIdInfo); + /// + /// To be documented. + /// + public ref uint HoveredId => ref Unsafe.AsRef(&Handle->HoveredId); + /// + /// To be documented. + /// + public ref uint HoveredIdPreviousFrame => ref Unsafe.AsRef(&Handle->HoveredIdPreviousFrame); + /// + /// To be documented. + /// + public ref bool HoveredIdAllowOverlap => ref Unsafe.AsRef(&Handle->HoveredIdAllowOverlap); + /// + /// To be documented. + /// + public ref bool HoveredIdUsingMouseWheel => ref Unsafe.AsRef(&Handle->HoveredIdUsingMouseWheel); + /// + /// To be documented. + /// + public ref bool HoveredIdPreviousFrameUsingMouseWheel => ref Unsafe.AsRef(&Handle->HoveredIdPreviousFrameUsingMouseWheel); + /// + /// To be documented. + /// + public ref bool HoveredIdDisabled => ref Unsafe.AsRef(&Handle->HoveredIdDisabled); + /// + /// To be documented. + /// + public ref float HoveredIdTimer => ref Unsafe.AsRef(&Handle->HoveredIdTimer); + /// + /// To be documented. + /// + public ref float HoveredIdNotActiveTimer => ref Unsafe.AsRef(&Handle->HoveredIdNotActiveTimer); + /// + /// To be documented. + /// + public ref uint ActiveId => ref Unsafe.AsRef(&Handle->ActiveId); + /// + /// To be documented. + /// + public ref uint ActiveIdIsAlive => ref Unsafe.AsRef(&Handle->ActiveIdIsAlive); + /// + /// To be documented. + /// + public ref float ActiveIdTimer => ref Unsafe.AsRef(&Handle->ActiveIdTimer); + /// + /// To be documented. + /// + public ref bool ActiveIdIsJustActivated => ref Unsafe.AsRef(&Handle->ActiveIdIsJustActivated); + /// + /// To be documented. + /// + public ref bool ActiveIdAllowOverlap => ref Unsafe.AsRef(&Handle->ActiveIdAllowOverlap); + /// + /// To be documented. + /// + public ref bool ActiveIdNoClearOnFocusLoss => ref Unsafe.AsRef(&Handle->ActiveIdNoClearOnFocusLoss); + /// + /// To be documented. + /// + public ref bool ActiveIdHasBeenPressedBefore => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenPressedBefore); + /// + /// To be documented. + /// + public ref bool ActiveIdHasBeenEditedBefore => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenEditedBefore); + /// + /// To be documented. + /// + public ref bool ActiveIdHasBeenEditedThisFrame => ref Unsafe.AsRef(&Handle->ActiveIdHasBeenEditedThisFrame); + /// + /// To be documented. + /// + public ref Vector2 ActiveIdClickOffset => ref Unsafe.AsRef(&Handle->ActiveIdClickOffset); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr ActiveIdWindow => ref Unsafe.AsRef(&Handle->ActiveIdWindow); + /// + /// To be documented. + /// + public ref ImGuiInputSource ActiveIdSource => ref Unsafe.AsRef(&Handle->ActiveIdSource); + /// + /// To be documented. + /// + public ref int ActiveIdMouseButton => ref Unsafe.AsRef(&Handle->ActiveIdMouseButton); + /// + /// To be documented. + /// + public ref uint ActiveIdPreviousFrame => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrame); + /// + /// To be documented. + /// + public ref bool ActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameIsAlive); + /// + /// To be documented. + /// + public ref bool ActiveIdPreviousFrameHasBeenEditedBefore => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameHasBeenEditedBefore); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr ActiveIdPreviousFrameWindow => ref Unsafe.AsRef(&Handle->ActiveIdPreviousFrameWindow); + /// + /// To be documented. + /// + public ref uint LastActiveId => ref Unsafe.AsRef(&Handle->LastActiveId); + /// + /// To be documented. + /// + public ref float LastActiveIdTimer => ref Unsafe.AsRef(&Handle->LastActiveIdTimer); + /// + /// To be documented. + /// + public ref bool ActiveIdUsingMouseWheel => ref Unsafe.AsRef(&Handle->ActiveIdUsingMouseWheel); + /// + /// To be documented. + /// + public ref uint ActiveIdUsingNavDirMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingNavDirMask); + /// + /// To be documented. + /// + public ref uint ActiveIdUsingNavInputMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingNavInputMask); + /// + /// To be documented. + /// + public ref nuint ActiveIdUsingKeyInputMask => ref Unsafe.AsRef(&Handle->ActiveIdUsingKeyInputMask); + /// + /// To be documented. + /// + public ref ImGuiItemFlags CurrentItemFlags => ref Unsafe.AsRef(&Handle->CurrentItemFlags); + /// + /// To be documented. + /// + public ref ImGuiNextItemData NextItemData => ref Unsafe.AsRef(&Handle->NextItemData); + /// + /// To be documented. + /// + public ref ImGuiLastItemData LastItemData => ref Unsafe.AsRef(&Handle->LastItemData); + /// + /// To be documented. + /// + public ref ImGuiNextWindowData NextWindowData => ref Unsafe.AsRef(&Handle->NextWindowData); + /// + /// To be documented. + /// + public ref ImVector ColorStack => ref Unsafe.AsRef>(&Handle->ColorStack); + /// + /// To be documented. + /// + public ref ImVector StyleVarStack => ref Unsafe.AsRef>(&Handle->StyleVarStack); + /// + /// To be documented. + /// + public ref ImVector FontStack => ref Unsafe.AsRef>(&Handle->FontStack); + /// + /// To be documented. + /// + public ref ImVector FocusScopeStack => ref Unsafe.AsRef>(&Handle->FocusScopeStack); + /// + /// To be documented. + /// + public ref ImVector ItemFlagsStack => ref Unsafe.AsRef>(&Handle->ItemFlagsStack); + /// + /// To be documented. + /// + public ref ImVector GroupStack => ref Unsafe.AsRef>(&Handle->GroupStack); + /// + /// To be documented. + /// + public ref ImVector OpenPopupStack => ref Unsafe.AsRef>(&Handle->OpenPopupStack); + /// + /// To be documented. + /// + public ref ImVector BeginPopupStack => ref Unsafe.AsRef>(&Handle->BeginPopupStack); + /// + /// To be documented. + /// + public ref int BeginMenuCount => ref Unsafe.AsRef(&Handle->BeginMenuCount); + /// + /// To be documented. + /// + public ref ImVector Viewports => ref Unsafe.AsRef>(&Handle->Viewports); + /// + /// To be documented. + /// + public ref float CurrentDpiScale => ref Unsafe.AsRef(&Handle->CurrentDpiScale); + /// + /// To be documented. + /// + public ref ImGuiViewportPPtr CurrentViewport => ref Unsafe.AsRef(&Handle->CurrentViewport); + /// + /// To be documented. + /// + public ref ImGuiViewportPPtr MouseViewport => ref Unsafe.AsRef(&Handle->MouseViewport); + /// + /// To be documented. + /// + public ref ImGuiViewportPPtr MouseLastHoveredViewport => ref Unsafe.AsRef(&Handle->MouseLastHoveredViewport); + /// + /// To be documented. + /// + public ref uint PlatformLastFocusedViewportId => ref Unsafe.AsRef(&Handle->PlatformLastFocusedViewportId); + /// + /// To be documented. + /// + public ref ImGuiPlatformMonitor FallbackMonitor => ref Unsafe.AsRef(&Handle->FallbackMonitor); + /// + /// To be documented. + /// + public ref int ViewportFrontMostStampCount => ref Unsafe.AsRef(&Handle->ViewportFrontMostStampCount); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr NavWindow => ref Unsafe.AsRef(&Handle->NavWindow); + /// + /// To be documented. + /// + public ref uint NavId => ref Unsafe.AsRef(&Handle->NavId); + /// + /// To be documented. + /// + public ref uint NavFocusScopeId => ref Unsafe.AsRef(&Handle->NavFocusScopeId); + /// + /// To be documented. + /// + public ref uint NavActivateId => ref Unsafe.AsRef(&Handle->NavActivateId); + /// + /// To be documented. + /// + public ref uint NavActivateDownId => ref Unsafe.AsRef(&Handle->NavActivateDownId); + /// + /// To be documented. + /// + public ref uint NavActivatePressedId => ref Unsafe.AsRef(&Handle->NavActivatePressedId); + /// + /// To be documented. + /// + public ref uint NavActivateInputId => ref Unsafe.AsRef(&Handle->NavActivateInputId); + /// + /// To be documented. + /// + public ref ImGuiActivateFlags NavActivateFlags => ref Unsafe.AsRef(&Handle->NavActivateFlags); + /// + /// To be documented. + /// + public ref uint NavJustMovedToId => ref Unsafe.AsRef(&Handle->NavJustMovedToId); + /// + /// To be documented. + /// + public ref uint NavJustMovedToFocusScopeId => ref Unsafe.AsRef(&Handle->NavJustMovedToFocusScopeId); + /// + /// To be documented. + /// + public ref ImGuiModFlags NavJustMovedToKeyMods => ref Unsafe.AsRef(&Handle->NavJustMovedToKeyMods); + /// + /// To be documented. + /// + public ref uint NavNextActivateId => ref Unsafe.AsRef(&Handle->NavNextActivateId); + /// + /// To be documented. + /// + public ref ImGuiActivateFlags NavNextActivateFlags => ref Unsafe.AsRef(&Handle->NavNextActivateFlags); + /// + /// To be documented. + /// + public ref ImGuiInputSource NavInputSource => ref Unsafe.AsRef(&Handle->NavInputSource); + /// + /// To be documented. + /// + public ref ImGuiNavLayer NavLayer => ref Unsafe.AsRef(&Handle->NavLayer); + /// + /// To be documented. + /// + public ref bool NavIdIsAlive => ref Unsafe.AsRef(&Handle->NavIdIsAlive); + /// + /// To be documented. + /// + public ref bool NavMousePosDirty => ref Unsafe.AsRef(&Handle->NavMousePosDirty); + /// + /// To be documented. + /// + public ref bool NavDisableHighlight => ref Unsafe.AsRef(&Handle->NavDisableHighlight); + /// + /// To be documented. + /// + public ref bool NavDisableMouseHover => ref Unsafe.AsRef(&Handle->NavDisableMouseHover); + /// + /// To be documented. + /// + public ref bool NavAnyRequest => ref Unsafe.AsRef(&Handle->NavAnyRequest); + /// + /// To be documented. + /// + public ref bool NavInitRequest => ref Unsafe.AsRef(&Handle->NavInitRequest); + /// + /// To be documented. + /// + public ref bool NavInitRequestFromMove => ref Unsafe.AsRef(&Handle->NavInitRequestFromMove); + /// + /// To be documented. + /// + public ref uint NavInitResultId => ref Unsafe.AsRef(&Handle->NavInitResultId); + /// + /// To be documented. + /// + public ref ImRect NavInitResultRectRel => ref Unsafe.AsRef(&Handle->NavInitResultRectRel); + /// + /// To be documented. + /// + public ref bool NavMoveSubmitted => ref Unsafe.AsRef(&Handle->NavMoveSubmitted); + /// + /// To be documented. + /// + public ref bool NavMoveScoringItems => ref Unsafe.AsRef(&Handle->NavMoveScoringItems); + /// + /// To be documented. + /// + public ref bool NavMoveForwardToNextFrame => ref Unsafe.AsRef(&Handle->NavMoveForwardToNextFrame); + /// + /// To be documented. + /// + public ref ImGuiNavMoveFlags NavMoveFlags => ref Unsafe.AsRef(&Handle->NavMoveFlags); + /// + /// To be documented. + /// + public ref ImGuiScrollFlags NavMoveScrollFlags => ref Unsafe.AsRef(&Handle->NavMoveScrollFlags); + /// + /// To be documented. + /// + public ref ImGuiModFlags NavMoveKeyMods => ref Unsafe.AsRef(&Handle->NavMoveKeyMods); + /// + /// To be documented. + /// + public ref ImGuiDir NavMoveDir => ref Unsafe.AsRef(&Handle->NavMoveDir); + /// + /// To be documented. + /// + public ref ImGuiDir NavMoveDirForDebug => ref Unsafe.AsRef(&Handle->NavMoveDirForDebug); + /// + /// To be documented. + /// + public ref ImGuiDir NavMoveClipDir => ref Unsafe.AsRef(&Handle->NavMoveClipDir); + /// + /// To be documented. + /// + public ref ImRect NavScoringRect => ref Unsafe.AsRef(&Handle->NavScoringRect); + /// + /// To be documented. + /// + public ref ImRect NavScoringNoClipRect => ref Unsafe.AsRef(&Handle->NavScoringNoClipRect); + /// + /// To be documented. + /// + public ref int NavScoringDebugCount => ref Unsafe.AsRef(&Handle->NavScoringDebugCount); + /// + /// To be documented. + /// + public ref int NavTabbingDir => ref Unsafe.AsRef(&Handle->NavTabbingDir); + /// + /// To be documented. + /// + public ref int NavTabbingCounter => ref Unsafe.AsRef(&Handle->NavTabbingCounter); + /// + /// To be documented. + /// + public ref ImGuiNavItemData NavMoveResultLocal => ref Unsafe.AsRef(&Handle->NavMoveResultLocal); + /// + /// To be documented. + /// + public ref ImGuiNavItemData NavMoveResultLocalVisible => ref Unsafe.AsRef(&Handle->NavMoveResultLocalVisible); + /// + /// To be documented. + /// + public ref ImGuiNavItemData NavMoveResultOther => ref Unsafe.AsRef(&Handle->NavMoveResultOther); + /// + /// To be documented. + /// + public ref ImGuiNavItemData NavTabbingResultFirst => ref Unsafe.AsRef(&Handle->NavTabbingResultFirst); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr NavWindowingTarget => ref Unsafe.AsRef(&Handle->NavWindowingTarget); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr NavWindowingTargetAnim => ref Unsafe.AsRef(&Handle->NavWindowingTargetAnim); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr NavWindowingListWindow => ref Unsafe.AsRef(&Handle->NavWindowingListWindow); + /// + /// To be documented. + /// + public ref float NavWindowingTimer => ref Unsafe.AsRef(&Handle->NavWindowingTimer); + /// + /// To be documented. + /// + public ref float NavWindowingHighlightAlpha => ref Unsafe.AsRef(&Handle->NavWindowingHighlightAlpha); + /// + /// To be documented. + /// + public ref bool NavWindowingToggleLayer => ref Unsafe.AsRef(&Handle->NavWindowingToggleLayer); + /// + /// To be documented. + /// + public ref float DimBgRatio => ref Unsafe.AsRef(&Handle->DimBgRatio); + /// + /// To be documented. + /// + public ref ImGuiMouseCursor MouseCursor => ref Unsafe.AsRef(&Handle->MouseCursor); + /// + /// To be documented. + /// + public ref bool DragDropActive => ref Unsafe.AsRef(&Handle->DragDropActive); + /// + /// To be documented. + /// + public ref bool DragDropWithinSource => ref Unsafe.AsRef(&Handle->DragDropWithinSource); + /// + /// To be documented. + /// + public ref bool DragDropWithinTarget => ref Unsafe.AsRef(&Handle->DragDropWithinTarget); + /// + /// To be documented. + /// + public ref ImGuiDragDropFlags DragDropSourceFlags => ref Unsafe.AsRef(&Handle->DragDropSourceFlags); + /// + /// To be documented. + /// + public ref int DragDropSourceFrameCount => ref Unsafe.AsRef(&Handle->DragDropSourceFrameCount); + /// + /// To be documented. + /// + public ref int DragDropMouseButton => ref Unsafe.AsRef(&Handle->DragDropMouseButton); + /// + /// To be documented. + /// + public ref ImGuiPayload DragDropPayload => ref Unsafe.AsRef(&Handle->DragDropPayload); + /// + /// To be documented. + /// + public ref ImRect DragDropTargetRect => ref Unsafe.AsRef(&Handle->DragDropTargetRect); + /// + /// To be documented. + /// + public ref uint DragDropTargetId => ref Unsafe.AsRef(&Handle->DragDropTargetId); + /// + /// To be documented. + /// + public ref ImGuiDragDropFlags DragDropAcceptFlags => ref Unsafe.AsRef(&Handle->DragDropAcceptFlags); + /// + /// To be documented. + /// + public ref float DragDropAcceptIdCurrRectSurface => ref Unsafe.AsRef(&Handle->DragDropAcceptIdCurrRectSurface); + /// + /// To be documented. + /// + public ref uint DragDropAcceptIdCurr => ref Unsafe.AsRef(&Handle->DragDropAcceptIdCurr); + /// + /// To be documented. + /// + public ref uint DragDropAcceptIdPrev => ref Unsafe.AsRef(&Handle->DragDropAcceptIdPrev); + /// + /// To be documented. + /// + public ref int DragDropAcceptFrameCount => ref Unsafe.AsRef(&Handle->DragDropAcceptFrameCount); + /// + /// To be documented. + /// + public ref uint DragDropHoldJustPressedId => ref Unsafe.AsRef(&Handle->DragDropHoldJustPressedId); + /// + /// To be documented. + /// + public ref ImVector DragDropPayloadBufHeap => ref Unsafe.AsRef>(&Handle->DragDropPayloadBufHeap); + /// + /// To be documented. + /// + public unsafe Span DragDropPayloadBufLocal + + { + get + { + return new Span(&Handle->DragDropPayloadBufLocal_0, 16); + } + } + /// + /// To be documented. + /// + public ref int ClipperTempDataStacked => ref Unsafe.AsRef(&Handle->ClipperTempDataStacked); + /// + /// To be documented. + /// + public ref ImVector ClipperTempData => ref Unsafe.AsRef>(&Handle->ClipperTempData); + /// + /// To be documented. + /// + public ref ImGuiTablePtr CurrentTable => ref Unsafe.AsRef(&Handle->CurrentTable); + /// + /// To be documented. + /// + public ref int TablesTempDataStacked => ref Unsafe.AsRef(&Handle->TablesTempDataStacked); + /// + /// To be documented. + /// + public ref ImVector TablesTempData => ref Unsafe.AsRef>(&Handle->TablesTempData); + /// + /// To be documented. + /// + public ref ImPoolImGuiTable Tables => ref Unsafe.AsRef(&Handle->Tables); + /// + /// To be documented. + /// + public ref ImVector TablesLastTimeActive => ref Unsafe.AsRef>(&Handle->TablesLastTimeActive); + /// + /// To be documented. + /// + public ref ImVector DrawChannelsTempMergeBuffer => ref Unsafe.AsRef>(&Handle->DrawChannelsTempMergeBuffer); + /// + /// To be documented. + /// + public ref ImGuiTabBarPtr CurrentTabBar => ref Unsafe.AsRef(&Handle->CurrentTabBar); + /// + /// To be documented. + /// + public ref ImPoolImGuiTabBar TabBars => ref Unsafe.AsRef(&Handle->TabBars); + /// + /// To be documented. + /// + public ref ImVector CurrentTabBarStack => ref Unsafe.AsRef>(&Handle->CurrentTabBarStack); + /// + /// To be documented. + /// + public ref ImVector ShrinkWidthBuffer => ref Unsafe.AsRef>(&Handle->ShrinkWidthBuffer); + /// + /// To be documented. + /// + public ref Vector2 MouseLastValidPos => ref Unsafe.AsRef(&Handle->MouseLastValidPos); + /// + /// To be documented. + /// + public ref ImGuiInputTextState InputTextState => ref Unsafe.AsRef(&Handle->InputTextState); + /// + /// To be documented. + /// + public ref ImFont InputTextPasswordFont => ref Unsafe.AsRef(&Handle->InputTextPasswordFont); + /// + /// To be documented. + /// + public ref uint TempInputId => ref Unsafe.AsRef(&Handle->TempInputId); + /// + /// To be documented. + /// + public ref ImGuiColorEditFlags ColorEditOptions => ref Unsafe.AsRef(&Handle->ColorEditOptions); + /// + /// To be documented. + /// + public ref float ColorEditLastHue => ref Unsafe.AsRef(&Handle->ColorEditLastHue); + /// + /// To be documented. + /// + public ref float ColorEditLastSat => ref Unsafe.AsRef(&Handle->ColorEditLastSat); + /// + /// To be documented. + /// + public ref uint ColorEditLastColor => ref Unsafe.AsRef(&Handle->ColorEditLastColor); + /// + /// To be documented. + /// + public ref Vector4 ColorPickerRef => ref Unsafe.AsRef(&Handle->ColorPickerRef); + /// + /// To be documented. + /// + public ref ImGuiComboPreviewData ComboPreviewData => ref Unsafe.AsRef(&Handle->ComboPreviewData); + /// + /// To be documented. + /// + public ref float SliderGrabClickOffset => ref Unsafe.AsRef(&Handle->SliderGrabClickOffset); + /// + /// To be documented. + /// + public ref float SliderCurrentAccum => ref Unsafe.AsRef(&Handle->SliderCurrentAccum); + /// + /// To be documented. + /// + public ref bool SliderCurrentAccumDirty => ref Unsafe.AsRef(&Handle->SliderCurrentAccumDirty); + /// + /// To be documented. + /// + public ref bool DragCurrentAccumDirty => ref Unsafe.AsRef(&Handle->DragCurrentAccumDirty); + /// + /// To be documented. + /// + public ref float DragCurrentAccum => ref Unsafe.AsRef(&Handle->DragCurrentAccum); + /// + /// To be documented. + /// + public ref float DragSpeedDefaultRatio => ref Unsafe.AsRef(&Handle->DragSpeedDefaultRatio); + /// + /// To be documented. + /// + public ref float ScrollbarClickDeltaToGrabCenter => ref Unsafe.AsRef(&Handle->ScrollbarClickDeltaToGrabCenter); + /// + /// To be documented. + /// + public ref float DisabledAlphaBackup => ref Unsafe.AsRef(&Handle->DisabledAlphaBackup); + /// + /// To be documented. + /// + public ref short DisabledStackSize => ref Unsafe.AsRef(&Handle->DisabledStackSize); + /// + /// To be documented. + /// + public ref short TooltipOverrideCount => ref Unsafe.AsRef(&Handle->TooltipOverrideCount); + /// + /// To be documented. + /// + public ref float TooltipSlowDelay => ref Unsafe.AsRef(&Handle->TooltipSlowDelay); + /// + /// To be documented. + /// + public ref ImVector ClipboardHandlerData => ref Unsafe.AsRef>(&Handle->ClipboardHandlerData); + /// + /// To be documented. + /// + public ref ImVector MenusIdSubmittedThisFrame => ref Unsafe.AsRef>(&Handle->MenusIdSubmittedThisFrame); + /// + /// To be documented. + /// + public ref ImGuiPlatformImeData PlatformImeData => ref Unsafe.AsRef(&Handle->PlatformImeData); + /// + /// To be documented. + /// + public ref ImGuiPlatformImeData PlatformImeDataPrev => ref Unsafe.AsRef(&Handle->PlatformImeDataPrev); + /// + /// To be documented. + /// + public ref uint PlatformImeViewport => ref Unsafe.AsRef(&Handle->PlatformImeViewport); + /// + /// To be documented. + /// + public ref byte PlatformLocaleDecimalPoint => ref Unsafe.AsRef(&Handle->PlatformLocaleDecimalPoint); + /// + /// To be documented. + /// + public ref ImGuiDockContext DockContext => ref Unsafe.AsRef(&Handle->DockContext); + /// + /// To be documented. + /// + public ref bool SettingsLoaded => ref Unsafe.AsRef(&Handle->SettingsLoaded); + /// + /// To be documented. + /// + public ref float SettingsDirtyTimer => ref Unsafe.AsRef(&Handle->SettingsDirtyTimer); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer SettingsIniData => ref Unsafe.AsRef(&Handle->SettingsIniData); + /// + /// To be documented. + /// + public ref ImVector SettingsHandlers => ref Unsafe.AsRef>(&Handle->SettingsHandlers); + /// + /// To be documented. + /// + public ref ImChunkStreamImGuiWindowSettings SettingsWindows => ref Unsafe.AsRef(&Handle->SettingsWindows); + /// + /// To be documented. + /// + public ref ImChunkStreamImGuiTableSettings SettingsTables => ref Unsafe.AsRef(&Handle->SettingsTables); + /// + /// To be documented. + /// + public ref ImVector Hooks => ref Unsafe.AsRef>(&Handle->Hooks); + /// + /// To be documented. + /// + public ref uint HookIdNext => ref Unsafe.AsRef(&Handle->HookIdNext); + /// + /// To be documented. + /// + public ref bool LogEnabled => ref Unsafe.AsRef(&Handle->LogEnabled); + /// + /// To be documented. + /// + public ref ImGuiLogType LogType => ref Unsafe.AsRef(&Handle->LogType); + /// + /// To be documented. + /// + public ref ImFileHandle LogFile => ref Unsafe.AsRef(&Handle->LogFile); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer LogBuffer => ref Unsafe.AsRef(&Handle->LogBuffer); + /// + /// To be documented. + /// + public byte* LogNextPrefix { get => Handle->LogNextPrefix; set => Handle->LogNextPrefix = value; } + /// + /// To be documented. + /// + public byte* LogNextSuffix { get => Handle->LogNextSuffix; set => Handle->LogNextSuffix = value; } + /// + /// To be documented. + /// + public ref float LogLinePosY => ref Unsafe.AsRef(&Handle->LogLinePosY); + /// + /// To be documented. + /// + public ref bool LogLineFirstItem => ref Unsafe.AsRef(&Handle->LogLineFirstItem); + /// + /// To be documented. + /// + public ref int LogDepthRef => ref Unsafe.AsRef(&Handle->LogDepthRef); + /// + /// To be documented. + /// + public ref int LogDepthToExpand => ref Unsafe.AsRef(&Handle->LogDepthToExpand); + /// + /// To be documented. + /// + public ref int LogDepthToExpandDefault => ref Unsafe.AsRef(&Handle->LogDepthToExpandDefault); + /// + /// To be documented. + /// + public ref ImGuiDebugLogFlags DebugLogFlags => ref Unsafe.AsRef(&Handle->DebugLogFlags); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer DebugLogBuf => ref Unsafe.AsRef(&Handle->DebugLogBuf); + /// + /// To be documented. + /// + public ref bool DebugItemPickerActive => ref Unsafe.AsRef(&Handle->DebugItemPickerActive); + /// + /// To be documented. + /// + public ref uint DebugItemPickerBreakId => ref Unsafe.AsRef(&Handle->DebugItemPickerBreakId); + /// + /// To be documented. + /// + public ref ImGuiMetricsConfig DebugMetricsConfig => ref Unsafe.AsRef(&Handle->DebugMetricsConfig); + /// + /// To be documented. + /// + public ref ImGuiStackTool DebugStackTool => ref Unsafe.AsRef(&Handle->DebugStackTool); + /// + /// To be documented. + /// + public unsafe Span FramerateSecPerFrame + + { + get + { + return new Span(&Handle->FramerateSecPerFrame_0, 120); + } + } + /// + /// To be documented. + /// + public ref int FramerateSecPerFrameIdx => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameIdx); + /// + /// To be documented. + /// + public ref int FramerateSecPerFrameCount => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameCount); + /// + /// To be documented. + /// + public ref float FramerateSecPerFrameAccum => ref Unsafe.AsRef(&Handle->FramerateSecPerFrameAccum); + /// + /// To be documented. + /// + public ref int WantCaptureMouseNextFrame => ref Unsafe.AsRef(&Handle->WantCaptureMouseNextFrame); + /// + /// To be documented. + /// + public ref int WantCaptureKeyboardNextFrame => ref Unsafe.AsRef(&Handle->WantCaptureKeyboardNextFrame); + /// + /// To be documented. + /// + public ref int WantTextInputNextFrame => ref Unsafe.AsRef(&Handle->WantTextInputNextFrame); + /// + /// To be documented. + /// + public ref ImVector TempBuffer => ref Unsafe.AsRef>(&Handle->TempBuffer); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs new file mode 100644 index 000000000..912a5e472 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContextHook + { + /// + /// To be documented. + /// + public uint HookId; + + /// + /// To be documented. + /// + public ImGuiContextHookType Type; + + /// + /// To be documented. + /// + public uint Owner; + + /// + /// To be documented. + /// + public unsafe void* Callback; + /// + /// To be documented. + /// + public unsafe void* UserData; + + + /// + /// To be documented. + /// + public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, ImGuiContextHookCallback callback = default, void* userData = default) + { + HookId = hookId; + Type = type; + Owner = owner; + Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); + UserData = userData; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiContextHook* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiContextHookPtr : IEquatable + { + public ImGuiContextHookPtr(ImGuiContextHook* handle) { Handle = handle; } + + public ImGuiContextHook* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiContextHookPtr Null => new ImGuiContextHookPtr(null); + + public ImGuiContextHook this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiContextHookPtr(ImGuiContextHook* handle) => new ImGuiContextHookPtr(handle); + + public static implicit operator ImGuiContextHook*(ImGuiContextHookPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle == right; + + public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle != right; + + public bool Equals(ImGuiContextHookPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiContextHookPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiContextHookPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint HookId => ref Unsafe.AsRef(&Handle->HookId); + /// + /// To be documented. + /// + public ref ImGuiContextHookType Type => ref Unsafe.AsRef(&Handle->Type); + /// + /// To be documented. + /// + public ref uint Owner => ref Unsafe.AsRef(&Handle->Owner); + /// + /// To be documented. + /// + public void* Callback { get => Handle->Callback; set => Handle->Callback = value; } + /// + /// To be documented. + /// + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs new file mode 100644 index 000000000..b00de782b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs @@ -0,0 +1,119 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeInfo + { + /// + /// To be documented. + /// + public nuint Size; + + /// + /// To be documented. + /// + public unsafe byte* Name; + + /// + /// To be documented. + /// + public unsafe byte* PrintFmt; + + /// + /// To be documented. + /// + public unsafe byte* ScanFmt; + + + /// + /// To be documented. + /// + public unsafe ImGuiDataTypeInfo(nuint size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) + { + Size = size; + Name = name; + PrintFmt = printFmt; + ScanFmt = scanFmt; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiDataTypeInfoPtr : IEquatable + { + public ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) { Handle = handle; } + + public ImGuiDataTypeInfo* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiDataTypeInfoPtr Null => new ImGuiDataTypeInfoPtr(null); + + public ImGuiDataTypeInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) => new ImGuiDataTypeInfoPtr(handle); + + public static implicit operator ImGuiDataTypeInfo*(ImGuiDataTypeInfoPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle == right; + + public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle != right; + + public bool Equals(ImGuiDataTypeInfoPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiDataTypeInfoPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiDataTypeInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref nuint Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public byte* Name { get => Handle->Name; set => Handle->Name = value; } + /// + /// To be documented. + /// + public byte* PrintFmt { get => Handle->PrintFmt; set => Handle->PrintFmt = value; } + /// + /// To be documented. + /// + public byte* ScanFmt { get => Handle->ScanFmt; set => Handle->ScanFmt = value; } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs new file mode 100644 index 000000000..7eae28810 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeTempStorage + { + /// + /// To be documented. + /// + public byte Data_0; + public byte Data_1; + public byte Data_2; + public byte Data_3; + public byte Data_4; + public byte Data_5; + public byte Data_6; + public byte Data_7; + + + /// + /// To be documented. + /// + public unsafe ImGuiDataTypeTempStorage(byte* data = default) + { + if (data != default(byte*)) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiDataTypeTempStorage(Span data = default) + { + if (data != default(Span)) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs new file mode 100644 index 000000000..2595634e9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockContext + { + /// + /// To be documented. + /// + public ImGuiStorage Nodes; + + /// + /// To be documented. + /// + public ImVector Requests; + + /// + /// To be documented. + /// + public ImVector NodesSettings; + + /// + /// To be documented. + /// + public byte WantFullRebuild; + + + /// + /// To be documented. + /// + public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVector requests = default, ImVector nodesSettings = default, bool wantFullRebuild = default) + { + Nodes = nodes; + Requests = requests; + NodesSettings = nodesSettings; + WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiDockContext* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiDockContextPtr : IEquatable + { + public ImGuiDockContextPtr(ImGuiDockContext* handle) { Handle = handle; } + + public ImGuiDockContext* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiDockContextPtr Null => new ImGuiDockContextPtr(null); + + public ImGuiDockContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiDockContextPtr(ImGuiDockContext* handle) => new ImGuiDockContextPtr(handle); + + public static implicit operator ImGuiDockContext*(ImGuiDockContextPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle == right; + + public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle != right; + + public bool Equals(ImGuiDockContextPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiDockContextPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiDockContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiStorage Nodes => ref Unsafe.AsRef(&Handle->Nodes); + /// + /// To be documented. + /// + public ref ImVector Requests => ref Unsafe.AsRef>(&Handle->Requests); + /// + /// To be documented. + /// + public ref ImVector NodesSettings => ref Unsafe.AsRef>(&Handle->NodesSettings); + /// + /// To be documented. + /// + public ref bool WantFullRebuild => ref Unsafe.AsRef(&Handle->WantFullRebuild); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs new file mode 100644 index 000000000..664194eb7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs @@ -0,0 +1,520 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNode + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiDockNodeFlags SharedFlags; + + /// + /// To be documented. + /// + public ImGuiDockNodeFlags LocalFlags; + + /// + /// To be documented. + /// + public ImGuiDockNodeFlags LocalFlagsInWindows; + + /// + /// To be documented. + /// + public ImGuiDockNodeFlags MergedFlags; + + /// + /// To be documented. + /// + public ImGuiDockNodeState State; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* ParentNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* ChildNodes_0; + public unsafe ImGuiDockNode* ChildNodes_1; + + /// + /// To be documented. + /// + public ImVector Windows; + + /// + /// To be documented. + /// + public unsafe ImGuiTabBar* TabBar; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 SizeRef; + + /// + /// To be documented. + /// + public ImGuiAxis SplitAxis; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public uint LastBgColor; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HostWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* VisibleWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* CentralNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* OnlyNodeWithWindows; + + /// + /// To be documented. + /// + public int CountNodeWithWindows; + + /// + /// To be documented. + /// + public int LastFrameAlive; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFrameFocused; + + /// + /// To be documented. + /// + public uint LastFocusedNodeId; + + /// + /// To be documented. + /// + public uint SelectedTabId; + + /// + /// To be documented. + /// + public uint WantCloseTabId; + + public ImGuiDataAuthority RawBits0; + public bool RawBits1; + public bool RawBits2; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVector windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default(ImGuiDockNode**)) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible; + IsFocused = isFocused; + IsBgDrawnThisFrame = isBgDrawnThisFrame; + HasCloseButton = hasCloseButton; + HasWindowMenuButton = hasWindowMenuButton; + HasCentralNodeChild = hasCentralNodeChild; + WantCloseAll = wantCloseAll; + WantLockSizeOnce = wantLockSizeOnce; + WantMouseMove = wantMouseMove; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; + WantHiddenTabBarToggle = wantHiddenTabBarToggle; + } + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span> childNodes = default, ImVector windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default(Span>)) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + 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. + /// + public unsafe Span> ChildNodes + + { + get + { + fixed (ImGuiDockNode** p = &this.ChildNodes_0) + { + return new Span>(p, 2); + } + } + } + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiDockNodePtr : IEquatable + { + public ImGuiDockNodePtr(ImGuiDockNode* handle) { Handle = handle; } + + public ImGuiDockNode* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiDockNodePtr Null => new ImGuiDockNodePtr(null); + + public ImGuiDockNode this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiDockNodePtr(ImGuiDockNode* handle) => new ImGuiDockNodePtr(handle); + + public static implicit operator ImGuiDockNode*(ImGuiDockNodePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle == right; + + public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle != right; + + public bool Equals(ImGuiDockNodePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiDockNodePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiDockNodePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiDockNodeFlags SharedFlags => ref Unsafe.AsRef(&Handle->SharedFlags); + /// + /// To be documented. + /// + public ref ImGuiDockNodeFlags LocalFlags => ref Unsafe.AsRef(&Handle->LocalFlags); + /// + /// To be documented. + /// + public ref ImGuiDockNodeFlags LocalFlagsInWindows => ref Unsafe.AsRef(&Handle->LocalFlagsInWindows); + /// + /// To be documented. + /// + public ref ImGuiDockNodeFlags MergedFlags => ref Unsafe.AsRef(&Handle->MergedFlags); + /// + /// To be documented. + /// + public ref ImGuiDockNodeState State => ref Unsafe.AsRef(&Handle->State); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr ParentNode => ref Unsafe.AsRef(&Handle->ParentNode); + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public ref ImVector Windows => ref Unsafe.AsRef>(&Handle->Windows); + /// + /// To be documented. + /// + public ref ImGuiTabBarPtr TabBar => ref Unsafe.AsRef(&Handle->TabBar); + /// + /// To be documented. + /// + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public ref Vector2 SizeRef => ref Unsafe.AsRef(&Handle->SizeRef); + /// + /// To be documented. + /// + public ref ImGuiAxis SplitAxis => ref Unsafe.AsRef(&Handle->SplitAxis); + /// + /// To be documented. + /// + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + /// + /// To be documented. + /// + public ref uint LastBgColor => ref Unsafe.AsRef(&Handle->LastBgColor); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr HostWindow => ref Unsafe.AsRef(&Handle->HostWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr VisibleWindow => ref Unsafe.AsRef(&Handle->VisibleWindow); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr CentralNode => ref Unsafe.AsRef(&Handle->CentralNode); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr OnlyNodeWithWindows => ref Unsafe.AsRef(&Handle->OnlyNodeWithWindows); + /// + /// To be documented. + /// + public ref int CountNodeWithWindows => ref Unsafe.AsRef(&Handle->CountNodeWithWindows); + /// + /// To be documented. + /// + public ref int LastFrameAlive => ref Unsafe.AsRef(&Handle->LastFrameAlive); + /// + /// To be documented. + /// + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + /// + /// To be documented. + /// + public ref int LastFrameFocused => ref Unsafe.AsRef(&Handle->LastFrameFocused); + /// + /// To be documented. + /// + public ref uint LastFocusedNodeId => ref Unsafe.AsRef(&Handle->LastFocusedNodeId); + /// + /// To be documented. + /// + public ref uint SelectedTabId => ref Unsafe.AsRef(&Handle->SelectedTabId); + /// + /// To be documented. + /// + public ref uint WantCloseTabId => ref Unsafe.AsRef(&Handle->WantCloseTabId); + /// + /// To be documented. + /// + public ImGuiDataAuthority AuthorityForPos { get => Handle->AuthorityForPos; set => Handle->AuthorityForPos = value; } + /// + /// To be documented. + /// + public ImGuiDataAuthority AuthorityForSize { get => Handle->AuthorityForSize; set => Handle->AuthorityForSize = value; } + /// + /// To be documented. + /// + public ImGuiDataAuthority AuthorityForViewport { get => Handle->AuthorityForViewport; set => Handle->AuthorityForViewport = value; } + /// + /// To be documented. + /// + public bool IsVisible { get => Handle->IsVisible; set => Handle->IsVisible = value; } + /// + /// To be documented. + /// + public bool IsFocused { get => Handle->IsFocused; set => Handle->IsFocused = value; } + /// + /// To be documented. + /// + public bool IsBgDrawnThisFrame { get => Handle->IsBgDrawnThisFrame; set => Handle->IsBgDrawnThisFrame = value; } + /// + /// To be documented. + /// + public bool HasCloseButton { get => Handle->HasCloseButton; set => Handle->HasCloseButton = value; } + /// + /// To be documented. + /// + public bool HasWindowMenuButton { get => Handle->HasWindowMenuButton; set => Handle->HasWindowMenuButton = value; } + /// + /// To be documented. + /// + public bool HasCentralNodeChild { get => Handle->HasCentralNodeChild; set => Handle->HasCentralNodeChild = value; } + /// + /// To be documented. + /// + public bool WantCloseAll { get => Handle->WantCloseAll; set => Handle->WantCloseAll = value; } + /// + /// To be documented. + /// + public bool WantLockSizeOnce { get => Handle->WantLockSizeOnce; set => Handle->WantLockSizeOnce = value; } + /// + /// To be documented. + /// + public bool WantMouseMove { get => Handle->WantMouseMove; set => Handle->WantMouseMove = value; } + /// + /// To be documented. + /// + public bool WantHiddenTabBarUpdate { get => Handle->WantHiddenTabBarUpdate; set => Handle->WantHiddenTabBarUpdate = value; } + /// + /// To be documented. + /// + public bool WantHiddenTabBarToggle { get => Handle->WantHiddenTabBarToggle; set => Handle->WantHiddenTabBarToggle = value; } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs new file mode 100644 index 000000000..a608287a9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNodeSettings + { + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiDockNodeSettingsPtr : IEquatable + { + public ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) { Handle = handle; } + + public ImGuiDockNodeSettings* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiDockNodeSettingsPtr Null => new ImGuiDockNodeSettingsPtr(null); + + public ImGuiDockNodeSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) => new ImGuiDockNodeSettingsPtr(handle); + + public static implicit operator ImGuiDockNodeSettings*(ImGuiDockNodeSettingsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle == right; + + public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle != right; + + public bool Equals(ImGuiDockNodeSettingsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiDockNodeSettingsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiDockNodeSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs new file mode 100644 index 000000000..99f6fef29 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockRequest + { + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiDockRequestPtr : IEquatable + { + public ImGuiDockRequestPtr(ImGuiDockRequest* handle) { Handle = handle; } + + public ImGuiDockRequest* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiDockRequestPtr Null => new ImGuiDockRequestPtr(null); + + public ImGuiDockRequest this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiDockRequestPtr(ImGuiDockRequest* handle) => new ImGuiDockRequestPtr(handle); + + public static implicit operator ImGuiDockRequest*(ImGuiDockRequestPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle == right; + + public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle != right; + + public bool Equals(ImGuiDockRequestPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiDockRequestPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiDockRequestPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs new file mode 100644 index 000000000..a20ac3662 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs @@ -0,0 +1,189 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiGroupData + { + /// + /// To be documented. + /// + public uint WindowID; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorMaxPos; + + /// + /// To be documented. + /// + public ImVec1 BackupIndent; + + /// + /// To be documented. + /// + public ImVec1 BackupGroupOffset; + + /// + /// To be documented. + /// + public Vector2 BackupCurrLineSize; + + /// + /// To be documented. + /// + public float BackupCurrLineTextBaseOffset; + + /// + /// To be documented. + /// + public uint BackupActiveIdIsAlive; + + /// + /// To be documented. + /// + public byte BackupActiveIdPreviousFrameIsAlive; + + /// + /// To be documented. + /// + public byte BackupHoveredIdIsAlive; + + /// + /// To be documented. + /// + public byte EmitItem; + + + /// + /// To be documented. + /// + public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool emitItem = default) + { + WindowID = windowId; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupIndent = backupIndent; + BackupGroupOffset = backupGroupOffset; + BackupCurrLineSize = backupCurrLineSize; + BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; + BackupActiveIdIsAlive = backupActiveIdIsAlive; + BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; + EmitItem = emitItem ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiGroupDataPtr : IEquatable + { + public ImGuiGroupDataPtr(ImGuiGroupData* handle) { Handle = handle; } + + public ImGuiGroupData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiGroupDataPtr Null => new ImGuiGroupDataPtr(null); + + public ImGuiGroupData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiGroupDataPtr(ImGuiGroupData* handle) => new ImGuiGroupDataPtr(handle); + + public static implicit operator ImGuiGroupData*(ImGuiGroupDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle == right; + + public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle != right; + + public bool Equals(ImGuiGroupDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiGroupDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiGroupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint WindowID => ref Unsafe.AsRef(&Handle->WindowID); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef(&Handle->BackupCursorMaxPos); + /// + /// To be documented. + /// + public ref ImVec1 BackupIndent => ref Unsafe.AsRef(&Handle->BackupIndent); + /// + /// To be documented. + /// + public ref ImVec1 BackupGroupOffset => ref Unsafe.AsRef(&Handle->BackupGroupOffset); + /// + /// To be documented. + /// + public ref Vector2 BackupCurrLineSize => ref Unsafe.AsRef(&Handle->BackupCurrLineSize); + /// + /// To be documented. + /// + public ref float BackupCurrLineTextBaseOffset => ref Unsafe.AsRef(&Handle->BackupCurrLineTextBaseOffset); + /// + /// To be documented. + /// + public ref uint BackupActiveIdIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdIsAlive); + /// + /// To be documented. + /// + public ref bool BackupActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdPreviousFrameIsAlive); + /// + /// To be documented. + /// + public ref bool BackupHoveredIdIsAlive => ref Unsafe.AsRef(&Handle->BackupHoveredIdIsAlive); + /// + /// To be documented. + /// + public ref bool EmitItem => ref Unsafe.AsRef(&Handle->EmitItem); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs new file mode 100644 index 000000000..2513b6370 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs @@ -0,0 +1,8003 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiIO + { + /// + /// To be documented. + /// + public ImGuiConfigFlags ConfigFlags; + + /// + /// To be documented. + /// + public ImGuiBackendFlags BackendFlags; + + /// + /// To be documented. + /// + public Vector2 DisplaySize; + + /// + /// To be documented. + /// + public float DeltaTime; + + /// + /// To be documented. + /// + public float IniSavingRate; + + /// + /// To be documented. + /// + public unsafe byte* IniFilename; + + /// + /// To be documented. + /// + public unsafe byte* LogFilename; + + /// + /// To be documented. + /// + public float MouseDoubleClickTime; + + /// + /// To be documented. + /// + public float MouseDoubleClickMaxDist; + + /// + /// To be documented. + /// + public float MouseDragThreshold; + + /// + /// To be documented. + /// + public float KeyRepeatDelay; + + /// + /// To be documented. + /// + public float KeyRepeatRate; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public unsafe ImFontAtlas* Fonts; + + /// + /// To be documented. + /// + public float FontGlobalScale; + + /// + /// To be documented. + /// + public byte FontAllowUserScaling; + + /// + /// To be documented. + /// + public unsafe ImFont* FontDefault; + + /// + /// To be documented. + /// + public Vector2 DisplayFramebufferScale; + + /// + /// To be documented. + /// + public byte ConfigDockingNoSplit; + + /// + /// To be documented. + /// + public byte ConfigDockingWithShift; + + /// + /// To be documented. + /// + public byte ConfigDockingAlwaysTabBar; + + /// + /// To be documented. + /// + public byte ConfigDockingTransparentPayload; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoAutoMerge; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoTaskBarIcon; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoDecoration; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoDefaultParent; + + /// + /// To be documented. + /// + public byte MouseDrawCursor; + + /// + /// To be documented. + /// + public byte ConfigMacOSXBehaviors; + + /// + /// To be documented. + /// + public byte ConfigInputTrickleEventQueue; + + /// + /// To be documented. + /// + public byte ConfigInputTextCursorBlink; + + /// + /// To be documented. + /// + public byte ConfigDragClickToInputText; + + /// + /// To be documented. + /// + public byte ConfigWindowsResizeFromEdges; + + /// + /// To be documented. + /// + public byte ConfigWindowsMoveFromTitleBarOnly; + + /// + /// To be documented. + /// + public float ConfigMemoryCompactTimer; + + /// + /// To be documented. + /// + public unsafe byte* BackendPlatformName; + + /// + /// To be documented. + /// + public unsafe byte* BackendRendererName; + + /// + /// To be documented. + /// + public unsafe void* BackendPlatformUserData; + + /// + /// To be documented. + /// + public unsafe void* BackendRendererUserData; + + /// + /// To be documented. + /// + public unsafe void* BackendLanguageUserData; + + /// + /// To be documented. + /// + public unsafe void* GetClipboardTextFn; + + /// + /// To be documented. + /// + public unsafe void* SetClipboardTextFn; + + /// + /// To be documented. + /// + public unsafe void* ClipboardUserData; + + /// + /// To be documented. + /// + public unsafe void* SetPlatformImeDataFn; + + /// + /// To be documented. + /// + public unsafe void* UnusedPadding; + + /// + /// To be documented. + /// + public byte WantCaptureMouse; + + /// + /// To be documented. + /// + public byte WantCaptureKeyboard; + + /// + /// To be documented. + /// + public byte WantTextInput; + + /// + /// To be documented. + /// + public byte WantSetMousePos; + + /// + /// To be documented. + /// + public byte WantSaveIniSettings; + + /// + /// To be documented. + /// + public byte NavActive; + + /// + /// To be documented. + /// + public byte NavVisible; + + /// + /// To be documented. + /// + public float Framerate; + + /// + /// To be documented. + /// + public int MetricsRenderVertices; + + /// + /// To be documented. + /// + public int MetricsRenderIndices; + + /// + /// To be documented. + /// + public int MetricsRenderWindows; + + /// + /// To be documented. + /// + public int MetricsActiveWindows; + + /// + /// To be documented. + /// + public int MetricsActiveAllocations; + + /// + /// To be documented. + /// + public Vector2 MouseDelta; + + /// + /// To be documented. + /// + public int KeyMap_0; + public int KeyMap_1; + public int KeyMap_2; + public int KeyMap_3; + public int KeyMap_4; + public int KeyMap_5; + public int KeyMap_6; + public int KeyMap_7; + public int KeyMap_8; + public int KeyMap_9; + public int KeyMap_10; + public int KeyMap_11; + public int KeyMap_12; + public int KeyMap_13; + public int KeyMap_14; + public int KeyMap_15; + public int KeyMap_16; + public int KeyMap_17; + public int KeyMap_18; + public int KeyMap_19; + public int KeyMap_20; + public int KeyMap_21; + public int KeyMap_22; + public int KeyMap_23; + public int KeyMap_24; + public int KeyMap_25; + public int KeyMap_26; + public int KeyMap_27; + public int KeyMap_28; + public int KeyMap_29; + public int KeyMap_30; + public int KeyMap_31; + public int KeyMap_32; + public int KeyMap_33; + public int KeyMap_34; + public int KeyMap_35; + public int KeyMap_36; + public int KeyMap_37; + public int KeyMap_38; + public int KeyMap_39; + public int KeyMap_40; + public int KeyMap_41; + public int KeyMap_42; + public int KeyMap_43; + public int KeyMap_44; + public int KeyMap_45; + public int KeyMap_46; + public int KeyMap_47; + public int KeyMap_48; + public int KeyMap_49; + public int KeyMap_50; + public int KeyMap_51; + public int KeyMap_52; + public int KeyMap_53; + public int KeyMap_54; + public int KeyMap_55; + public int KeyMap_56; + public int KeyMap_57; + public int KeyMap_58; + public int KeyMap_59; + public int KeyMap_60; + public int KeyMap_61; + public int KeyMap_62; + public int KeyMap_63; + public int KeyMap_64; + public int KeyMap_65; + public int KeyMap_66; + public int KeyMap_67; + public int KeyMap_68; + public int KeyMap_69; + public int KeyMap_70; + public int KeyMap_71; + public int KeyMap_72; + public int KeyMap_73; + public int KeyMap_74; + public int KeyMap_75; + public int KeyMap_76; + public int KeyMap_77; + public int KeyMap_78; + public int KeyMap_79; + public int KeyMap_80; + public int KeyMap_81; + public int KeyMap_82; + public int KeyMap_83; + public int KeyMap_84; + public int KeyMap_85; + public int KeyMap_86; + public int KeyMap_87; + public int KeyMap_88; + public int KeyMap_89; + public int KeyMap_90; + public int KeyMap_91; + public int KeyMap_92; + public int KeyMap_93; + public int KeyMap_94; + public int KeyMap_95; + public int KeyMap_96; + public int KeyMap_97; + public int KeyMap_98; + public int KeyMap_99; + public int KeyMap_100; + public int KeyMap_101; + public int KeyMap_102; + public int KeyMap_103; + public int KeyMap_104; + public int KeyMap_105; + public int KeyMap_106; + public int KeyMap_107; + public int KeyMap_108; + public int KeyMap_109; + public int KeyMap_110; + public int KeyMap_111; + public int KeyMap_112; + public int KeyMap_113; + public int KeyMap_114; + public int KeyMap_115; + public int KeyMap_116; + public int KeyMap_117; + public int KeyMap_118; + public int KeyMap_119; + public int KeyMap_120; + public int KeyMap_121; + public int KeyMap_122; + public int KeyMap_123; + public int KeyMap_124; + public int KeyMap_125; + public int KeyMap_126; + public int KeyMap_127; + public int KeyMap_128; + public int KeyMap_129; + public int KeyMap_130; + public int KeyMap_131; + public int KeyMap_132; + public int KeyMap_133; + public int KeyMap_134; + public int KeyMap_135; + public int KeyMap_136; + public int KeyMap_137; + public int KeyMap_138; + public int KeyMap_139; + public int KeyMap_140; + public int KeyMap_141; + public int KeyMap_142; + public int KeyMap_143; + public int KeyMap_144; + public int KeyMap_145; + public int KeyMap_146; + public int KeyMap_147; + public int KeyMap_148; + public int KeyMap_149; + public int KeyMap_150; + public int KeyMap_151; + public int KeyMap_152; + public int KeyMap_153; + public int KeyMap_154; + public int KeyMap_155; + public int KeyMap_156; + public int KeyMap_157; + public int KeyMap_158; + public int KeyMap_159; + public int KeyMap_160; + public int KeyMap_161; + public int KeyMap_162; + public int KeyMap_163; + public int KeyMap_164; + public int KeyMap_165; + public int KeyMap_166; + public int KeyMap_167; + public int KeyMap_168; + public int KeyMap_169; + public int KeyMap_170; + public int KeyMap_171; + public int KeyMap_172; + public int KeyMap_173; + public int KeyMap_174; + public int KeyMap_175; + public int KeyMap_176; + public int KeyMap_177; + public int KeyMap_178; + public int KeyMap_179; + public int KeyMap_180; + public int KeyMap_181; + public int KeyMap_182; + public int KeyMap_183; + public int KeyMap_184; + public int KeyMap_185; + public int KeyMap_186; + public int KeyMap_187; + public int KeyMap_188; + public int KeyMap_189; + public int KeyMap_190; + public int KeyMap_191; + public int KeyMap_192; + public int KeyMap_193; + public int KeyMap_194; + public int KeyMap_195; + public int KeyMap_196; + public int KeyMap_197; + public int KeyMap_198; + public int KeyMap_199; + public int KeyMap_200; + public int KeyMap_201; + public int KeyMap_202; + public int KeyMap_203; + public int KeyMap_204; + public int KeyMap_205; + public int KeyMap_206; + public int KeyMap_207; + public int KeyMap_208; + public int KeyMap_209; + public int KeyMap_210; + public int KeyMap_211; + public int KeyMap_212; + public int KeyMap_213; + public int KeyMap_214; + public int KeyMap_215; + public int KeyMap_216; + public int KeyMap_217; + public int KeyMap_218; + public int KeyMap_219; + public int KeyMap_220; + public int KeyMap_221; + public int KeyMap_222; + public int KeyMap_223; + public int KeyMap_224; + public int KeyMap_225; + public int KeyMap_226; + public int KeyMap_227; + public int KeyMap_228; + public int KeyMap_229; + public int KeyMap_230; + public int KeyMap_231; + public int KeyMap_232; + public int KeyMap_233; + public int KeyMap_234; + public int KeyMap_235; + public int KeyMap_236; + public int KeyMap_237; + public int KeyMap_238; + public int KeyMap_239; + public int KeyMap_240; + public int KeyMap_241; + public int KeyMap_242; + public int KeyMap_243; + public int KeyMap_244; + public int KeyMap_245; + public int KeyMap_246; + public int KeyMap_247; + public int KeyMap_248; + public int KeyMap_249; + public int KeyMap_250; + public int KeyMap_251; + public int KeyMap_252; + public int KeyMap_253; + public int KeyMap_254; + public int KeyMap_255; + public int KeyMap_256; + public int KeyMap_257; + public int KeyMap_258; + public int KeyMap_259; + public int KeyMap_260; + public int KeyMap_261; + public int KeyMap_262; + public int KeyMap_263; + public int KeyMap_264; + public int KeyMap_265; + public int KeyMap_266; + public int KeyMap_267; + public int KeyMap_268; + public int KeyMap_269; + public int KeyMap_270; + public int KeyMap_271; + public int KeyMap_272; + public int KeyMap_273; + public int KeyMap_274; + public int KeyMap_275; + public int KeyMap_276; + public int KeyMap_277; + public int KeyMap_278; + public int KeyMap_279; + public int KeyMap_280; + public int KeyMap_281; + public int KeyMap_282; + public int KeyMap_283; + public int KeyMap_284; + public int KeyMap_285; + public int KeyMap_286; + public int KeyMap_287; + public int KeyMap_288; + public int KeyMap_289; + public int KeyMap_290; + public int KeyMap_291; + public int KeyMap_292; + public int KeyMap_293; + public int KeyMap_294; + public int KeyMap_295; + public int KeyMap_296; + public int KeyMap_297; + public int KeyMap_298; + public int KeyMap_299; + public int KeyMap_300; + public int KeyMap_301; + public int KeyMap_302; + public int KeyMap_303; + public int KeyMap_304; + public int KeyMap_305; + public int KeyMap_306; + public int KeyMap_307; + public int KeyMap_308; + public int KeyMap_309; + public int KeyMap_310; + public int KeyMap_311; + public int KeyMap_312; + public int KeyMap_313; + public int KeyMap_314; + public int KeyMap_315; + public int KeyMap_316; + public int KeyMap_317; + public int KeyMap_318; + public int KeyMap_319; + public int KeyMap_320; + public int KeyMap_321; + public int KeyMap_322; + public int KeyMap_323; + public int KeyMap_324; + public int KeyMap_325; + public int KeyMap_326; + public int KeyMap_327; + public int KeyMap_328; + public int KeyMap_329; + public int KeyMap_330; + public int KeyMap_331; + public int KeyMap_332; + public int KeyMap_333; + public int KeyMap_334; + public int KeyMap_335; + public int KeyMap_336; + public int KeyMap_337; + public int KeyMap_338; + public int KeyMap_339; + public int KeyMap_340; + public int KeyMap_341; + public int KeyMap_342; + public int KeyMap_343; + public int KeyMap_344; + public int KeyMap_345; + public int KeyMap_346; + public int KeyMap_347; + public int KeyMap_348; + public int KeyMap_349; + public int KeyMap_350; + public int KeyMap_351; + public int KeyMap_352; + public int KeyMap_353; + public int KeyMap_354; + public int KeyMap_355; + public int KeyMap_356; + public int KeyMap_357; + public int KeyMap_358; + public int KeyMap_359; + public int KeyMap_360; + public int KeyMap_361; + public int KeyMap_362; + public int KeyMap_363; + public int KeyMap_364; + public int KeyMap_365; + public int KeyMap_366; + public int KeyMap_367; + public int KeyMap_368; + public int KeyMap_369; + public int KeyMap_370; + public int KeyMap_371; + public int KeyMap_372; + public int KeyMap_373; + public int KeyMap_374; + public int KeyMap_375; + public int KeyMap_376; + public int KeyMap_377; + public int KeyMap_378; + public int KeyMap_379; + public int KeyMap_380; + public int KeyMap_381; + public int KeyMap_382; + public int KeyMap_383; + public int KeyMap_384; + public int KeyMap_385; + public int KeyMap_386; + public int KeyMap_387; + public int KeyMap_388; + public int KeyMap_389; + public int KeyMap_390; + public int KeyMap_391; + public int KeyMap_392; + public int KeyMap_393; + public int KeyMap_394; + public int KeyMap_395; + public int KeyMap_396; + public int KeyMap_397; + public int KeyMap_398; + public int KeyMap_399; + public int KeyMap_400; + public int KeyMap_401; + public int KeyMap_402; + public int KeyMap_403; + public int KeyMap_404; + public int KeyMap_405; + public int KeyMap_406; + public int KeyMap_407; + public int KeyMap_408; + public int KeyMap_409; + public int KeyMap_410; + public int KeyMap_411; + public int KeyMap_412; + public int KeyMap_413; + public int KeyMap_414; + public int KeyMap_415; + public int KeyMap_416; + public int KeyMap_417; + public int KeyMap_418; + public int KeyMap_419; + public int KeyMap_420; + public int KeyMap_421; + public int KeyMap_422; + public int KeyMap_423; + public int KeyMap_424; + public int KeyMap_425; + public int KeyMap_426; + public int KeyMap_427; + public int KeyMap_428; + public int KeyMap_429; + public int KeyMap_430; + public int KeyMap_431; + public int KeyMap_432; + public int KeyMap_433; + public int KeyMap_434; + public int KeyMap_435; + public int KeyMap_436; + public int KeyMap_437; + public int KeyMap_438; + public int KeyMap_439; + public int KeyMap_440; + public int KeyMap_441; + public int KeyMap_442; + public int KeyMap_443; + public int KeyMap_444; + public int KeyMap_445; + public int KeyMap_446; + public int KeyMap_447; + public int KeyMap_448; + public int KeyMap_449; + public int KeyMap_450; + public int KeyMap_451; + public int KeyMap_452; + public int KeyMap_453; + public int KeyMap_454; + public int KeyMap_455; + public int KeyMap_456; + public int KeyMap_457; + public int KeyMap_458; + public int KeyMap_459; + public int KeyMap_460; + public int KeyMap_461; + public int KeyMap_462; + public int KeyMap_463; + public int KeyMap_464; + public int KeyMap_465; + public int KeyMap_466; + public int KeyMap_467; + public int KeyMap_468; + public int KeyMap_469; + public int KeyMap_470; + public int KeyMap_471; + public int KeyMap_472; + public int KeyMap_473; + public int KeyMap_474; + public int KeyMap_475; + public int KeyMap_476; + public int KeyMap_477; + public int KeyMap_478; + public int KeyMap_479; + public int KeyMap_480; + public int KeyMap_481; + public int KeyMap_482; + public int KeyMap_483; + public int KeyMap_484; + public int KeyMap_485; + public int KeyMap_486; + public int KeyMap_487; + public int KeyMap_488; + public int KeyMap_489; + public int KeyMap_490; + public int KeyMap_491; + public int KeyMap_492; + public int KeyMap_493; + public int KeyMap_494; + public int KeyMap_495; + public int KeyMap_496; + public int KeyMap_497; + public int KeyMap_498; + public int KeyMap_499; + public int KeyMap_500; + public int KeyMap_501; + public int KeyMap_502; + public int KeyMap_503; + public int KeyMap_504; + public int KeyMap_505; + public int KeyMap_506; + public int KeyMap_507; + public int KeyMap_508; + public int KeyMap_509; + public int KeyMap_510; + public int KeyMap_511; + public int KeyMap_512; + public int KeyMap_513; + public int KeyMap_514; + public int KeyMap_515; + public int KeyMap_516; + public int KeyMap_517; + public int KeyMap_518; + public int KeyMap_519; + public int KeyMap_520; + public int KeyMap_521; + public int KeyMap_522; + public int KeyMap_523; + public int KeyMap_524; + public int KeyMap_525; + public int KeyMap_526; + public int KeyMap_527; + public int KeyMap_528; + public int KeyMap_529; + public int KeyMap_530; + public int KeyMap_531; + public int KeyMap_532; + public int KeyMap_533; + public int KeyMap_534; + public int KeyMap_535; + public int KeyMap_536; + public int KeyMap_537; + public int KeyMap_538; + public int KeyMap_539; + public int KeyMap_540; + public int KeyMap_541; + public int KeyMap_542; + public int KeyMap_543; + public int KeyMap_544; + public int KeyMap_545; + public int KeyMap_546; + public int KeyMap_547; + public int KeyMap_548; + public int KeyMap_549; + public int KeyMap_550; + public int KeyMap_551; + public int KeyMap_552; + public int KeyMap_553; + public int KeyMap_554; + public int KeyMap_555; + public int KeyMap_556; + public int KeyMap_557; + public int KeyMap_558; + public int KeyMap_559; + public int KeyMap_560; + public int KeyMap_561; + public int KeyMap_562; + public int KeyMap_563; + public int KeyMap_564; + public int KeyMap_565; + public int KeyMap_566; + public int KeyMap_567; + public int KeyMap_568; + public int KeyMap_569; + public int KeyMap_570; + public int KeyMap_571; + public int KeyMap_572; + public int KeyMap_573; + public int KeyMap_574; + public int KeyMap_575; + public int KeyMap_576; + public int KeyMap_577; + public int KeyMap_578; + public int KeyMap_579; + public int KeyMap_580; + public int KeyMap_581; + public int KeyMap_582; + public int KeyMap_583; + public int KeyMap_584; + public int KeyMap_585; + public int KeyMap_586; + public int KeyMap_587; + public int KeyMap_588; + public int KeyMap_589; + public int KeyMap_590; + public int KeyMap_591; + public int KeyMap_592; + public int KeyMap_593; + public int KeyMap_594; + public int KeyMap_595; + public int KeyMap_596; + public int KeyMap_597; + public int KeyMap_598; + public int KeyMap_599; + public int KeyMap_600; + public int KeyMap_601; + public int KeyMap_602; + public int KeyMap_603; + public int KeyMap_604; + public int KeyMap_605; + public int KeyMap_606; + public int KeyMap_607; + public int KeyMap_608; + public int KeyMap_609; + public int KeyMap_610; + public int KeyMap_611; + public int KeyMap_612; + public int KeyMap_613; + public int KeyMap_614; + public int KeyMap_615; + public int KeyMap_616; + public int KeyMap_617; + public int KeyMap_618; + public int KeyMap_619; + public int KeyMap_620; + public int KeyMap_621; + public int KeyMap_622; + public int KeyMap_623; + public int KeyMap_624; + public int KeyMap_625; + public int KeyMap_626; + public int KeyMap_627; + public int KeyMap_628; + public int KeyMap_629; + public int KeyMap_630; + public int KeyMap_631; + public int KeyMap_632; + public int KeyMap_633; + public int KeyMap_634; + public int KeyMap_635; + public int KeyMap_636; + public int KeyMap_637; + public int KeyMap_638; + public int KeyMap_639; + public int KeyMap_640; + public int KeyMap_641; + public int KeyMap_642; + public int KeyMap_643; + public int KeyMap_644; + + /// + /// To be documented. + /// + public bool KeysDown_0; + public bool KeysDown_1; + public bool KeysDown_2; + public bool KeysDown_3; + public bool KeysDown_4; + public bool KeysDown_5; + public bool KeysDown_6; + public bool KeysDown_7; + public bool KeysDown_8; + public bool KeysDown_9; + public bool KeysDown_10; + public bool KeysDown_11; + public bool KeysDown_12; + public bool KeysDown_13; + public bool KeysDown_14; + public bool KeysDown_15; + public bool KeysDown_16; + public bool KeysDown_17; + public bool KeysDown_18; + public bool KeysDown_19; + public bool KeysDown_20; + public bool KeysDown_21; + public bool KeysDown_22; + public bool KeysDown_23; + public bool KeysDown_24; + public bool KeysDown_25; + public bool KeysDown_26; + public bool KeysDown_27; + public bool KeysDown_28; + public bool KeysDown_29; + public bool KeysDown_30; + public bool KeysDown_31; + public bool KeysDown_32; + public bool KeysDown_33; + public bool KeysDown_34; + public bool KeysDown_35; + public bool KeysDown_36; + public bool KeysDown_37; + public bool KeysDown_38; + public bool KeysDown_39; + public bool KeysDown_40; + public bool KeysDown_41; + public bool KeysDown_42; + public bool KeysDown_43; + public bool KeysDown_44; + public bool KeysDown_45; + public bool KeysDown_46; + public bool KeysDown_47; + public bool KeysDown_48; + public bool KeysDown_49; + public bool KeysDown_50; + public bool KeysDown_51; + public bool KeysDown_52; + public bool KeysDown_53; + public bool KeysDown_54; + public bool KeysDown_55; + public bool KeysDown_56; + public bool KeysDown_57; + public bool KeysDown_58; + public bool KeysDown_59; + public bool KeysDown_60; + public bool KeysDown_61; + public bool KeysDown_62; + public bool KeysDown_63; + public bool KeysDown_64; + public bool KeysDown_65; + public bool KeysDown_66; + public bool KeysDown_67; + public bool KeysDown_68; + public bool KeysDown_69; + public bool KeysDown_70; + public bool KeysDown_71; + public bool KeysDown_72; + public bool KeysDown_73; + public bool KeysDown_74; + public bool KeysDown_75; + public bool KeysDown_76; + public bool KeysDown_77; + public bool KeysDown_78; + public bool KeysDown_79; + public bool KeysDown_80; + public bool KeysDown_81; + public bool KeysDown_82; + public bool KeysDown_83; + public bool KeysDown_84; + public bool KeysDown_85; + public bool KeysDown_86; + public bool KeysDown_87; + public bool KeysDown_88; + public bool KeysDown_89; + public bool KeysDown_90; + public bool KeysDown_91; + public bool KeysDown_92; + public bool KeysDown_93; + public bool KeysDown_94; + public bool KeysDown_95; + public bool KeysDown_96; + public bool KeysDown_97; + public bool KeysDown_98; + public bool KeysDown_99; + public bool KeysDown_100; + public bool KeysDown_101; + public bool KeysDown_102; + public bool KeysDown_103; + public bool KeysDown_104; + public bool KeysDown_105; + public bool KeysDown_106; + public bool KeysDown_107; + public bool KeysDown_108; + public bool KeysDown_109; + public bool KeysDown_110; + public bool KeysDown_111; + public bool KeysDown_112; + public bool KeysDown_113; + public bool KeysDown_114; + public bool KeysDown_115; + public bool KeysDown_116; + public bool KeysDown_117; + public bool KeysDown_118; + public bool KeysDown_119; + public bool KeysDown_120; + public bool KeysDown_121; + public bool KeysDown_122; + public bool KeysDown_123; + public bool KeysDown_124; + public bool KeysDown_125; + public bool KeysDown_126; + public bool KeysDown_127; + public bool KeysDown_128; + public bool KeysDown_129; + public bool KeysDown_130; + public bool KeysDown_131; + public bool KeysDown_132; + public bool KeysDown_133; + public bool KeysDown_134; + public bool KeysDown_135; + public bool KeysDown_136; + public bool KeysDown_137; + public bool KeysDown_138; + public bool KeysDown_139; + public bool KeysDown_140; + public bool KeysDown_141; + public bool KeysDown_142; + public bool KeysDown_143; + public bool KeysDown_144; + public bool KeysDown_145; + public bool KeysDown_146; + public bool KeysDown_147; + public bool KeysDown_148; + public bool KeysDown_149; + public bool KeysDown_150; + public bool KeysDown_151; + public bool KeysDown_152; + public bool KeysDown_153; + public bool KeysDown_154; + public bool KeysDown_155; + public bool KeysDown_156; + public bool KeysDown_157; + public bool KeysDown_158; + public bool KeysDown_159; + public bool KeysDown_160; + public bool KeysDown_161; + public bool KeysDown_162; + public bool KeysDown_163; + public bool KeysDown_164; + public bool KeysDown_165; + public bool KeysDown_166; + public bool KeysDown_167; + public bool KeysDown_168; + public bool KeysDown_169; + public bool KeysDown_170; + public bool KeysDown_171; + public bool KeysDown_172; + public bool KeysDown_173; + public bool KeysDown_174; + public bool KeysDown_175; + public bool KeysDown_176; + public bool KeysDown_177; + public bool KeysDown_178; + public bool KeysDown_179; + public bool KeysDown_180; + public bool KeysDown_181; + public bool KeysDown_182; + public bool KeysDown_183; + public bool KeysDown_184; + public bool KeysDown_185; + public bool KeysDown_186; + public bool KeysDown_187; + public bool KeysDown_188; + public bool KeysDown_189; + public bool KeysDown_190; + public bool KeysDown_191; + public bool KeysDown_192; + public bool KeysDown_193; + public bool KeysDown_194; + public bool KeysDown_195; + public bool KeysDown_196; + public bool KeysDown_197; + public bool KeysDown_198; + public bool KeysDown_199; + public bool KeysDown_200; + public bool KeysDown_201; + public bool KeysDown_202; + public bool KeysDown_203; + public bool KeysDown_204; + public bool KeysDown_205; + public bool KeysDown_206; + public bool KeysDown_207; + public bool KeysDown_208; + public bool KeysDown_209; + public bool KeysDown_210; + public bool KeysDown_211; + public bool KeysDown_212; + public bool KeysDown_213; + public bool KeysDown_214; + public bool KeysDown_215; + public bool KeysDown_216; + public bool KeysDown_217; + public bool KeysDown_218; + public bool KeysDown_219; + public bool KeysDown_220; + public bool KeysDown_221; + public bool KeysDown_222; + public bool KeysDown_223; + public bool KeysDown_224; + public bool KeysDown_225; + public bool KeysDown_226; + public bool KeysDown_227; + public bool KeysDown_228; + public bool KeysDown_229; + public bool KeysDown_230; + public bool KeysDown_231; + public bool KeysDown_232; + public bool KeysDown_233; + public bool KeysDown_234; + public bool KeysDown_235; + public bool KeysDown_236; + public bool KeysDown_237; + public bool KeysDown_238; + public bool KeysDown_239; + public bool KeysDown_240; + public bool KeysDown_241; + public bool KeysDown_242; + public bool KeysDown_243; + public bool KeysDown_244; + public bool KeysDown_245; + public bool KeysDown_246; + public bool KeysDown_247; + public bool KeysDown_248; + public bool KeysDown_249; + public bool KeysDown_250; + public bool KeysDown_251; + public bool KeysDown_252; + public bool KeysDown_253; + public bool KeysDown_254; + public bool KeysDown_255; + public bool KeysDown_256; + public bool KeysDown_257; + public bool KeysDown_258; + public bool KeysDown_259; + public bool KeysDown_260; + public bool KeysDown_261; + public bool KeysDown_262; + public bool KeysDown_263; + public bool KeysDown_264; + public bool KeysDown_265; + public bool KeysDown_266; + public bool KeysDown_267; + public bool KeysDown_268; + public bool KeysDown_269; + public bool KeysDown_270; + public bool KeysDown_271; + public bool KeysDown_272; + public bool KeysDown_273; + public bool KeysDown_274; + public bool KeysDown_275; + public bool KeysDown_276; + public bool KeysDown_277; + public bool KeysDown_278; + public bool KeysDown_279; + public bool KeysDown_280; + public bool KeysDown_281; + public bool KeysDown_282; + public bool KeysDown_283; + public bool KeysDown_284; + public bool KeysDown_285; + public bool KeysDown_286; + public bool KeysDown_287; + public bool KeysDown_288; + public bool KeysDown_289; + public bool KeysDown_290; + public bool KeysDown_291; + public bool KeysDown_292; + public bool KeysDown_293; + public bool KeysDown_294; + public bool KeysDown_295; + public bool KeysDown_296; + public bool KeysDown_297; + public bool KeysDown_298; + public bool KeysDown_299; + public bool KeysDown_300; + public bool KeysDown_301; + public bool KeysDown_302; + public bool KeysDown_303; + public bool KeysDown_304; + public bool KeysDown_305; + public bool KeysDown_306; + public bool KeysDown_307; + public bool KeysDown_308; + public bool KeysDown_309; + public bool KeysDown_310; + public bool KeysDown_311; + public bool KeysDown_312; + public bool KeysDown_313; + public bool KeysDown_314; + public bool KeysDown_315; + public bool KeysDown_316; + public bool KeysDown_317; + public bool KeysDown_318; + public bool KeysDown_319; + public bool KeysDown_320; + public bool KeysDown_321; + public bool KeysDown_322; + public bool KeysDown_323; + public bool KeysDown_324; + public bool KeysDown_325; + public bool KeysDown_326; + public bool KeysDown_327; + public bool KeysDown_328; + public bool KeysDown_329; + public bool KeysDown_330; + public bool KeysDown_331; + public bool KeysDown_332; + public bool KeysDown_333; + public bool KeysDown_334; + public bool KeysDown_335; + public bool KeysDown_336; + public bool KeysDown_337; + public bool KeysDown_338; + public bool KeysDown_339; + public bool KeysDown_340; + public bool KeysDown_341; + public bool KeysDown_342; + public bool KeysDown_343; + public bool KeysDown_344; + public bool KeysDown_345; + public bool KeysDown_346; + public bool KeysDown_347; + public bool KeysDown_348; + public bool KeysDown_349; + public bool KeysDown_350; + public bool KeysDown_351; + public bool KeysDown_352; + public bool KeysDown_353; + public bool KeysDown_354; + public bool KeysDown_355; + public bool KeysDown_356; + public bool KeysDown_357; + public bool KeysDown_358; + public bool KeysDown_359; + public bool KeysDown_360; + public bool KeysDown_361; + public bool KeysDown_362; + public bool KeysDown_363; + public bool KeysDown_364; + public bool KeysDown_365; + public bool KeysDown_366; + public bool KeysDown_367; + public bool KeysDown_368; + public bool KeysDown_369; + public bool KeysDown_370; + public bool KeysDown_371; + public bool KeysDown_372; + public bool KeysDown_373; + public bool KeysDown_374; + public bool KeysDown_375; + public bool KeysDown_376; + public bool KeysDown_377; + public bool KeysDown_378; + public bool KeysDown_379; + public bool KeysDown_380; + public bool KeysDown_381; + public bool KeysDown_382; + public bool KeysDown_383; + public bool KeysDown_384; + public bool KeysDown_385; + public bool KeysDown_386; + public bool KeysDown_387; + public bool KeysDown_388; + public bool KeysDown_389; + public bool KeysDown_390; + public bool KeysDown_391; + public bool KeysDown_392; + public bool KeysDown_393; + public bool KeysDown_394; + public bool KeysDown_395; + public bool KeysDown_396; + public bool KeysDown_397; + public bool KeysDown_398; + public bool KeysDown_399; + public bool KeysDown_400; + public bool KeysDown_401; + public bool KeysDown_402; + public bool KeysDown_403; + public bool KeysDown_404; + public bool KeysDown_405; + public bool KeysDown_406; + public bool KeysDown_407; + public bool KeysDown_408; + public bool KeysDown_409; + public bool KeysDown_410; + public bool KeysDown_411; + public bool KeysDown_412; + public bool KeysDown_413; + public bool KeysDown_414; + public bool KeysDown_415; + public bool KeysDown_416; + public bool KeysDown_417; + public bool KeysDown_418; + public bool KeysDown_419; + public bool KeysDown_420; + public bool KeysDown_421; + public bool KeysDown_422; + public bool KeysDown_423; + public bool KeysDown_424; + public bool KeysDown_425; + public bool KeysDown_426; + public bool KeysDown_427; + public bool KeysDown_428; + public bool KeysDown_429; + public bool KeysDown_430; + public bool KeysDown_431; + public bool KeysDown_432; + public bool KeysDown_433; + public bool KeysDown_434; + public bool KeysDown_435; + public bool KeysDown_436; + public bool KeysDown_437; + public bool KeysDown_438; + public bool KeysDown_439; + public bool KeysDown_440; + public bool KeysDown_441; + public bool KeysDown_442; + public bool KeysDown_443; + public bool KeysDown_444; + public bool KeysDown_445; + public bool KeysDown_446; + public bool KeysDown_447; + public bool KeysDown_448; + public bool KeysDown_449; + public bool KeysDown_450; + public bool KeysDown_451; + public bool KeysDown_452; + public bool KeysDown_453; + public bool KeysDown_454; + public bool KeysDown_455; + public bool KeysDown_456; + public bool KeysDown_457; + public bool KeysDown_458; + public bool KeysDown_459; + public bool KeysDown_460; + public bool KeysDown_461; + public bool KeysDown_462; + public bool KeysDown_463; + public bool KeysDown_464; + public bool KeysDown_465; + public bool KeysDown_466; + public bool KeysDown_467; + public bool KeysDown_468; + public bool KeysDown_469; + public bool KeysDown_470; + public bool KeysDown_471; + public bool KeysDown_472; + public bool KeysDown_473; + public bool KeysDown_474; + public bool KeysDown_475; + public bool KeysDown_476; + public bool KeysDown_477; + public bool KeysDown_478; + public bool KeysDown_479; + public bool KeysDown_480; + public bool KeysDown_481; + public bool KeysDown_482; + public bool KeysDown_483; + public bool KeysDown_484; + public bool KeysDown_485; + public bool KeysDown_486; + public bool KeysDown_487; + public bool KeysDown_488; + public bool KeysDown_489; + public bool KeysDown_490; + public bool KeysDown_491; + public bool KeysDown_492; + public bool KeysDown_493; + public bool KeysDown_494; + public bool KeysDown_495; + public bool KeysDown_496; + public bool KeysDown_497; + public bool KeysDown_498; + public bool KeysDown_499; + public bool KeysDown_500; + public bool KeysDown_501; + public bool KeysDown_502; + public bool KeysDown_503; + public bool KeysDown_504; + public bool KeysDown_505; + public bool KeysDown_506; + public bool KeysDown_507; + public bool KeysDown_508; + public bool KeysDown_509; + public bool KeysDown_510; + public bool KeysDown_511; + public bool KeysDown_512; + public bool KeysDown_513; + public bool KeysDown_514; + public bool KeysDown_515; + public bool KeysDown_516; + public bool KeysDown_517; + public bool KeysDown_518; + public bool KeysDown_519; + public bool KeysDown_520; + public bool KeysDown_521; + public bool KeysDown_522; + public bool KeysDown_523; + public bool KeysDown_524; + public bool KeysDown_525; + public bool KeysDown_526; + public bool KeysDown_527; + public bool KeysDown_528; + public bool KeysDown_529; + public bool KeysDown_530; + public bool KeysDown_531; + public bool KeysDown_532; + public bool KeysDown_533; + public bool KeysDown_534; + public bool KeysDown_535; + public bool KeysDown_536; + public bool KeysDown_537; + public bool KeysDown_538; + public bool KeysDown_539; + public bool KeysDown_540; + public bool KeysDown_541; + public bool KeysDown_542; + public bool KeysDown_543; + public bool KeysDown_544; + public bool KeysDown_545; + public bool KeysDown_546; + public bool KeysDown_547; + public bool KeysDown_548; + public bool KeysDown_549; + public bool KeysDown_550; + public bool KeysDown_551; + public bool KeysDown_552; + public bool KeysDown_553; + public bool KeysDown_554; + public bool KeysDown_555; + public bool KeysDown_556; + public bool KeysDown_557; + public bool KeysDown_558; + public bool KeysDown_559; + public bool KeysDown_560; + public bool KeysDown_561; + public bool KeysDown_562; + public bool KeysDown_563; + public bool KeysDown_564; + public bool KeysDown_565; + public bool KeysDown_566; + public bool KeysDown_567; + public bool KeysDown_568; + public bool KeysDown_569; + public bool KeysDown_570; + public bool KeysDown_571; + public bool KeysDown_572; + public bool KeysDown_573; + public bool KeysDown_574; + public bool KeysDown_575; + public bool KeysDown_576; + public bool KeysDown_577; + public bool KeysDown_578; + public bool KeysDown_579; + public bool KeysDown_580; + public bool KeysDown_581; + public bool KeysDown_582; + public bool KeysDown_583; + public bool KeysDown_584; + public bool KeysDown_585; + public bool KeysDown_586; + public bool KeysDown_587; + public bool KeysDown_588; + public bool KeysDown_589; + public bool KeysDown_590; + public bool KeysDown_591; + public bool KeysDown_592; + public bool KeysDown_593; + public bool KeysDown_594; + public bool KeysDown_595; + public bool KeysDown_596; + public bool KeysDown_597; + public bool KeysDown_598; + public bool KeysDown_599; + public bool KeysDown_600; + public bool KeysDown_601; + public bool KeysDown_602; + public bool KeysDown_603; + public bool KeysDown_604; + public bool KeysDown_605; + public bool KeysDown_606; + public bool KeysDown_607; + public bool KeysDown_608; + public bool KeysDown_609; + public bool KeysDown_610; + public bool KeysDown_611; + public bool KeysDown_612; + public bool KeysDown_613; + public bool KeysDown_614; + public bool KeysDown_615; + public bool KeysDown_616; + public bool KeysDown_617; + public bool KeysDown_618; + public bool KeysDown_619; + public bool KeysDown_620; + public bool KeysDown_621; + public bool KeysDown_622; + public bool KeysDown_623; + public bool KeysDown_624; + public bool KeysDown_625; + public bool KeysDown_626; + public bool KeysDown_627; + public bool KeysDown_628; + public bool KeysDown_629; + public bool KeysDown_630; + public bool KeysDown_631; + public bool KeysDown_632; + public bool KeysDown_633; + public bool KeysDown_634; + public bool KeysDown_635; + public bool KeysDown_636; + public bool KeysDown_637; + public bool KeysDown_638; + public bool KeysDown_639; + public bool KeysDown_640; + public bool KeysDown_641; + public bool KeysDown_642; + public bool KeysDown_643; + public bool KeysDown_644; + + /// + /// To be documented. + /// + public Vector2 MousePos; + + /// + /// To be documented. + /// + public bool MouseDown_0; + public bool MouseDown_1; + public bool MouseDown_2; + public bool MouseDown_3; + public bool MouseDown_4; + + /// + /// To be documented. + /// + public float MouseWheel; + + /// + /// To be documented. + /// + public float MouseWheelH; + + /// + /// To be documented. + /// + public uint MouseHoveredViewport; + + /// + /// To be documented. + /// + public byte KeyCtrl; + + /// + /// To be documented. + /// + public byte KeyShift; + + /// + /// To be documented. + /// + public byte KeyAlt; + + /// + /// To be documented. + /// + public byte KeySuper; + + /// + /// To be documented. + /// + public float NavInputs_0; + public float NavInputs_1; + public float NavInputs_2; + public float NavInputs_3; + public float NavInputs_4; + public float NavInputs_5; + public float NavInputs_6; + public float NavInputs_7; + public float NavInputs_8; + public float NavInputs_9; + public float NavInputs_10; + public float NavInputs_11; + public float NavInputs_12; + public float NavInputs_13; + public float NavInputs_14; + public float NavInputs_15; + public float NavInputs_16; + public float NavInputs_17; + public float NavInputs_18; + public float NavInputs_19; + public float NavInputs_20; + + /// + /// To be documented. + /// + public ImGuiModFlags KeyMods; + + /// + /// To be documented. + /// + public ImGuiKeyData KeysData_0; + public ImGuiKeyData KeysData_1; + public ImGuiKeyData KeysData_2; + public ImGuiKeyData KeysData_3; + public ImGuiKeyData KeysData_4; + public ImGuiKeyData KeysData_5; + public ImGuiKeyData KeysData_6; + public ImGuiKeyData KeysData_7; + public ImGuiKeyData KeysData_8; + public ImGuiKeyData KeysData_9; + public ImGuiKeyData KeysData_10; + public ImGuiKeyData KeysData_11; + public ImGuiKeyData KeysData_12; + public ImGuiKeyData KeysData_13; + public ImGuiKeyData KeysData_14; + public ImGuiKeyData KeysData_15; + public ImGuiKeyData KeysData_16; + public ImGuiKeyData KeysData_17; + public ImGuiKeyData KeysData_18; + public ImGuiKeyData KeysData_19; + public ImGuiKeyData KeysData_20; + public ImGuiKeyData KeysData_21; + public ImGuiKeyData KeysData_22; + public ImGuiKeyData KeysData_23; + public ImGuiKeyData KeysData_24; + public ImGuiKeyData KeysData_25; + public ImGuiKeyData KeysData_26; + public ImGuiKeyData KeysData_27; + public ImGuiKeyData KeysData_28; + public ImGuiKeyData KeysData_29; + public ImGuiKeyData KeysData_30; + public ImGuiKeyData KeysData_31; + public ImGuiKeyData KeysData_32; + public ImGuiKeyData KeysData_33; + public ImGuiKeyData KeysData_34; + public ImGuiKeyData KeysData_35; + public ImGuiKeyData KeysData_36; + public ImGuiKeyData KeysData_37; + public ImGuiKeyData KeysData_38; + public ImGuiKeyData KeysData_39; + public ImGuiKeyData KeysData_40; + public ImGuiKeyData KeysData_41; + public ImGuiKeyData KeysData_42; + public ImGuiKeyData KeysData_43; + public ImGuiKeyData KeysData_44; + public ImGuiKeyData KeysData_45; + public ImGuiKeyData KeysData_46; + public ImGuiKeyData KeysData_47; + public ImGuiKeyData KeysData_48; + public ImGuiKeyData KeysData_49; + public ImGuiKeyData KeysData_50; + public ImGuiKeyData KeysData_51; + public ImGuiKeyData KeysData_52; + public ImGuiKeyData KeysData_53; + public ImGuiKeyData KeysData_54; + public ImGuiKeyData KeysData_55; + public ImGuiKeyData KeysData_56; + public ImGuiKeyData KeysData_57; + public ImGuiKeyData KeysData_58; + public ImGuiKeyData KeysData_59; + public ImGuiKeyData KeysData_60; + public ImGuiKeyData KeysData_61; + public ImGuiKeyData KeysData_62; + public ImGuiKeyData KeysData_63; + public ImGuiKeyData KeysData_64; + public ImGuiKeyData KeysData_65; + public ImGuiKeyData KeysData_66; + public ImGuiKeyData KeysData_67; + public ImGuiKeyData KeysData_68; + public ImGuiKeyData KeysData_69; + public ImGuiKeyData KeysData_70; + public ImGuiKeyData KeysData_71; + public ImGuiKeyData KeysData_72; + public ImGuiKeyData KeysData_73; + public ImGuiKeyData KeysData_74; + public ImGuiKeyData KeysData_75; + public ImGuiKeyData KeysData_76; + public ImGuiKeyData KeysData_77; + public ImGuiKeyData KeysData_78; + public ImGuiKeyData KeysData_79; + public ImGuiKeyData KeysData_80; + public ImGuiKeyData KeysData_81; + public ImGuiKeyData KeysData_82; + public ImGuiKeyData KeysData_83; + public ImGuiKeyData KeysData_84; + public ImGuiKeyData KeysData_85; + public ImGuiKeyData KeysData_86; + public ImGuiKeyData KeysData_87; + public ImGuiKeyData KeysData_88; + public ImGuiKeyData KeysData_89; + public ImGuiKeyData KeysData_90; + public ImGuiKeyData KeysData_91; + public ImGuiKeyData KeysData_92; + public ImGuiKeyData KeysData_93; + public ImGuiKeyData KeysData_94; + public ImGuiKeyData KeysData_95; + public ImGuiKeyData KeysData_96; + public ImGuiKeyData KeysData_97; + public ImGuiKeyData KeysData_98; + public ImGuiKeyData KeysData_99; + public ImGuiKeyData KeysData_100; + public ImGuiKeyData KeysData_101; + public ImGuiKeyData KeysData_102; + public ImGuiKeyData KeysData_103; + public ImGuiKeyData KeysData_104; + public ImGuiKeyData KeysData_105; + public ImGuiKeyData KeysData_106; + public ImGuiKeyData KeysData_107; + public ImGuiKeyData KeysData_108; + public ImGuiKeyData KeysData_109; + public ImGuiKeyData KeysData_110; + public ImGuiKeyData KeysData_111; + public ImGuiKeyData KeysData_112; + public ImGuiKeyData KeysData_113; + public ImGuiKeyData KeysData_114; + public ImGuiKeyData KeysData_115; + public ImGuiKeyData KeysData_116; + public ImGuiKeyData KeysData_117; + public ImGuiKeyData KeysData_118; + public ImGuiKeyData KeysData_119; + public ImGuiKeyData KeysData_120; + public ImGuiKeyData KeysData_121; + public ImGuiKeyData KeysData_122; + public ImGuiKeyData KeysData_123; + public ImGuiKeyData KeysData_124; + public ImGuiKeyData KeysData_125; + public ImGuiKeyData KeysData_126; + public ImGuiKeyData KeysData_127; + public ImGuiKeyData KeysData_128; + public ImGuiKeyData KeysData_129; + public ImGuiKeyData KeysData_130; + public ImGuiKeyData KeysData_131; + public ImGuiKeyData KeysData_132; + public ImGuiKeyData KeysData_133; + public ImGuiKeyData KeysData_134; + public ImGuiKeyData KeysData_135; + public ImGuiKeyData KeysData_136; + public ImGuiKeyData KeysData_137; + public ImGuiKeyData KeysData_138; + public ImGuiKeyData KeysData_139; + public ImGuiKeyData KeysData_140; + public ImGuiKeyData KeysData_141; + public ImGuiKeyData KeysData_142; + public ImGuiKeyData KeysData_143; + public ImGuiKeyData KeysData_144; + public ImGuiKeyData KeysData_145; + public ImGuiKeyData KeysData_146; + public ImGuiKeyData KeysData_147; + public ImGuiKeyData KeysData_148; + public ImGuiKeyData KeysData_149; + public ImGuiKeyData KeysData_150; + public ImGuiKeyData KeysData_151; + public ImGuiKeyData KeysData_152; + public ImGuiKeyData KeysData_153; + public ImGuiKeyData KeysData_154; + public ImGuiKeyData KeysData_155; + public ImGuiKeyData KeysData_156; + public ImGuiKeyData KeysData_157; + public ImGuiKeyData KeysData_158; + public ImGuiKeyData KeysData_159; + public ImGuiKeyData KeysData_160; + public ImGuiKeyData KeysData_161; + public ImGuiKeyData KeysData_162; + public ImGuiKeyData KeysData_163; + public ImGuiKeyData KeysData_164; + public ImGuiKeyData KeysData_165; + public ImGuiKeyData KeysData_166; + public ImGuiKeyData KeysData_167; + public ImGuiKeyData KeysData_168; + public ImGuiKeyData KeysData_169; + public ImGuiKeyData KeysData_170; + public ImGuiKeyData KeysData_171; + public ImGuiKeyData KeysData_172; + public ImGuiKeyData KeysData_173; + public ImGuiKeyData KeysData_174; + public ImGuiKeyData KeysData_175; + public ImGuiKeyData KeysData_176; + public ImGuiKeyData KeysData_177; + public ImGuiKeyData KeysData_178; + public ImGuiKeyData KeysData_179; + public ImGuiKeyData KeysData_180; + public ImGuiKeyData KeysData_181; + public ImGuiKeyData KeysData_182; + public ImGuiKeyData KeysData_183; + public ImGuiKeyData KeysData_184; + public ImGuiKeyData KeysData_185; + public ImGuiKeyData KeysData_186; + public ImGuiKeyData KeysData_187; + public ImGuiKeyData KeysData_188; + public ImGuiKeyData KeysData_189; + public ImGuiKeyData KeysData_190; + public ImGuiKeyData KeysData_191; + public ImGuiKeyData KeysData_192; + public ImGuiKeyData KeysData_193; + public ImGuiKeyData KeysData_194; + public ImGuiKeyData KeysData_195; + public ImGuiKeyData KeysData_196; + public ImGuiKeyData KeysData_197; + public ImGuiKeyData KeysData_198; + public ImGuiKeyData KeysData_199; + public ImGuiKeyData KeysData_200; + public ImGuiKeyData KeysData_201; + public ImGuiKeyData KeysData_202; + public ImGuiKeyData KeysData_203; + public ImGuiKeyData KeysData_204; + public ImGuiKeyData KeysData_205; + public ImGuiKeyData KeysData_206; + public ImGuiKeyData KeysData_207; + public ImGuiKeyData KeysData_208; + public ImGuiKeyData KeysData_209; + public ImGuiKeyData KeysData_210; + public ImGuiKeyData KeysData_211; + public ImGuiKeyData KeysData_212; + public ImGuiKeyData KeysData_213; + public ImGuiKeyData KeysData_214; + public ImGuiKeyData KeysData_215; + public ImGuiKeyData KeysData_216; + public ImGuiKeyData KeysData_217; + public ImGuiKeyData KeysData_218; + public ImGuiKeyData KeysData_219; + public ImGuiKeyData KeysData_220; + public ImGuiKeyData KeysData_221; + public ImGuiKeyData KeysData_222; + public ImGuiKeyData KeysData_223; + public ImGuiKeyData KeysData_224; + public ImGuiKeyData KeysData_225; + public ImGuiKeyData KeysData_226; + public ImGuiKeyData KeysData_227; + public ImGuiKeyData KeysData_228; + public ImGuiKeyData KeysData_229; + public ImGuiKeyData KeysData_230; + public ImGuiKeyData KeysData_231; + public ImGuiKeyData KeysData_232; + public ImGuiKeyData KeysData_233; + public ImGuiKeyData KeysData_234; + public ImGuiKeyData KeysData_235; + public ImGuiKeyData KeysData_236; + public ImGuiKeyData KeysData_237; + public ImGuiKeyData KeysData_238; + public ImGuiKeyData KeysData_239; + public ImGuiKeyData KeysData_240; + public ImGuiKeyData KeysData_241; + public ImGuiKeyData KeysData_242; + public ImGuiKeyData KeysData_243; + public ImGuiKeyData KeysData_244; + public ImGuiKeyData KeysData_245; + public ImGuiKeyData KeysData_246; + public ImGuiKeyData KeysData_247; + public ImGuiKeyData KeysData_248; + public ImGuiKeyData KeysData_249; + public ImGuiKeyData KeysData_250; + public ImGuiKeyData KeysData_251; + public ImGuiKeyData KeysData_252; + public ImGuiKeyData KeysData_253; + public ImGuiKeyData KeysData_254; + public ImGuiKeyData KeysData_255; + public ImGuiKeyData KeysData_256; + public ImGuiKeyData KeysData_257; + public ImGuiKeyData KeysData_258; + public ImGuiKeyData KeysData_259; + public ImGuiKeyData KeysData_260; + public ImGuiKeyData KeysData_261; + public ImGuiKeyData KeysData_262; + public ImGuiKeyData KeysData_263; + public ImGuiKeyData KeysData_264; + public ImGuiKeyData KeysData_265; + public ImGuiKeyData KeysData_266; + public ImGuiKeyData KeysData_267; + public ImGuiKeyData KeysData_268; + public ImGuiKeyData KeysData_269; + public ImGuiKeyData KeysData_270; + public ImGuiKeyData KeysData_271; + public ImGuiKeyData KeysData_272; + public ImGuiKeyData KeysData_273; + public ImGuiKeyData KeysData_274; + public ImGuiKeyData KeysData_275; + public ImGuiKeyData KeysData_276; + public ImGuiKeyData KeysData_277; + public ImGuiKeyData KeysData_278; + public ImGuiKeyData KeysData_279; + public ImGuiKeyData KeysData_280; + public ImGuiKeyData KeysData_281; + public ImGuiKeyData KeysData_282; + public ImGuiKeyData KeysData_283; + public ImGuiKeyData KeysData_284; + public ImGuiKeyData KeysData_285; + public ImGuiKeyData KeysData_286; + public ImGuiKeyData KeysData_287; + public ImGuiKeyData KeysData_288; + public ImGuiKeyData KeysData_289; + public ImGuiKeyData KeysData_290; + public ImGuiKeyData KeysData_291; + public ImGuiKeyData KeysData_292; + public ImGuiKeyData KeysData_293; + public ImGuiKeyData KeysData_294; + public ImGuiKeyData KeysData_295; + public ImGuiKeyData KeysData_296; + public ImGuiKeyData KeysData_297; + public ImGuiKeyData KeysData_298; + public ImGuiKeyData KeysData_299; + public ImGuiKeyData KeysData_300; + public ImGuiKeyData KeysData_301; + public ImGuiKeyData KeysData_302; + public ImGuiKeyData KeysData_303; + public ImGuiKeyData KeysData_304; + public ImGuiKeyData KeysData_305; + public ImGuiKeyData KeysData_306; + public ImGuiKeyData KeysData_307; + public ImGuiKeyData KeysData_308; + public ImGuiKeyData KeysData_309; + public ImGuiKeyData KeysData_310; + public ImGuiKeyData KeysData_311; + public ImGuiKeyData KeysData_312; + public ImGuiKeyData KeysData_313; + public ImGuiKeyData KeysData_314; + public ImGuiKeyData KeysData_315; + public ImGuiKeyData KeysData_316; + public ImGuiKeyData KeysData_317; + public ImGuiKeyData KeysData_318; + public ImGuiKeyData KeysData_319; + public ImGuiKeyData KeysData_320; + public ImGuiKeyData KeysData_321; + public ImGuiKeyData KeysData_322; + public ImGuiKeyData KeysData_323; + public ImGuiKeyData KeysData_324; + public ImGuiKeyData KeysData_325; + public ImGuiKeyData KeysData_326; + public ImGuiKeyData KeysData_327; + public ImGuiKeyData KeysData_328; + public ImGuiKeyData KeysData_329; + public ImGuiKeyData KeysData_330; + public ImGuiKeyData KeysData_331; + public ImGuiKeyData KeysData_332; + public ImGuiKeyData KeysData_333; + public ImGuiKeyData KeysData_334; + public ImGuiKeyData KeysData_335; + public ImGuiKeyData KeysData_336; + public ImGuiKeyData KeysData_337; + public ImGuiKeyData KeysData_338; + public ImGuiKeyData KeysData_339; + public ImGuiKeyData KeysData_340; + public ImGuiKeyData KeysData_341; + public ImGuiKeyData KeysData_342; + public ImGuiKeyData KeysData_343; + public ImGuiKeyData KeysData_344; + public ImGuiKeyData KeysData_345; + public ImGuiKeyData KeysData_346; + public ImGuiKeyData KeysData_347; + public ImGuiKeyData KeysData_348; + public ImGuiKeyData KeysData_349; + public ImGuiKeyData KeysData_350; + public ImGuiKeyData KeysData_351; + public ImGuiKeyData KeysData_352; + public ImGuiKeyData KeysData_353; + public ImGuiKeyData KeysData_354; + public ImGuiKeyData KeysData_355; + public ImGuiKeyData KeysData_356; + public ImGuiKeyData KeysData_357; + public ImGuiKeyData KeysData_358; + public ImGuiKeyData KeysData_359; + public ImGuiKeyData KeysData_360; + public ImGuiKeyData KeysData_361; + public ImGuiKeyData KeysData_362; + public ImGuiKeyData KeysData_363; + public ImGuiKeyData KeysData_364; + public ImGuiKeyData KeysData_365; + public ImGuiKeyData KeysData_366; + public ImGuiKeyData KeysData_367; + public ImGuiKeyData KeysData_368; + public ImGuiKeyData KeysData_369; + public ImGuiKeyData KeysData_370; + public ImGuiKeyData KeysData_371; + public ImGuiKeyData KeysData_372; + public ImGuiKeyData KeysData_373; + public ImGuiKeyData KeysData_374; + public ImGuiKeyData KeysData_375; + public ImGuiKeyData KeysData_376; + public ImGuiKeyData KeysData_377; + public ImGuiKeyData KeysData_378; + public ImGuiKeyData KeysData_379; + public ImGuiKeyData KeysData_380; + public ImGuiKeyData KeysData_381; + public ImGuiKeyData KeysData_382; + public ImGuiKeyData KeysData_383; + public ImGuiKeyData KeysData_384; + public ImGuiKeyData KeysData_385; + public ImGuiKeyData KeysData_386; + public ImGuiKeyData KeysData_387; + public ImGuiKeyData KeysData_388; + public ImGuiKeyData KeysData_389; + public ImGuiKeyData KeysData_390; + public ImGuiKeyData KeysData_391; + public ImGuiKeyData KeysData_392; + public ImGuiKeyData KeysData_393; + public ImGuiKeyData KeysData_394; + public ImGuiKeyData KeysData_395; + public ImGuiKeyData KeysData_396; + public ImGuiKeyData KeysData_397; + public ImGuiKeyData KeysData_398; + public ImGuiKeyData KeysData_399; + public ImGuiKeyData KeysData_400; + public ImGuiKeyData KeysData_401; + public ImGuiKeyData KeysData_402; + public ImGuiKeyData KeysData_403; + public ImGuiKeyData KeysData_404; + public ImGuiKeyData KeysData_405; + public ImGuiKeyData KeysData_406; + public ImGuiKeyData KeysData_407; + public ImGuiKeyData KeysData_408; + public ImGuiKeyData KeysData_409; + public ImGuiKeyData KeysData_410; + public ImGuiKeyData KeysData_411; + public ImGuiKeyData KeysData_412; + public ImGuiKeyData KeysData_413; + public ImGuiKeyData KeysData_414; + public ImGuiKeyData KeysData_415; + public ImGuiKeyData KeysData_416; + public ImGuiKeyData KeysData_417; + public ImGuiKeyData KeysData_418; + public ImGuiKeyData KeysData_419; + public ImGuiKeyData KeysData_420; + public ImGuiKeyData KeysData_421; + public ImGuiKeyData KeysData_422; + public ImGuiKeyData KeysData_423; + public ImGuiKeyData KeysData_424; + public ImGuiKeyData KeysData_425; + public ImGuiKeyData KeysData_426; + public ImGuiKeyData KeysData_427; + public ImGuiKeyData KeysData_428; + public ImGuiKeyData KeysData_429; + public ImGuiKeyData KeysData_430; + public ImGuiKeyData KeysData_431; + public ImGuiKeyData KeysData_432; + public ImGuiKeyData KeysData_433; + public ImGuiKeyData KeysData_434; + public ImGuiKeyData KeysData_435; + public ImGuiKeyData KeysData_436; + public ImGuiKeyData KeysData_437; + public ImGuiKeyData KeysData_438; + public ImGuiKeyData KeysData_439; + public ImGuiKeyData KeysData_440; + public ImGuiKeyData KeysData_441; + public ImGuiKeyData KeysData_442; + public ImGuiKeyData KeysData_443; + public ImGuiKeyData KeysData_444; + public ImGuiKeyData KeysData_445; + public ImGuiKeyData KeysData_446; + public ImGuiKeyData KeysData_447; + public ImGuiKeyData KeysData_448; + public ImGuiKeyData KeysData_449; + public ImGuiKeyData KeysData_450; + public ImGuiKeyData KeysData_451; + public ImGuiKeyData KeysData_452; + public ImGuiKeyData KeysData_453; + public ImGuiKeyData KeysData_454; + public ImGuiKeyData KeysData_455; + public ImGuiKeyData KeysData_456; + public ImGuiKeyData KeysData_457; + public ImGuiKeyData KeysData_458; + public ImGuiKeyData KeysData_459; + public ImGuiKeyData KeysData_460; + public ImGuiKeyData KeysData_461; + public ImGuiKeyData KeysData_462; + public ImGuiKeyData KeysData_463; + public ImGuiKeyData KeysData_464; + public ImGuiKeyData KeysData_465; + public ImGuiKeyData KeysData_466; + public ImGuiKeyData KeysData_467; + public ImGuiKeyData KeysData_468; + public ImGuiKeyData KeysData_469; + public ImGuiKeyData KeysData_470; + public ImGuiKeyData KeysData_471; + public ImGuiKeyData KeysData_472; + public ImGuiKeyData KeysData_473; + public ImGuiKeyData KeysData_474; + public ImGuiKeyData KeysData_475; + public ImGuiKeyData KeysData_476; + public ImGuiKeyData KeysData_477; + public ImGuiKeyData KeysData_478; + public ImGuiKeyData KeysData_479; + public ImGuiKeyData KeysData_480; + public ImGuiKeyData KeysData_481; + public ImGuiKeyData KeysData_482; + public ImGuiKeyData KeysData_483; + public ImGuiKeyData KeysData_484; + public ImGuiKeyData KeysData_485; + public ImGuiKeyData KeysData_486; + public ImGuiKeyData KeysData_487; + public ImGuiKeyData KeysData_488; + public ImGuiKeyData KeysData_489; + public ImGuiKeyData KeysData_490; + public ImGuiKeyData KeysData_491; + public ImGuiKeyData KeysData_492; + public ImGuiKeyData KeysData_493; + public ImGuiKeyData KeysData_494; + public ImGuiKeyData KeysData_495; + public ImGuiKeyData KeysData_496; + public ImGuiKeyData KeysData_497; + public ImGuiKeyData KeysData_498; + public ImGuiKeyData KeysData_499; + public ImGuiKeyData KeysData_500; + public ImGuiKeyData KeysData_501; + public ImGuiKeyData KeysData_502; + public ImGuiKeyData KeysData_503; + public ImGuiKeyData KeysData_504; + public ImGuiKeyData KeysData_505; + public ImGuiKeyData KeysData_506; + public ImGuiKeyData KeysData_507; + public ImGuiKeyData KeysData_508; + public ImGuiKeyData KeysData_509; + public ImGuiKeyData KeysData_510; + public ImGuiKeyData KeysData_511; + public ImGuiKeyData KeysData_512; + public ImGuiKeyData KeysData_513; + public ImGuiKeyData KeysData_514; + public ImGuiKeyData KeysData_515; + public ImGuiKeyData KeysData_516; + public ImGuiKeyData KeysData_517; + public ImGuiKeyData KeysData_518; + public ImGuiKeyData KeysData_519; + public ImGuiKeyData KeysData_520; + public ImGuiKeyData KeysData_521; + public ImGuiKeyData KeysData_522; + public ImGuiKeyData KeysData_523; + public ImGuiKeyData KeysData_524; + public ImGuiKeyData KeysData_525; + public ImGuiKeyData KeysData_526; + public ImGuiKeyData KeysData_527; + public ImGuiKeyData KeysData_528; + public ImGuiKeyData KeysData_529; + public ImGuiKeyData KeysData_530; + public ImGuiKeyData KeysData_531; + public ImGuiKeyData KeysData_532; + public ImGuiKeyData KeysData_533; + public ImGuiKeyData KeysData_534; + public ImGuiKeyData KeysData_535; + public ImGuiKeyData KeysData_536; + public ImGuiKeyData KeysData_537; + public ImGuiKeyData KeysData_538; + public ImGuiKeyData KeysData_539; + public ImGuiKeyData KeysData_540; + public ImGuiKeyData KeysData_541; + public ImGuiKeyData KeysData_542; + public ImGuiKeyData KeysData_543; + public ImGuiKeyData KeysData_544; + public ImGuiKeyData KeysData_545; + public ImGuiKeyData KeysData_546; + public ImGuiKeyData KeysData_547; + public ImGuiKeyData KeysData_548; + public ImGuiKeyData KeysData_549; + public ImGuiKeyData KeysData_550; + public ImGuiKeyData KeysData_551; + public ImGuiKeyData KeysData_552; + public ImGuiKeyData KeysData_553; + public ImGuiKeyData KeysData_554; + public ImGuiKeyData KeysData_555; + public ImGuiKeyData KeysData_556; + public ImGuiKeyData KeysData_557; + public ImGuiKeyData KeysData_558; + public ImGuiKeyData KeysData_559; + public ImGuiKeyData KeysData_560; + public ImGuiKeyData KeysData_561; + public ImGuiKeyData KeysData_562; + public ImGuiKeyData KeysData_563; + public ImGuiKeyData KeysData_564; + public ImGuiKeyData KeysData_565; + public ImGuiKeyData KeysData_566; + public ImGuiKeyData KeysData_567; + public ImGuiKeyData KeysData_568; + public ImGuiKeyData KeysData_569; + public ImGuiKeyData KeysData_570; + public ImGuiKeyData KeysData_571; + public ImGuiKeyData KeysData_572; + public ImGuiKeyData KeysData_573; + public ImGuiKeyData KeysData_574; + public ImGuiKeyData KeysData_575; + public ImGuiKeyData KeysData_576; + public ImGuiKeyData KeysData_577; + public ImGuiKeyData KeysData_578; + public ImGuiKeyData KeysData_579; + public ImGuiKeyData KeysData_580; + public ImGuiKeyData KeysData_581; + public ImGuiKeyData KeysData_582; + public ImGuiKeyData KeysData_583; + public ImGuiKeyData KeysData_584; + public ImGuiKeyData KeysData_585; + public ImGuiKeyData KeysData_586; + public ImGuiKeyData KeysData_587; + public ImGuiKeyData KeysData_588; + public ImGuiKeyData KeysData_589; + public ImGuiKeyData KeysData_590; + public ImGuiKeyData KeysData_591; + public ImGuiKeyData KeysData_592; + public ImGuiKeyData KeysData_593; + public ImGuiKeyData KeysData_594; + public ImGuiKeyData KeysData_595; + public ImGuiKeyData KeysData_596; + public ImGuiKeyData KeysData_597; + public ImGuiKeyData KeysData_598; + public ImGuiKeyData KeysData_599; + public ImGuiKeyData KeysData_600; + public ImGuiKeyData KeysData_601; + public ImGuiKeyData KeysData_602; + public ImGuiKeyData KeysData_603; + public ImGuiKeyData KeysData_604; + public ImGuiKeyData KeysData_605; + public ImGuiKeyData KeysData_606; + public ImGuiKeyData KeysData_607; + public ImGuiKeyData KeysData_608; + public ImGuiKeyData KeysData_609; + public ImGuiKeyData KeysData_610; + public ImGuiKeyData KeysData_611; + public ImGuiKeyData KeysData_612; + public ImGuiKeyData KeysData_613; + public ImGuiKeyData KeysData_614; + public ImGuiKeyData KeysData_615; + public ImGuiKeyData KeysData_616; + public ImGuiKeyData KeysData_617; + public ImGuiKeyData KeysData_618; + public ImGuiKeyData KeysData_619; + public ImGuiKeyData KeysData_620; + public ImGuiKeyData KeysData_621; + public ImGuiKeyData KeysData_622; + public ImGuiKeyData KeysData_623; + public ImGuiKeyData KeysData_624; + public ImGuiKeyData KeysData_625; + public ImGuiKeyData KeysData_626; + public ImGuiKeyData KeysData_627; + public ImGuiKeyData KeysData_628; + public ImGuiKeyData KeysData_629; + public ImGuiKeyData KeysData_630; + public ImGuiKeyData KeysData_631; + public ImGuiKeyData KeysData_632; + public ImGuiKeyData KeysData_633; + public ImGuiKeyData KeysData_634; + public ImGuiKeyData KeysData_635; + public ImGuiKeyData KeysData_636; + public ImGuiKeyData KeysData_637; + public ImGuiKeyData KeysData_638; + public ImGuiKeyData KeysData_639; + public ImGuiKeyData KeysData_640; + public ImGuiKeyData KeysData_641; + public ImGuiKeyData KeysData_642; + public ImGuiKeyData KeysData_643; + public ImGuiKeyData KeysData_644; + + /// + /// To be documented. + /// + public byte WantCaptureMouseUnlessPopupClose; + + /// + /// To be documented. + /// + public Vector2 MousePosPrev; + + /// + /// To be documented. + /// + public Vector2 MouseClickedPos_0; + public Vector2 MouseClickedPos_1; + public Vector2 MouseClickedPos_2; + public Vector2 MouseClickedPos_3; + public Vector2 MouseClickedPos_4; + + /// + /// To be documented. + /// + public double MouseClickedTime_0; + public double MouseClickedTime_1; + public double MouseClickedTime_2; + public double MouseClickedTime_3; + public double MouseClickedTime_4; + + /// + /// To be documented. + /// + public bool MouseClicked_0; + public bool MouseClicked_1; + public bool MouseClicked_2; + public bool MouseClicked_3; + public bool MouseClicked_4; + + /// + /// To be documented. + /// + public bool MouseDoubleClicked_0; + public bool MouseDoubleClicked_1; + public bool MouseDoubleClicked_2; + public bool MouseDoubleClicked_3; + public bool MouseDoubleClicked_4; + + /// + /// To be documented. + /// + public ushort MouseClickedCount_0; + public ushort MouseClickedCount_1; + public ushort MouseClickedCount_2; + public ushort MouseClickedCount_3; + public ushort MouseClickedCount_4; + + /// + /// To be documented. + /// + public ushort MouseClickedLastCount_0; + public ushort MouseClickedLastCount_1; + public ushort MouseClickedLastCount_2; + public ushort MouseClickedLastCount_3; + public ushort MouseClickedLastCount_4; + + /// + /// To be documented. + /// + public bool MouseReleased_0; + public bool MouseReleased_1; + public bool MouseReleased_2; + public bool MouseReleased_3; + public bool MouseReleased_4; + + /// + /// To be documented. + /// + public bool MouseDownOwned_0; + public bool MouseDownOwned_1; + public bool MouseDownOwned_2; + public bool MouseDownOwned_3; + public bool MouseDownOwned_4; + + /// + /// To be documented. + /// + public bool MouseDownOwnedUnlessPopupClose_0; + public bool MouseDownOwnedUnlessPopupClose_1; + public bool MouseDownOwnedUnlessPopupClose_2; + public bool MouseDownOwnedUnlessPopupClose_3; + public bool MouseDownOwnedUnlessPopupClose_4; + + /// + /// To be documented. + /// + public float MouseDownDuration_0; + public float MouseDownDuration_1; + public float MouseDownDuration_2; + public float MouseDownDuration_3; + public float MouseDownDuration_4; + + /// + /// To be documented. + /// + public float MouseDownDurationPrev_0; + public float MouseDownDurationPrev_1; + public float MouseDownDurationPrev_2; + public float MouseDownDurationPrev_3; + public float MouseDownDurationPrev_4; + + /// + /// To be documented. + /// + public Vector2 MouseDragMaxDistanceAbs_0; + public Vector2 MouseDragMaxDistanceAbs_1; + public Vector2 MouseDragMaxDistanceAbs_2; + public Vector2 MouseDragMaxDistanceAbs_3; + public Vector2 MouseDragMaxDistanceAbs_4; + + /// + /// To be documented. + /// + public float MouseDragMaxDistanceSqr_0; + public float MouseDragMaxDistanceSqr_1; + public float MouseDragMaxDistanceSqr_2; + public float MouseDragMaxDistanceSqr_3; + public float MouseDragMaxDistanceSqr_4; + + /// + /// To be documented. + /// + public float NavInputsDownDuration_0; + public float NavInputsDownDuration_1; + public float NavInputsDownDuration_2; + public float NavInputsDownDuration_3; + public float NavInputsDownDuration_4; + public float NavInputsDownDuration_5; + public float NavInputsDownDuration_6; + public float NavInputsDownDuration_7; + public float NavInputsDownDuration_8; + public float NavInputsDownDuration_9; + public float NavInputsDownDuration_10; + public float NavInputsDownDuration_11; + public float NavInputsDownDuration_12; + public float NavInputsDownDuration_13; + public float NavInputsDownDuration_14; + public float NavInputsDownDuration_15; + public float NavInputsDownDuration_16; + public float NavInputsDownDuration_17; + public float NavInputsDownDuration_18; + public float NavInputsDownDuration_19; + public float NavInputsDownDuration_20; + + /// + /// To be documented. + /// + public float NavInputsDownDurationPrev_0; + public float NavInputsDownDurationPrev_1; + public float NavInputsDownDurationPrev_2; + public float NavInputsDownDurationPrev_3; + public float NavInputsDownDurationPrev_4; + public float NavInputsDownDurationPrev_5; + public float NavInputsDownDurationPrev_6; + public float NavInputsDownDurationPrev_7; + public float NavInputsDownDurationPrev_8; + public float NavInputsDownDurationPrev_9; + public float NavInputsDownDurationPrev_10; + public float NavInputsDownDurationPrev_11; + public float NavInputsDownDurationPrev_12; + public float NavInputsDownDurationPrev_13; + public float NavInputsDownDurationPrev_14; + public float NavInputsDownDurationPrev_15; + public float NavInputsDownDurationPrev_16; + public float NavInputsDownDurationPrev_17; + public float NavInputsDownDurationPrev_18; + public float NavInputsDownDurationPrev_19; + public float NavInputsDownDurationPrev_20; + + /// + /// To be documented. + /// + public float PenPressure; + + /// + /// To be documented. + /// + public byte AppFocusLost; + + /// + /// To be documented. + /// + public byte AppAcceptingEvents; + + /// + /// To be documented. + /// + public sbyte BackendUsingLegacyKeyArrays; + + /// + /// To be documented. + /// + public byte BackendUsingLegacyNavInputArray; + + /// + /// To be documented. + /// + public ushort InputQueueSurrogate; + + /// + /// To be documented. + /// + public ImVector InputQueueCharacters; + + + /// + /// 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, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + UnusedPadding = unusedPadding; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MetricsActiveAllocations = metricsActiveAllocations; + MouseDelta = mouseDelta; + if (keyMap != default(int*)) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + } + if (keysDown != default(bool*)) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + } + MousePos = mousePos; + if (mouseDown != default(bool*)) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + if (navInputs != default(float*)) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + NavInputs_16 = navInputs[16]; + NavInputs_17 = navInputs[17]; + NavInputs_18 = navInputs[18]; + NavInputs_19 = navInputs[19]; + NavInputs_20 = navInputs[20]; + } + KeyMods = keyMods; + if (keysData != default(ImGuiKeyData*)) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default(Vector2*)) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default(double*)) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default(bool*)) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default(bool*)) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default(ushort*)) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default(ushort*)) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default(bool*)) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default(bool*)) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default(bool*)) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + if (mouseDownDuration != default(float*)) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default(float*)) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default(Vector2*)) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default(float*)) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + if (navInputsDownDuration != default(float*)) + { + NavInputsDownDuration_0 = navInputsDownDuration[0]; + NavInputsDownDuration_1 = navInputsDownDuration[1]; + NavInputsDownDuration_2 = navInputsDownDuration[2]; + NavInputsDownDuration_3 = navInputsDownDuration[3]; + NavInputsDownDuration_4 = navInputsDownDuration[4]; + NavInputsDownDuration_5 = navInputsDownDuration[5]; + NavInputsDownDuration_6 = navInputsDownDuration[6]; + NavInputsDownDuration_7 = navInputsDownDuration[7]; + NavInputsDownDuration_8 = navInputsDownDuration[8]; + NavInputsDownDuration_9 = navInputsDownDuration[9]; + NavInputsDownDuration_10 = navInputsDownDuration[10]; + NavInputsDownDuration_11 = navInputsDownDuration[11]; + NavInputsDownDuration_12 = navInputsDownDuration[12]; + NavInputsDownDuration_13 = navInputsDownDuration[13]; + NavInputsDownDuration_14 = navInputsDownDuration[14]; + NavInputsDownDuration_15 = navInputsDownDuration[15]; + NavInputsDownDuration_16 = navInputsDownDuration[16]; + NavInputsDownDuration_17 = navInputsDownDuration[17]; + NavInputsDownDuration_18 = navInputsDownDuration[18]; + NavInputsDownDuration_19 = navInputsDownDuration[19]; + NavInputsDownDuration_20 = navInputsDownDuration[20]; + } + if (navInputsDownDurationPrev != default(float*)) + { + NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; + NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; + NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; + NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; + NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; + NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; + NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; + NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; + NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; + NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; + NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; + NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; + NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; + NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; + NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; + NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; + NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; + NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; + NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; + NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; + NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + + /// + /// 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, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + UnusedPadding = unusedPadding; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MetricsActiveAllocations = metricsActiveAllocations; + MouseDelta = mouseDelta; + if (keyMap != default(Span)) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + } + if (keysDown != default(Span)) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + } + MousePos = mousePos; + if (mouseDown != default(Span)) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + if (navInputs != default(Span)) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + NavInputs_16 = navInputs[16]; + NavInputs_17 = navInputs[17]; + NavInputs_18 = navInputs[18]; + NavInputs_19 = navInputs[19]; + NavInputs_20 = navInputs[20]; + } + KeyMods = keyMods; + if (keysData != default(Span)) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default(Span)) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default(Span)) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default(Span)) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default(Span)) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default(Span)) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default(Span)) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default(Span)) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default(Span)) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default(Span)) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + if (mouseDownDuration != default(Span)) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default(Span)) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default(Span)) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default(Span)) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + if (navInputsDownDuration != default(Span)) + { + NavInputsDownDuration_0 = navInputsDownDuration[0]; + NavInputsDownDuration_1 = navInputsDownDuration[1]; + NavInputsDownDuration_2 = navInputsDownDuration[2]; + NavInputsDownDuration_3 = navInputsDownDuration[3]; + NavInputsDownDuration_4 = navInputsDownDuration[4]; + NavInputsDownDuration_5 = navInputsDownDuration[5]; + NavInputsDownDuration_6 = navInputsDownDuration[6]; + NavInputsDownDuration_7 = navInputsDownDuration[7]; + NavInputsDownDuration_8 = navInputsDownDuration[8]; + NavInputsDownDuration_9 = navInputsDownDuration[9]; + NavInputsDownDuration_10 = navInputsDownDuration[10]; + NavInputsDownDuration_11 = navInputsDownDuration[11]; + NavInputsDownDuration_12 = navInputsDownDuration[12]; + NavInputsDownDuration_13 = navInputsDownDuration[13]; + NavInputsDownDuration_14 = navInputsDownDuration[14]; + NavInputsDownDuration_15 = navInputsDownDuration[15]; + NavInputsDownDuration_16 = navInputsDownDuration[16]; + NavInputsDownDuration_17 = navInputsDownDuration[17]; + NavInputsDownDuration_18 = navInputsDownDuration[18]; + NavInputsDownDuration_19 = navInputsDownDuration[19]; + NavInputsDownDuration_20 = navInputsDownDuration[20]; + } + if (navInputsDownDurationPrev != default(Span)) + { + NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; + NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; + NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; + NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; + NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; + NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; + NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; + NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; + NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; + NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; + NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; + NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; + NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; + NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; + NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; + NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; + NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; + NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; + NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; + NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; + NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + + + /// + /// To be documented. + /// + public unsafe Span KeysData + + { + get + { + fixed (ImGuiKeyData* p = &this.KeysData_0) + { + return new Span(p, 645); + } + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClickedPos + + { + get + { + fixed (Vector2* p = &this.MouseClickedPos_0) + { + return new Span(p, 5); + } + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDragMaxDistanceAbs + + { + get + { + fixed (Vector2* p = &this.MouseDragMaxDistanceAbs_0) + { + return new Span(p, 5); + } + } + } + /// + /// To be documented. + /// + public unsafe void AddFocusEvent(bool focused) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddFocusEventNative(@this, focused ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharacter(uint c) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharacterNative(@this, c); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(byte* str) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharactersUTF8Native(@this, str); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(ref byte str) + { + fixed (ImGuiIO* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.AddInputCharactersUTF8Native(@this, (byte*)pstr); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(ReadOnlySpan str) + { + fixed (ImGuiIO* @this = &this) + { + fixed (byte* pstr = str) + { + ImGui.AddInputCharactersUTF8Native(@this, (byte*)pstr); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(string str) + { + fixed (ImGuiIO* @this = &this) + { + 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; + } + ImGui.AddInputCharactersUTF8Native(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharacterUTF16(ushort c) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharacterUTF16Native(@this, c); + } + } + + /// + /// To be documented. + /// + public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddKeyAnalogEventNative(@this, key, down ? (byte)1 : (byte)0, v); + } + } + + /// + /// To be documented. + /// + public unsafe void AddKeyEvent(ImGuiKey key, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddKeyEventNative(@this, key, down ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddMouseButtonEvent(int button, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseButtonEventNative(@this, button, down ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddMousePosEvent(float x, float y) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMousePosEventNative(@this, x, y); + } + } + + /// + /// To be documented. + /// + public unsafe void AddMouseViewportEvent(uint id) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseViewportEventNative(@this, id); + } + } + + /// + /// To be documented. + /// + public unsafe void AddMouseWheelEvent(float whX, float whY) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseWheelEventNative(@this, whX, whY); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearInputCharacters() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.ClearInputCharactersNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ClearInputKeys() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.ClearInputKeysNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAppAcceptingEvents(bool acceptingEvents) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetAppAcceptingEventsNative(@this, acceptingEvents ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + } + + /// + /// To be documented. + /// + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, (int)(-1)); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiIOPtr : IEquatable + { + public ImGuiIOPtr(ImGuiIO* handle) { Handle = handle; } + + public ImGuiIO* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiIOPtr Null => new ImGuiIOPtr(null); + + public ImGuiIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiIOPtr(ImGuiIO* handle) => new ImGuiIOPtr(handle); + + public static implicit operator ImGuiIO*(ImGuiIOPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiIOPtr left, ImGuiIO* right) => left.Handle == right; + + public static bool operator !=(ImGuiIOPtr left, ImGuiIO* right) => left.Handle != right; + + public bool Equals(ImGuiIOPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiIOPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiConfigFlags ConfigFlags => ref Unsafe.AsRef(&Handle->ConfigFlags); + /// + /// To be documented. + /// + public ref ImGuiBackendFlags BackendFlags => ref Unsafe.AsRef(&Handle->BackendFlags); + /// + /// To be documented. + /// + public ref Vector2 DisplaySize => ref Unsafe.AsRef(&Handle->DisplaySize); + /// + /// To be documented. + /// + public ref float DeltaTime => ref Unsafe.AsRef(&Handle->DeltaTime); + /// + /// To be documented. + /// + public ref float IniSavingRate => ref Unsafe.AsRef(&Handle->IniSavingRate); + /// + /// To be documented. + /// + public byte* IniFilename { get => Handle->IniFilename; set => Handle->IniFilename = value; } + /// + /// To be documented. + /// + public byte* LogFilename { get => Handle->LogFilename; set => Handle->LogFilename = value; } + /// + /// To be documented. + /// + public ref float MouseDoubleClickTime => ref Unsafe.AsRef(&Handle->MouseDoubleClickTime); + /// + /// To be documented. + /// + public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef(&Handle->MouseDoubleClickMaxDist); + /// + /// To be documented. + /// + public ref float MouseDragThreshold => ref Unsafe.AsRef(&Handle->MouseDragThreshold); + /// + /// To be documented. + /// + public ref float KeyRepeatDelay => ref Unsafe.AsRef(&Handle->KeyRepeatDelay); + /// + /// To be documented. + /// + public ref float KeyRepeatRate => ref Unsafe.AsRef(&Handle->KeyRepeatRate); + /// + /// To be documented. + /// + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + /// + /// To be documented. + /// + public ref ImFontAtlasPtr Fonts => ref Unsafe.AsRef(&Handle->Fonts); + /// + /// To be documented. + /// + public ref float FontGlobalScale => ref Unsafe.AsRef(&Handle->FontGlobalScale); + /// + /// To be documented. + /// + public ref bool FontAllowUserScaling => ref Unsafe.AsRef(&Handle->FontAllowUserScaling); + /// + /// To be documented. + /// + public ref ImFontPtr FontDefault => ref Unsafe.AsRef(&Handle->FontDefault); + /// + /// To be documented. + /// + public ref Vector2 DisplayFramebufferScale => ref Unsafe.AsRef(&Handle->DisplayFramebufferScale); + /// + /// To be documented. + /// + public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef(&Handle->ConfigDockingNoSplit); + /// + /// To be documented. + /// + public ref bool ConfigDockingWithShift => ref Unsafe.AsRef(&Handle->ConfigDockingWithShift); + /// + /// To be documented. + /// + public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef(&Handle->ConfigDockingAlwaysTabBar); + /// + /// To be documented. + /// + public ref bool ConfigDockingTransparentPayload => ref Unsafe.AsRef(&Handle->ConfigDockingTransparentPayload); + /// + /// To be documented. + /// + public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef(&Handle->ConfigViewportsNoAutoMerge); + /// + /// To be documented. + /// + public ref bool ConfigViewportsNoTaskBarIcon => ref Unsafe.AsRef(&Handle->ConfigViewportsNoTaskBarIcon); + /// + /// To be documented. + /// + public ref bool ConfigViewportsNoDecoration => ref Unsafe.AsRef(&Handle->ConfigViewportsNoDecoration); + /// + /// To be documented. + /// + public ref bool ConfigViewportsNoDefaultParent => ref Unsafe.AsRef(&Handle->ConfigViewportsNoDefaultParent); + /// + /// To be documented. + /// + public ref bool MouseDrawCursor => ref Unsafe.AsRef(&Handle->MouseDrawCursor); + /// + /// To be documented. + /// + public ref bool ConfigMacOSXBehaviors => ref Unsafe.AsRef(&Handle->ConfigMacOSXBehaviors); + /// + /// To be documented. + /// + public ref bool ConfigInputTrickleEventQueue => ref Unsafe.AsRef(&Handle->ConfigInputTrickleEventQueue); + /// + /// To be documented. + /// + public ref bool ConfigInputTextCursorBlink => ref Unsafe.AsRef(&Handle->ConfigInputTextCursorBlink); + /// + /// To be documented. + /// + public ref bool ConfigDragClickToInputText => ref Unsafe.AsRef(&Handle->ConfigDragClickToInputText); + /// + /// To be documented. + /// + public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef(&Handle->ConfigWindowsResizeFromEdges); + /// + /// To be documented. + /// + public ref bool ConfigWindowsMoveFromTitleBarOnly => ref Unsafe.AsRef(&Handle->ConfigWindowsMoveFromTitleBarOnly); + /// + /// To be documented. + /// + public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef(&Handle->ConfigMemoryCompactTimer); + /// + /// To be documented. + /// + public byte* BackendPlatformName { get => Handle->BackendPlatformName; set => Handle->BackendPlatformName = value; } + /// + /// To be documented. + /// + public byte* BackendRendererName { get => Handle->BackendRendererName; set => Handle->BackendRendererName = value; } + /// + /// To be documented. + /// + public void* BackendPlatformUserData { get => Handle->BackendPlatformUserData; set => Handle->BackendPlatformUserData = value; } + /// + /// To be documented. + /// + public void* BackendRendererUserData { get => Handle->BackendRendererUserData; set => Handle->BackendRendererUserData = value; } + /// + /// To be documented. + /// + public void* BackendLanguageUserData { get => Handle->BackendLanguageUserData; set => Handle->BackendLanguageUserData = value; } + /// + /// To be documented. + /// + public void* GetClipboardTextFn { get => Handle->GetClipboardTextFn; set => Handle->GetClipboardTextFn = value; } + /// + /// To be documented. + /// + public void* SetClipboardTextFn { get => Handle->SetClipboardTextFn; set => Handle->SetClipboardTextFn = value; } + /// + /// To be documented. + /// + public void* ClipboardUserData { get => Handle->ClipboardUserData; set => Handle->ClipboardUserData = value; } + /// + /// To be documented. + /// + public void* SetPlatformImeDataFn { get => Handle->SetPlatformImeDataFn; set => Handle->SetPlatformImeDataFn = value; } + /// + /// To be documented. + /// + public void* UnusedPadding { get => Handle->UnusedPadding; set => Handle->UnusedPadding = value; } + /// + /// To be documented. + /// + public ref bool WantCaptureMouse => ref Unsafe.AsRef(&Handle->WantCaptureMouse); + /// + /// To be documented. + /// + public ref bool WantCaptureKeyboard => ref Unsafe.AsRef(&Handle->WantCaptureKeyboard); + /// + /// To be documented. + /// + public ref bool WantTextInput => ref Unsafe.AsRef(&Handle->WantTextInput); + /// + /// To be documented. + /// + public ref bool WantSetMousePos => ref Unsafe.AsRef(&Handle->WantSetMousePos); + /// + /// To be documented. + /// + public ref bool WantSaveIniSettings => ref Unsafe.AsRef(&Handle->WantSaveIniSettings); + /// + /// To be documented. + /// + public ref bool NavActive => ref Unsafe.AsRef(&Handle->NavActive); + /// + /// To be documented. + /// + public ref bool NavVisible => ref Unsafe.AsRef(&Handle->NavVisible); + /// + /// To be documented. + /// + public ref float Framerate => ref Unsafe.AsRef(&Handle->Framerate); + /// + /// To be documented. + /// + public ref int MetricsRenderVertices => ref Unsafe.AsRef(&Handle->MetricsRenderVertices); + /// + /// To be documented. + /// + public ref int MetricsRenderIndices => ref Unsafe.AsRef(&Handle->MetricsRenderIndices); + /// + /// To be documented. + /// + public ref int MetricsRenderWindows => ref Unsafe.AsRef(&Handle->MetricsRenderWindows); + /// + /// To be documented. + /// + public ref int MetricsActiveWindows => ref Unsafe.AsRef(&Handle->MetricsActiveWindows); + /// + /// To be documented. + /// + public ref int MetricsActiveAllocations => ref Unsafe.AsRef(&Handle->MetricsActiveAllocations); + /// + /// To be documented. + /// + public ref Vector2 MouseDelta => ref Unsafe.AsRef(&Handle->MouseDelta); + /// + /// To be documented. + /// + public unsafe Span KeyMap + + { + get + { + return new Span(&Handle->KeyMap_0, 645); + } + } + /// + /// To be documented. + /// + public unsafe Span KeysDown + + { + get + { + return new Span(&Handle->KeysDown_0, 645); + } + } + /// + /// To be documented. + /// + public ref Vector2 MousePos => ref Unsafe.AsRef(&Handle->MousePos); + /// + /// To be documented. + /// + public unsafe Span MouseDown + + { + get + { + return new Span(&Handle->MouseDown_0, 5); + } + } + /// + /// To be documented. + /// + public ref float MouseWheel => ref Unsafe.AsRef(&Handle->MouseWheel); + /// + /// To be documented. + /// + public ref float MouseWheelH => ref Unsafe.AsRef(&Handle->MouseWheelH); + /// + /// To be documented. + /// + public ref uint MouseHoveredViewport => ref Unsafe.AsRef(&Handle->MouseHoveredViewport); + /// + /// To be documented. + /// + public ref bool KeyCtrl => ref Unsafe.AsRef(&Handle->KeyCtrl); + /// + /// To be documented. + /// + public ref bool KeyShift => ref Unsafe.AsRef(&Handle->KeyShift); + /// + /// To be documented. + /// + public ref bool KeyAlt => ref Unsafe.AsRef(&Handle->KeyAlt); + /// + /// To be documented. + /// + public ref bool KeySuper => ref Unsafe.AsRef(&Handle->KeySuper); + /// + /// To be documented. + /// + public unsafe Span NavInputs + + { + get + { + return new Span(&Handle->NavInputs_0, 21); + } + } + /// + /// To be documented. + /// + public ref ImGuiModFlags KeyMods => ref Unsafe.AsRef(&Handle->KeyMods); + /// + /// To be documented. + /// + public unsafe Span KeysData + + { + get + { + return new Span(&Handle->KeysData_0, 645); + } + } + /// + /// To be documented. + /// + public ref bool WantCaptureMouseUnlessPopupClose => ref Unsafe.AsRef(&Handle->WantCaptureMouseUnlessPopupClose); + /// + /// To be documented. + /// + public ref Vector2 MousePosPrev => ref Unsafe.AsRef(&Handle->MousePosPrev); + /// + /// To be documented. + /// + public unsafe Span MouseClickedPos + + { + get + { + return new Span(&Handle->MouseClickedPos_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClickedTime + + { + get + { + return new Span(&Handle->MouseClickedTime_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClicked + + { + get + { + return new Span(&Handle->MouseClicked_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDoubleClicked + + { + get + { + return new Span(&Handle->MouseDoubleClicked_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClickedCount + + { + get + { + return new Span(&Handle->MouseClickedCount_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClickedLastCount + + { + get + { + return new Span(&Handle->MouseClickedLastCount_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseReleased + + { + get + { + return new Span(&Handle->MouseReleased_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDownOwned + + { + get + { + return new Span(&Handle->MouseDownOwned_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDownOwnedUnlessPopupClose + + { + get + { + return new Span(&Handle->MouseDownOwnedUnlessPopupClose_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDownDuration + + { + get + { + return new Span(&Handle->MouseDownDuration_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDownDurationPrev + + { + get + { + return new Span(&Handle->MouseDownDurationPrev_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDragMaxDistanceAbs + + { + get + { + return new Span(&Handle->MouseDragMaxDistanceAbs_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span MouseDragMaxDistanceSqr + + { + get + { + return new Span(&Handle->MouseDragMaxDistanceSqr_0, 5); + } + } + /// + /// To be documented. + /// + public unsafe Span NavInputsDownDuration + + { + get + { + return new Span(&Handle->NavInputsDownDuration_0, 21); + } + } + /// + /// To be documented. + /// + public unsafe Span NavInputsDownDurationPrev + + { + get + { + return new Span(&Handle->NavInputsDownDurationPrev_0, 21); + } + } + /// + /// To be documented. + /// + public ref float PenPressure => ref Unsafe.AsRef(&Handle->PenPressure); + /// + /// To be documented. + /// + public ref bool AppFocusLost => ref Unsafe.AsRef(&Handle->AppFocusLost); + /// + /// To be documented. + /// + public ref bool AppAcceptingEvents => ref Unsafe.AsRef(&Handle->AppAcceptingEvents); + /// + /// To be documented. + /// + public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef(&Handle->BackendUsingLegacyKeyArrays); + /// + /// To be documented. + /// + public ref bool BackendUsingLegacyNavInputArray => ref Unsafe.AsRef(&Handle->BackendUsingLegacyNavInputArray); + /// + /// To be documented. + /// + public ref ushort InputQueueSurrogate => ref Unsafe.AsRef(&Handle->InputQueueSurrogate); + /// + /// To be documented. + /// + public ref ImVector InputQueueCharacters => ref Unsafe.AsRef>(&Handle->InputQueueCharacters); + /// + /// To be documented. + /// + public unsafe void AddFocusEvent(bool focused) + { + ImGui.AddFocusEventNative(Handle, focused ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharacter(uint c) + { + ImGui.AddInputCharacterNative(Handle, c); + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(byte* str) + { + ImGui.AddInputCharactersUTF8Native(Handle, str); + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(ref byte str) + { + fixed (byte* pstr = &str) + { + ImGui.AddInputCharactersUTF8Native(Handle, (byte*)pstr); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + ImGui.AddInputCharactersUTF8Native(Handle, (byte*)pstr); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharactersUTF8(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; + } + ImGui.AddInputCharactersUTF8Native(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AddInputCharacterUTF16(ushort c) + { + ImGui.AddInputCharacterUTF16Native(Handle, c); + } + + /// + /// To be documented. + /// + public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) + { + ImGui.AddKeyAnalogEventNative(Handle, key, down ? (byte)1 : (byte)0, v); + } + + /// + /// To be documented. + /// + public unsafe void AddKeyEvent(ImGuiKey key, bool down) + { + ImGui.AddKeyEventNative(Handle, key, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void AddMouseButtonEvent(int button, bool down) + { + ImGui.AddMouseButtonEventNative(Handle, button, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void AddMousePosEvent(float x, float y) + { + ImGui.AddMousePosEventNative(Handle, x, y); + } + + /// + /// To be documented. + /// + public unsafe void AddMouseViewportEvent(uint id) + { + ImGui.AddMouseViewportEventNative(Handle, id); + } + + /// + /// To be documented. + /// + public unsafe void AddMouseWheelEvent(float whX, float whY) + { + ImGui.AddMouseWheelEventNative(Handle, whX, whY); + } + + /// + /// To be documented. + /// + public unsafe void ClearInputCharacters() + { + ImGui.ClearInputCharactersNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ClearInputKeys() + { + ImGui.ClearInputKeysNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void SetAppAcceptingEvents(bool acceptingEvents) + { + ImGui.SetAppAcceptingEventsNative(Handle, acceptingEvents ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + ImGui.SetKeyEventNativeDataNative(Handle, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + + /// + /// To be documented. + /// + public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) + { + ImGui.SetKeyEventNativeDataNative(Handle, key, nativeKeycode, nativeScancode, (int)(-1)); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs new file mode 100644 index 000000000..900c2a136 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs @@ -0,0 +1,204 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEvent + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiInputEventUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMousePos MousePos; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseWheel MouseWheel; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseButton MouseButton; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseViewport MouseViewport; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventKey Key; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventText Text; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventAppFocused AppFocused; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) + { + MousePos = mousePos; + MouseWheel = mouseWheel; + MouseButton = mouseButton; + MouseViewport = mouseViewport; + Key = key; + Text = text; + AppFocused = appFocused; + } + + + } + + /// + /// To be documented. + /// + public ImGuiInputEventType Type; + + /// + /// To be documented. + /// + public ImGuiInputSource Source; + + /// + /// To be documented. + /// + public ImGuiInputEventUnion Union; + + /// + /// To be documented. + /// + public byte AddedByTestEngine; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, ImGuiInputEventUnion union = default, bool addedByTestEngine = default) + { + Type = type; + Source = source; + Union = union; + AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiInputEvent* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiInputEventPtr : IEquatable + { + public ImGuiInputEventPtr(ImGuiInputEvent* handle) { Handle = handle; } + + public ImGuiInputEvent* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiInputEventPtr Null => new ImGuiInputEventPtr(null); + + public ImGuiInputEvent this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiInputEventPtr(ImGuiInputEvent* handle) => new ImGuiInputEventPtr(handle); + + public static implicit operator ImGuiInputEvent*(ImGuiInputEventPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle == right; + + public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle != right; + + public bool Equals(ImGuiInputEventPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiInputEventPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiInputEventPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiInputEventType Type => ref Unsafe.AsRef(&Handle->Type); + /// + /// To be documented. + /// + public ref ImGuiInputSource Source => ref Unsafe.AsRef(&Handle->Source); + /// + /// To be documented. + /// + public ref ImGuiInputEvent.ImGuiInputEventUnion Union => ref Unsafe.AsRef(&Handle->Union); + /// + /// To be documented. + /// + public ref bool AddedByTestEngine => ref Unsafe.AsRef(&Handle->AddedByTestEngine); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs new file mode 100644 index 000000000..524a5c1d2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventAppFocused + { + /// + /// To be documented. + /// + public byte Focused; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventAppFocused(bool focused = default) + { + Focused = focused ? (byte)1 : (byte)0; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs new file mode 100644 index 000000000..f1ac87a2b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventKey + { + /// + /// To be documented. + /// + public ImGuiKey Key; + + /// + /// To be documented. + /// + public byte Down; + + /// + /// To be documented. + /// + public float AnalogValue; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) + { + Key = key; + Down = down ? (byte)1 : (byte)0; + AnalogValue = analogValue; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs new file mode 100644 index 000000000..6ef7723fa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseButton + { + /// + /// To be documented. + /// + public int Button; + + /// + /// To be documented. + /// + public byte Down; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default) + { + Button = button; + Down = down ? (byte)1 : (byte)0; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs new file mode 100644 index 000000000..e0a243474 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMousePos + { + /// + /// To be documented. + /// + public float PosX; + + /// + /// To be documented. + /// + public float PosY; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default) + { + PosX = posX; + PosY = posY; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs new file mode 100644 index 000000000..f76363e8f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseViewport + { + /// + /// To be documented. + /// + public uint HoveredViewportID; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) + { + HoveredViewportID = hoveredViewportId; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs new file mode 100644 index 000000000..d5c6e5822 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseWheel + { + /// + /// To be documented. + /// + public float WheelX; + + /// + /// To be documented. + /// + public float WheelY; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default) + { + WheelX = wheelX; + WheelY = wheelY; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs new file mode 100644 index 000000000..2d794d71e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventText + { + /// + /// To be documented. + /// + public uint Char; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputEventText(uint @char = default) + { + Char = @char; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs new file mode 100644 index 000000000..74b16adf8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs @@ -0,0 +1,1162 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextCallbackData + { + /// + /// To be documented. + /// + public ImGuiInputTextFlags EventFlag; + + /// + /// To be documented. + /// + public ImGuiInputTextFlags Flags; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public ushort EventChar; + + /// + /// To be documented. + /// + public ImGuiKey EventKey; + + /// + /// To be documented. + /// + public unsafe byte* Buf; + + /// + /// To be documented. + /// + public int BufTextLen; + + /// + /// To be documented. + /// + public int BufSize; + + /// + /// To be documented. + /// + public byte BufDirty; + + /// + /// To be documented. + /// + public int CursorPos; + + /// + /// To be documented. + /// + public int SelectionStart; + + /// + /// To be documented. + /// + public int SelectionEnd; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputTextCallbackData(ImGuiInputTextFlags eventFlag = default, ImGuiInputTextFlags flags = default, void* userData = default, ushort eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) + { + EventFlag = eventFlag; + Flags = flags; + UserData = userData; + EventChar = eventChar; + EventKey = eventKey; + Buf = buf; + BufTextLen = bufTextLen; + BufSize = bufSize; + BufDirty = bufDirty ? (byte)1 : (byte)0; + CursorPos = cursorPos; + SelectionStart = selectionStart; + SelectionEnd = selectionEnd; + } + + + /// + /// To be documented. + /// + public unsafe void ClearSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.ClearSelectionNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void DeleteChars(int pos, int bytesCount) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.DeleteCharsNative(@this, pos, bytesCount); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool HasSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte ret = ImGui.HasSelectionNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.InsertCharsNative(@this, pos, text, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.InsertCharsNative(@this, pos, text, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, string text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, string text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(@this, pos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(@this, pos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, string text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + ImGui.InsertCharsNative(@this, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + 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; + } + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + 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; + } + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, string text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, string text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void SelectAll() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.SelectAllNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiInputTextCallbackDataPtr : IEquatable + { + public ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) { Handle = handle; } + + public ImGuiInputTextCallbackData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiInputTextCallbackDataPtr Null => new ImGuiInputTextCallbackDataPtr(null); + + public ImGuiInputTextCallbackData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) => new ImGuiInputTextCallbackDataPtr(handle); + + public static implicit operator ImGuiInputTextCallbackData*(ImGuiInputTextCallbackDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle == right; + + public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle != right; + + public bool Equals(ImGuiInputTextCallbackDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiInputTextCallbackDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiInputTextCallbackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiInputTextFlags EventFlag => ref Unsafe.AsRef(&Handle->EventFlag); + /// + /// To be documented. + /// + public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + /// + /// To be documented. + /// + public ref ushort EventChar => ref Unsafe.AsRef(&Handle->EventChar); + /// + /// To be documented. + /// + public ref ImGuiKey EventKey => ref Unsafe.AsRef(&Handle->EventKey); + /// + /// To be documented. + /// + public byte* Buf { get => Handle->Buf; set => Handle->Buf = value; } + /// + /// To be documented. + /// + public ref int BufTextLen => ref Unsafe.AsRef(&Handle->BufTextLen); + /// + /// To be documented. + /// + public ref int BufSize => ref Unsafe.AsRef(&Handle->BufSize); + /// + /// To be documented. + /// + public ref bool BufDirty => ref Unsafe.AsRef(&Handle->BufDirty); + /// + /// To be documented. + /// + public ref int CursorPos => ref Unsafe.AsRef(&Handle->CursorPos); + /// + /// To be documented. + /// + public ref int SelectionStart => ref Unsafe.AsRef(&Handle->SelectionStart); + /// + /// To be documented. + /// + public ref int SelectionEnd => ref Unsafe.AsRef(&Handle->SelectionEnd); + /// + /// To be documented. + /// + public unsafe void ClearSelection() + { + ImGui.ClearSelectionNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void DeleteChars(int pos, int bytesCount) + { + ImGui.DeleteCharsNative(Handle, pos, bytesCount); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool HasSelection() + { + byte ret = ImGui.HasSelectionNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, byte* textEnd) + { + ImGui.InsertCharsNative(Handle, pos, text, textEnd); + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text) + { + ImGui.InsertCharsNative(Handle, pos, text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(Handle, pos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(Handle, pos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(int pos, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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; + } + ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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) + { + ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void InsertChars(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) + { + ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SelectAll() + { + ImGui.SelectAllNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs new file mode 100644 index 000000000..16900a641 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs @@ -0,0 +1,248 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextState + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int CurLenW; + + /// + /// To be documented. + /// + public int CurLenA; + + /// + /// To be documented. + /// + public ImVector TextW; + + /// + /// To be documented. + /// + public ImVector TextA; + + /// + /// To be documented. + /// + public ImVector InitialTextA; + + /// + /// To be documented. + /// + public byte TextAIsValid; + + /// + /// To be documented. + /// + public int BufCapacityA; + + /// + /// To be documented. + /// + public float ScrollX; + + /// + /// To be documented. + /// + public STBTexteditState Stb; + + /// + /// To be documented. + /// + public float CursorAnim; + + /// + /// To be documented. + /// + public byte CursorFollow; + + /// + /// To be documented. + /// + public byte SelectedAllMouseLock; + + /// + /// To be documented. + /// + public byte Edited; + + /// + /// To be documented. + /// + public ImGuiInputTextFlags Flags; + + + /// + /// To be documented. + /// + public unsafe ImGuiInputTextState(uint id = default, int curLenW = default, int curLenA = default, ImVector textW = default, ImVector textA = default, ImVector initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, ImGuiInputTextFlags flags = default) + { + ID = id; + CurLenW = curLenW; + CurLenA = curLenA; + TextW = textW; + TextA = textA; + InitialTextA = initialTextA; + TextAIsValid = textAIsValid ? (byte)1 : (byte)0; + BufCapacityA = bufCapacityA; + ScrollX = scrollX; + Stb = stb; + CursorAnim = cursorAnim; + CursorFollow = cursorFollow ? (byte)1 : (byte)0; + SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; + Edited = edited ? (byte)1 : (byte)0; + Flags = flags; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiInputTextState* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiInputTextStatePtr : IEquatable + { + public ImGuiInputTextStatePtr(ImGuiInputTextState* handle) { Handle = handle; } + + public ImGuiInputTextState* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiInputTextStatePtr Null => new ImGuiInputTextStatePtr(null); + + public ImGuiInputTextState this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiInputTextStatePtr(ImGuiInputTextState* handle) => new ImGuiInputTextStatePtr(handle); + + public static implicit operator ImGuiInputTextState*(ImGuiInputTextStatePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle == right; + + public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle != right; + + public bool Equals(ImGuiInputTextStatePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiInputTextStatePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiInputTextStatePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref int CurLenW => ref Unsafe.AsRef(&Handle->CurLenW); + /// + /// To be documented. + /// + public ref int CurLenA => ref Unsafe.AsRef(&Handle->CurLenA); + /// + /// To be documented. + /// + public ref ImVector TextW => ref Unsafe.AsRef>(&Handle->TextW); + /// + /// To be documented. + /// + public ref ImVector TextA => ref Unsafe.AsRef>(&Handle->TextA); + /// + /// To be documented. + /// + public ref ImVector InitialTextA => ref Unsafe.AsRef>(&Handle->InitialTextA); + /// + /// To be documented. + /// + public ref bool TextAIsValid => ref Unsafe.AsRef(&Handle->TextAIsValid); + /// + /// To be documented. + /// + public ref int BufCapacityA => ref Unsafe.AsRef(&Handle->BufCapacityA); + /// + /// To be documented. + /// + public ref float ScrollX => ref Unsafe.AsRef(&Handle->ScrollX); + /// + /// To be documented. + /// + public ref STBTexteditState Stb => ref Unsafe.AsRef(&Handle->Stb); + /// + /// To be documented. + /// + public ref float CursorAnim => ref Unsafe.AsRef(&Handle->CursorAnim); + /// + /// To be documented. + /// + public ref bool CursorFollow => ref Unsafe.AsRef(&Handle->CursorFollow); + /// + /// To be documented. + /// + public ref bool SelectedAllMouseLock => ref Unsafe.AsRef(&Handle->SelectedAllMouseLock); + /// + /// To be documented. + /// + public ref bool Edited => ref Unsafe.AsRef(&Handle->Edited); + /// + /// To be documented. + /// + public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs new file mode 100644 index 000000000..e59b3e65a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs @@ -0,0 +1,119 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyData + { + /// + /// To be documented. + /// + public byte Down; + + /// + /// To be documented. + /// + public float DownDuration; + + /// + /// To be documented. + /// + public float DownDurationPrev; + + /// + /// To be documented. + /// + public float AnalogValue; + + + /// + /// To be documented. + /// + public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) + { + Down = down ? (byte)1 : (byte)0; + DownDuration = downDuration; + DownDurationPrev = downDurationPrev; + AnalogValue = analogValue; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiKeyDataPtr : IEquatable + { + public ImGuiKeyDataPtr(ImGuiKeyData* handle) { Handle = handle; } + + public ImGuiKeyData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiKeyDataPtr Null => new ImGuiKeyDataPtr(null); + + public ImGuiKeyData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiKeyDataPtr(ImGuiKeyData* handle) => new ImGuiKeyDataPtr(handle); + + public static implicit operator ImGuiKeyData*(ImGuiKeyDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle == right; + + public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle != right; + + public bool Equals(ImGuiKeyDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiKeyDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiKeyDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool Down => ref Unsafe.AsRef(&Handle->Down); + /// + /// To be documented. + /// + public ref float DownDuration => ref Unsafe.AsRef(&Handle->DownDuration); + /// + /// To be documented. + /// + public ref float DownDurationPrev => ref Unsafe.AsRef(&Handle->DownDurationPrev); + /// + /// To be documented. + /// + public ref float AnalogValue => ref Unsafe.AsRef(&Handle->AnalogValue); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs new file mode 100644 index 000000000..489b207e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs @@ -0,0 +1,158 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiLastItemData + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiItemFlags InFlags; + + /// + /// To be documented. + /// + public ImGuiItemStatusFlags StatusFlags; + + /// + /// To be documented. + /// + public ImRect Rect; + + /// + /// To be documented. + /// + public ImRect NavRect; + + /// + /// To be documented. + /// + public ImRect DisplayRect; + + + /// + /// To be documented. + /// + public unsafe ImGuiLastItemData(uint id = default, ImGuiItemFlags inFlags = default, ImGuiItemStatusFlags statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) + { + ID = id; + InFlags = inFlags; + StatusFlags = statusFlags; + Rect = rect; + NavRect = navRect; + DisplayRect = displayRect; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiLastItemData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiLastItemDataPtr : IEquatable + { + public ImGuiLastItemDataPtr(ImGuiLastItemData* handle) { Handle = handle; } + + public ImGuiLastItemData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiLastItemDataPtr Null => new ImGuiLastItemDataPtr(null); + + public ImGuiLastItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* handle) => new ImGuiLastItemDataPtr(handle); + + public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle == right; + + public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle != right; + + public bool Equals(ImGuiLastItemDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiLastItemDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiLastItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef(&Handle->InFlags); + /// + /// To be documented. + /// + public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef(&Handle->StatusFlags); + /// + /// To be documented. + /// + public ref ImRect Rect => ref Unsafe.AsRef(&Handle->Rect); + /// + /// To be documented. + /// + public ref ImRect NavRect => ref Unsafe.AsRef(&Handle->NavRect); + /// + /// To be documented. + /// + public ref ImRect DisplayRect => ref Unsafe.AsRef(&Handle->DisplayRect); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs new file mode 100644 index 000000000..4e732c6e6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs @@ -0,0 +1,255 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipper + { + /// + /// To be documented. + /// + public int DisplayStart; + + /// + /// To be documented. + /// + public int DisplayEnd; + + /// + /// To be documented. + /// + public int ItemsCount; + + /// + /// To be documented. + /// + public float ItemsHeight; + + /// + /// To be documented. + /// + public float StartPosY; + + /// + /// To be documented. + /// + public unsafe void* TempData; + + + /// + /// To be documented. + /// + public unsafe ImGuiListClipper(int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) + { + DisplayStart = displayStart; + DisplayEnd = displayEnd; + ItemsCount = itemsCount; + ItemsHeight = itemsHeight; + StartPosY = startPosY; + TempData = tempData; + } + + + /// + /// To be documented. + /// + public unsafe void Begin(int itemsCount, float itemsHeight) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.BeginNative(@this, itemsCount, itemsHeight); + } + } + + /// + /// To be documented. + /// + public unsafe void Begin(int itemsCount) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.BeginNative(@this, itemsCount, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void End() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.EndNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.ForceDisplayRangeByIndicesNative(@this, itemMin, itemMax); + } + } + + /// + /// To be documented. + /// + public unsafe bool Step() + { + fixed (ImGuiListClipper* @this = &this) + { + byte ret = ImGui.StepNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiListClipperPtr : IEquatable + { + public ImGuiListClipperPtr(ImGuiListClipper* handle) { Handle = handle; } + + public ImGuiListClipper* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiListClipperPtr Null => new ImGuiListClipperPtr(null); + + public ImGuiListClipper this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* handle) => new ImGuiListClipperPtr(handle); + + public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle == right; + + public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle != right; + + public bool Equals(ImGuiListClipperPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiListClipperPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiListClipperPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int DisplayStart => ref Unsafe.AsRef(&Handle->DisplayStart); + /// + /// To be documented. + /// + public ref int DisplayEnd => ref Unsafe.AsRef(&Handle->DisplayEnd); + /// + /// To be documented. + /// + public ref int ItemsCount => ref Unsafe.AsRef(&Handle->ItemsCount); + /// + /// To be documented. + /// + public ref float ItemsHeight => ref Unsafe.AsRef(&Handle->ItemsHeight); + /// + /// To be documented. + /// + public ref float StartPosY => ref Unsafe.AsRef(&Handle->StartPosY); + /// + /// To be documented. + /// + public void* TempData { get => Handle->TempData; set => Handle->TempData = value; } + /// + /// To be documented. + /// + public unsafe void Begin(int itemsCount, float itemsHeight) + { + ImGui.BeginNative(Handle, itemsCount, itemsHeight); + } + + /// + /// To be documented. + /// + public unsafe void Begin(int itemsCount) + { + ImGui.BeginNative(Handle, itemsCount, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void End() + { + ImGui.EndNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) + { + ImGui.ForceDisplayRangeByIndicesNative(Handle, itemMin, itemMax); + } + + /// + /// To be documented. + /// + public unsafe bool Step() + { + byte ret = ImGui.StepNative(Handle); + return ret != 0; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs new file mode 100644 index 000000000..f30c4c4c0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs @@ -0,0 +1,148 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperData + { + /// + /// To be documented. + /// + public unsafe ImGuiListClipper* ListClipper; + + /// + /// To be documented. + /// + public float LossynessOffset; + + /// + /// To be documented. + /// + public int StepNo; + + /// + /// To be documented. + /// + public int ItemsFrozen; + + /// + /// To be documented. + /// + public ImVector Ranges; + + + /// + /// To be documented. + /// + public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVector ranges = default) + { + ListClipper = listClipper; + LossynessOffset = lossynessOffset; + StepNo = stepNo; + ItemsFrozen = itemsFrozen; + Ranges = ranges; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiListClipperData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiListClipperDataPtr : IEquatable + { + public ImGuiListClipperDataPtr(ImGuiListClipperData* handle) { Handle = handle; } + + public ImGuiListClipperData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiListClipperDataPtr Null => new ImGuiListClipperDataPtr(null); + + public ImGuiListClipperData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiListClipperDataPtr(ImGuiListClipperData* handle) => new ImGuiListClipperDataPtr(handle); + + public static implicit operator ImGuiListClipperData*(ImGuiListClipperDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle == right; + + public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle != right; + + public bool Equals(ImGuiListClipperDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiListClipperDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiListClipperDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiListClipperPtr ListClipper => ref Unsafe.AsRef(&Handle->ListClipper); + /// + /// To be documented. + /// + public ref float LossynessOffset => ref Unsafe.AsRef(&Handle->LossynessOffset); + /// + /// To be documented. + /// + public ref int StepNo => ref Unsafe.AsRef(&Handle->StepNo); + /// + /// To be documented. + /// + public ref int ItemsFrozen => ref Unsafe.AsRef(&Handle->ItemsFrozen); + /// + /// To be documented. + /// + public ref ImVector Ranges => ref Unsafe.AsRef>(&Handle->Ranges); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs new file mode 100644 index 000000000..aeccdf4de --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs @@ -0,0 +1,129 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperRange + { + /// + /// To be documented. + /// + public int Min; + + /// + /// To be documented. + /// + public int Max; + + /// + /// To be documented. + /// + public byte PosToIndexConvert; + + /// + /// To be documented. + /// + public sbyte PosToIndexOffsetMin; + + /// + /// To be documented. + /// + public sbyte PosToIndexOffsetMax; + + + /// + /// To be documented. + /// + public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, sbyte posToIndexOffsetMin = default, sbyte posToIndexOffsetMax = default) + { + Min = min; + Max = max; + PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; + PosToIndexOffsetMin = posToIndexOffsetMin; + PosToIndexOffsetMax = posToIndexOffsetMax; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiListClipperRangePtr : IEquatable + { + public ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) { Handle = handle; } + + public ImGuiListClipperRange* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiListClipperRangePtr Null => new ImGuiListClipperRangePtr(null); + + public ImGuiListClipperRange this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) => new ImGuiListClipperRangePtr(handle); + + public static implicit operator ImGuiListClipperRange*(ImGuiListClipperRangePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle == right; + + public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle != right; + + public bool Equals(ImGuiListClipperRangePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiListClipperRangePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiListClipperRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int Min => ref Unsafe.AsRef(&Handle->Min); + /// + /// To be documented. + /// + public ref int Max => ref Unsafe.AsRef(&Handle->Max); + /// + /// To be documented. + /// + public ref bool PosToIndexConvert => ref Unsafe.AsRef(&Handle->PosToIndexConvert); + /// + /// To be documented. + /// + public ref sbyte PosToIndexOffsetMin => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMin); + /// + /// To be documented. + /// + 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 new file mode 100644 index 000000000..c1d528633 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs @@ -0,0 +1,215 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMenuColumns + { + /// + /// To be documented. + /// + public uint TotalWidth; + + /// + /// To be documented. + /// + public uint NextTotalWidth; + + /// + /// To be documented. + /// + public ushort Spacing; + + /// + /// To be documented. + /// + public ushort OffsetIcon; + + /// + /// To be documented. + /// + public ushort OffsetLabel; + + /// + /// To be documented. + /// + public ushort OffsetShortcut; + + /// + /// To be documented. + /// + public ushort OffsetMark; + + /// + /// To be documented. + /// + public ushort Widths_0; + public ushort Widths_1; + public ushort Widths_2; + public ushort Widths_3; + + + /// + /// To be documented. + /// + public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default(ushort*)) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default(Span)) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiMenuColumns* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiMenuColumnsPtr : IEquatable + { + public ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) { Handle = handle; } + + public ImGuiMenuColumns* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiMenuColumnsPtr Null => new ImGuiMenuColumnsPtr(null); + + public ImGuiMenuColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) => new ImGuiMenuColumnsPtr(handle); + + public static implicit operator ImGuiMenuColumns*(ImGuiMenuColumnsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle == right; + + public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle != right; + + public bool Equals(ImGuiMenuColumnsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiMenuColumnsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiMenuColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint TotalWidth => ref Unsafe.AsRef(&Handle->TotalWidth); + /// + /// To be documented. + /// + public ref uint NextTotalWidth => ref Unsafe.AsRef(&Handle->NextTotalWidth); + /// + /// To be documented. + /// + public ref ushort Spacing => ref Unsafe.AsRef(&Handle->Spacing); + /// + /// To be documented. + /// + public ref ushort OffsetIcon => ref Unsafe.AsRef(&Handle->OffsetIcon); + /// + /// To be documented. + /// + public ref ushort OffsetLabel => ref Unsafe.AsRef(&Handle->OffsetLabel); + /// + /// To be documented. + /// + public ref ushort OffsetShortcut => ref Unsafe.AsRef(&Handle->OffsetShortcut); + /// + /// To be documented. + /// + public ref ushort OffsetMark => ref Unsafe.AsRef(&Handle->OffsetMark); + /// + /// To be documented. + /// + public unsafe Span Widths + + { + get + { + return new Span(&Handle->Widths_0, 4); + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs new file mode 100644 index 000000000..85dcf7be1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs @@ -0,0 +1,198 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMetricsConfig + { + /// + /// To be documented. + /// + public byte ShowDebugLog; + + /// + /// To be documented. + /// + public byte ShowStackTool; + + /// + /// To be documented. + /// + public byte ShowWindowsRects; + + /// + /// To be documented. + /// + public byte ShowWindowsBeginOrder; + + /// + /// To be documented. + /// + public byte ShowTablesRects; + + /// + /// To be documented. + /// + public byte ShowDrawCmdMesh; + + /// + /// To be documented. + /// + public byte ShowDrawCmdBoundingBoxes; + + /// + /// To be documented. + /// + public byte ShowDockingNodes; + + /// + /// To be documented. + /// + public int ShowWindowsRectsType; + + /// + /// To be documented. + /// + public int ShowTablesRectsType; + + + /// + /// To be documented. + /// + public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) + { + ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; + ShowStackTool = showStackTool ? (byte)1 : (byte)0; + ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; + ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; + ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; + ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; + ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; + ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; + ShowWindowsRectsType = showWindowsRectsType; + ShowTablesRectsType = showTablesRectsType; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiMetricsConfig* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiMetricsConfigPtr : IEquatable + { + public ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) { Handle = handle; } + + public ImGuiMetricsConfig* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiMetricsConfigPtr Null => new ImGuiMetricsConfigPtr(null); + + public ImGuiMetricsConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) => new ImGuiMetricsConfigPtr(handle); + + public static implicit operator ImGuiMetricsConfig*(ImGuiMetricsConfigPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle == right; + + public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle != right; + + public bool Equals(ImGuiMetricsConfigPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiMetricsConfigPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiMetricsConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool ShowDebugLog => ref Unsafe.AsRef(&Handle->ShowDebugLog); + /// + /// To be documented. + /// + public ref bool ShowStackTool => ref Unsafe.AsRef(&Handle->ShowStackTool); + /// + /// To be documented. + /// + public ref bool ShowWindowsRects => ref Unsafe.AsRef(&Handle->ShowWindowsRects); + /// + /// To be documented. + /// + public ref bool ShowWindowsBeginOrder => ref Unsafe.AsRef(&Handle->ShowWindowsBeginOrder); + /// + /// To be documented. + /// + public ref bool ShowTablesRects => ref Unsafe.AsRef(&Handle->ShowTablesRects); + /// + /// To be documented. + /// + public ref bool ShowDrawCmdMesh => ref Unsafe.AsRef(&Handle->ShowDrawCmdMesh); + /// + /// To be documented. + /// + public ref bool ShowDrawCmdBoundingBoxes => ref Unsafe.AsRef(&Handle->ShowDrawCmdBoundingBoxes); + /// + /// To be documented. + /// + public ref bool ShowDockingNodes => ref Unsafe.AsRef(&Handle->ShowDockingNodes); + /// + /// To be documented. + /// + public ref int ShowWindowsRectsType => ref Unsafe.AsRef(&Handle->ShowWindowsRectsType); + /// + /// To be documented. + /// + public ref int ShowTablesRectsType => ref Unsafe.AsRef(&Handle->ShowTablesRectsType); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs new file mode 100644 index 000000000..4c272cfaa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs @@ -0,0 +1,178 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNavItemData + { + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public uint FocusScopeId; + + /// + /// To be documented. + /// + public ImRect RectRel; + + /// + /// To be documented. + /// + public ImGuiItemFlags InFlags; + + /// + /// To be documented. + /// + public float DistBox; + + /// + /// To be documented. + /// + public float DistCenter; + + /// + /// To be documented. + /// + public float DistAxial; + + + /// + /// To be documented. + /// + public unsafe ImGuiNavItemData(ImGuiWindowPtr window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, ImGuiItemFlags inFlags = default, float distBox = default, float distCenter = default, float distAxial = default) + { + Window = window; + ID = id; + FocusScopeId = focusScopeId; + RectRel = rectRel; + InFlags = inFlags; + DistBox = distBox; + DistCenter = distCenter; + DistAxial = distAxial; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiNavItemData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiNavItemDataPtr : IEquatable + { + public ImGuiNavItemDataPtr(ImGuiNavItemData* handle) { Handle = handle; } + + public ImGuiNavItemData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiNavItemDataPtr Null => new ImGuiNavItemDataPtr(null); + + public ImGuiNavItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiNavItemDataPtr(ImGuiNavItemData* handle) => new ImGuiNavItemDataPtr(handle); + + public static implicit operator ImGuiNavItemData*(ImGuiNavItemDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle == right; + + public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle != right; + + public bool Equals(ImGuiNavItemDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiNavItemDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiNavItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref uint FocusScopeId => ref Unsafe.AsRef(&Handle->FocusScopeId); + /// + /// To be documented. + /// + public ref ImRect RectRel => ref Unsafe.AsRef(&Handle->RectRel); + /// + /// To be documented. + /// + public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef(&Handle->InFlags); + /// + /// To be documented. + /// + public ref float DistBox => ref Unsafe.AsRef(&Handle->DistBox); + /// + /// To be documented. + /// + public ref float DistCenter => ref Unsafe.AsRef(&Handle->DistCenter); + /// + /// To be documented. + /// + public ref float DistAxial => ref Unsafe.AsRef(&Handle->DistAxial); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs new file mode 100644 index 000000000..75938ddd5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs @@ -0,0 +1,148 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextItemData + { + /// + /// To be documented. + /// + public ImGuiNextItemDataFlags Flags; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public uint FocusScopeId; + + /// + /// To be documented. + /// + public ImGuiCond OpenCond; + + /// + /// To be documented. + /// + public byte OpenVal; + + + /// + /// To be documented. + /// + public unsafe ImGuiNextItemData(ImGuiNextItemDataFlags flags = default, float width = default, uint focusScopeId = default, ImGuiCond openCond = default, bool openVal = default) + { + Flags = flags; + Width = width; + FocusScopeId = focusScopeId; + OpenCond = openCond; + OpenVal = openVal ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiNextItemData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiNextItemDataPtr : IEquatable + { + public ImGuiNextItemDataPtr(ImGuiNextItemData* handle) { Handle = handle; } + + public ImGuiNextItemData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiNextItemDataPtr Null => new ImGuiNextItemDataPtr(null); + + public ImGuiNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiNextItemDataPtr(ImGuiNextItemData* handle) => new ImGuiNextItemDataPtr(handle); + + public static implicit operator ImGuiNextItemData*(ImGuiNextItemDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle == right; + + public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle != right; + + public bool Equals(ImGuiNextItemDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiNextItemDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiNextItemDataFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + /// + /// To be documented. + /// + public ref uint FocusScopeId => ref Unsafe.AsRef(&Handle->FocusScopeId); + /// + /// To be documented. + /// + public ref ImGuiCond OpenCond => ref Unsafe.AsRef(&Handle->OpenCond); + /// + /// To be documented. + /// + public ref bool OpenVal => ref Unsafe.AsRef(&Handle->OpenVal); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs new file mode 100644 index 000000000..7ef6d0590 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs @@ -0,0 +1,297 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextWindowData + { + /// + /// To be documented. + /// + public ImGuiNextWindowDataFlags Flags; + + /// + /// To be documented. + /// + public ImGuiCond PosCond; + + /// + /// To be documented. + /// + public ImGuiCond SizeCond; + + /// + /// To be documented. + /// + public ImGuiCond CollapsedCond; + + /// + /// To be documented. + /// + public ImGuiCond DockCond; + + /// + /// To be documented. + /// + public Vector2 PosVal; + + /// + /// To be documented. + /// + public Vector2 PosPivotVal; + + /// + /// To be documented. + /// + public Vector2 SizeVal; + + /// + /// To be documented. + /// + public Vector2 ContentSizeVal; + + /// + /// To be documented. + /// + public Vector2 ScrollVal; + + /// + /// To be documented. + /// + public byte PosUndock; + + /// + /// To be documented. + /// + public byte CollapsedVal; + + /// + /// To be documented. + /// + public ImRect SizeConstraintRect; + + /// + /// To be documented. + /// + public unsafe void* SizeCallback; + /// + /// To be documented. + /// + public unsafe void* SizeCallbackUserData; + + /// + /// To be documented. + /// + public float BgAlphaVal; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public Vector2 MenuBarOffsetMinVal; + + + /// + /// To be documented. + /// + public unsafe ImGuiNextWindowData(ImGuiNextWindowDataFlags flags = default, ImGuiCond posCond = default, ImGuiCond sizeCond = default, ImGuiCond collapsedCond = default, ImGuiCond dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, ImGuiSizeCallback sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) + { + Flags = flags; + PosCond = posCond; + SizeCond = sizeCond; + CollapsedCond = collapsedCond; + DockCond = dockCond; + PosVal = posVal; + PosPivotVal = posPivotVal; + SizeVal = sizeVal; + ContentSizeVal = contentSizeVal; + ScrollVal = scrollVal; + PosUndock = posUndock ? (byte)1 : (byte)0; + CollapsedVal = collapsedVal ? (byte)1 : (byte)0; + SizeConstraintRect = sizeConstraintRect; + SizeCallback = (void*)Marshal.GetFunctionPointerForDelegate(sizeCallback); + SizeCallbackUserData = sizeCallbackUserData; + BgAlphaVal = bgAlphaVal; + ViewportId = viewportId; + DockId = dockId; + WindowClass = windowClass; + MenuBarOffsetMinVal = menuBarOffsetMinVal; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiNextWindowData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiNextWindowDataPtr : IEquatable + { + public ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) { Handle = handle; } + + public ImGuiNextWindowData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiNextWindowDataPtr Null => new ImGuiNextWindowDataPtr(null); + + public ImGuiNextWindowData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) => new ImGuiNextWindowDataPtr(handle); + + public static implicit operator ImGuiNextWindowData*(ImGuiNextWindowDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle == right; + + public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle != right; + + public bool Equals(ImGuiNextWindowDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiNextWindowDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiNextWindowDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiNextWindowDataFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImGuiCond PosCond => ref Unsafe.AsRef(&Handle->PosCond); + /// + /// To be documented. + /// + public ref ImGuiCond SizeCond => ref Unsafe.AsRef(&Handle->SizeCond); + /// + /// To be documented. + /// + public ref ImGuiCond CollapsedCond => ref Unsafe.AsRef(&Handle->CollapsedCond); + /// + /// To be documented. + /// + public ref ImGuiCond DockCond => ref Unsafe.AsRef(&Handle->DockCond); + /// + /// To be documented. + /// + public ref Vector2 PosVal => ref Unsafe.AsRef(&Handle->PosVal); + /// + /// To be documented. + /// + public ref Vector2 PosPivotVal => ref Unsafe.AsRef(&Handle->PosPivotVal); + /// + /// To be documented. + /// + public ref Vector2 SizeVal => ref Unsafe.AsRef(&Handle->SizeVal); + /// + /// To be documented. + /// + public ref Vector2 ContentSizeVal => ref Unsafe.AsRef(&Handle->ContentSizeVal); + /// + /// To be documented. + /// + public ref Vector2 ScrollVal => ref Unsafe.AsRef(&Handle->ScrollVal); + /// + /// To be documented. + /// + public ref bool PosUndock => ref Unsafe.AsRef(&Handle->PosUndock); + /// + /// To be documented. + /// + public ref bool CollapsedVal => ref Unsafe.AsRef(&Handle->CollapsedVal); + /// + /// To be documented. + /// + public ref ImRect SizeConstraintRect => ref Unsafe.AsRef(&Handle->SizeConstraintRect); + /// + /// To be documented. + /// + public void* SizeCallback { get => Handle->SizeCallback; set => Handle->SizeCallback = value; } + /// + /// To be documented. + /// + public void* SizeCallbackUserData { get => Handle->SizeCallbackUserData; set => Handle->SizeCallbackUserData = value; } + /// + /// To be documented. + /// + public ref float BgAlphaVal => ref Unsafe.AsRef(&Handle->BgAlphaVal); + /// + /// To be documented. + /// + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + /// + /// To be documented. + /// + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + /// + /// To be documented. + /// + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + /// + /// To be documented. + /// + public ref Vector2 MenuBarOffsetMinVal => ref Unsafe.AsRef(&Handle->MenuBarOffsetMinVal); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs new file mode 100644 index 000000000..4b48d0a81 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumnData + { + /// + /// To be documented. + /// + public float OffsetNorm; + + /// + /// To be documented. + /// + public float OffsetNormBeforeResize; + + /// + /// To be documented. + /// + public ImGuiOldColumnFlags Flags; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, ImGuiOldColumnFlags flags = default, ImRect clipRect = default) + { + OffsetNorm = offsetNorm; + OffsetNormBeforeResize = offsetNormBeforeResize; + Flags = flags; + ClipRect = clipRect; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiOldColumnData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiOldColumnDataPtr : IEquatable + { + public ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) { Handle = handle; } + + public ImGuiOldColumnData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiOldColumnDataPtr Null => new ImGuiOldColumnDataPtr(null); + + public ImGuiOldColumnData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) => new ImGuiOldColumnDataPtr(handle); + + public static implicit operator ImGuiOldColumnData*(ImGuiOldColumnDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle == right; + + public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle != right; + + public bool Equals(ImGuiOldColumnDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiOldColumnDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiOldColumnDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float OffsetNorm => ref Unsafe.AsRef(&Handle->OffsetNorm); + /// + /// To be documented. + /// + public ref float OffsetNormBeforeResize => ref Unsafe.AsRef(&Handle->OffsetNormBeforeResize); + /// + /// To be documented. + /// + public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs new file mode 100644 index 000000000..5932630d5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs @@ -0,0 +1,268 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumns + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiOldColumnFlags Flags; + + /// + /// To be documented. + /// + public byte IsFirstFrame; + + /// + /// To be documented. + /// + public byte IsBeingResized; + + /// + /// To be documented. + /// + public int Current; + + /// + /// To be documented. + /// + public int Count; + + /// + /// To be documented. + /// + public float OffMinX; + + /// + /// To be documented. + /// + public float OffMaxX; + + /// + /// To be documented. + /// + public float LineMinY; + + /// + /// To be documented. + /// + public float LineMaxY; + + /// + /// To be documented. + /// + public float HostCursorPosY; + + /// + /// To be documented. + /// + public float HostCursorMaxPosX; + + /// + /// To be documented. + /// + public ImRect HostInitialClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupParentWorkRect; + + /// + /// To be documented. + /// + public ImVector Columns; + + /// + /// To be documented. + /// + public ImDrawListSplitter Splitter; + + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumns(uint id = default, ImGuiOldColumnFlags flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVector columns = default, ImDrawListSplitter splitter = default) + { + ID = id; + Flags = flags; + IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; + IsBeingResized = isBeingResized ? (byte)1 : (byte)0; + Current = current; + Count = count; + OffMinX = offMinX; + OffMaxX = offMaxX; + LineMinY = lineMinY; + LineMaxY = lineMaxY; + HostCursorPosY = hostCursorPosY; + HostCursorMaxPosX = hostCursorMaxPosX; + HostInitialClipRect = hostInitialClipRect; + HostBackupClipRect = hostBackupClipRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + Columns = columns; + Splitter = splitter; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiOldColumns* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiOldColumnsPtr : IEquatable + { + public ImGuiOldColumnsPtr(ImGuiOldColumns* handle) { Handle = handle; } + + public ImGuiOldColumns* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiOldColumnsPtr Null => new ImGuiOldColumnsPtr(null); + + public ImGuiOldColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiOldColumnsPtr(ImGuiOldColumns* handle) => new ImGuiOldColumnsPtr(handle); + + public static implicit operator ImGuiOldColumns*(ImGuiOldColumnsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle == right; + + public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle != right; + + public bool Equals(ImGuiOldColumnsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiOldColumnsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiOldColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref bool IsFirstFrame => ref Unsafe.AsRef(&Handle->IsFirstFrame); + /// + /// To be documented. + /// + public ref bool IsBeingResized => ref Unsafe.AsRef(&Handle->IsBeingResized); + /// + /// To be documented. + /// + public ref int Current => ref Unsafe.AsRef(&Handle->Current); + /// + /// To be documented. + /// + public ref int Count => ref Unsafe.AsRef(&Handle->Count); + /// + /// To be documented. + /// + public ref float OffMinX => ref Unsafe.AsRef(&Handle->OffMinX); + /// + /// To be documented. + /// + public ref float OffMaxX => ref Unsafe.AsRef(&Handle->OffMaxX); + /// + /// To be documented. + /// + public ref float LineMinY => ref Unsafe.AsRef(&Handle->LineMinY); + /// + /// To be documented. + /// + public ref float LineMaxY => ref Unsafe.AsRef(&Handle->LineMaxY); + /// + /// To be documented. + /// + public ref float HostCursorPosY => ref Unsafe.AsRef(&Handle->HostCursorPosY); + /// + /// To be documented. + /// + public ref float HostCursorMaxPosX => ref Unsafe.AsRef(&Handle->HostCursorMaxPosX); + /// + /// To be documented. + /// + public ref ImRect HostInitialClipRect => ref Unsafe.AsRef(&Handle->HostInitialClipRect); + /// + /// To be documented. + /// + public ref ImRect HostBackupClipRect => ref Unsafe.AsRef(&Handle->HostBackupClipRect); + /// + /// To be documented. + /// + public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect); + /// + /// To be documented. + /// + public ref ImVector Columns => ref Unsafe.AsRef>(&Handle->Columns); + /// + /// To be documented. + /// + public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef(&Handle->Splitter); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs new file mode 100644 index 000000000..68533d36c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs @@ -0,0 +1,108 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOnceUponAFrame + { + /// + /// To be documented. + /// + public int RefFrame; + + + /// + /// To be documented. + /// + public unsafe ImGuiOnceUponAFrame(int refFrame = default) + { + RefFrame = refFrame; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiOnceUponAFrame* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiOnceUponAFramePtr : IEquatable + { + public ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) { Handle = handle; } + + public ImGuiOnceUponAFrame* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiOnceUponAFramePtr Null => new ImGuiOnceUponAFramePtr(null); + + public ImGuiOnceUponAFrame this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) => new ImGuiOnceUponAFramePtr(handle); + + public static implicit operator ImGuiOnceUponAFrame*(ImGuiOnceUponAFramePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle == right; + + public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle != right; + + public bool Equals(ImGuiOnceUponAFramePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiOnceUponAFramePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiOnceUponAFramePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int RefFrame => ref Unsafe.AsRef(&Handle->RefFrame); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs new file mode 100644 index 000000000..a96f66ef4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs @@ -0,0 +1,501 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPayload + { + /// + /// To be documented. + /// + public unsafe void* Data; + + /// + /// To be documented. + /// + public int DataSize; + + /// + /// To be documented. + /// + public uint SourceId; + + /// + /// To be documented. + /// + public uint SourceParentId; + + /// + /// To be documented. + /// + public int DataFrameCount; + + /// + /// To be documented. + /// + public byte DataType_0; + public byte DataType_1; + public byte DataType_2; + public byte DataType_3; + public byte DataType_4; + public byte DataType_5; + public byte DataType_6; + public byte DataType_7; + public byte DataType_8; + public byte DataType_9; + public byte DataType_10; + public byte DataType_11; + public byte DataType_12; + public byte DataType_13; + public byte DataType_14; + public byte DataType_15; + public byte DataType_16; + public byte DataType_17; + public byte DataType_18; + public byte DataType_19; + public byte DataType_20; + public byte DataType_21; + public byte DataType_22; + public byte DataType_23; + public byte DataType_24; + public byte DataType_25; + public byte DataType_26; + public byte DataType_27; + public byte DataType_28; + public byte DataType_29; + public byte DataType_30; + public byte DataType_31; + public byte DataType_32; + + /// + /// To be documented. + /// + public byte Preview; + + /// + /// To be documented. + /// + public byte Delivery; + + + /// + /// To be documented. + /// + public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default(byte*)) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default(Span)) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImGuiPayload* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPayload* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(byte* type) + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsDataTypeNative(@this, type); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(ref byte type) + { + fixed (ImGuiPayload* @this = &this) + { + fixed (byte* ptype = &type) + { + byte ret = ImGui.IsDataTypeNative(@this, (byte*)ptype); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(ReadOnlySpan type) + { + fixed (ImGuiPayload* @this = &this) + { + fixed (byte* ptype = type) + { + byte ret = ImGui.IsDataTypeNative(@this, (byte*)ptype); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(string type) + { + fixed (ImGuiPayload* @this = &this) + { + 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 = ImGui.IsDataTypeNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDelivery() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsDeliveryNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsPreview() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsPreviewNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPayloadPtr : IEquatable + { + public ImGuiPayloadPtr(ImGuiPayload* handle) { Handle = handle; } + + public ImGuiPayload* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPayloadPtr Null => new ImGuiPayloadPtr(null); + + public ImGuiPayload this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPayloadPtr(ImGuiPayload* handle) => new ImGuiPayloadPtr(handle); + + public static implicit operator ImGuiPayload*(ImGuiPayloadPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle == right; + + public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle != right; + + public bool Equals(ImGuiPayloadPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPayloadPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPayloadPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public void* Data { get => Handle->Data; set => Handle->Data = value; } + /// + /// To be documented. + /// + public ref int DataSize => ref Unsafe.AsRef(&Handle->DataSize); + /// + /// To be documented. + /// + public ref uint SourceId => ref Unsafe.AsRef(&Handle->SourceId); + /// + /// To be documented. + /// + public ref uint SourceParentId => ref Unsafe.AsRef(&Handle->SourceParentId); + /// + /// To be documented. + /// + public ref int DataFrameCount => ref Unsafe.AsRef(&Handle->DataFrameCount); + /// + /// To be documented. + /// + public unsafe Span DataType + + { + get + { + return new Span(&Handle->DataType_0, 33); + } + } + /// + /// To be documented. + /// + public ref bool Preview => ref Unsafe.AsRef(&Handle->Preview); + /// + /// To be documented. + /// + public ref bool Delivery => ref Unsafe.AsRef(&Handle->Delivery); + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(byte* type) + { + byte ret = ImGui.IsDataTypeNative(Handle, type); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(ref byte type) + { + fixed (byte* ptype = &type) + { + byte ret = ImGui.IsDataTypeNative(Handle, (byte*)ptype); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(ReadOnlySpan type) + { + fixed (byte* ptype = type) + { + byte ret = ImGui.IsDataTypeNative(Handle, (byte*)ptype); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsDataType(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 = ImGui.IsDataTypeNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsDelivery() + { + byte ret = ImGui.IsDeliveryNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsPreview() + { + byte ret = ImGui.IsPreviewNative(Handle); + return ret != 0; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs new file mode 100644 index 000000000..2f649346e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs @@ -0,0 +1,348 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformIO + { + /// + /// To be documented. + /// + public unsafe void* PlatformCreateWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformDestroyWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformShowWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowPos; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowPos; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowFocus; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowFocus; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowMinimized; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowTitle; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowAlpha; + + /// + /// To be documented. + /// + public unsafe void* PlatformUpdateWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformRenderWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformSwapBuffers; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowDpiScale; + + /// + /// To be documented. + /// + public unsafe void* PlatformOnChangedViewport; + + /// + /// To be documented. + /// + public unsafe void* PlatformCreateVkSurface; + + /// + /// To be documented. + /// + public unsafe void* RendererCreateWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererDestroyWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererSetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* RendererRenderWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererSwapBuffers; + + /// + /// To be documented. + /// + public ImVector Monitors; + + /// + /// To be documented. + /// + public ImVector Viewports; + + + /// + /// To be documented. + /// + public unsafe ImGuiPlatformIO(delegate* platformCreatewindow = default, delegate* platformDestroywindow = default, delegate* platformShowwindow = default, delegate* platformSetwindowpos = default, delegate* platformGetwindowpos = default, delegate* platformSetwindowsize = default, delegate* platformGetwindowsize = default, delegate* platformSetwindowfocus = default, delegate* platformGetwindowfocus = default, delegate* platformGetwindowminimized = default, delegate* platformSetwindowtitle = default, delegate* platformSetwindowalpha = default, delegate* platformUpdatewindow = default, delegate* platformRenderwindow = default, delegate* platformSwapbuffers = default, delegate* platformGetwindowdpiscale = default, delegate* platformOnchangedviewport = default, delegate* platformCreatevksurface = default, delegate* rendererCreatewindow = default, delegate* rendererDestroywindow = default, delegate* rendererSetwindowsize = default, delegate* rendererRenderwindow = default, delegate* rendererSwapbuffers = default, ImVector monitors = default, ImVector viewports = default) + { + PlatformCreateWindow = (void*)platformCreatewindow; + PlatformDestroyWindow = (void*)platformDestroywindow; + PlatformShowWindow = (void*)platformShowwindow; + PlatformSetWindowPos = (void*)platformSetwindowpos; + PlatformGetWindowPos = (void*)platformGetwindowpos; + PlatformSetWindowSize = (void*)platformSetwindowsize; + PlatformGetWindowSize = (void*)platformGetwindowsize; + PlatformSetWindowFocus = (void*)platformSetwindowfocus; + PlatformGetWindowFocus = (void*)platformGetwindowfocus; + PlatformGetWindowMinimized = (void*)platformGetwindowminimized; + PlatformSetWindowTitle = (void*)platformSetwindowtitle; + PlatformSetWindowAlpha = (void*)platformSetwindowalpha; + PlatformUpdateWindow = (void*)platformUpdatewindow; + PlatformRenderWindow = (void*)platformRenderwindow; + PlatformSwapBuffers = (void*)platformSwapbuffers; + PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; + PlatformOnChangedViewport = (void*)platformOnchangedviewport; + PlatformCreateVkSurface = (void*)platformCreatevksurface; + RendererCreateWindow = (void*)rendererCreatewindow; + RendererDestroyWindow = (void*)rendererDestroywindow; + RendererSetWindowSize = (void*)rendererSetwindowsize; + RendererRenderWindow = (void*)rendererRenderwindow; + RendererSwapBuffers = (void*)rendererSwapbuffers; + Monitors = monitors; + Viewports = viewports; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPlatformIO* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPlatformIOPtr : IEquatable + { + public ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) { Handle = handle; } + + public ImGuiPlatformIO* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPlatformIOPtr Null => new ImGuiPlatformIOPtr(null); + + public ImGuiPlatformIO this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) => new ImGuiPlatformIOPtr(handle); + + public static implicit operator ImGuiPlatformIO*(ImGuiPlatformIOPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle == right; + + public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle != right; + + public bool Equals(ImGuiPlatformIOPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPlatformIOPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPlatformIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public void* PlatformCreateWindow { get => Handle->PlatformCreateWindow; set => Handle->PlatformCreateWindow = value; } + /// + /// To be documented. + /// + public void* PlatformDestroyWindow { get => Handle->PlatformDestroyWindow; set => Handle->PlatformDestroyWindow = value; } + /// + /// To be documented. + /// + public void* PlatformShowWindow { get => Handle->PlatformShowWindow; set => Handle->PlatformShowWindow = value; } + /// + /// To be documented. + /// + public void* PlatformSetWindowPos { get => Handle->PlatformSetWindowPos; set => Handle->PlatformSetWindowPos = value; } + /// + /// To be documented. + /// + public void* PlatformGetWindowPos { get => Handle->PlatformGetWindowPos; set => Handle->PlatformGetWindowPos = value; } + /// + /// To be documented. + /// + public void* PlatformSetWindowSize { get => Handle->PlatformSetWindowSize; set => Handle->PlatformSetWindowSize = value; } + /// + /// To be documented. + /// + public void* PlatformGetWindowSize { get => Handle->PlatformGetWindowSize; set => Handle->PlatformGetWindowSize = value; } + /// + /// To be documented. + /// + public void* PlatformSetWindowFocus { get => Handle->PlatformSetWindowFocus; set => Handle->PlatformSetWindowFocus = value; } + /// + /// To be documented. + /// + public void* PlatformGetWindowFocus { get => Handle->PlatformGetWindowFocus; set => Handle->PlatformGetWindowFocus = value; } + /// + /// To be documented. + /// + public void* PlatformGetWindowMinimized { get => Handle->PlatformGetWindowMinimized; set => Handle->PlatformGetWindowMinimized = value; } + /// + /// To be documented. + /// + public void* PlatformSetWindowTitle { get => Handle->PlatformSetWindowTitle; set => Handle->PlatformSetWindowTitle = value; } + /// + /// To be documented. + /// + public void* PlatformSetWindowAlpha { get => Handle->PlatformSetWindowAlpha; set => Handle->PlatformSetWindowAlpha = value; } + /// + /// To be documented. + /// + public void* PlatformUpdateWindow { get => Handle->PlatformUpdateWindow; set => Handle->PlatformUpdateWindow = value; } + /// + /// To be documented. + /// + public void* PlatformRenderWindow { get => Handle->PlatformRenderWindow; set => Handle->PlatformRenderWindow = value; } + /// + /// To be documented. + /// + public void* PlatformSwapBuffers { get => Handle->PlatformSwapBuffers; set => Handle->PlatformSwapBuffers = value; } + /// + /// To be documented. + /// + public void* PlatformGetWindowDpiScale { get => Handle->PlatformGetWindowDpiScale; set => Handle->PlatformGetWindowDpiScale = value; } + /// + /// To be documented. + /// + public void* PlatformOnChangedViewport { get => Handle->PlatformOnChangedViewport; set => Handle->PlatformOnChangedViewport = value; } + /// + /// To be documented. + /// + public void* PlatformCreateVkSurface { get => Handle->PlatformCreateVkSurface; set => Handle->PlatformCreateVkSurface = value; } + /// + /// To be documented. + /// + public void* RendererCreateWindow { get => Handle->RendererCreateWindow; set => Handle->RendererCreateWindow = value; } + /// + /// To be documented. + /// + public void* RendererDestroyWindow { get => Handle->RendererDestroyWindow; set => Handle->RendererDestroyWindow = value; } + /// + /// To be documented. + /// + public void* RendererSetWindowSize { get => Handle->RendererSetWindowSize; set => Handle->RendererSetWindowSize = value; } + /// + /// To be documented. + /// + public void* RendererRenderWindow { get => Handle->RendererRenderWindow; set => Handle->RendererRenderWindow = value; } + /// + /// To be documented. + /// + public void* RendererSwapBuffers { get => Handle->RendererSwapBuffers; set => Handle->RendererSwapBuffers = value; } + /// + /// To be documented. + /// + public ref ImVector Monitors => ref Unsafe.AsRef>(&Handle->Monitors); + /// + /// To be documented. + /// + public ref ImVector Viewports => ref Unsafe.AsRef>(&Handle->Viewports); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs new file mode 100644 index 000000000..aca26e254 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs @@ -0,0 +1,128 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformImeData + { + /// + /// To be documented. + /// + public byte WantVisible; + + /// + /// To be documented. + /// + public Vector2 InputPos; + + /// + /// To be documented. + /// + public float InputLineHeight; + + + /// + /// To be documented. + /// + public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) + { + WantVisible = wantVisible ? (byte)1 : (byte)0; + InputPos = inputPos; + InputLineHeight = inputLineHeight; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPlatformImeData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPlatformImeDataPtr : IEquatable + { + public ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) { Handle = handle; } + + public ImGuiPlatformImeData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPlatformImeDataPtr Null => new ImGuiPlatformImeDataPtr(null); + + public ImGuiPlatformImeData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) => new ImGuiPlatformImeDataPtr(handle); + + public static implicit operator ImGuiPlatformImeData*(ImGuiPlatformImeDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle == right; + + public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle != right; + + public bool Equals(ImGuiPlatformImeDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPlatformImeDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPlatformImeDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool WantVisible => ref Unsafe.AsRef(&Handle->WantVisible); + /// + /// To be documented. + /// + public ref Vector2 InputPos => ref Unsafe.AsRef(&Handle->InputPos); + /// + /// To be documented. + /// + public ref float InputLineHeight => ref Unsafe.AsRef(&Handle->InputLineHeight); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs new file mode 100644 index 000000000..baae4df87 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs @@ -0,0 +1,148 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformMonitor + { + /// + /// To be documented. + /// + public Vector2 MainPos; + + /// + /// To be documented. + /// + public Vector2 MainSize; + + /// + /// To be documented. + /// + public Vector2 WorkPos; + + /// + /// To be documented. + /// + public Vector2 WorkSize; + + /// + /// To be documented. + /// + public float DpiScale; + + + /// + /// To be documented. + /// + public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default) + { + MainPos = mainPos; + MainSize = mainSize; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPlatformMonitor* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPlatformMonitorPtr : IEquatable + { + public ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) { Handle = handle; } + + public ImGuiPlatformMonitor* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPlatformMonitorPtr Null => new ImGuiPlatformMonitorPtr(null); + + public ImGuiPlatformMonitor this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) => new ImGuiPlatformMonitorPtr(handle); + + public static implicit operator ImGuiPlatformMonitor*(ImGuiPlatformMonitorPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle == right; + + public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle != right; + + public bool Equals(ImGuiPlatformMonitorPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPlatformMonitorPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPlatformMonitorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector2 MainPos => ref Unsafe.AsRef(&Handle->MainPos); + /// + /// To be documented. + /// + public ref Vector2 MainSize => ref Unsafe.AsRef(&Handle->MainSize); + /// + /// To be documented. + /// + public ref Vector2 WorkPos => ref Unsafe.AsRef(&Handle->WorkPos); + /// + /// To be documented. + /// + public ref Vector2 WorkSize => ref Unsafe.AsRef(&Handle->WorkSize); + /// + /// To be documented. + /// + public ref float DpiScale => ref Unsafe.AsRef(&Handle->DpiScale); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs new file mode 100644 index 000000000..4e03965aa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs @@ -0,0 +1,178 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPopupData + { + /// + /// To be documented. + /// + public uint PopupId; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* SourceWindow; + + /// + /// To be documented. + /// + public int ParentNavLayer; + + /// + /// To be documented. + /// + public int OpenFrameCount; + + /// + /// To be documented. + /// + public uint OpenParentId; + + /// + /// To be documented. + /// + public Vector2 OpenPopupPos; + + /// + /// To be documented. + /// + public Vector2 OpenMousePos; + + + /// + /// To be documented. + /// + public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindowPtr window = default, ImGuiWindowPtr sourceWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) + { + PopupId = popupId; + Window = window; + SourceWindow = sourceWindow; + ParentNavLayer = parentNavLayer; + OpenFrameCount = openFrameCount; + OpenParentId = openParentId; + OpenPopupPos = openPopupPos; + OpenMousePos = openMousePos; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPopupData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPopupDataPtr : IEquatable + { + public ImGuiPopupDataPtr(ImGuiPopupData* handle) { Handle = handle; } + + public ImGuiPopupData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPopupDataPtr Null => new ImGuiPopupDataPtr(null); + + public ImGuiPopupData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPopupDataPtr(ImGuiPopupData* handle) => new ImGuiPopupDataPtr(handle); + + public static implicit operator ImGuiPopupData*(ImGuiPopupDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle == right; + + public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle != right; + + public bool Equals(ImGuiPopupDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPopupDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPopupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint PopupId => ref Unsafe.AsRef(&Handle->PopupId); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr SourceWindow => ref Unsafe.AsRef(&Handle->SourceWindow); + /// + /// To be documented. + /// + public ref int ParentNavLayer => ref Unsafe.AsRef(&Handle->ParentNavLayer); + /// + /// To be documented. + /// + public ref int OpenFrameCount => ref Unsafe.AsRef(&Handle->OpenFrameCount); + /// + /// To be documented. + /// + public ref uint OpenParentId => ref Unsafe.AsRef(&Handle->OpenParentId); + /// + /// To be documented. + /// + public ref Vector2 OpenPopupPos => ref Unsafe.AsRef(&Handle->OpenPopupPos); + /// + /// To be documented. + /// + public ref Vector2 OpenMousePos => ref Unsafe.AsRef(&Handle->OpenMousePos); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs new file mode 100644 index 000000000..11d8c1ce2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs @@ -0,0 +1,118 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPtrOrIndex + { + /// + /// To be documented. + /// + public unsafe void* Ptr; + + /// + /// To be documented. + /// + public int Index; + + + /// + /// To be documented. + /// + public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) + { + Ptr = ptr; + Index = index; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiPtrOrIndex* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiPtrOrIndexPtr : IEquatable + { + public ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) { Handle = handle; } + + public ImGuiPtrOrIndex* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiPtrOrIndexPtr Null => new ImGuiPtrOrIndexPtr(null); + + public ImGuiPtrOrIndex this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) => new ImGuiPtrOrIndexPtr(handle); + + public static implicit operator ImGuiPtrOrIndex*(ImGuiPtrOrIndexPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle == right; + + public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle != right; + + public bool Equals(ImGuiPtrOrIndexPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiPtrOrIndexPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiPtrOrIndexPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public void* Ptr { get => Handle->Ptr; set => Handle->Ptr = value; } + /// + /// To be documented. + /// + public ref int Index => ref Unsafe.AsRef(&Handle->Index); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs new file mode 100644 index 000000000..d89b34386 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs @@ -0,0 +1,188 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSettingsHandler + { + /// + /// To be documented. + /// + public unsafe byte* TypeName; + + /// + /// To be documented. + /// + public uint TypeHash; + + /// + /// To be documented. + /// + public unsafe void* ClearAllFn; + + /// + /// To be documented. + /// + public unsafe void* ReadInitFn; + + /// + /// To be documented. + /// + public unsafe void* ReadOpenFn; + + /// + /// To be documented. + /// + public unsafe void* ReadLineFn; + + /// + /// To be documented. + /// + public unsafe void* ApplyAllFn; + + /// + /// To be documented. + /// + public unsafe void* WriteAllFn; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + + /// + /// To be documented. + /// + public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate* clearAllFn = default, delegate* readInitFn = default, delegate* readOpenFn = default, delegate* readLineFn = default, delegate* applyAllFn = default, delegate* writeAllFn = default, void* userData = default) + { + TypeName = typeName; + TypeHash = typeHash; + ClearAllFn = (void*)clearAllFn; + ReadInitFn = (void*)readInitFn; + ReadOpenFn = (void*)readOpenFn; + ReadLineFn = (void*)readLineFn; + ApplyAllFn = (void*)applyAllFn; + WriteAllFn = (void*)writeAllFn; + UserData = userData; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiSettingsHandler* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiSettingsHandlerPtr : IEquatable + { + public ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) { Handle = handle; } + + public ImGuiSettingsHandler* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiSettingsHandlerPtr Null => new ImGuiSettingsHandlerPtr(null); + + public ImGuiSettingsHandler this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) => new ImGuiSettingsHandlerPtr(handle); + + public static implicit operator ImGuiSettingsHandler*(ImGuiSettingsHandlerPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle == right; + + public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle != right; + + public bool Equals(ImGuiSettingsHandlerPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiSettingsHandlerPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiSettingsHandlerPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public byte* TypeName { get => Handle->TypeName; set => Handle->TypeName = value; } + /// + /// To be documented. + /// + public ref uint TypeHash => ref Unsafe.AsRef(&Handle->TypeHash); + /// + /// To be documented. + /// + public void* ClearAllFn { get => Handle->ClearAllFn; set => Handle->ClearAllFn = value; } + /// + /// To be documented. + /// + public void* ReadInitFn { get => Handle->ReadInitFn; set => Handle->ReadInitFn = value; } + /// + /// To be documented. + /// + public void* ReadOpenFn { get => Handle->ReadOpenFn; set => Handle->ReadOpenFn = value; } + /// + /// To be documented. + /// + public void* ReadLineFn { get => Handle->ReadLineFn; set => Handle->ReadLineFn = value; } + /// + /// To be documented. + /// + public void* ApplyAllFn { get => Handle->ApplyAllFn; set => Handle->ApplyAllFn = value; } + /// + /// To be documented. + /// + public void* WriteAllFn { get => Handle->WriteAllFn; set => Handle->WriteAllFn = value; } + /// + /// To be documented. + /// + public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs new file mode 100644 index 000000000..9eea9089c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs @@ -0,0 +1,109 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiShrinkWidthItem + { + /// + /// To be documented. + /// + public int Index; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public float InitialWidth; + + + /// + /// To be documented. + /// + public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) + { + Index = index; + Width = width; + InitialWidth = initialWidth; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiShrinkWidthItemPtr : IEquatable + { + public ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) { Handle = handle; } + + public ImGuiShrinkWidthItem* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiShrinkWidthItemPtr Null => new ImGuiShrinkWidthItemPtr(null); + + public ImGuiShrinkWidthItem this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) => new ImGuiShrinkWidthItemPtr(handle); + + public static implicit operator ImGuiShrinkWidthItem*(ImGuiShrinkWidthItemPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle == right; + + public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle != right; + + public bool Equals(ImGuiShrinkWidthItemPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiShrinkWidthItemPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiShrinkWidthItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int Index => ref Unsafe.AsRef(&Handle->Index); + /// + /// To be documented. + /// + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + /// + /// To be documented. + /// + public ref float InitialWidth => ref Unsafe.AsRef(&Handle->InitialWidth); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs new file mode 100644 index 000000000..037782ef3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSizeCallbackData + { + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 CurrentSize; + + /// + /// To be documented. + /// + public Vector2 DesiredSize; + + + /// + /// To be documented. + /// + public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) + { + UserData = userData; + Pos = pos; + CurrentSize = currentSize; + DesiredSize = desiredSize; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs new file mode 100644 index 000000000..041d31f21 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs @@ -0,0 +1,339 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackLevelInfo + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public sbyte QueryFrameCount; + + /// + /// To be documented. + /// + public byte QuerySuccess; + + public ImGuiDataType RawBits0; + /// + /// To be documented. + /// + public byte Desc_0; + public byte Desc_1; + public byte Desc_2; + public byte Desc_3; + public byte Desc_4; + public byte Desc_5; + public byte Desc_6; + public byte Desc_7; + public byte Desc_8; + public byte Desc_9; + public byte Desc_10; + public byte Desc_11; + public byte Desc_12; + public byte Desc_13; + public byte Desc_14; + public byte Desc_15; + public byte Desc_16; + public byte Desc_17; + public byte Desc_18; + public byte Desc_19; + public byte Desc_20; + public byte Desc_21; + public byte Desc_22; + public byte Desc_23; + public byte Desc_24; + public byte Desc_25; + public byte Desc_26; + public byte Desc_27; + public byte Desc_28; + public byte Desc_29; + public byte Desc_30; + public byte Desc_31; + public byte Desc_32; + public byte Desc_33; + public byte Desc_34; + public byte Desc_35; + public byte Desc_36; + public byte Desc_37; + public byte Desc_38; + public byte Desc_39; + public byte Desc_40; + public byte Desc_41; + public byte Desc_42; + public byte Desc_43; + public byte Desc_44; + public byte Desc_45; + public byte Desc_46; + public byte Desc_47; + public byte Desc_48; + public byte Desc_49; + public byte Desc_50; + public byte Desc_51; + public byte Desc_52; + public byte Desc_53; + public byte Desc_54; + public byte Desc_55; + public byte Desc_56; + + + /// + /// To be documented. + /// + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default(byte*)) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default(Span)) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + + + public ImGuiDataType DataType { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStackLevelInfo* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStackLevelInfoPtr : IEquatable + { + public ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) { Handle = handle; } + + public ImGuiStackLevelInfo* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStackLevelInfoPtr Null => new ImGuiStackLevelInfoPtr(null); + + public ImGuiStackLevelInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) => new ImGuiStackLevelInfoPtr(handle); + + public static implicit operator ImGuiStackLevelInfo*(ImGuiStackLevelInfoPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle == right; + + public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle != right; + + public bool Equals(ImGuiStackLevelInfoPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStackLevelInfoPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStackLevelInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref sbyte QueryFrameCount => ref Unsafe.AsRef(&Handle->QueryFrameCount); + /// + /// To be documented. + /// + public ref bool QuerySuccess => ref Unsafe.AsRef(&Handle->QuerySuccess); + /// + /// To be documented. + /// + public ImGuiDataType DataType { get => Handle->DataType; set => Handle->DataType = value; } + /// + /// To be documented. + /// + public unsafe Span Desc + + { + get + { + return new Span(&Handle->Desc_0, 57); + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs new file mode 100644 index 000000000..98c2a4e14 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs @@ -0,0 +1,188 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackSizes + { + /// + /// To be documented. + /// + public short SizeOfIDStack; + + /// + /// To be documented. + /// + public short SizeOfColorStack; + + /// + /// To be documented. + /// + public short SizeOfStyleVarStack; + + /// + /// To be documented. + /// + public short SizeOfFontStack; + + /// + /// To be documented. + /// + public short SizeOfFocusScopeStack; + + /// + /// To be documented. + /// + public short SizeOfGroupStack; + + /// + /// To be documented. + /// + public short SizeOfItemFlagsStack; + + /// + /// To be documented. + /// + public short SizeOfBeginPopupStack; + + /// + /// To be documented. + /// + public short SizeOfDisabledStack; + + + /// + /// To be documented. + /// + public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) + { + SizeOfIDStack = sizeOfIdStack; + SizeOfColorStack = sizeOfColorStack; + SizeOfStyleVarStack = sizeOfStyleVarStack; + SizeOfFontStack = sizeOfFontStack; + SizeOfFocusScopeStack = sizeOfFocusScopeStack; + SizeOfGroupStack = sizeOfGroupStack; + SizeOfItemFlagsStack = sizeOfItemFlagsStack; + SizeOfBeginPopupStack = sizeOfBeginPopupStack; + SizeOfDisabledStack = sizeOfDisabledStack; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStackSizes* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStackSizesPtr : IEquatable + { + public ImGuiStackSizesPtr(ImGuiStackSizes* handle) { Handle = handle; } + + public ImGuiStackSizes* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStackSizesPtr Null => new ImGuiStackSizesPtr(null); + + public ImGuiStackSizes this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStackSizesPtr(ImGuiStackSizes* handle) => new ImGuiStackSizesPtr(handle); + + public static implicit operator ImGuiStackSizes*(ImGuiStackSizesPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle == right; + + public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle != right; + + public bool Equals(ImGuiStackSizesPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStackSizesPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStackSizesPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref short SizeOfIDStack => ref Unsafe.AsRef(&Handle->SizeOfIDStack); + /// + /// To be documented. + /// + public ref short SizeOfColorStack => ref Unsafe.AsRef(&Handle->SizeOfColorStack); + /// + /// To be documented. + /// + public ref short SizeOfStyleVarStack => ref Unsafe.AsRef(&Handle->SizeOfStyleVarStack); + /// + /// To be documented. + /// + public ref short SizeOfFontStack => ref Unsafe.AsRef(&Handle->SizeOfFontStack); + /// + /// To be documented. + /// + public ref short SizeOfFocusScopeStack => ref Unsafe.AsRef(&Handle->SizeOfFocusScopeStack); + /// + /// To be documented. + /// + public ref short SizeOfGroupStack => ref Unsafe.AsRef(&Handle->SizeOfGroupStack); + /// + /// To be documented. + /// + public ref short SizeOfItemFlagsStack => ref Unsafe.AsRef(&Handle->SizeOfItemFlagsStack); + /// + /// To be documented. + /// + public ref short SizeOfBeginPopupStack => ref Unsafe.AsRef(&Handle->SizeOfBeginPopupStack); + /// + /// 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 new file mode 100644 index 000000000..9858fbd65 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs @@ -0,0 +1,158 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackTool + { + /// + /// To be documented. + /// + public int LastActiveFrame; + + /// + /// To be documented. + /// + public int StackLevel; + + /// + /// To be documented. + /// + public uint QueryId; + + /// + /// To be documented. + /// + public ImVector Results; + + /// + /// To be documented. + /// + public byte CopyToClipboardOnCtrlC; + + /// + /// To be documented. + /// + public float CopyToClipboardLastTime; + + + /// + /// To be documented. + /// + public unsafe ImGuiStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVector results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) + { + LastActiveFrame = lastActiveFrame; + StackLevel = stackLevel; + QueryId = queryId; + Results = results; + CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; + CopyToClipboardLastTime = copyToClipboardLastTime; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStackTool* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStackToolPtr : IEquatable + { + public ImGuiStackToolPtr(ImGuiStackTool* handle) { Handle = handle; } + + public ImGuiStackTool* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStackToolPtr Null => new ImGuiStackToolPtr(null); + + public ImGuiStackTool this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStackToolPtr(ImGuiStackTool* handle) => new ImGuiStackToolPtr(handle); + + public static implicit operator ImGuiStackTool*(ImGuiStackToolPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle == right; + + public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle != right; + + public bool Equals(ImGuiStackToolPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStackToolPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStackToolPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int LastActiveFrame => ref Unsafe.AsRef(&Handle->LastActiveFrame); + /// + /// To be documented. + /// + public ref int StackLevel => ref Unsafe.AsRef(&Handle->StackLevel); + /// + /// To be documented. + /// + public ref uint QueryId => ref Unsafe.AsRef(&Handle->QueryId); + /// + /// To be documented. + /// + public ref ImVector Results => ref Unsafe.AsRef>(&Handle->Results); + /// + /// To be documented. + /// + public ref bool CopyToClipboardOnCtrlC => ref Unsafe.AsRef(&Handle->CopyToClipboardOnCtrlC); + /// + /// 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 new file mode 100644 index 000000000..372738d35 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs @@ -0,0 +1,537 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStorage + { + /// + /// To be documented. + /// + public ImVector Data; + + + /// + /// To be documented. + /// + public unsafe ImGuiStorage(ImVector data = default) + { + Data = data; + } + + + /// + /// To be documented. + /// + public unsafe void BuildSortByKey() + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.BuildSortByKeyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool GetBool(uint key, bool defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGui.GetBoolNative(@this, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool GetBool(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGui.GetBoolNative(@this, key, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool* GetBoolRef(uint key, bool defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + bool* ret = ImGui.GetBoolRefNative(@this, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool* GetBoolRef(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + bool* ret = ImGui.GetBoolRefNative(@this, key, (byte)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetFloat(uint key, float defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGui.GetFloatNative(@this, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float GetFloat(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGui.GetFloatNative(@this, key, (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float* GetFloatRef(uint key, float defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + float* ret = ImGui.GetFloatRefNative(@this, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float* GetFloatRef(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + float* ret = ImGui.GetFloatRefNative(@this, key, (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetInt(uint key, int defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGui.GetIntNative(@this, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetInt(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGui.GetIntNative(@this, key, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int* GetIntRef(uint key, int defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + int* ret = ImGui.GetIntRefNative(@this, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int* GetIntRef(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + int* ret = ImGui.GetIntRefNative(@this, key, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void* GetVoidPtr(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + void* ret = ImGui.GetVoidPtrNative(@this, key); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void** GetVoidPtrRef(uint key, void* defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + void** ret = ImGui.GetVoidPtrRefNative(@this, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void** GetVoidPtrRef(uint key) + { + fixed (ImGuiStorage* @this = &this) + { + void** ret = ImGui.GetVoidPtrRefNative(@this, key, (void*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void SetAllInt(int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetAllIntNative(@this, val); + } + } + + /// + /// To be documented. + /// + public unsafe void SetBool(uint key, bool val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetBoolNative(@this, key, val ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public unsafe void SetFloat(uint key, float val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetFloatNative(@this, key, val); + } + } + + /// + /// To be documented. + /// + public unsafe void SetInt(uint key, int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetIntNative(@this, key, val); + } + } + + /// + /// To be documented. + /// + public unsafe void SetVoidPtr(uint key, void* val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetVoidPtrNative(@this, key, val); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStoragePtr : IEquatable + { + public ImGuiStoragePtr(ImGuiStorage* handle) { Handle = handle; } + + public ImGuiStorage* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStoragePtr Null => new ImGuiStoragePtr(null); + + public ImGuiStorage this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStoragePtr(ImGuiStorage* handle) => new ImGuiStoragePtr(handle); + + public static implicit operator ImGuiStorage*(ImGuiStoragePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle == right; + + public static bool operator !=(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle != right; + + public bool Equals(ImGuiStoragePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStoragePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStoragePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Data => ref Unsafe.AsRef>(&Handle->Data); + /// + /// To be documented. + /// + public unsafe void BuildSortByKey() + { + ImGui.BuildSortByKeyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool GetBool(uint key, bool defaultVal) + { + byte ret = ImGui.GetBoolNative(Handle, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool GetBool(uint key) + { + byte ret = ImGui.GetBoolNative(Handle, key, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool* GetBoolRef(uint key, bool defaultVal) + { + bool* ret = ImGui.GetBoolRefNative(Handle, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool* GetBoolRef(uint key) + { + bool* ret = ImGui.GetBoolRefNative(Handle, key, (byte)(0)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetFloat(uint key, float defaultVal) + { + float ret = ImGui.GetFloatNative(Handle, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float GetFloat(uint key) + { + float ret = ImGui.GetFloatNative(Handle, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float* GetFloatRef(uint key, float defaultVal) + { + float* ret = ImGui.GetFloatRefNative(Handle, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float* GetFloatRef(uint key) + { + float* ret = ImGui.GetFloatRefNative(Handle, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetInt(uint key, int defaultVal) + { + int ret = ImGui.GetIntNative(Handle, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetInt(uint key) + { + int ret = ImGui.GetIntNative(Handle, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int* GetIntRef(uint key, int defaultVal) + { + int* ret = ImGui.GetIntRefNative(Handle, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int* GetIntRef(uint key) + { + int* ret = ImGui.GetIntRefNative(Handle, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void* GetVoidPtr(uint key) + { + void* ret = ImGui.GetVoidPtrNative(Handle, key); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void** GetVoidPtrRef(uint key, void* defaultVal) + { + void** ret = ImGui.GetVoidPtrRefNative(Handle, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void** GetVoidPtrRef(uint key) + { + void** ret = ImGui.GetVoidPtrRefNative(Handle, key, (void*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void SetAllInt(int val) + { + ImGui.SetAllIntNative(Handle, val); + } + + /// + /// To be documented. + /// + public unsafe void SetBool(uint key, bool val) + { + ImGui.SetBoolNative(Handle, key, val ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public unsafe void SetFloat(uint key, float val) + { + ImGui.SetFloatNative(Handle, key, val); + } + + /// + /// To be documented. + /// + public unsafe void SetInt(uint key, int val) + { + ImGui.SetIntNative(Handle, key, val); + } + + /// + /// To be documented. + /// + public unsafe void SetVoidPtr(uint key, void* val) + { + ImGui.SetVoidPtrNative(Handle, key, val); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs new file mode 100644 index 000000000..b25d13477 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs @@ -0,0 +1,156 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStoragePair + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStoragePairUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public int ValI; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public float ValF; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public unsafe void* ValP; + + + /// + /// To be documented. + /// + public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) + { + ValI = valI; + ValF = valF; + ValP = valP; + } + + + } + + /// + /// To be documented. + /// + public uint Key; + + /// + /// To be documented. + /// + public ImGuiStoragePairUnion Union; + + + /// + /// To be documented. + /// + public unsafe ImGuiStoragePair(uint key = default, ImGuiStoragePairUnion union = default) + { + Key = key; + Union = union; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStoragePair* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStoragePairPtr : IEquatable + { + public ImGuiStoragePairPtr(ImGuiStoragePair* handle) { Handle = handle; } + + public ImGuiStoragePair* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStoragePairPtr Null => new ImGuiStoragePairPtr(null); + + public ImGuiStoragePair this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStoragePairPtr(ImGuiStoragePair* handle) => new ImGuiStoragePairPtr(handle); + + public static implicit operator ImGuiStoragePair*(ImGuiStoragePairPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle == right; + + public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle != right; + + public bool Equals(ImGuiStoragePairPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStoragePairPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStoragePairPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint Key => ref Unsafe.AsRef(&Handle->Key); + /// + /// To be documented. + /// + public ref ImGuiStoragePair.ImGuiStoragePairUnion Union => ref Unsafe.AsRef(&Handle->Union); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs new file mode 100644 index 000000000..155d259a9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs @@ -0,0 +1,764 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyle + { + /// + /// To be documented. + /// + public float Alpha; + + /// + /// To be documented. + /// + public float DisabledAlpha; + + /// + /// To be documented. + /// + public Vector2 WindowPadding; + + /// + /// To be documented. + /// + public float WindowRounding; + + /// + /// To be documented. + /// + public float WindowBorderSize; + + /// + /// To be documented. + /// + public Vector2 WindowMinSize; + + /// + /// To be documented. + /// + public Vector2 WindowTitleAlign; + + /// + /// To be documented. + /// + public ImGuiDir WindowMenuButtonPosition; + + /// + /// To be documented. + /// + public float ChildRounding; + + /// + /// To be documented. + /// + public float ChildBorderSize; + + /// + /// To be documented. + /// + public float PopupRounding; + + /// + /// To be documented. + /// + public float PopupBorderSize; + + /// + /// To be documented. + /// + public Vector2 FramePadding; + + /// + /// To be documented. + /// + public float FrameRounding; + + /// + /// To be documented. + /// + public float FrameBorderSize; + + /// + /// To be documented. + /// + public Vector2 ItemSpacing; + + /// + /// To be documented. + /// + public Vector2 ItemInnerSpacing; + + /// + /// To be documented. + /// + public Vector2 CellPadding; + + /// + /// To be documented. + /// + public Vector2 TouchExtraPadding; + + /// + /// To be documented. + /// + public float IndentSpacing; + + /// + /// To be documented. + /// + public float ColumnsMinSpacing; + + /// + /// To be documented. + /// + public float ScrollbarSize; + + /// + /// To be documented. + /// + public float ScrollbarRounding; + + /// + /// To be documented. + /// + public float GrabMinSize; + + /// + /// To be documented. + /// + public float GrabRounding; + + /// + /// To be documented. + /// + public float LogSliderDeadzone; + + /// + /// To be documented. + /// + public float TabRounding; + + /// + /// To be documented. + /// + public float TabBorderSize; + + /// + /// To be documented. + /// + public float TabMinWidthForCloseButton; + + /// + /// To be documented. + /// + public ImGuiDir ColorButtonPosition; + + /// + /// To be documented. + /// + public Vector2 ButtonTextAlign; + + /// + /// To be documented. + /// + public Vector2 SelectableTextAlign; + + /// + /// To be documented. + /// + public Vector2 DisplayWindowPadding; + + /// + /// To be documented. + /// + public Vector2 DisplaySafeAreaPadding; + + /// + /// To be documented. + /// + public float MouseCursorScale; + + /// + /// To be documented. + /// + public byte AntiAliasedLines; + + /// + /// To be documented. + /// + public byte AntiAliasedLinesUseTex; + + /// + /// To be documented. + /// + public byte AntiAliasedFill; + + /// + /// To be documented. + /// + public float CurveTessellationTol; + + /// + /// To be documented. + /// + public float CircleTessellationMaxError; + + /// + /// To be documented. + /// + public Vector4 Colors_0; + public Vector4 Colors_1; + public Vector4 Colors_2; + public Vector4 Colors_3; + public Vector4 Colors_4; + public Vector4 Colors_5; + public Vector4 Colors_6; + public Vector4 Colors_7; + public Vector4 Colors_8; + public Vector4 Colors_9; + public Vector4 Colors_10; + public Vector4 Colors_11; + public Vector4 Colors_12; + public Vector4 Colors_13; + public Vector4 Colors_14; + public Vector4 Colors_15; + public Vector4 Colors_16; + public Vector4 Colors_17; + public Vector4 Colors_18; + public Vector4 Colors_19; + public Vector4 Colors_20; + public Vector4 Colors_21; + public Vector4 Colors_22; + public Vector4 Colors_23; + public Vector4 Colors_24; + public Vector4 Colors_25; + public Vector4 Colors_26; + public Vector4 Colors_27; + public Vector4 Colors_28; + public Vector4 Colors_29; + public Vector4 Colors_30; + public Vector4 Colors_31; + public Vector4 Colors_32; + public Vector4 Colors_33; + public Vector4 Colors_34; + public Vector4 Colors_35; + public Vector4 Colors_36; + public Vector4 Colors_37; + public Vector4 Colors_38; + public Vector4 Colors_39; + public Vector4 Colors_40; + public Vector4 Colors_41; + public Vector4 Colors_42; + public Vector4 Colors_43; + public Vector4 Colors_44; + public Vector4 Colors_45; + public Vector4 Colors_46; + public Vector4 Colors_47; + public Vector4 Colors_48; + public Vector4 Colors_49; + public Vector4 Colors_50; + public Vector4 Colors_51; + public Vector4 Colors_52; + public Vector4 Colors_53; + public Vector4 Colors_54; + + + /// + /// To be documented. + /// + public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default(Vector4*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span colors = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + fixed (Vector4* p = &this.Colors_0) + { + return new Span(p, 55); + } + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStyle* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ScaleAllSizes(float scaleFactor) + { + fixed (ImGuiStyle* @this = &this) + { + ImGui.ScaleAllSizesNative(@this, scaleFactor); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStylePtr : IEquatable + { + public ImGuiStylePtr(ImGuiStyle* handle) { Handle = handle; } + + public ImGuiStyle* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStylePtr Null => new ImGuiStylePtr(null); + + public ImGuiStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStylePtr(ImGuiStyle* handle) => new ImGuiStylePtr(handle); + + public static implicit operator ImGuiStyle*(ImGuiStylePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle == right; + + public static bool operator !=(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle != right; + + public bool Equals(ImGuiStylePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStylePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float Alpha => ref Unsafe.AsRef(&Handle->Alpha); + /// + /// To be documented. + /// + public ref float DisabledAlpha => ref Unsafe.AsRef(&Handle->DisabledAlpha); + /// + /// To be documented. + /// + public ref Vector2 WindowPadding => ref Unsafe.AsRef(&Handle->WindowPadding); + /// + /// To be documented. + /// + public ref float WindowRounding => ref Unsafe.AsRef(&Handle->WindowRounding); + /// + /// To be documented. + /// + public ref float WindowBorderSize => ref Unsafe.AsRef(&Handle->WindowBorderSize); + /// + /// To be documented. + /// + public ref Vector2 WindowMinSize => ref Unsafe.AsRef(&Handle->WindowMinSize); + /// + /// To be documented. + /// + public ref Vector2 WindowTitleAlign => ref Unsafe.AsRef(&Handle->WindowTitleAlign); + /// + /// To be documented. + /// + public ref ImGuiDir WindowMenuButtonPosition => ref Unsafe.AsRef(&Handle->WindowMenuButtonPosition); + /// + /// To be documented. + /// + public ref float ChildRounding => ref Unsafe.AsRef(&Handle->ChildRounding); + /// + /// To be documented. + /// + public ref float ChildBorderSize => ref Unsafe.AsRef(&Handle->ChildBorderSize); + /// + /// To be documented. + /// + public ref float PopupRounding => ref Unsafe.AsRef(&Handle->PopupRounding); + /// + /// To be documented. + /// + public ref float PopupBorderSize => ref Unsafe.AsRef(&Handle->PopupBorderSize); + /// + /// To be documented. + /// + public ref Vector2 FramePadding => ref Unsafe.AsRef(&Handle->FramePadding); + /// + /// To be documented. + /// + public ref float FrameRounding => ref Unsafe.AsRef(&Handle->FrameRounding); + /// + /// To be documented. + /// + public ref float FrameBorderSize => ref Unsafe.AsRef(&Handle->FrameBorderSize); + /// + /// To be documented. + /// + public ref Vector2 ItemSpacing => ref Unsafe.AsRef(&Handle->ItemSpacing); + /// + /// To be documented. + /// + public ref Vector2 ItemInnerSpacing => ref Unsafe.AsRef(&Handle->ItemInnerSpacing); + /// + /// To be documented. + /// + public ref Vector2 CellPadding => ref Unsafe.AsRef(&Handle->CellPadding); + /// + /// To be documented. + /// + public ref Vector2 TouchExtraPadding => ref Unsafe.AsRef(&Handle->TouchExtraPadding); + /// + /// To be documented. + /// + public ref float IndentSpacing => ref Unsafe.AsRef(&Handle->IndentSpacing); + /// + /// To be documented. + /// + public ref float ColumnsMinSpacing => ref Unsafe.AsRef(&Handle->ColumnsMinSpacing); + /// + /// To be documented. + /// + public ref float ScrollbarSize => ref Unsafe.AsRef(&Handle->ScrollbarSize); + /// + /// To be documented. + /// + public ref float ScrollbarRounding => ref Unsafe.AsRef(&Handle->ScrollbarRounding); + /// + /// To be documented. + /// + public ref float GrabMinSize => ref Unsafe.AsRef(&Handle->GrabMinSize); + /// + /// To be documented. + /// + public ref float GrabRounding => ref Unsafe.AsRef(&Handle->GrabRounding); + /// + /// To be documented. + /// + public ref float LogSliderDeadzone => ref Unsafe.AsRef(&Handle->LogSliderDeadzone); + /// + /// To be documented. + /// + public ref float TabRounding => ref Unsafe.AsRef(&Handle->TabRounding); + /// + /// To be documented. + /// + public ref float TabBorderSize => ref Unsafe.AsRef(&Handle->TabBorderSize); + /// + /// To be documented. + /// + public ref float TabMinWidthForCloseButton => ref Unsafe.AsRef(&Handle->TabMinWidthForCloseButton); + /// + /// To be documented. + /// + public ref ImGuiDir ColorButtonPosition => ref Unsafe.AsRef(&Handle->ColorButtonPosition); + /// + /// To be documented. + /// + public ref Vector2 ButtonTextAlign => ref Unsafe.AsRef(&Handle->ButtonTextAlign); + /// + /// To be documented. + /// + public ref Vector2 SelectableTextAlign => ref Unsafe.AsRef(&Handle->SelectableTextAlign); + /// + /// To be documented. + /// + public ref Vector2 DisplayWindowPadding => ref Unsafe.AsRef(&Handle->DisplayWindowPadding); + /// + /// To be documented. + /// + public ref Vector2 DisplaySafeAreaPadding => ref Unsafe.AsRef(&Handle->DisplaySafeAreaPadding); + /// + /// To be documented. + /// + public ref float MouseCursorScale => ref Unsafe.AsRef(&Handle->MouseCursorScale); + /// + /// To be documented. + /// + public ref bool AntiAliasedLines => ref Unsafe.AsRef(&Handle->AntiAliasedLines); + /// + /// To be documented. + /// + public ref bool AntiAliasedLinesUseTex => ref Unsafe.AsRef(&Handle->AntiAliasedLinesUseTex); + /// + /// To be documented. + /// + public ref bool AntiAliasedFill => ref Unsafe.AsRef(&Handle->AntiAliasedFill); + /// + /// To be documented. + /// + public ref float CurveTessellationTol => ref Unsafe.AsRef(&Handle->CurveTessellationTol); + /// + /// To be documented. + /// + public ref float CircleTessellationMaxError => ref Unsafe.AsRef(&Handle->CircleTessellationMaxError); + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + return new Span(&Handle->Colors_0, 55); + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ScaleAllSizes(float scaleFactor) + { + ImGui.ScaleAllSizesNative(Handle, scaleFactor); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs new file mode 100644 index 000000000..90fbe1204 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs @@ -0,0 +1,178 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyleMod + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStyleModUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public int BackupInt_0; + [FieldOffset(8)] + public int BackupInt_1; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public float BackupFloat_0; + [FieldOffset(8)] + public float BackupFloat_1; + + + /// + /// To be documented. + /// + public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) + { + if (backupInt != default(int*)) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default(float*)) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiStyleModUnion(Span backupInt = default, Span backupFloat = default) + { + if (backupInt != default(Span)) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default(Span)) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + + + } + + /// + /// To be documented. + /// + public ImGuiStyleVar VarIdx; + + /// + /// To be documented. + /// + public ImGuiStyleModUnion Union; + + + /// + /// To be documented. + /// + public unsafe ImGuiStyleMod(ImGuiStyleVar varIdx = default, ImGuiStyleModUnion union = default) + { + VarIdx = varIdx; + Union = union; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStyleMod* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiStyleModPtr : IEquatable + { + public ImGuiStyleModPtr(ImGuiStyleMod* handle) { Handle = handle; } + + public ImGuiStyleMod* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiStyleModPtr Null => new ImGuiStyleModPtr(null); + + public ImGuiStyleMod this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiStyleModPtr(ImGuiStyleMod* handle) => new ImGuiStyleModPtr(handle); + + public static implicit operator ImGuiStyleMod*(ImGuiStyleModPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle == right; + + public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle != right; + + public bool Equals(ImGuiStyleModPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiStyleModPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiStyleModPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiStyleVar VarIdx => ref Unsafe.AsRef(&Handle->VarIdx); + /// + /// To be documented. + /// + public ref ImGuiStyleMod.ImGuiStyleModUnion Union => ref Unsafe.AsRef(&Handle->Union); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs new file mode 100644 index 000000000..e2ad5f169 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs @@ -0,0 +1,408 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabBar + { + /// + /// To be documented. + /// + public ImVector Tabs; + + /// + /// To be documented. + /// + public ImGuiTabBarFlags Flags; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public uint SelectedTabId; + + /// + /// To be documented. + /// + public uint NextSelectedTabId; + + /// + /// To be documented. + /// + public uint VisibleTabId; + + /// + /// To be documented. + /// + public int CurrFrameVisible; + + /// + /// To be documented. + /// + public int PrevFrameVisible; + + /// + /// To be documented. + /// + public ImRect BarRect; + + /// + /// To be documented. + /// + public float CurrTabsContentsHeight; + + /// + /// To be documented. + /// + public float PrevTabsContentsHeight; + + /// + /// To be documented. + /// + public float WidthAllTabs; + + /// + /// To be documented. + /// + public float WidthAllTabsIdeal; + + /// + /// To be documented. + /// + public float ScrollingAnim; + + /// + /// To be documented. + /// + public float ScrollingTarget; + + /// + /// To be documented. + /// + public float ScrollingTargetDistToVisibility; + + /// + /// To be documented. + /// + public float ScrollingSpeed; + + /// + /// To be documented. + /// + public float ScrollingRectMinX; + + /// + /// To be documented. + /// + public float ScrollingRectMaxX; + + /// + /// To be documented. + /// + public uint ReorderRequestTabId; + + /// + /// To be documented. + /// + public short ReorderRequestOffset; + + /// + /// To be documented. + /// + public sbyte BeginCount; + + /// + /// To be documented. + /// + public byte WantLayout; + + /// + /// To be documented. + /// + public byte VisibleTabWasSubmitted; + + /// + /// To be documented. + /// + public byte TabsAddedNew; + + /// + /// To be documented. + /// + public short TabsActiveCount; + + /// + /// To be documented. + /// + public short LastTabItemIdx; + + /// + /// To be documented. + /// + public float ItemSpacingY; + + /// + /// To be documented. + /// + public Vector2 FramePadding; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TabsNames; + + + /// + /// 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, 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; + ID = id; + SelectedTabId = selectedTabId; + NextSelectedTabId = nextSelectedTabId; + VisibleTabId = visibleTabId; + CurrFrameVisible = currFrameVisible; + PrevFrameVisible = prevFrameVisible; + BarRect = barRect; + CurrTabsContentsHeight = currTabsContentsHeight; + PrevTabsContentsHeight = prevTabsContentsHeight; + WidthAllTabs = widthAllTabs; + WidthAllTabsIdeal = widthAllTabsIdeal; + ScrollingAnim = scrollingAnim; + ScrollingTarget = scrollingTarget; + ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; + ScrollingSpeed = scrollingSpeed; + ScrollingRectMinX = scrollingRectMinX; + ScrollingRectMaxX = scrollingRectMaxX; + ReorderRequestTabId = reorderRequestTabId; + ReorderRequestOffset = reorderRequestOffset; + BeginCount = beginCount; + WantLayout = wantLayout ? (byte)1 : (byte)0; + VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; + TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; + TabsActiveCount = tabsActiveCount; + LastTabItemIdx = lastTabItemIdx; + ItemSpacingY = itemSpacingY; + FramePadding = framePadding; + BackupCursorPos = backupCursorPos; + TabsNames = tabsNames; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTabBar* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTabBarPtr : IEquatable + { + public ImGuiTabBarPtr(ImGuiTabBar* handle) { Handle = handle; } + + public ImGuiTabBar* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTabBarPtr Null => new ImGuiTabBarPtr(null); + + public ImGuiTabBar this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTabBarPtr(ImGuiTabBar* handle) => new ImGuiTabBarPtr(handle); + + public static implicit operator ImGuiTabBar*(ImGuiTabBarPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle == right; + + public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle != right; + + public bool Equals(ImGuiTabBarPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTabBarPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTabBarPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Tabs => ref Unsafe.AsRef>(&Handle->Tabs); + /// + /// To be documented. + /// + public ref ImGuiTabBarFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref uint SelectedTabId => ref Unsafe.AsRef(&Handle->SelectedTabId); + /// + /// To be documented. + /// + public ref uint NextSelectedTabId => ref Unsafe.AsRef(&Handle->NextSelectedTabId); + /// + /// To be documented. + /// + public ref uint VisibleTabId => ref Unsafe.AsRef(&Handle->VisibleTabId); + /// + /// To be documented. + /// + public ref int CurrFrameVisible => ref Unsafe.AsRef(&Handle->CurrFrameVisible); + /// + /// To be documented. + /// + public ref int PrevFrameVisible => ref Unsafe.AsRef(&Handle->PrevFrameVisible); + /// + /// To be documented. + /// + public ref ImRect BarRect => ref Unsafe.AsRef(&Handle->BarRect); + /// + /// To be documented. + /// + public ref float CurrTabsContentsHeight => ref Unsafe.AsRef(&Handle->CurrTabsContentsHeight); + /// + /// To be documented. + /// + public ref float PrevTabsContentsHeight => ref Unsafe.AsRef(&Handle->PrevTabsContentsHeight); + /// + /// To be documented. + /// + public ref float WidthAllTabs => ref Unsafe.AsRef(&Handle->WidthAllTabs); + /// + /// To be documented. + /// + public ref float WidthAllTabsIdeal => ref Unsafe.AsRef(&Handle->WidthAllTabsIdeal); + /// + /// To be documented. + /// + public ref float ScrollingAnim => ref Unsafe.AsRef(&Handle->ScrollingAnim); + /// + /// To be documented. + /// + public ref float ScrollingTarget => ref Unsafe.AsRef(&Handle->ScrollingTarget); + /// + /// To be documented. + /// + public ref float ScrollingTargetDistToVisibility => ref Unsafe.AsRef(&Handle->ScrollingTargetDistToVisibility); + /// + /// To be documented. + /// + public ref float ScrollingSpeed => ref Unsafe.AsRef(&Handle->ScrollingSpeed); + /// + /// To be documented. + /// + public ref float ScrollingRectMinX => ref Unsafe.AsRef(&Handle->ScrollingRectMinX); + /// + /// To be documented. + /// + public ref float ScrollingRectMaxX => ref Unsafe.AsRef(&Handle->ScrollingRectMaxX); + /// + /// To be documented. + /// + public ref uint ReorderRequestTabId => ref Unsafe.AsRef(&Handle->ReorderRequestTabId); + /// + /// To be documented. + /// + public ref short ReorderRequestOffset => ref Unsafe.AsRef(&Handle->ReorderRequestOffset); + /// + /// To be documented. + /// + public ref sbyte BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); + /// + /// To be documented. + /// + public ref bool WantLayout => ref Unsafe.AsRef(&Handle->WantLayout); + /// + /// To be documented. + /// + public ref bool VisibleTabWasSubmitted => ref Unsafe.AsRef(&Handle->VisibleTabWasSubmitted); + /// + /// To be documented. + /// + public ref bool TabsAddedNew => ref Unsafe.AsRef(&Handle->TabsAddedNew); + /// + /// To be documented. + /// + public ref short TabsActiveCount => ref Unsafe.AsRef(&Handle->TabsActiveCount); + /// + /// To be documented. + /// + public ref short LastTabItemIdx => ref Unsafe.AsRef(&Handle->LastTabItemIdx); + /// + /// To be documented. + /// + public ref float ItemSpacingY => ref Unsafe.AsRef(&Handle->ItemSpacingY); + /// + /// To be documented. + /// + public ref Vector2 FramePadding => ref Unsafe.AsRef(&Handle->FramePadding); + /// + /// To be documented. + /// + public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer TabsNames => ref Unsafe.AsRef(&Handle->TabsNames); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs new file mode 100644 index 000000000..ecb52d50c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs @@ -0,0 +1,228 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabItem + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiTabItemFlags Flags; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public int LastFrameVisible; + + /// + /// To be documented. + /// + public int LastFrameSelected; + + /// + /// To be documented. + /// + public float Offset; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public float ContentWidth; + + /// + /// To be documented. + /// + public float RequestedWidth; + + /// + /// To be documented. + /// + public int NameOffset; + + /// + /// To be documented. + /// + public short BeginOrder; + + /// + /// To be documented. + /// + public short IndexDuringLayout; + + /// + /// To be documented. + /// + public byte WantClose; + + + /// + /// To be documented. + /// + public unsafe ImGuiTabItem(uint id = default, ImGuiTabItemFlags flags = default, ImGuiWindowPtr window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) + { + ID = id; + Flags = flags; + Window = window; + LastFrameVisible = lastFrameVisible; + LastFrameSelected = lastFrameSelected; + Offset = offset; + Width = width; + ContentWidth = contentWidth; + RequestedWidth = requestedWidth; + NameOffset = nameOffset; + BeginOrder = beginOrder; + IndexDuringLayout = indexDuringLayout; + WantClose = wantClose ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTabItem* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTabItemPtr : IEquatable + { + public ImGuiTabItemPtr(ImGuiTabItem* handle) { Handle = handle; } + + public ImGuiTabItem* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTabItemPtr Null => new ImGuiTabItemPtr(null); + + public ImGuiTabItem this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTabItemPtr(ImGuiTabItem* handle) => new ImGuiTabItemPtr(handle); + + public static implicit operator ImGuiTabItem*(ImGuiTabItemPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle == right; + + public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle != right; + + public bool Equals(ImGuiTabItemPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTabItemPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTabItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiTabItemFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + /// + /// To be documented. + /// + public ref int LastFrameVisible => ref Unsafe.AsRef(&Handle->LastFrameVisible); + /// + /// To be documented. + /// + public ref int LastFrameSelected => ref Unsafe.AsRef(&Handle->LastFrameSelected); + /// + /// To be documented. + /// + public ref float Offset => ref Unsafe.AsRef(&Handle->Offset); + /// + /// To be documented. + /// + public ref float Width => ref Unsafe.AsRef(&Handle->Width); + /// + /// To be documented. + /// + public ref float ContentWidth => ref Unsafe.AsRef(&Handle->ContentWidth); + /// + /// To be documented. + /// + public ref float RequestedWidth => ref Unsafe.AsRef(&Handle->RequestedWidth); + /// + /// To be documented. + /// + public ref int NameOffset => ref Unsafe.AsRef(&Handle->NameOffset); + /// + /// To be documented. + /// + public ref short BeginOrder => ref Unsafe.AsRef(&Handle->BeginOrder); + /// + /// To be documented. + /// + public ref short IndexDuringLayout => ref Unsafe.AsRef(&Handle->IndexDuringLayout); + /// + /// To be documented. + /// + public ref bool WantClose => ref Unsafe.AsRef(&Handle->WantClose); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs new file mode 100644 index 000000000..f57d974c8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs @@ -0,0 +1,1241 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTable + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiTableFlags Flags; + + /// + /// To be documented. + /// + public unsafe void* RawData; + + /// + /// To be documented. + /// + public unsafe ImGuiTableTempData* TempData; + + /// + /// To be documented. + /// + public ImSpanImGuiTableColumn Columns; + + /// + /// To be documented. + /// + public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; + + /// + /// To be documented. + /// + public ImSpanImGuiTableCellData RowCellData; + + /// + /// To be documented. + /// + public ulong EnabledMaskByDisplayOrder; + + /// + /// To be documented. + /// + public ulong EnabledMaskByIndex; + + /// + /// To be documented. + /// + public ulong VisibleMaskByIndex; + + /// + /// To be documented. + /// + public ulong RequestOutputMaskByIndex; + + /// + /// To be documented. + /// + public ImGuiTableFlags SettingsLoadedFlags; + + /// + /// To be documented. + /// + public int SettingsOffset; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int ColumnsCount; + + /// + /// To be documented. + /// + public int CurrentRow; + + /// + /// To be documented. + /// + public int CurrentColumn; + + /// + /// To be documented. + /// + public short InstanceCurrent; + + /// + /// To be documented. + /// + public short InstanceInteracted; + + /// + /// To be documented. + /// + public float RowPosY1; + + /// + /// To be documented. + /// + public float RowPosY2; + + /// + /// To be documented. + /// + public float RowMinHeight; + + /// + /// To be documented. + /// + public float RowTextBaseline; + + /// + /// To be documented. + /// + public float RowIndentOffsetX; + + public ImGuiTableRowFlags RawBits0; + /// + /// To be documented. + /// + public int RowBgColorCounter; + + /// + /// To be documented. + /// + public uint RowBgColor_0; + public uint RowBgColor_1; + + /// + /// To be documented. + /// + public uint BorderColorStrong; + + /// + /// To be documented. + /// + public uint BorderColorLight; + + /// + /// To be documented. + /// + public float BorderX1; + + /// + /// To be documented. + /// + public float BorderX2; + + /// + /// To be documented. + /// + public float HostIndentX; + + /// + /// To be documented. + /// + public float MinColumnWidth; + + /// + /// To be documented. + /// + public float OuterPaddingX; + + /// + /// To be documented. + /// + public float CellPaddingX; + + /// + /// To be documented. + /// + public float CellPaddingY; + + /// + /// To be documented. + /// + public float CellSpacingX1; + + /// + /// To be documented. + /// + public float CellSpacingX2; + + /// + /// To be documented. + /// + public float InnerWidth; + + /// + /// To be documented. + /// + public float ColumnsGivenWidth; + + /// + /// To be documented. + /// + public float ColumnsAutoFitWidth; + + /// + /// To be documented. + /// + public float ColumnsStretchSumWeights; + + /// + /// To be documented. + /// + public float ResizedColumnNextWidth; + + /// + /// To be documented. + /// + public float ResizeLockMinContentsX2; + + /// + /// To be documented. + /// + public float RefScale; + + /// + /// To be documented. + /// + public ImRect OuterRect; + + /// + /// To be documented. + /// + public ImRect InnerRect; + + /// + /// To be documented. + /// + public ImRect WorkRect; + + /// + /// To be documented. + /// + public ImRect InnerClipRect; + + /// + /// To be documented. + /// + public ImRect BgClipRect; + + /// + /// To be documented. + /// + public ImRect Bg0ClipRectForDrawCmd; + + /// + /// To be documented. + /// + public ImRect Bg2ClipRectForDrawCmd; + + /// + /// To be documented. + /// + public ImRect HostClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupInnerClipRect; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* OuterWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* InnerWindow; + + /// + /// To be documented. + /// + public ImGuiTextBuffer ColumnsNames; + + /// + /// To be documented. + /// + public unsafe ImDrawListSplitter* DrawSplitter; + + /// + /// To be documented. + /// + public ImGuiTableInstanceData InstanceDataFirst; + + /// + /// To be documented. + /// + public ImVector InstanceDataExtra; + + /// + /// To be documented. + /// + public ImGuiTableColumnSortSpecs SortSpecsSingle; + + /// + /// To be documented. + /// + public ImVector SortSpecsMulti; + + /// + /// To be documented. + /// + public ImGuiTableSortSpecs SortSpecs; + + /// + /// To be documented. + /// + public sbyte SortSpecsCount; + + /// + /// To be documented. + /// + public sbyte ColumnsEnabledCount; + + /// + /// To be documented. + /// + public sbyte ColumnsEnabledFixedCount; + + /// + /// To be documented. + /// + public sbyte DeclColumnsCount; + + /// + /// To be documented. + /// + public sbyte HoveredColumnBody; + + /// + /// To be documented. + /// + public sbyte HoveredColumnBorder; + + /// + /// To be documented. + /// + public sbyte AutoFitSingleColumn; + + /// + /// To be documented. + /// + public sbyte ResizedColumn; + + /// + /// To be documented. + /// + public sbyte LastResizedColumn; + + /// + /// To be documented. + /// + public sbyte HeldHeaderColumn; + + /// + /// To be documented. + /// + public sbyte ReorderColumn; + + /// + /// To be documented. + /// + public sbyte ReorderColumnDir; + + /// + /// To be documented. + /// + public sbyte LeftMostEnabledColumn; + + /// + /// To be documented. + /// + public sbyte RightMostEnabledColumn; + + /// + /// To be documented. + /// + public sbyte LeftMostStretchedColumn; + + /// + /// To be documented. + /// + public sbyte RightMostStretchedColumn; + + /// + /// To be documented. + /// + public sbyte ContextPopupColumn; + + /// + /// To be documented. + /// + public sbyte FreezeRowsRequest; + + /// + /// To be documented. + /// + public sbyte FreezeRowsCount; + + /// + /// To be documented. + /// + public sbyte FreezeColumnsRequest; + + /// + /// To be documented. + /// + public sbyte FreezeColumnsCount; + + /// + /// To be documented. + /// + public sbyte RowCellDataCurrent; + + /// + /// To be documented. + /// + public byte DummyDrawChannel; + + /// + /// To be documented. + /// + public byte Bg2DrawChannelCurrent; + + /// + /// To be documented. + /// + public byte Bg2DrawChannelUnfrozen; + + /// + /// To be documented. + /// + public byte IsLayoutLocked; + + /// + /// To be documented. + /// + public byte IsInsideRow; + + /// + /// To be documented. + /// + public byte IsInitializing; + + /// + /// To be documented. + /// + public byte IsSortSpecsDirty; + + /// + /// To be documented. + /// + public byte IsUsingHeaders; + + /// + /// To be documented. + /// + public byte IsContextPopupOpen; + + /// + /// To be documented. + /// + public byte IsSettingsRequestLoad; + + /// + /// To be documented. + /// + public byte IsSettingsDirty; + + /// + /// To be documented. + /// + public byte IsDefaultDisplayOrder; + + /// + /// To be documented. + /// + public byte IsResetAllRequest; + + /// + /// To be documented. + /// + public byte IsResetDisplayOrderRequest; + + /// + /// To be documented. + /// + public byte IsUnfrozenRows; + + /// + /// To be documented. + /// + public byte IsDefaultSizingPolicy; + + /// + /// To be documented. + /// + public byte MemoryCompacted; + + /// + /// To be documented. + /// + public byte HostSkipItems; + + + /// + /// To be documented. + /// + public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + RequestOutputMaskByIndex = requestOutputMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default(uint*)) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellPaddingY = cellPaddingY; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, Span rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + RequestOutputMaskByIndex = requestOutputMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default(Span)) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellPaddingY = cellPaddingY; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + + + 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); } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTablePtr : IEquatable + { + public ImGuiTablePtr(ImGuiTable* handle) { Handle = handle; } + + public ImGuiTable* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTablePtr Null => new ImGuiTablePtr(null); + + public ImGuiTable this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTablePtr(ImGuiTable* handle) => new ImGuiTablePtr(handle); + + public static implicit operator ImGuiTable*(ImGuiTablePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTablePtr left, ImGuiTable* right) => left.Handle == right; + + public static bool operator !=(ImGuiTablePtr left, ImGuiTable* right) => left.Handle != right; + + public bool Equals(ImGuiTablePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTablePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTablePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiTableFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public void* RawData { get => Handle->RawData; set => Handle->RawData = value; } + /// + /// To be documented. + /// + public ref ImGuiTableTempDataPtr TempData => ref Unsafe.AsRef(&Handle->TempData); + /// + /// To be documented. + /// + public ref ImSpanImGuiTableColumn Columns => ref Unsafe.AsRef(&Handle->Columns); + /// + /// To be documented. + /// + public ref ImSpanImGuiTableColumnIdx DisplayOrderToIndex => ref Unsafe.AsRef(&Handle->DisplayOrderToIndex); + /// + /// To be documented. + /// + public ref ImSpanImGuiTableCellData RowCellData => ref Unsafe.AsRef(&Handle->RowCellData); + /// + /// To be documented. + /// + public ref ulong EnabledMaskByDisplayOrder => ref Unsafe.AsRef(&Handle->EnabledMaskByDisplayOrder); + /// + /// To be documented. + /// + public ref ulong EnabledMaskByIndex => ref Unsafe.AsRef(&Handle->EnabledMaskByIndex); + /// + /// To be documented. + /// + public ref ulong VisibleMaskByIndex => ref Unsafe.AsRef(&Handle->VisibleMaskByIndex); + /// + /// To be documented. + /// + public ref ulong RequestOutputMaskByIndex => ref Unsafe.AsRef(&Handle->RequestOutputMaskByIndex); + /// + /// To be documented. + /// + public ref ImGuiTableFlags SettingsLoadedFlags => ref Unsafe.AsRef(&Handle->SettingsLoadedFlags); + /// + /// To be documented. + /// + public ref int SettingsOffset => ref Unsafe.AsRef(&Handle->SettingsOffset); + /// + /// To be documented. + /// + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + /// + /// To be documented. + /// + public ref int ColumnsCount => ref Unsafe.AsRef(&Handle->ColumnsCount); + /// + /// To be documented. + /// + public ref int CurrentRow => ref Unsafe.AsRef(&Handle->CurrentRow); + /// + /// To be documented. + /// + public ref int CurrentColumn => ref Unsafe.AsRef(&Handle->CurrentColumn); + /// + /// To be documented. + /// + public ref short InstanceCurrent => ref Unsafe.AsRef(&Handle->InstanceCurrent); + /// + /// To be documented. + /// + public ref short InstanceInteracted => ref Unsafe.AsRef(&Handle->InstanceInteracted); + /// + /// To be documented. + /// + public ref float RowPosY1 => ref Unsafe.AsRef(&Handle->RowPosY1); + /// + /// To be documented. + /// + public ref float RowPosY2 => ref Unsafe.AsRef(&Handle->RowPosY2); + /// + /// To be documented. + /// + public ref float RowMinHeight => ref Unsafe.AsRef(&Handle->RowMinHeight); + /// + /// To be documented. + /// + public ref float RowTextBaseline => ref Unsafe.AsRef(&Handle->RowTextBaseline); + /// + /// To be documented. + /// + public ref float RowIndentOffsetX => ref Unsafe.AsRef(&Handle->RowIndentOffsetX); + /// + /// To be documented. + /// + public ImGuiTableRowFlags RowFlags { get => Handle->RowFlags; set => Handle->RowFlags = value; } + /// + /// To be documented. + /// + public ImGuiTableRowFlags LastRowFlags { get => Handle->LastRowFlags; set => Handle->LastRowFlags = value; } + /// + /// To be documented. + /// + public ref int RowBgColorCounter => ref Unsafe.AsRef(&Handle->RowBgColorCounter); + /// + /// To be documented. + /// + public unsafe Span RowBgColor + + { + get + { + return new Span(&Handle->RowBgColor_0, 2); + } + } + /// + /// To be documented. + /// + public ref uint BorderColorStrong => ref Unsafe.AsRef(&Handle->BorderColorStrong); + /// + /// To be documented. + /// + public ref uint BorderColorLight => ref Unsafe.AsRef(&Handle->BorderColorLight); + /// + /// To be documented. + /// + public ref float BorderX1 => ref Unsafe.AsRef(&Handle->BorderX1); + /// + /// To be documented. + /// + public ref float BorderX2 => ref Unsafe.AsRef(&Handle->BorderX2); + /// + /// To be documented. + /// + public ref float HostIndentX => ref Unsafe.AsRef(&Handle->HostIndentX); + /// + /// To be documented. + /// + public ref float MinColumnWidth => ref Unsafe.AsRef(&Handle->MinColumnWidth); + /// + /// To be documented. + /// + public ref float OuterPaddingX => ref Unsafe.AsRef(&Handle->OuterPaddingX); + /// + /// To be documented. + /// + public ref float CellPaddingX => ref Unsafe.AsRef(&Handle->CellPaddingX); + /// + /// To be documented. + /// + public ref float CellPaddingY => ref Unsafe.AsRef(&Handle->CellPaddingY); + /// + /// To be documented. + /// + public ref float CellSpacingX1 => ref Unsafe.AsRef(&Handle->CellSpacingX1); + /// + /// To be documented. + /// + public ref float CellSpacingX2 => ref Unsafe.AsRef(&Handle->CellSpacingX2); + /// + /// To be documented. + /// + public ref float InnerWidth => ref Unsafe.AsRef(&Handle->InnerWidth); + /// + /// To be documented. + /// + public ref float ColumnsGivenWidth => ref Unsafe.AsRef(&Handle->ColumnsGivenWidth); + /// + /// To be documented. + /// + public ref float ColumnsAutoFitWidth => ref Unsafe.AsRef(&Handle->ColumnsAutoFitWidth); + /// + /// To be documented. + /// + public ref float ColumnsStretchSumWeights => ref Unsafe.AsRef(&Handle->ColumnsStretchSumWeights); + /// + /// To be documented. + /// + public ref float ResizedColumnNextWidth => ref Unsafe.AsRef(&Handle->ResizedColumnNextWidth); + /// + /// To be documented. + /// + public ref float ResizeLockMinContentsX2 => ref Unsafe.AsRef(&Handle->ResizeLockMinContentsX2); + /// + /// To be documented. + /// + public ref float RefScale => ref Unsafe.AsRef(&Handle->RefScale); + /// + /// To be documented. + /// + public ref ImRect OuterRect => ref Unsafe.AsRef(&Handle->OuterRect); + /// + /// To be documented. + /// + public ref ImRect InnerRect => ref Unsafe.AsRef(&Handle->InnerRect); + /// + /// To be documented. + /// + public ref ImRect WorkRect => ref Unsafe.AsRef(&Handle->WorkRect); + /// + /// To be documented. + /// + public ref ImRect InnerClipRect => ref Unsafe.AsRef(&Handle->InnerClipRect); + /// + /// To be documented. + /// + public ref ImRect BgClipRect => ref Unsafe.AsRef(&Handle->BgClipRect); + /// + /// To be documented. + /// + public ref ImRect Bg0ClipRectForDrawCmd => ref Unsafe.AsRef(&Handle->Bg0ClipRectForDrawCmd); + /// + /// To be documented. + /// + public ref ImRect Bg2ClipRectForDrawCmd => ref Unsafe.AsRef(&Handle->Bg2ClipRectForDrawCmd); + /// + /// To be documented. + /// + public ref ImRect HostClipRect => ref Unsafe.AsRef(&Handle->HostClipRect); + /// + /// To be documented. + /// + public ref ImRect HostBackupInnerClipRect => ref Unsafe.AsRef(&Handle->HostBackupInnerClipRect); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr OuterWindow => ref Unsafe.AsRef(&Handle->OuterWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr InnerWindow => ref Unsafe.AsRef(&Handle->InnerWindow); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer ColumnsNames => ref Unsafe.AsRef(&Handle->ColumnsNames); + /// + /// To be documented. + /// + public ref ImDrawListSplitterPtr DrawSplitter => ref Unsafe.AsRef(&Handle->DrawSplitter); + /// + /// To be documented. + /// + public ref ImGuiTableInstanceData InstanceDataFirst => ref Unsafe.AsRef(&Handle->InstanceDataFirst); + /// + /// To be documented. + /// + public ref ImVector InstanceDataExtra => ref Unsafe.AsRef>(&Handle->InstanceDataExtra); + /// + /// To be documented. + /// + public ref ImGuiTableColumnSortSpecs SortSpecsSingle => ref Unsafe.AsRef(&Handle->SortSpecsSingle); + /// + /// To be documented. + /// + public ref ImVector SortSpecsMulti => ref Unsafe.AsRef>(&Handle->SortSpecsMulti); + /// + /// To be documented. + /// + public ref ImGuiTableSortSpecs SortSpecs => ref Unsafe.AsRef(&Handle->SortSpecs); + /// + /// To be documented. + /// + public ref sbyte SortSpecsCount => ref Unsafe.AsRef(&Handle->SortSpecsCount); + /// + /// To be documented. + /// + public ref sbyte ColumnsEnabledCount => ref Unsafe.AsRef(&Handle->ColumnsEnabledCount); + /// + /// To be documented. + /// + public ref sbyte ColumnsEnabledFixedCount => ref Unsafe.AsRef(&Handle->ColumnsEnabledFixedCount); + /// + /// To be documented. + /// + public ref sbyte DeclColumnsCount => ref Unsafe.AsRef(&Handle->DeclColumnsCount); + /// + /// To be documented. + /// + public ref sbyte HoveredColumnBody => ref Unsafe.AsRef(&Handle->HoveredColumnBody); + /// + /// To be documented. + /// + public ref sbyte HoveredColumnBorder => ref Unsafe.AsRef(&Handle->HoveredColumnBorder); + /// + /// To be documented. + /// + public ref sbyte AutoFitSingleColumn => ref Unsafe.AsRef(&Handle->AutoFitSingleColumn); + /// + /// To be documented. + /// + public ref sbyte ResizedColumn => ref Unsafe.AsRef(&Handle->ResizedColumn); + /// + /// To be documented. + /// + public ref sbyte LastResizedColumn => ref Unsafe.AsRef(&Handle->LastResizedColumn); + /// + /// To be documented. + /// + public ref sbyte HeldHeaderColumn => ref Unsafe.AsRef(&Handle->HeldHeaderColumn); + /// + /// To be documented. + /// + public ref sbyte ReorderColumn => ref Unsafe.AsRef(&Handle->ReorderColumn); + /// + /// To be documented. + /// + public ref sbyte ReorderColumnDir => ref Unsafe.AsRef(&Handle->ReorderColumnDir); + /// + /// To be documented. + /// + public ref sbyte LeftMostEnabledColumn => ref Unsafe.AsRef(&Handle->LeftMostEnabledColumn); + /// + /// To be documented. + /// + public ref sbyte RightMostEnabledColumn => ref Unsafe.AsRef(&Handle->RightMostEnabledColumn); + /// + /// To be documented. + /// + public ref sbyte LeftMostStretchedColumn => ref Unsafe.AsRef(&Handle->LeftMostStretchedColumn); + /// + /// To be documented. + /// + public ref sbyte RightMostStretchedColumn => ref Unsafe.AsRef(&Handle->RightMostStretchedColumn); + /// + /// To be documented. + /// + public ref sbyte ContextPopupColumn => ref Unsafe.AsRef(&Handle->ContextPopupColumn); + /// + /// To be documented. + /// + public ref sbyte FreezeRowsRequest => ref Unsafe.AsRef(&Handle->FreezeRowsRequest); + /// + /// To be documented. + /// + public ref sbyte FreezeRowsCount => ref Unsafe.AsRef(&Handle->FreezeRowsCount); + /// + /// To be documented. + /// + public ref sbyte FreezeColumnsRequest => ref Unsafe.AsRef(&Handle->FreezeColumnsRequest); + /// + /// To be documented. + /// + public ref sbyte FreezeColumnsCount => ref Unsafe.AsRef(&Handle->FreezeColumnsCount); + /// + /// To be documented. + /// + public ref sbyte RowCellDataCurrent => ref Unsafe.AsRef(&Handle->RowCellDataCurrent); + /// + /// To be documented. + /// + public ref byte DummyDrawChannel => ref Unsafe.AsRef(&Handle->DummyDrawChannel); + /// + /// To be documented. + /// + public ref byte Bg2DrawChannelCurrent => ref Unsafe.AsRef(&Handle->Bg2DrawChannelCurrent); + /// + /// To be documented. + /// + public ref byte Bg2DrawChannelUnfrozen => ref Unsafe.AsRef(&Handle->Bg2DrawChannelUnfrozen); + /// + /// To be documented. + /// + public ref bool IsLayoutLocked => ref Unsafe.AsRef(&Handle->IsLayoutLocked); + /// + /// To be documented. + /// + public ref bool IsInsideRow => ref Unsafe.AsRef(&Handle->IsInsideRow); + /// + /// To be documented. + /// + public ref bool IsInitializing => ref Unsafe.AsRef(&Handle->IsInitializing); + /// + /// To be documented. + /// + public ref bool IsSortSpecsDirty => ref Unsafe.AsRef(&Handle->IsSortSpecsDirty); + /// + /// To be documented. + /// + public ref bool IsUsingHeaders => ref Unsafe.AsRef(&Handle->IsUsingHeaders); + /// + /// To be documented. + /// + public ref bool IsContextPopupOpen => ref Unsafe.AsRef(&Handle->IsContextPopupOpen); + /// + /// To be documented. + /// + public ref bool IsSettingsRequestLoad => ref Unsafe.AsRef(&Handle->IsSettingsRequestLoad); + /// + /// To be documented. + /// + public ref bool IsSettingsDirty => ref Unsafe.AsRef(&Handle->IsSettingsDirty); + /// + /// To be documented. + /// + public ref bool IsDefaultDisplayOrder => ref Unsafe.AsRef(&Handle->IsDefaultDisplayOrder); + /// + /// To be documented. + /// + public ref bool IsResetAllRequest => ref Unsafe.AsRef(&Handle->IsResetAllRequest); + /// + /// To be documented. + /// + public ref bool IsResetDisplayOrderRequest => ref Unsafe.AsRef(&Handle->IsResetDisplayOrderRequest); + /// + /// To be documented. + /// + public ref bool IsUnfrozenRows => ref Unsafe.AsRef(&Handle->IsUnfrozenRows); + /// + /// To be documented. + /// + public ref bool IsDefaultSizingPolicy => ref Unsafe.AsRef(&Handle->IsDefaultSizingPolicy); + /// + /// To be documented. + /// + public ref bool MemoryCompacted => ref Unsafe.AsRef(&Handle->MemoryCompacted); + /// + /// To be documented. + /// + public ref bool HostSkipItems => ref Unsafe.AsRef(&Handle->HostSkipItems); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs new file mode 100644 index 000000000..0b5790a96 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableCellData + { + /// + /// To be documented. + /// + public uint BgColor; + + /// + /// To be documented. + /// + public sbyte Column; + + + /// + /// To be documented. + /// + public unsafe ImGuiTableCellData(uint bgColor = default, sbyte column = default) + { + BgColor = bgColor; + Column = column; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableCellDataPtr : IEquatable + { + public ImGuiTableCellDataPtr(ImGuiTableCellData* handle) { Handle = handle; } + + public ImGuiTableCellData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableCellDataPtr Null => new ImGuiTableCellDataPtr(null); + + public ImGuiTableCellData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableCellDataPtr(ImGuiTableCellData* handle) => new ImGuiTableCellDataPtr(handle); + + public static implicit operator ImGuiTableCellData*(ImGuiTableCellDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle != right; + + public bool Equals(ImGuiTableCellDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableCellDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableCellDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint BgColor => ref Unsafe.AsRef(&Handle->BgColor); + /// + /// To be documented. + /// + public ref sbyte Column => ref Unsafe.AsRef(&Handle->Column); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs new file mode 100644 index 000000000..c21d809e1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs @@ -0,0 +1,500 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumn + { + /// + /// To be documented. + /// + public ImGuiTableColumnFlags Flags; + + /// + /// To be documented. + /// + public float WidthGiven; + + /// + /// To be documented. + /// + public float MinX; + + /// + /// To be documented. + /// + public float MaxX; + + /// + /// To be documented. + /// + public float WidthRequest; + + /// + /// To be documented. + /// + public float WidthAuto; + + /// + /// To be documented. + /// + public float StretchWeight; + + /// + /// To be documented. + /// + public float InitStretchWeightOrWidth; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + /// + /// To be documented. + /// + public uint UserID; + + /// + /// To be documented. + /// + public float WorkMinX; + + /// + /// To be documented. + /// + public float WorkMaxX; + + /// + /// To be documented. + /// + public float ItemWidth; + + /// + /// To be documented. + /// + public float ContentMaxXFrozen; + + /// + /// To be documented. + /// + public float ContentMaxXUnfrozen; + + /// + /// To be documented. + /// + public float ContentMaxXHeadersUsed; + + /// + /// To be documented. + /// + public float ContentMaxXHeadersIdeal; + + /// + /// To be documented. + /// + public short NameOffset; + + /// + /// To be documented. + /// + public sbyte DisplayOrder; + + /// + /// To be documented. + /// + public sbyte IndexWithinEnabledSet; + + /// + /// To be documented. + /// + public sbyte PrevEnabledColumn; + + /// + /// To be documented. + /// + public sbyte NextEnabledColumn; + + /// + /// To be documented. + /// + public sbyte SortOrder; + + /// + /// To be documented. + /// + public byte DrawChannelCurrent; + + /// + /// To be documented. + /// + public byte DrawChannelFrozen; + + /// + /// To be documented. + /// + public byte DrawChannelUnfrozen; + + /// + /// To be documented. + /// + public byte IsEnabled; + + /// + /// To be documented. + /// + public byte IsUserEnabled; + + /// + /// To be documented. + /// + public byte IsUserEnabledNextFrame; + + /// + /// To be documented. + /// + public byte IsVisibleX; + + /// + /// To be documented. + /// + public byte IsVisibleY; + + /// + /// To be documented. + /// + public byte IsRequestOutput; + + /// + /// To be documented. + /// + public byte IsSkipItems; + + /// + /// To be documented. + /// + public byte IsPreserveWidthAuto; + + /// + /// To be documented. + /// + public sbyte NavLayerCurrent; + + /// + /// To be documented. + /// + public byte AutoFitQueue; + + /// + /// To be documented. + /// + public byte CannotSkipItemsQueue; + + public byte RawBits0; + /// + /// To be documented. + /// + public byte SortDirectionsAvailList; + + + /// + /// 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, 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; + MinX = minX; + MaxX = maxX; + WidthRequest = widthRequest; + WidthAuto = widthAuto; + StretchWeight = stretchWeight; + InitStretchWeightOrWidth = initStretchWeightOrWidth; + ClipRect = clipRect; + UserID = userId; + WorkMinX = workMinX; + WorkMaxX = workMaxX; + ItemWidth = itemWidth; + ContentMaxXFrozen = contentMaxXFrozen; + ContentMaxXUnfrozen = contentMaxXUnfrozen; + ContentMaxXHeadersUsed = contentMaxXHeadersUsed; + ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; + NameOffset = nameOffset; + DisplayOrder = displayOrder; + IndexWithinEnabledSet = indexWithinEnabledSet; + PrevEnabledColumn = prevEnabledColumn; + NextEnabledColumn = nextEnabledColumn; + SortOrder = sortOrder; + DrawChannelCurrent = drawChannelCurrent; + DrawChannelFrozen = drawChannelFrozen; + DrawChannelUnfrozen = drawChannelUnfrozen; + IsEnabled = isEnabled ? (byte)1 : (byte)0; + IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; + IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; + IsVisibleX = isVisibleX ? (byte)1 : (byte)0; + IsVisibleY = isVisibleY ? (byte)1 : (byte)0; + IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; + IsSkipItems = isSkipItems ? (byte)1 : (byte)0; + IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; + NavLayerCurrent = navLayerCurrent; + AutoFitQueue = autoFitQueue; + CannotSkipItemsQueue = cannotSkipItemsQueue; + SortDirection = sortDirection; + SortDirectionsAvailCount = sortDirectionsAvailCount; + SortDirectionsAvailMask = sortDirectionsAvailMask; + SortDirectionsAvailList = sortDirectionsAvailList; + } + + + 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. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableColumn* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableColumnPtr : IEquatable + { + public ImGuiTableColumnPtr(ImGuiTableColumn* handle) { Handle = handle; } + + public ImGuiTableColumn* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableColumnPtr Null => new ImGuiTableColumnPtr(null); + + public ImGuiTableColumn this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableColumnPtr(ImGuiTableColumn* handle) => new ImGuiTableColumnPtr(handle); + + public static implicit operator ImGuiTableColumn*(ImGuiTableColumnPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle != right; + + public bool Equals(ImGuiTableColumnPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableColumnPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableColumnPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiTableColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref float WidthGiven => ref Unsafe.AsRef(&Handle->WidthGiven); + /// + /// To be documented. + /// + public ref float MinX => ref Unsafe.AsRef(&Handle->MinX); + /// + /// To be documented. + /// + public ref float MaxX => ref Unsafe.AsRef(&Handle->MaxX); + /// + /// To be documented. + /// + public ref float WidthRequest => ref Unsafe.AsRef(&Handle->WidthRequest); + /// + /// To be documented. + /// + public ref float WidthAuto => ref Unsafe.AsRef(&Handle->WidthAuto); + /// + /// To be documented. + /// + public ref float StretchWeight => ref Unsafe.AsRef(&Handle->StretchWeight); + /// + /// To be documented. + /// + public ref float InitStretchWeightOrWidth => ref Unsafe.AsRef(&Handle->InitStretchWeightOrWidth); + /// + /// To be documented. + /// + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + /// + /// To be documented. + /// + public ref uint UserID => ref Unsafe.AsRef(&Handle->UserID); + /// + /// To be documented. + /// + public ref float WorkMinX => ref Unsafe.AsRef(&Handle->WorkMinX); + /// + /// To be documented. + /// + public ref float WorkMaxX => ref Unsafe.AsRef(&Handle->WorkMaxX); + /// + /// To be documented. + /// + public ref float ItemWidth => ref Unsafe.AsRef(&Handle->ItemWidth); + /// + /// To be documented. + /// + public ref float ContentMaxXFrozen => ref Unsafe.AsRef(&Handle->ContentMaxXFrozen); + /// + /// To be documented. + /// + public ref float ContentMaxXUnfrozen => ref Unsafe.AsRef(&Handle->ContentMaxXUnfrozen); + /// + /// To be documented. + /// + public ref float ContentMaxXHeadersUsed => ref Unsafe.AsRef(&Handle->ContentMaxXHeadersUsed); + /// + /// To be documented. + /// + public ref float ContentMaxXHeadersIdeal => ref Unsafe.AsRef(&Handle->ContentMaxXHeadersIdeal); + /// + /// To be documented. + /// + public ref short NameOffset => ref Unsafe.AsRef(&Handle->NameOffset); + /// + /// To be documented. + /// + public ref sbyte DisplayOrder => ref Unsafe.AsRef(&Handle->DisplayOrder); + /// + /// To be documented. + /// + public ref sbyte IndexWithinEnabledSet => ref Unsafe.AsRef(&Handle->IndexWithinEnabledSet); + /// + /// To be documented. + /// + public ref sbyte PrevEnabledColumn => ref Unsafe.AsRef(&Handle->PrevEnabledColumn); + /// + /// To be documented. + /// + public ref sbyte NextEnabledColumn => ref Unsafe.AsRef(&Handle->NextEnabledColumn); + /// + /// To be documented. + /// + public ref sbyte SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + /// + /// To be documented. + /// + public ref byte DrawChannelCurrent => ref Unsafe.AsRef(&Handle->DrawChannelCurrent); + /// + /// To be documented. + /// + public ref byte DrawChannelFrozen => ref Unsafe.AsRef(&Handle->DrawChannelFrozen); + /// + /// To be documented. + /// + public ref byte DrawChannelUnfrozen => ref Unsafe.AsRef(&Handle->DrawChannelUnfrozen); + /// + /// To be documented. + /// + public ref bool IsEnabled => ref Unsafe.AsRef(&Handle->IsEnabled); + /// + /// To be documented. + /// + public ref bool IsUserEnabled => ref Unsafe.AsRef(&Handle->IsUserEnabled); + /// + /// To be documented. + /// + public ref bool IsUserEnabledNextFrame => ref Unsafe.AsRef(&Handle->IsUserEnabledNextFrame); + /// + /// To be documented. + /// + public ref bool IsVisibleX => ref Unsafe.AsRef(&Handle->IsVisibleX); + /// + /// To be documented. + /// + public ref bool IsVisibleY => ref Unsafe.AsRef(&Handle->IsVisibleY); + /// + /// To be documented. + /// + public ref bool IsRequestOutput => ref Unsafe.AsRef(&Handle->IsRequestOutput); + /// + /// To be documented. + /// + public ref bool IsSkipItems => ref Unsafe.AsRef(&Handle->IsSkipItems); + /// + /// To be documented. + /// + public ref bool IsPreserveWidthAuto => ref Unsafe.AsRef(&Handle->IsPreserveWidthAuto); + /// + /// To be documented. + /// + public ref sbyte NavLayerCurrent => ref Unsafe.AsRef(&Handle->NavLayerCurrent); + /// + /// To be documented. + /// + public ref byte AutoFitQueue => ref Unsafe.AsRef(&Handle->AutoFitQueue); + /// + /// To be documented. + /// + public ref byte CannotSkipItemsQueue => ref Unsafe.AsRef(&Handle->CannotSkipItemsQueue); + /// + /// To be documented. + /// + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + /// + /// To be documented. + /// + public byte SortDirectionsAvailCount { get => Handle->SortDirectionsAvailCount; set => Handle->SortDirectionsAvailCount = value; } + /// + /// To be documented. + /// + public byte SortDirectionsAvailMask { get => Handle->SortDirectionsAvailMask; set => Handle->SortDirectionsAvailMask = value; } + /// + /// To be documented. + /// + public ref byte SortDirectionsAvailList => ref Unsafe.AsRef(&Handle->SortDirectionsAvailList); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs new file mode 100644 index 000000000..13316f03e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs @@ -0,0 +1,170 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSettings + { + /// + /// To be documented. + /// + public float WidthOrWeight; + + /// + /// To be documented. + /// + public uint UserID; + + /// + /// To be documented. + /// + public sbyte Index; + + /// + /// To be documented. + /// + public sbyte DisplayOrder; + + /// + /// To be documented. + /// + public sbyte SortOrder; + + public byte RawBits0; + + /// + /// To be documented. + /// + public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) + { + WidthOrWeight = widthOrWeight; + UserID = userId; + Index = index; + DisplayOrder = displayOrder; + SortOrder = sortOrder; + SortDirection = sortDirection; + IsEnabled = isEnabled; + IsStretch = isStretch; + } + + + 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. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableColumnSettings* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableColumnSettingsPtr : IEquatable + { + public ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) { Handle = handle; } + + public ImGuiTableColumnSettings* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableColumnSettingsPtr Null => new ImGuiTableColumnSettingsPtr(null); + + public ImGuiTableColumnSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) => new ImGuiTableColumnSettingsPtr(handle); + + public static implicit operator ImGuiTableColumnSettings*(ImGuiTableColumnSettingsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle != right; + + public bool Equals(ImGuiTableColumnSettingsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableColumnSettingsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableColumnSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float WidthOrWeight => ref Unsafe.AsRef(&Handle->WidthOrWeight); + /// + /// To be documented. + /// + public ref uint UserID => ref Unsafe.AsRef(&Handle->UserID); + /// + /// To be documented. + /// + public ref sbyte Index => ref Unsafe.AsRef(&Handle->Index); + /// + /// To be documented. + /// + public ref sbyte DisplayOrder => ref Unsafe.AsRef(&Handle->DisplayOrder); + /// + /// To be documented. + /// + public ref sbyte SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + /// + /// To be documented. + /// + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + /// + /// To be documented. + /// + public byte IsEnabled { get => Handle->IsEnabled; set => Handle->IsEnabled = value; } + /// + /// To be documented. + /// + public byte IsStretch { get => Handle->IsStretch; set => Handle->IsStretch = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs new file mode 100644 index 000000000..c4a74254d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs @@ -0,0 +1,136 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSortSpecs + { + /// + /// To be documented. + /// + public uint ColumnUserID; + + /// + /// To be documented. + /// + public short ColumnIndex; + + /// + /// To be documented. + /// + public short SortOrder; + + public ImGuiSortDirection RawBits0; + + /// + /// To be documented. + /// + public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, ImGuiSortDirection sortDirection = default) + { + ColumnUserID = columnUserId; + ColumnIndex = columnIndex; + SortOrder = sortOrder; + SortDirection = sortDirection; + } + + + public ImGuiSortDirection SortDirection { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableColumnSortSpecs* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableColumnSortSpecsPtr : IEquatable + { + public ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) { Handle = handle; } + + public ImGuiTableColumnSortSpecs* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableColumnSortSpecsPtr Null => new ImGuiTableColumnSortSpecsPtr(null); + + public ImGuiTableColumnSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) => new ImGuiTableColumnSortSpecsPtr(handle); + + public static implicit operator ImGuiTableColumnSortSpecs*(ImGuiTableColumnSortSpecsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle != right; + + public bool Equals(ImGuiTableColumnSortSpecsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableColumnSortSpecsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableColumnSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ColumnUserID => ref Unsafe.AsRef(&Handle->ColumnUserID); + /// + /// To be documented. + /// + public ref short ColumnIndex => ref Unsafe.AsRef(&Handle->ColumnIndex); + /// + /// To be documented. + /// + public ref short SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); + /// + /// To be documented. + /// + public ImGuiSortDirection SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs new file mode 100644 index 000000000..c0945b51b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnsSettings + { + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs new file mode 100644 index 000000000..8d17461ef --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs @@ -0,0 +1,118 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableInstanceData + { + /// + /// To be documented. + /// + public float LastOuterHeight; + + /// + /// To be documented. + /// + public float LastFirstRowHeight; + + + /// + /// To be documented. + /// + public unsafe ImGuiTableInstanceData(float lastOuterHeight = default, float lastFirstRowHeight = default) + { + LastOuterHeight = lastOuterHeight; + LastFirstRowHeight = lastFirstRowHeight; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableInstanceData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableInstanceDataPtr : IEquatable + { + public ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) { Handle = handle; } + + public ImGuiTableInstanceData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableInstanceDataPtr Null => new ImGuiTableInstanceDataPtr(null); + + public ImGuiTableInstanceData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) => new ImGuiTableInstanceDataPtr(handle); + + public static implicit operator ImGuiTableInstanceData*(ImGuiTableInstanceDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle != right; + + public bool Equals(ImGuiTableInstanceDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableInstanceDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableInstanceDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float LastOuterHeight => ref Unsafe.AsRef(&Handle->LastOuterHeight); + /// + /// To be documented. + /// + public ref float LastFirstRowHeight => ref Unsafe.AsRef(&Handle->LastFirstRowHeight); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs new file mode 100644 index 000000000..383cd2a22 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs @@ -0,0 +1,158 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSettings + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiTableFlags SaveFlags; + + /// + /// To be documented. + /// + public float RefScale; + + /// + /// To be documented. + /// + public sbyte ColumnsCount; + + /// + /// To be documented. + /// + public sbyte ColumnsCountMax; + + /// + /// To be documented. + /// + public byte WantApply; + + + /// + /// To be documented. + /// + public unsafe ImGuiTableSettings(uint id = default, ImGuiTableFlags saveFlags = default, float refScale = default, sbyte columnsCount = default, sbyte columnsCountMax = default, bool wantApply = default) + { + ID = id; + SaveFlags = saveFlags; + RefScale = refScale; + ColumnsCount = columnsCount; + ColumnsCountMax = columnsCountMax; + WantApply = wantApply ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableSettings* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableSettingsPtr : IEquatable + { + public ImGuiTableSettingsPtr(ImGuiTableSettings* handle) { Handle = handle; } + + public ImGuiTableSettings* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableSettingsPtr Null => new ImGuiTableSettingsPtr(null); + + public ImGuiTableSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableSettingsPtr(ImGuiTableSettings* handle) => new ImGuiTableSettingsPtr(handle); + + public static implicit operator ImGuiTableSettings*(ImGuiTableSettingsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle != right; + + public bool Equals(ImGuiTableSettingsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableSettingsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiTableFlags SaveFlags => ref Unsafe.AsRef(&Handle->SaveFlags); + /// + /// To be documented. + /// + public ref float RefScale => ref Unsafe.AsRef(&Handle->RefScale); + /// + /// To be documented. + /// + public ref sbyte ColumnsCount => ref Unsafe.AsRef(&Handle->ColumnsCount); + /// + /// To be documented. + /// + public ref sbyte ColumnsCountMax => ref Unsafe.AsRef(&Handle->ColumnsCountMax); + /// + /// To be documented. + /// + public ref bool WantApply => ref Unsafe.AsRef(&Handle->WantApply); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs new file mode 100644 index 000000000..1543c6da8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs @@ -0,0 +1,128 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSortSpecs + { + /// + /// To be documented. + /// + public unsafe ImGuiTableColumnSortSpecs* Specs; + + /// + /// To be documented. + /// + public int SpecsCount; + + /// + /// To be documented. + /// + public byte SpecsDirty; + + + /// + /// To be documented. + /// + public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecsPtr specs = default, int specsCount = default, bool specsDirty = default) + { + Specs = specs; + SpecsCount = specsCount; + SpecsDirty = specsDirty ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableSortSpecs* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableSortSpecsPtr : IEquatable + { + public ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) { Handle = handle; } + + public ImGuiTableSortSpecs* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableSortSpecsPtr Null => new ImGuiTableSortSpecsPtr(null); + + public ImGuiTableSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) => new ImGuiTableSortSpecsPtr(handle); + + public static implicit operator ImGuiTableSortSpecs*(ImGuiTableSortSpecsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle != right; + + public bool Equals(ImGuiTableSortSpecsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableSortSpecsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiTableColumnSortSpecsPtr Specs => ref Unsafe.AsRef(&Handle->Specs); + /// + /// To be documented. + /// + public ref int SpecsCount => ref Unsafe.AsRef(&Handle->SpecsCount); + /// + /// To be documented. + /// + public ref bool SpecsDirty => ref Unsafe.AsRef(&Handle->SpecsDirty); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs new file mode 100644 index 000000000..06bb694c9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs @@ -0,0 +1,218 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableTempData + { + /// + /// To be documented. + /// + public int TableIndex; + + /// + /// To be documented. + /// + public float LastTimeActive; + + /// + /// To be documented. + /// + public Vector2 UserOuterSize; + + /// + /// To be documented. + /// + public ImDrawListSplitter DrawSplitter; + + /// + /// To be documented. + /// + public ImRect HostBackupWorkRect; + + /// + /// To be documented. + /// + public ImRect HostBackupParentWorkRect; + + /// + /// To be documented. + /// + public Vector2 HostBackupPrevLineSize; + + /// + /// To be documented. + /// + public Vector2 HostBackupCurrLineSize; + + /// + /// To be documented. + /// + public Vector2 HostBackupCursorMaxPos; + + /// + /// To be documented. + /// + public ImVec1 HostBackupColumnsOffset; + + /// + /// To be documented. + /// + public float HostBackupItemWidth; + + /// + /// To be documented. + /// + public int HostBackupItemWidthStackSize; + + + /// + /// To be documented. + /// + public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) + { + TableIndex = tableIndex; + LastTimeActive = lastTimeActive; + UserOuterSize = userOuterSize; + DrawSplitter = drawSplitter; + HostBackupWorkRect = hostBackupWorkRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + HostBackupPrevLineSize = hostBackupPrevLineSize; + HostBackupCurrLineSize = hostBackupCurrLineSize; + HostBackupCursorMaxPos = hostBackupCursorMaxPos; + HostBackupColumnsOffset = hostBackupColumnsOffset; + HostBackupItemWidth = hostBackupItemWidth; + HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTableTempData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTableTempDataPtr : IEquatable + { + public ImGuiTableTempDataPtr(ImGuiTableTempData* handle) { Handle = handle; } + + public ImGuiTableTempData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTableTempDataPtr Null => new ImGuiTableTempDataPtr(null); + + public ImGuiTableTempData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTableTempDataPtr(ImGuiTableTempData* handle) => new ImGuiTableTempDataPtr(handle); + + public static implicit operator ImGuiTableTempData*(ImGuiTableTempDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle == right; + + public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle != right; + + public bool Equals(ImGuiTableTempDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTableTempDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTableTempDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref int TableIndex => ref Unsafe.AsRef(&Handle->TableIndex); + /// + /// To be documented. + /// + public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive); + /// + /// To be documented. + /// + public ref Vector2 UserOuterSize => ref Unsafe.AsRef(&Handle->UserOuterSize); + /// + /// To be documented. + /// + public ref ImDrawListSplitter DrawSplitter => ref Unsafe.AsRef(&Handle->DrawSplitter); + /// + /// To be documented. + /// + public ref ImRect HostBackupWorkRect => ref Unsafe.AsRef(&Handle->HostBackupWorkRect); + /// + /// To be documented. + /// + public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect); + /// + /// To be documented. + /// + public ref Vector2 HostBackupPrevLineSize => ref Unsafe.AsRef(&Handle->HostBackupPrevLineSize); + /// + /// To be documented. + /// + public ref Vector2 HostBackupCurrLineSize => ref Unsafe.AsRef(&Handle->HostBackupCurrLineSize); + /// + /// To be documented. + /// + public ref Vector2 HostBackupCursorMaxPos => ref Unsafe.AsRef(&Handle->HostBackupCursorMaxPos); + /// + /// To be documented. + /// + public ref ImVec1 HostBackupColumnsOffset => ref Unsafe.AsRef(&Handle->HostBackupColumnsOffset); + /// + /// To be documented. + /// + public ref float HostBackupItemWidth => ref Unsafe.AsRef(&Handle->HostBackupItemWidth); + /// + /// To be documented. + /// + public ref int HostBackupItemWidthStackSize => ref Unsafe.AsRef(&Handle->HostBackupItemWidthStackSize); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs new file mode 100644 index 000000000..ff3ec7e37 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs @@ -0,0 +1,1440 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextBuffer + { + /// + /// To be documented. + /// + public ImVector Buf; + + + /// + /// To be documented. + /// + public unsafe ImGuiTextBuffer(ImVector buf = default) + { + Buf = buf; + } + + + /// + /// To be documented. + /// + public unsafe void append(byte* str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendNative(@this, str, strEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendNative(@this, str, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(@this, (byte*)pstr, strEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = str) + { + ImGui.appendNative(@this, (byte*)pstr, strEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = str) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(string str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(string str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(@this, str, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(@this, str, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(string str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendNative(@this, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(string str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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) + { + ImGui.appendNative(@this, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(string str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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) + { + ImGui.appendNative(@this, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(byte* fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendfNative(@this, fmt); + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(ref byte fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfNative(@this, (byte*)pfmt); + } + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(ReadOnlySpan fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImGui.appendfNative(@this, (byte*)pfmt); + } + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(string fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendfNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(byte* fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendfvNative(@this, fmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(ref byte fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfvNative(@this, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(ReadOnlySpan fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImGui.appendfvNative(@this, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(string fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + 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; + } + ImGui.appendfvNative(@this, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe byte* begin() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.beginNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string beginS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.beginNative(@this)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* c_str() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.c_strNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string c_strS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.c_strNative(@this)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void clear() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.clearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool empty() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte ret = ImGui.emptyNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe byte* end() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.endNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string endS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.endNative(@this)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void reserve(int capacity) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.reserveNative(@this, capacity); + } + } + + /// + /// To be documented. + /// + public unsafe int size() + { + fixed (ImGuiTextBuffer* @this = &this) + { + int ret = ImGui.sizeNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTextBufferPtr : IEquatable + { + public ImGuiTextBufferPtr(ImGuiTextBuffer* handle) { Handle = handle; } + + public ImGuiTextBuffer* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTextBufferPtr Null => new ImGuiTextBufferPtr(null); + + public ImGuiTextBuffer this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTextBufferPtr(ImGuiTextBuffer* handle) => new ImGuiTextBufferPtr(handle); + + public static implicit operator ImGuiTextBuffer*(ImGuiTextBufferPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle == right; + + public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle != right; + + public bool Equals(ImGuiTextBufferPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTextBufferPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTextBufferPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Buf => ref Unsafe.AsRef>(&Handle->Buf); + /// + /// To be documented. + /// + public unsafe void append(byte* str, byte* strEnd) + { + ImGui.appendNative(Handle, str, strEnd); + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str) + { + ImGui.appendNative(Handle, str, (byte*)(default)); + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(Handle, (byte*)pstr, strEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, byte* strEnd) + { + fixed (byte* pstr = str) + { + ImGui.appendNative(Handle, (byte*)pstr, strEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(Handle, str, (byte*)pstrEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void append(byte* str, ReadOnlySpan strEnd) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(Handle, str, (byte*)pstrEnd); + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void append(ref byte str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(ReadOnlySpan str, ref byte strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(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; + } + ImGui.appendNative(Handle, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(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) + { + ImGui.appendNative(Handle, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void append(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) + { + ImGui.appendNative(Handle, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(byte* fmt) + { + ImGui.appendfNative(Handle, fmt); + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfNative(Handle, (byte*)pfmt); + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + ImGui.appendfNative(Handle, (byte*)pfmt); + } + } + + /// + /// no appendfV
+ ///
+ public unsafe void appendf(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; + } + ImGui.appendfNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(byte* fmt, nuint args) + { + ImGui.appendfvNative(Handle, fmt, args); + } + + /// + /// To be documented. + /// + public unsafe void appendfv(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfvNative(Handle, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + ImGui.appendfvNative(Handle, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void appendfv(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; + } + ImGui.appendfvNative(Handle, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe byte* begin() + { + byte* ret = ImGui.beginNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string beginS() + { + string ret = Utils.DecodeStringUTF8(ImGui.beginNative(Handle)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* c_str() + { + byte* ret = ImGui.c_strNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string c_strS() + { + string ret = Utils.DecodeStringUTF8(ImGui.c_strNative(Handle)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void clear() + { + ImGui.clearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool empty() + { + byte ret = ImGui.emptyNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe byte* end() + { + byte* ret = ImGui.endNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string endS() + { + string ret = Utils.DecodeStringUTF8(ImGui.endNative(Handle)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void reserve(int capacity) + { + ImGui.reserveNative(Handle, capacity); + } + + /// + /// To be documented. + /// + public unsafe int size() + { + int ret = ImGui.sizeNative(Handle); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs new file mode 100644 index 000000000..305833d44 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs @@ -0,0 +1,2199 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextFilter + { + /// + /// To be documented. + /// + public byte InputBuf_0; + public byte InputBuf_1; + public byte InputBuf_2; + public byte InputBuf_3; + public byte InputBuf_4; + public byte InputBuf_5; + public byte InputBuf_6; + public byte InputBuf_7; + public byte InputBuf_8; + public byte InputBuf_9; + public byte InputBuf_10; + public byte InputBuf_11; + public byte InputBuf_12; + public byte InputBuf_13; + public byte InputBuf_14; + public byte InputBuf_15; + public byte InputBuf_16; + public byte InputBuf_17; + public byte InputBuf_18; + public byte InputBuf_19; + public byte InputBuf_20; + public byte InputBuf_21; + public byte InputBuf_22; + public byte InputBuf_23; + public byte InputBuf_24; + public byte InputBuf_25; + public byte InputBuf_26; + public byte InputBuf_27; + public byte InputBuf_28; + public byte InputBuf_29; + public byte InputBuf_30; + public byte InputBuf_31; + public byte InputBuf_32; + public byte InputBuf_33; + public byte InputBuf_34; + public byte InputBuf_35; + public byte InputBuf_36; + public byte InputBuf_37; + public byte InputBuf_38; + public byte InputBuf_39; + public byte InputBuf_40; + public byte InputBuf_41; + public byte InputBuf_42; + public byte InputBuf_43; + public byte InputBuf_44; + public byte InputBuf_45; + public byte InputBuf_46; + public byte InputBuf_47; + public byte InputBuf_48; + public byte InputBuf_49; + public byte InputBuf_50; + public byte InputBuf_51; + public byte InputBuf_52; + public byte InputBuf_53; + public byte InputBuf_54; + public byte InputBuf_55; + public byte InputBuf_56; + public byte InputBuf_57; + public byte InputBuf_58; + public byte InputBuf_59; + public byte InputBuf_60; + public byte InputBuf_61; + public byte InputBuf_62; + public byte InputBuf_63; + public byte InputBuf_64; + public byte InputBuf_65; + public byte InputBuf_66; + public byte InputBuf_67; + public byte InputBuf_68; + public byte InputBuf_69; + public byte InputBuf_70; + public byte InputBuf_71; + public byte InputBuf_72; + public byte InputBuf_73; + public byte InputBuf_74; + public byte InputBuf_75; + public byte InputBuf_76; + public byte InputBuf_77; + public byte InputBuf_78; + public byte InputBuf_79; + public byte InputBuf_80; + public byte InputBuf_81; + public byte InputBuf_82; + public byte InputBuf_83; + public byte InputBuf_84; + public byte InputBuf_85; + public byte InputBuf_86; + public byte InputBuf_87; + public byte InputBuf_88; + public byte InputBuf_89; + public byte InputBuf_90; + public byte InputBuf_91; + public byte InputBuf_92; + public byte InputBuf_93; + public byte InputBuf_94; + public byte InputBuf_95; + public byte InputBuf_96; + public byte InputBuf_97; + public byte InputBuf_98; + public byte InputBuf_99; + public byte InputBuf_100; + public byte InputBuf_101; + public byte InputBuf_102; + public byte InputBuf_103; + public byte InputBuf_104; + public byte InputBuf_105; + public byte InputBuf_106; + public byte InputBuf_107; + public byte InputBuf_108; + public byte InputBuf_109; + public byte InputBuf_110; + public byte InputBuf_111; + public byte InputBuf_112; + public byte InputBuf_113; + public byte InputBuf_114; + public byte InputBuf_115; + public byte InputBuf_116; + public byte InputBuf_117; + public byte InputBuf_118; + public byte InputBuf_119; + public byte InputBuf_120; + public byte InputBuf_121; + public byte InputBuf_122; + public byte InputBuf_123; + public byte InputBuf_124; + public byte InputBuf_125; + public byte InputBuf_126; + public byte InputBuf_127; + public byte InputBuf_128; + public byte InputBuf_129; + public byte InputBuf_130; + public byte InputBuf_131; + public byte InputBuf_132; + public byte InputBuf_133; + public byte InputBuf_134; + public byte InputBuf_135; + public byte InputBuf_136; + public byte InputBuf_137; + public byte InputBuf_138; + public byte InputBuf_139; + public byte InputBuf_140; + public byte InputBuf_141; + public byte InputBuf_142; + public byte InputBuf_143; + public byte InputBuf_144; + public byte InputBuf_145; + public byte InputBuf_146; + public byte InputBuf_147; + public byte InputBuf_148; + public byte InputBuf_149; + public byte InputBuf_150; + public byte InputBuf_151; + public byte InputBuf_152; + public byte InputBuf_153; + public byte InputBuf_154; + public byte InputBuf_155; + public byte InputBuf_156; + public byte InputBuf_157; + public byte InputBuf_158; + public byte InputBuf_159; + public byte InputBuf_160; + public byte InputBuf_161; + public byte InputBuf_162; + public byte InputBuf_163; + public byte InputBuf_164; + public byte InputBuf_165; + public byte InputBuf_166; + public byte InputBuf_167; + public byte InputBuf_168; + public byte InputBuf_169; + public byte InputBuf_170; + public byte InputBuf_171; + public byte InputBuf_172; + public byte InputBuf_173; + public byte InputBuf_174; + public byte InputBuf_175; + public byte InputBuf_176; + public byte InputBuf_177; + public byte InputBuf_178; + public byte InputBuf_179; + public byte InputBuf_180; + public byte InputBuf_181; + public byte InputBuf_182; + public byte InputBuf_183; + public byte InputBuf_184; + public byte InputBuf_185; + public byte InputBuf_186; + public byte InputBuf_187; + public byte InputBuf_188; + public byte InputBuf_189; + public byte InputBuf_190; + public byte InputBuf_191; + public byte InputBuf_192; + public byte InputBuf_193; + public byte InputBuf_194; + public byte InputBuf_195; + public byte InputBuf_196; + public byte InputBuf_197; + public byte InputBuf_198; + public byte InputBuf_199; + public byte InputBuf_200; + public byte InputBuf_201; + public byte InputBuf_202; + public byte InputBuf_203; + public byte InputBuf_204; + public byte InputBuf_205; + public byte InputBuf_206; + public byte InputBuf_207; + public byte InputBuf_208; + public byte InputBuf_209; + public byte InputBuf_210; + public byte InputBuf_211; + public byte InputBuf_212; + public byte InputBuf_213; + public byte InputBuf_214; + public byte InputBuf_215; + public byte InputBuf_216; + public byte InputBuf_217; + public byte InputBuf_218; + public byte InputBuf_219; + public byte InputBuf_220; + public byte InputBuf_221; + public byte InputBuf_222; + public byte InputBuf_223; + public byte InputBuf_224; + public byte InputBuf_225; + public byte InputBuf_226; + public byte InputBuf_227; + public byte InputBuf_228; + public byte InputBuf_229; + public byte InputBuf_230; + public byte InputBuf_231; + public byte InputBuf_232; + public byte InputBuf_233; + public byte InputBuf_234; + public byte InputBuf_235; + public byte InputBuf_236; + public byte InputBuf_237; + public byte InputBuf_238; + public byte InputBuf_239; + public byte InputBuf_240; + public byte InputBuf_241; + public byte InputBuf_242; + public byte InputBuf_243; + public byte InputBuf_244; + public byte InputBuf_245; + public byte InputBuf_246; + public byte InputBuf_247; + public byte InputBuf_248; + public byte InputBuf_249; + public byte InputBuf_250; + public byte InputBuf_251; + public byte InputBuf_252; + public byte InputBuf_253; + public byte InputBuf_254; + public byte InputBuf_255; + + /// + /// To be documented. + /// + public ImVector Filters; + + /// + /// To be documented. + /// + public int CountGrep; + + + /// + /// To be documented. + /// + public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVector filters = default, int countGrep = default) + { + if (inputBuf != default(byte*)) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + + /// + /// To be documented. + /// + public unsafe ImGuiTextFilter(Span inputBuf = default, ImVector filters = default, int countGrep = default) + { + if (inputBuf != default(Span)) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + + + /// + /// To be documented. + /// + public unsafe void Build() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.BuildNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(byte* label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.DrawNative(@this, label, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(byte* label) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.DrawNative(@this, label, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw() + { + fixed (ImGuiTextFilter* @this = &this) + { + bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", width); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ref byte label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, width); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ref byte label) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ReadOnlySpan label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, width); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ReadOnlySpan label) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(string label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ImGui.DrawNative(@this, pStr0, width); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(string label) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ImGui.DrawNative(@this, pStr0, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsActive() + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.IsActiveNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.PassFilterNative(@this, text, textEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.PassFilterNative(@this, text, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, textEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, textEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(string text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(string text) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(@this, text, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, ReadOnlySpan textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(@this, text, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(string text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, ReadOnlySpan textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + 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 = ImGui.PassFilterNative(@this, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + 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 = ImGui.PassFilterNative(@this, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(string text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(string text, ReadOnlySpan textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImGui.PassFilterNative(@this, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTextFilterPtr : IEquatable + { + public ImGuiTextFilterPtr(ImGuiTextFilter* handle) { Handle = handle; } + + public ImGuiTextFilter* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTextFilterPtr Null => new ImGuiTextFilterPtr(null); + + public ImGuiTextFilter this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTextFilterPtr(ImGuiTextFilter* handle) => new ImGuiTextFilterPtr(handle); + + public static implicit operator ImGuiTextFilter*(ImGuiTextFilterPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle == right; + + public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle != right; + + public bool Equals(ImGuiTextFilterPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTextFilterPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTextFilterPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public unsafe Span InputBuf + + { + get + { + return new Span(&Handle->InputBuf_0, 256); + } + } + /// + /// To be documented. + /// + public ref ImVector Filters => ref Unsafe.AsRef>(&Handle->Filters); + /// + /// To be documented. + /// + public ref int CountGrep => ref Unsafe.AsRef(&Handle->CountGrep); + /// + /// To be documented. + /// + public unsafe void Build() + { + ImGui.BuildNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Clear() + { + ImGui.ClearNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool Draw(byte* label, float width) + { + byte ret = ImGui.DrawNative(Handle, label, width); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool Draw(byte* label) + { + byte ret = ImGui.DrawNative(Handle, label, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool Draw() + { + bool ret = ImGui.Draw(Handle, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool Draw(float width) + { + bool ret = ImGui.Draw(Handle, (string)"Filter(inc,-exc)", width); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ref byte label, float width) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(Handle, (byte*)plabel, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(Handle, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ReadOnlySpan label, float width) + { + fixed (byte* plabel = label) + { + byte ret = ImGui.DrawNative(Handle, (byte*)plabel, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = ImGui.DrawNative(Handle, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Draw(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 = ImGui.DrawNative(Handle, pStr0, width); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool Draw(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 = ImGui.DrawNative(Handle, pStr0, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsActive() + { + byte ret = ImGui.IsActiveNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, byte* textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, text, textEnd); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text) + { + byte ret = ImGui.PassFilterNative(Handle, text, (byte*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, textEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, textEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, text, (byte*)ptextEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, text, (byte*)ptextEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool PassFilter(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 = ImGui.PassFilterNative(Handle, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs new file mode 100644 index 000000000..6724cbc1b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs @@ -0,0 +1,183 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextRange + { + /// + /// To be documented. + /// + public unsafe byte* B; + + /// + /// To be documented. + /// + public unsafe byte* E; + + + /// + /// To be documented. + /// + public unsafe ImGuiTextRange(byte* b = default, byte* e = default) + { + B = b; + E = e; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiTextRange* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool empty() + { + fixed (ImGuiTextRange* @this = &this) + { + byte ret = ImGui.emptyNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void split(byte separator, ImVector* output) + { + fixed (ImGuiTextRange* @this = &this) + { + ImGui.splitNative(@this, separator, output); + } + } + + /// + /// To be documented. + /// + public unsafe void split(byte separator, ref ImVector output) + { + fixed (ImGuiTextRange* @this = &this) + { + fixed (ImVector* poutput = &output) + { + ImGui.splitNative(@this, separator, (ImVector*)poutput); + } + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiTextRangePtr : IEquatable + { + public ImGuiTextRangePtr(ImGuiTextRange* handle) { Handle = handle; } + + public ImGuiTextRange* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiTextRangePtr Null => new ImGuiTextRangePtr(null); + + public ImGuiTextRange this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiTextRangePtr(ImGuiTextRange* handle) => new ImGuiTextRangePtr(handle); + + public static implicit operator ImGuiTextRange*(ImGuiTextRangePtr handle) => handle.Handle; + + public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle == right; + + public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle != right; + + public bool Equals(ImGuiTextRangePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiTextRangePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiTextRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public byte* B { get => Handle->B; set => Handle->B = value; } + /// + /// To be documented. + /// + public byte* E { get => Handle->E; set => Handle->E = value; } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool empty() + { + byte ret = ImGui.emptyNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void split(byte separator, ImVector* output) + { + ImGui.splitNative(Handle, separator, output); + } + + /// + /// To be documented. + /// + public unsafe void split(byte separator, ref ImVector output) + { + fixed (ImVector* poutput = &output) + { + ImGui.splitNative(Handle, separator, (ImVector*)poutput); + } + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs new file mode 100644 index 000000000..bdc46a98c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs @@ -0,0 +1,301 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewport + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiViewportFlags Flags; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 WorkPos; + + /// + /// To be documented. + /// + public Vector2 WorkSize; + + /// + /// To be documented. + /// + public float DpiScale; + + /// + /// To be documented. + /// + public uint ParentViewportId; + + /// + /// To be documented. + /// + public unsafe ImDrawData* DrawData; + + /// + /// To be documented. + /// + public unsafe void* RendererUserData; + + /// + /// To be documented. + /// + public unsafe void* PlatformUserData; + + /// + /// To be documented. + /// + public unsafe void* PlatformHandle; + + /// + /// To be documented. + /// + public unsafe void* PlatformHandleRaw; + + /// + /// To be documented. + /// + public byte PlatformRequestMove; + + /// + /// To be documented. + /// + public byte PlatformRequestResize; + + /// + /// To be documented. + /// + public byte PlatformRequestClose; + + + /// + /// To be documented. + /// + public unsafe ImGuiViewport(uint id = default, ImGuiViewportFlags flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawDataPtr drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) + { + ID = id; + Flags = flags; + Pos = pos; + Size = size; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + ParentViewportId = parentViewportId; + DrawData = drawData; + RendererUserData = rendererUserData; + PlatformUserData = platformUserData; + PlatformHandle = platformHandle; + PlatformHandleRaw = platformHandleRaw; + PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; + PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; + PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiViewport* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiViewportPtr : IEquatable + { + public ImGuiViewportPtr(ImGuiViewport* handle) { Handle = handle; } + + public ImGuiViewport* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiViewportPtr Null => new ImGuiViewportPtr(null); + + public ImGuiViewport this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiViewportPtr(ImGuiViewport* handle) => new ImGuiViewportPtr(handle); + + public static implicit operator ImGuiViewport*(ImGuiViewportPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle == right; + + public static bool operator !=(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle != right; + + public bool Equals(ImGuiViewportPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiViewportPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiViewportPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public ref Vector2 WorkPos => ref Unsafe.AsRef(&Handle->WorkPos); + /// + /// To be documented. + /// + public ref Vector2 WorkSize => ref Unsafe.AsRef(&Handle->WorkSize); + /// + /// To be documented. + /// + public ref float DpiScale => ref Unsafe.AsRef(&Handle->DpiScale); + /// + /// To be documented. + /// + public ref uint ParentViewportId => ref Unsafe.AsRef(&Handle->ParentViewportId); + /// + /// To be documented. + /// + public ref ImDrawDataPtr DrawData => ref Unsafe.AsRef(&Handle->DrawData); + /// + /// To be documented. + /// + public void* RendererUserData { get => Handle->RendererUserData; set => Handle->RendererUserData = value; } + /// + /// To be documented. + /// + public void* PlatformUserData { get => Handle->PlatformUserData; set => Handle->PlatformUserData = value; } + /// + /// To be documented. + /// + public void* PlatformHandle { get => Handle->PlatformHandle; set => Handle->PlatformHandle = value; } + /// + /// To be documented. + /// + public void* PlatformHandleRaw { get => Handle->PlatformHandleRaw; set => Handle->PlatformHandleRaw = value; } + /// + /// To be documented. + /// + public ref bool PlatformRequestMove => ref Unsafe.AsRef(&Handle->PlatformRequestMove); + /// + /// To be documented. + /// + public ref bool PlatformRequestResize => ref Unsafe.AsRef(&Handle->PlatformRequestResize); + /// + /// To be documented. + /// + public ref bool PlatformRequestClose => ref Unsafe.AsRef(&Handle->PlatformRequestClose); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiViewportPtrPtr : IEquatable + { + public ImGuiViewportPtrPtr(ImGuiViewport** handle) { Handle = handle; } + + public ImGuiViewport** Handle; + + public bool IsNull => Handle == null; + + public static ImGuiViewportPtrPtr Null => new ImGuiViewportPtrPtr(null); + + public ImGuiViewport* this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiViewportPtrPtr(ImGuiViewport** handle) => new ImGuiViewportPtrPtr(handle); + + public static implicit operator ImGuiViewport**(ImGuiViewportPtrPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle == right; + + public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle != right; + + public bool Equals(ImGuiViewportPtrPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiViewportPtrPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiViewportPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs new file mode 100644 index 000000000..1db47d6a6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs @@ -0,0 +1,409 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewportP + { + /// + /// To be documented. + /// + public ImGuiViewport ImGuiViewport; + + /// + /// To be documented. + /// + public int Idx; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFrontMostStampCount; + + /// + /// To be documented. + /// + public uint LastNameHash; + + /// + /// To be documented. + /// + public Vector2 LastPos; + + /// + /// To be documented. + /// + public float Alpha; + + /// + /// To be documented. + /// + public float LastAlpha; + + /// + /// To be documented. + /// + public short PlatformMonitor; + + /// + /// To be documented. + /// + public byte PlatformWindowCreated; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public int DrawListsLastFrame_0; + public int DrawListsLastFrame_1; + + /// + /// To be documented. + /// + public unsafe ImDrawList* DrawLists_0; + public unsafe ImDrawList* DrawLists_1; + + /// + /// To be documented. + /// + public ImDrawData DrawDataP; + + /// + /// To be documented. + /// + public ImDrawDataBuilder DrawDataBuilder; + + /// + /// To be documented. + /// + public Vector2 LastPlatformPos; + + /// + /// To be documented. + /// + public Vector2 LastPlatformSize; + + /// + /// To be documented. + /// + public Vector2 LastRendererSize; + + /// + /// To be documented. + /// + public Vector2 WorkOffsetMin; + + /// + /// To be documented. + /// + public Vector2 WorkOffsetMax; + + /// + /// To be documented. + /// + public Vector2 BuildWorkOffsetMin; + + /// + /// To be documented. + /// + public Vector2 BuildWorkOffsetMax; + + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, int* drawListsLastFrame = default, ImDrawListPtrPtr drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = imGuiViewport; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFrontMostStampCount = lastFrontMostStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + PlatformMonitor = platformMonitor; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + Window = window; + if (drawListsLastFrame != default(int*)) + { + DrawListsLastFrame_0 = drawListsLastFrame[0]; + DrawListsLastFrame_1 = drawListsLastFrame[1]; + } + if (drawLists != default(ImDrawListPtrPtr)) + { + DrawLists_0 = drawLists[0]; + DrawLists_1 = drawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, Span drawListsLastFrame = default, Span> drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = imGuiViewport; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFrontMostStampCount = lastFrontMostStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + PlatformMonitor = platformMonitor; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + Window = window; + if (drawListsLastFrame != default(Span)) + { + DrawListsLastFrame_0 = drawListsLastFrame[0]; + DrawListsLastFrame_1 = drawListsLastFrame[1]; + } + if (drawLists != default(Span>)) + { + DrawLists_0 = drawLists[0]; + DrawLists_1 = drawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + + + /// + /// To be documented. + /// + public unsafe Span> DrawLists + + { + get + { + fixed (ImDrawList** p = &this.DrawLists_0) + { + return new Span>(p, 2); + } + } + } + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiViewportPPtr : IEquatable + { + public ImGuiViewportPPtr(ImGuiViewportP* handle) { Handle = handle; } + + public ImGuiViewportP* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiViewportPPtr Null => new ImGuiViewportPPtr(null); + + public ImGuiViewportP this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiViewportPPtr(ImGuiViewportP* handle) => new ImGuiViewportPPtr(handle); + + public static implicit operator ImGuiViewportP*(ImGuiViewportPPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle == right; + + public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle != right; + + public bool Equals(ImGuiViewportPPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiViewportPPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiViewportPPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiViewport ImGuiViewport => ref Unsafe.AsRef(&Handle->ImGuiViewport); + /// + /// To be documented. + /// + public ref int Idx => ref Unsafe.AsRef(&Handle->Idx); + /// + /// To be documented. + /// + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + /// + /// To be documented. + /// + public ref int LastFrontMostStampCount => ref Unsafe.AsRef(&Handle->LastFrontMostStampCount); + /// + /// To be documented. + /// + public ref uint LastNameHash => ref Unsafe.AsRef(&Handle->LastNameHash); + /// + /// To be documented. + /// + public ref Vector2 LastPos => ref Unsafe.AsRef(&Handle->LastPos); + /// + /// To be documented. + /// + public ref float Alpha => ref Unsafe.AsRef(&Handle->Alpha); + /// + /// To be documented. + /// + public ref float LastAlpha => ref Unsafe.AsRef(&Handle->LastAlpha); + /// + /// To be documented. + /// + public ref short PlatformMonitor => ref Unsafe.AsRef(&Handle->PlatformMonitor); + /// + /// To be documented. + /// + public ref bool PlatformWindowCreated => ref Unsafe.AsRef(&Handle->PlatformWindowCreated); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + /// + /// To be documented. + /// + public unsafe Span DrawListsLastFrame + + { + get + { + return new Span(&Handle->DrawListsLastFrame_0, 2); + } + } + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public ref ImDrawData DrawDataP => ref Unsafe.AsRef(&Handle->DrawDataP); + /// + /// To be documented. + /// + public ref ImDrawDataBuilder DrawDataBuilder => ref Unsafe.AsRef(&Handle->DrawDataBuilder); + /// + /// To be documented. + /// + public ref Vector2 LastPlatformPos => ref Unsafe.AsRef(&Handle->LastPlatformPos); + /// + /// To be documented. + /// + public ref Vector2 LastPlatformSize => ref Unsafe.AsRef(&Handle->LastPlatformSize); + /// + /// To be documented. + /// + public ref Vector2 LastRendererSize => ref Unsafe.AsRef(&Handle->LastRendererSize); + /// + /// To be documented. + /// + public ref Vector2 WorkOffsetMin => ref Unsafe.AsRef(&Handle->WorkOffsetMin); + /// + /// To be documented. + /// + public ref Vector2 WorkOffsetMax => ref Unsafe.AsRef(&Handle->WorkOffsetMax); + /// + /// To be documented. + /// + public ref Vector2 BuildWorkOffsetMin => ref Unsafe.AsRef(&Handle->BuildWorkOffsetMin); + /// + /// To be documented. + /// + public ref Vector2 BuildWorkOffsetMax => ref Unsafe.AsRef(&Handle->BuildWorkOffsetMax); + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiViewportPPtrPtr : IEquatable + { + public ImGuiViewportPPtrPtr(ImGuiViewportP** handle) { Handle = handle; } + + public ImGuiViewportP** Handle; + + public bool IsNull => Handle == null; + + public static ImGuiViewportPPtrPtr Null => new ImGuiViewportPPtrPtr(null); + + public ImGuiViewportP* this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiViewportPPtrPtr(ImGuiViewportP** handle) => new ImGuiViewportPPtrPtr(handle); + + public static implicit operator ImGuiViewportP**(ImGuiViewportPPtrPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle == right; + + public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle != right; + + public bool Equals(ImGuiViewportPPtrPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiViewportPPtrPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiViewportPPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs new file mode 100644 index 000000000..59f1af13c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs @@ -0,0 +1,1363 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindow + { + /// + /// To be documented. + /// + public unsafe byte* Name; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImGuiWindowFlags Flags; + + /// + /// To be documented. + /// + public ImGuiWindowFlags FlagsPreviousFrame; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* Viewport; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public Vector2 ViewportPos; + + /// + /// To be documented. + /// + public int ViewportAllowPlatformMonitorExtend; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 SizeFull; + + /// + /// To be documented. + /// + public Vector2 ContentSize; + + /// + /// To be documented. + /// + public Vector2 ContentSizeIdeal; + + /// + /// To be documented. + /// + public Vector2 ContentSizeExplicit; + + /// + /// To be documented. + /// + public Vector2 WindowPadding; + + /// + /// To be documented. + /// + public float WindowRounding; + + /// + /// To be documented. + /// + public float WindowBorderSize; + + /// + /// To be documented. + /// + public int NameBufLen; + + /// + /// To be documented. + /// + public uint MoveId; + + /// + /// To be documented. + /// + public uint TabId; + + /// + /// To be documented. + /// + public uint ChildId; + + /// + /// To be documented. + /// + public Vector2 Scroll; + + /// + /// To be documented. + /// + public Vector2 ScrollMax; + + /// + /// To be documented. + /// + public Vector2 ScrollTarget; + + /// + /// To be documented. + /// + public Vector2 ScrollTargetCenterRatio; + + /// + /// To be documented. + /// + public Vector2 ScrollTargetEdgeSnapDist; + + /// + /// To be documented. + /// + public Vector2 ScrollbarSizes; + + /// + /// To be documented. + /// + public byte ScrollbarX; + + /// + /// To be documented. + /// + public byte ScrollbarY; + + /// + /// To be documented. + /// + public byte ViewportOwned; + + /// + /// To be documented. + /// + public byte Active; + + /// + /// To be documented. + /// + public byte WasActive; + + /// + /// To be documented. + /// + public byte WriteAccessed; + + /// + /// To be documented. + /// + public byte Collapsed; + + /// + /// To be documented. + /// + public byte WantCollapseToggle; + + /// + /// To be documented. + /// + public byte SkipItems; + + /// + /// To be documented. + /// + public byte Appearing; + + /// + /// To be documented. + /// + public byte Hidden; + + /// + /// To be documented. + /// + public byte IsFallbackWindow; + + /// + /// To be documented. + /// + public byte IsExplicitChild; + + /// + /// To be documented. + /// + public byte HasCloseButton; + + /// + /// To be documented. + /// + public byte ResizeBorderHeld; + + /// + /// To be documented. + /// + public short BeginCount; + + /// + /// To be documented. + /// + public short BeginOrderWithinParent; + + /// + /// To be documented. + /// + public short BeginOrderWithinContext; + + /// + /// To be documented. + /// + public short FocusOrder; + + /// + /// To be documented. + /// + public uint PopupId; + + /// + /// To be documented. + /// + public sbyte AutoFitFramesX; + + /// + /// To be documented. + /// + public sbyte AutoFitFramesY; + + /// + /// To be documented. + /// + public sbyte AutoFitChildAxises; + + /// + /// To be documented. + /// + public byte AutoFitOnlyGrows; + + /// + /// To be documented. + /// + public ImGuiDir AutoPosLastDirection; + + /// + /// To be documented. + /// + public sbyte HiddenFramesCanSkipItems; + + /// + /// To be documented. + /// + public sbyte HiddenFramesCannotSkipItems; + + /// + /// To be documented. + /// + public sbyte HiddenFramesForRenderOnly; + + /// + /// To be documented. + /// + public sbyte DisableInputsFrames; + + public ImGuiCond RawBits0; + /// + /// To be documented. + /// + public Vector2 SetWindowPosVal; + + /// + /// To be documented. + /// + public Vector2 SetWindowPosPivot; + + /// + /// To be documented. + /// + public ImVector IDStack; + + /// + /// To be documented. + /// + public ImGuiWindowTempData DC; + + /// + /// To be documented. + /// + public ImRect OuterRectClipped; + + /// + /// To be documented. + /// + public ImRect InnerRect; + + /// + /// To be documented. + /// + public ImRect InnerClipRect; + + /// + /// To be documented. + /// + public ImRect WorkRect; + + /// + /// To be documented. + /// + public ImRect ParentWorkRect; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + /// + /// To be documented. + /// + public ImRect ContentRegionRect; + + /// + /// To be documented. + /// + public ImVec2Ih HitTestHoleSize; + + /// + /// To be documented. + /// + public ImVec2Ih HitTestHoleOffset; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFrameJustFocused; + + /// + /// To be documented. + /// + public float LastTimeActive; + + /// + /// To be documented. + /// + public float ItemWidthDefault; + + /// + /// To be documented. + /// + public ImGuiStorage StateStorage; + + /// + /// To be documented. + /// + public ImVector ColumnsStorage; + + /// + /// To be documented. + /// + public float FontWindowScale; + + /// + /// To be documented. + /// + public float FontDpiScale; + + /// + /// To be documented. + /// + public int SettingsOffset; + + /// + /// To be documented. + /// + public unsafe ImDrawList* DrawList; + + /// + /// To be documented. + /// + public ImDrawList DrawListInst; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ParentWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ParentWindowInBeginStack; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowPopupTree; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowDockTree; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowForNav; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavLastChildNavWindow; + + /// + /// To be documented. + /// + public uint NavLastIds_0; + public uint NavLastIds_1; + + /// + /// To be documented. + /// + public ImRect NavRectRel_0; + public ImRect NavRectRel_1; + + /// + /// To be documented. + /// + public int MemoryDrawListIdxCapacity; + + /// + /// To be documented. + /// + public int MemoryDrawListVtxCapacity; + + /// + /// To be documented. + /// + public byte MemoryCompacted; + + public bool RawBits1; + /// + /// To be documented. + /// + public short DockOrder; + + /// + /// To be documented. + /// + public ImGuiWindowDockStyle DockStyle; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* DockNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* DockNodeAsHost; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public ImGuiItemStatusFlags DockTabItemStatusFlags; + + /// + /// To be documented. + /// + public ImRect DockTabItemRect; + + /// + /// To be documented. + /// + public byte InheritNoInputs; + + + /// + /// 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, 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; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitChildAxises = autoFitChildAxises; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default(uint*)) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default(ImRect*)) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; + } + + /// + /// 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, 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; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitChildAxises = autoFitChildAxises; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default(Span)) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default(Span)) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; + } + + + 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. + /// + public unsafe Span NavRectRel + + { + get + { + fixed (ImRect* p = &this.NavRectRel_0) + { + return new Span(p, 2); + } + } + } + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiWindowPtr : IEquatable + { + public ImGuiWindowPtr(ImGuiWindow* handle) { Handle = handle; } + + public ImGuiWindow* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiWindowPtr Null => new ImGuiWindowPtr(null); + + public ImGuiWindow this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiWindowPtr(ImGuiWindow* handle) => new ImGuiWindowPtr(handle); + + public static implicit operator ImGuiWindow*(ImGuiWindowPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle == right; + + public static bool operator !=(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle != right; + + public bool Equals(ImGuiWindowPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiWindowPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiWindowPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public byte* Name { get => Handle->Name; set => Handle->Name = value; } + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImGuiWindowFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImGuiWindowFlags FlagsPreviousFrame => ref Unsafe.AsRef(&Handle->FlagsPreviousFrame); + /// + /// To be documented. + /// + public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass); + /// + /// To be documented. + /// + public ref ImGuiViewportPPtr Viewport => ref Unsafe.AsRef(&Handle->Viewport); + /// + /// To be documented. + /// + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + /// + /// To be documented. + /// + public ref Vector2 ViewportPos => ref Unsafe.AsRef(&Handle->ViewportPos); + /// + /// To be documented. + /// + public ref int ViewportAllowPlatformMonitorExtend => ref Unsafe.AsRef(&Handle->ViewportAllowPlatformMonitorExtend); + /// + /// To be documented. + /// + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public ref Vector2 SizeFull => ref Unsafe.AsRef(&Handle->SizeFull); + /// + /// To be documented. + /// + public ref Vector2 ContentSize => ref Unsafe.AsRef(&Handle->ContentSize); + /// + /// To be documented. + /// + public ref Vector2 ContentSizeIdeal => ref Unsafe.AsRef(&Handle->ContentSizeIdeal); + /// + /// To be documented. + /// + public ref Vector2 ContentSizeExplicit => ref Unsafe.AsRef(&Handle->ContentSizeExplicit); + /// + /// To be documented. + /// + public ref Vector2 WindowPadding => ref Unsafe.AsRef(&Handle->WindowPadding); + /// + /// To be documented. + /// + public ref float WindowRounding => ref Unsafe.AsRef(&Handle->WindowRounding); + /// + /// To be documented. + /// + public ref float WindowBorderSize => ref Unsafe.AsRef(&Handle->WindowBorderSize); + /// + /// To be documented. + /// + public ref int NameBufLen => ref Unsafe.AsRef(&Handle->NameBufLen); + /// + /// To be documented. + /// + public ref uint MoveId => ref Unsafe.AsRef(&Handle->MoveId); + /// + /// To be documented. + /// + public ref uint TabId => ref Unsafe.AsRef(&Handle->TabId); + /// + /// To be documented. + /// + public ref uint ChildId => ref Unsafe.AsRef(&Handle->ChildId); + /// + /// To be documented. + /// + public ref Vector2 Scroll => ref Unsafe.AsRef(&Handle->Scroll); + /// + /// To be documented. + /// + public ref Vector2 ScrollMax => ref Unsafe.AsRef(&Handle->ScrollMax); + /// + /// To be documented. + /// + public ref Vector2 ScrollTarget => ref Unsafe.AsRef(&Handle->ScrollTarget); + /// + /// To be documented. + /// + public ref Vector2 ScrollTargetCenterRatio => ref Unsafe.AsRef(&Handle->ScrollTargetCenterRatio); + /// + /// To be documented. + /// + public ref Vector2 ScrollTargetEdgeSnapDist => ref Unsafe.AsRef(&Handle->ScrollTargetEdgeSnapDist); + /// + /// To be documented. + /// + public ref Vector2 ScrollbarSizes => ref Unsafe.AsRef(&Handle->ScrollbarSizes); + /// + /// To be documented. + /// + public ref bool ScrollbarX => ref Unsafe.AsRef(&Handle->ScrollbarX); + /// + /// To be documented. + /// + public ref bool ScrollbarY => ref Unsafe.AsRef(&Handle->ScrollbarY); + /// + /// To be documented. + /// + public ref bool ViewportOwned => ref Unsafe.AsRef(&Handle->ViewportOwned); + /// + /// To be documented. + /// + public ref bool Active => ref Unsafe.AsRef(&Handle->Active); + /// + /// To be documented. + /// + public ref bool WasActive => ref Unsafe.AsRef(&Handle->WasActive); + /// + /// To be documented. + /// + public ref bool WriteAccessed => ref Unsafe.AsRef(&Handle->WriteAccessed); + /// + /// To be documented. + /// + public ref bool Collapsed => ref Unsafe.AsRef(&Handle->Collapsed); + /// + /// To be documented. + /// + public ref bool WantCollapseToggle => ref Unsafe.AsRef(&Handle->WantCollapseToggle); + /// + /// To be documented. + /// + public ref bool SkipItems => ref Unsafe.AsRef(&Handle->SkipItems); + /// + /// To be documented. + /// + public ref bool Appearing => ref Unsafe.AsRef(&Handle->Appearing); + /// + /// To be documented. + /// + public ref bool Hidden => ref Unsafe.AsRef(&Handle->Hidden); + /// + /// To be documented. + /// + public ref bool IsFallbackWindow => ref Unsafe.AsRef(&Handle->IsFallbackWindow); + /// + /// To be documented. + /// + public ref bool IsExplicitChild => ref Unsafe.AsRef(&Handle->IsExplicitChild); + /// + /// To be documented. + /// + public ref bool HasCloseButton => ref Unsafe.AsRef(&Handle->HasCloseButton); + /// + /// To be documented. + /// + public ref byte ResizeBorderHeld => ref Unsafe.AsRef(&Handle->ResizeBorderHeld); + /// + /// To be documented. + /// + public ref short BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); + /// + /// To be documented. + /// + public ref short BeginOrderWithinParent => ref Unsafe.AsRef(&Handle->BeginOrderWithinParent); + /// + /// To be documented. + /// + public ref short BeginOrderWithinContext => ref Unsafe.AsRef(&Handle->BeginOrderWithinContext); + /// + /// To be documented. + /// + public ref short FocusOrder => ref Unsafe.AsRef(&Handle->FocusOrder); + /// + /// To be documented. + /// + public ref uint PopupId => ref Unsafe.AsRef(&Handle->PopupId); + /// + /// To be documented. + /// + public ref sbyte AutoFitFramesX => ref Unsafe.AsRef(&Handle->AutoFitFramesX); + /// + /// To be documented. + /// + public ref sbyte AutoFitFramesY => ref Unsafe.AsRef(&Handle->AutoFitFramesY); + /// + /// To be documented. + /// + public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef(&Handle->AutoFitChildAxises); + /// + /// To be documented. + /// + public ref bool AutoFitOnlyGrows => ref Unsafe.AsRef(&Handle->AutoFitOnlyGrows); + /// + /// To be documented. + /// + public ref ImGuiDir AutoPosLastDirection => ref Unsafe.AsRef(&Handle->AutoPosLastDirection); + /// + /// To be documented. + /// + public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCanSkipItems); + /// + /// To be documented. + /// + public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCannotSkipItems); + /// + /// To be documented. + /// + public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef(&Handle->HiddenFramesForRenderOnly); + /// + /// To be documented. + /// + public ref sbyte DisableInputsFrames => ref Unsafe.AsRef(&Handle->DisableInputsFrames); + /// + /// To be documented. + /// + public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; } + /// + /// To be documented. + /// + public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; } + /// + /// To be documented. + /// + public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; } + /// + /// To be documented. + /// + public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; } + /// + /// To be documented. + /// + public ref Vector2 SetWindowPosVal => ref Unsafe.AsRef(&Handle->SetWindowPosVal); + /// + /// To be documented. + /// + public ref Vector2 SetWindowPosPivot => ref Unsafe.AsRef(&Handle->SetWindowPosPivot); + /// + /// To be documented. + /// + public ref ImVector IDStack => ref Unsafe.AsRef>(&Handle->IDStack); + /// + /// To be documented. + /// + public ref ImGuiWindowTempData DC => ref Unsafe.AsRef(&Handle->DC); + /// + /// To be documented. + /// + public ref ImRect OuterRectClipped => ref Unsafe.AsRef(&Handle->OuterRectClipped); + /// + /// To be documented. + /// + public ref ImRect InnerRect => ref Unsafe.AsRef(&Handle->InnerRect); + /// + /// To be documented. + /// + public ref ImRect InnerClipRect => ref Unsafe.AsRef(&Handle->InnerClipRect); + /// + /// To be documented. + /// + public ref ImRect WorkRect => ref Unsafe.AsRef(&Handle->WorkRect); + /// + /// To be documented. + /// + public ref ImRect ParentWorkRect => ref Unsafe.AsRef(&Handle->ParentWorkRect); + /// + /// To be documented. + /// + public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect); + /// + /// To be documented. + /// + public ref ImRect ContentRegionRect => ref Unsafe.AsRef(&Handle->ContentRegionRect); + /// + /// To be documented. + /// + public ref ImVec2Ih HitTestHoleSize => ref Unsafe.AsRef(&Handle->HitTestHoleSize); + /// + /// To be documented. + /// + public ref ImVec2Ih HitTestHoleOffset => ref Unsafe.AsRef(&Handle->HitTestHoleOffset); + /// + /// To be documented. + /// + public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive); + /// + /// To be documented. + /// + public ref int LastFrameJustFocused => ref Unsafe.AsRef(&Handle->LastFrameJustFocused); + /// + /// To be documented. + /// + public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive); + /// + /// To be documented. + /// + public ref float ItemWidthDefault => ref Unsafe.AsRef(&Handle->ItemWidthDefault); + /// + /// To be documented. + /// + public ref ImGuiStorage StateStorage => ref Unsafe.AsRef(&Handle->StateStorage); + /// + /// To be documented. + /// + public ref ImVector ColumnsStorage => ref Unsafe.AsRef>(&Handle->ColumnsStorage); + /// + /// To be documented. + /// + public ref float FontWindowScale => ref Unsafe.AsRef(&Handle->FontWindowScale); + /// + /// To be documented. + /// + public ref float FontDpiScale => ref Unsafe.AsRef(&Handle->FontDpiScale); + /// + /// To be documented. + /// + public ref int SettingsOffset => ref Unsafe.AsRef(&Handle->SettingsOffset); + /// + /// To be documented. + /// + public ref ImDrawListPtr DrawList => ref Unsafe.AsRef(&Handle->DrawList); + /// + /// To be documented. + /// + public ref ImDrawList DrawListInst => ref Unsafe.AsRef(&Handle->DrawListInst); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr ParentWindow => ref Unsafe.AsRef(&Handle->ParentWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr ParentWindowInBeginStack => ref Unsafe.AsRef(&Handle->ParentWindowInBeginStack); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr RootWindow => ref Unsafe.AsRef(&Handle->RootWindow); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr RootWindowPopupTree => ref Unsafe.AsRef(&Handle->RootWindowPopupTree); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr RootWindowDockTree => ref Unsafe.AsRef(&Handle->RootWindowDockTree); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr RootWindowForTitleBarHighlight => ref Unsafe.AsRef(&Handle->RootWindowForTitleBarHighlight); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr RootWindowForNav => ref Unsafe.AsRef(&Handle->RootWindowForNav); + /// + /// To be documented. + /// + public ref ImGuiWindowPtr NavLastChildNavWindow => ref Unsafe.AsRef(&Handle->NavLastChildNavWindow); + /// + /// To be documented. + /// + public unsafe Span NavLastIds + + { + get + { + return new Span(&Handle->NavLastIds_0, 2); + } + } + /// + /// To be documented. + /// + public unsafe Span NavRectRel + + { + get + { + return new Span(&Handle->NavRectRel_0, 2); + } + } + /// + /// To be documented. + /// + public ref int MemoryDrawListIdxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListIdxCapacity); + /// + /// To be documented. + /// + public ref int MemoryDrawListVtxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListVtxCapacity); + /// + /// To be documented. + /// + public ref bool MemoryCompacted => ref Unsafe.AsRef(&Handle->MemoryCompacted); + /// + /// To be documented. + /// + public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; } + /// + /// To be documented. + /// + public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; } + /// + /// To be documented. + /// + public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; } + /// + /// To be documented. + /// + public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; } + /// + /// To be documented. + /// + public ref short DockOrder => ref Unsafe.AsRef(&Handle->DockOrder); + /// + /// To be documented. + /// + public ref ImGuiWindowDockStyle DockStyle => ref Unsafe.AsRef(&Handle->DockStyle); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr DockNode => ref Unsafe.AsRef(&Handle->DockNode); + /// + /// To be documented. + /// + public ref ImGuiDockNodePtr DockNodeAsHost => ref Unsafe.AsRef(&Handle->DockNodeAsHost); + /// + /// To be documented. + /// + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + /// + /// To be documented. + /// + public ref ImGuiItemStatusFlags DockTabItemStatusFlags => ref Unsafe.AsRef(&Handle->DockTabItemStatusFlags); + /// + /// To be documented. + /// + public ref ImRect DockTabItemRect => ref Unsafe.AsRef(&Handle->DockTabItemRect); + /// + /// To be documented. + /// + public ref bool InheritNoInputs => ref Unsafe.AsRef(&Handle->InheritNoInputs); + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiWindowPtrPtr : IEquatable + { + public ImGuiWindowPtrPtr(ImGuiWindow** handle) { Handle = handle; } + + public ImGuiWindow** Handle; + + public bool IsNull => Handle == null; + + public static ImGuiWindowPtrPtr Null => new ImGuiWindowPtrPtr(null); + + public ImGuiWindow* this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiWindowPtrPtr(ImGuiWindow** handle) => new ImGuiWindowPtrPtr(handle); + + public static implicit operator ImGuiWindow**(ImGuiWindowPtrPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle == right; + + public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle != right; + + public bool Equals(ImGuiWindowPtrPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiWindowPtrPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiWindowPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs new file mode 100644 index 000000000..8e2df005f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs @@ -0,0 +1,178 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowClass + { + /// + /// To be documented. + /// + public uint ClassId; + + /// + /// To be documented. + /// + public uint ParentViewportId; + + /// + /// To be documented. + /// + public ImGuiViewportFlags ViewportFlagsOverrideSet; + + /// + /// To be documented. + /// + public ImGuiViewportFlags ViewportFlagsOverrideClear; + + /// + /// To be documented. + /// + public ImGuiTabItemFlags TabItemFlagsOverrideSet; + + /// + /// To be documented. + /// + public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; + + /// + /// To be documented. + /// + public byte DockingAlwaysTabBar; + + /// + /// To be documented. + /// + public byte DockingAllowUnclassed; + + + /// + /// To be documented. + /// + public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, ImGuiViewportFlags viewportFlagsOverrideSet = default, ImGuiViewportFlags viewportFlagsOverrideClear = default, ImGuiTabItemFlags tabItemFlagsOverrideSet = default, ImGuiDockNodeFlags dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) + { + ClassId = classId; + ParentViewportId = parentViewportId; + ViewportFlagsOverrideSet = viewportFlagsOverrideSet; + ViewportFlagsOverrideClear = viewportFlagsOverrideClear; + TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; + DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; + DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; + DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiWindowClass* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiWindowClassPtr : IEquatable + { + public ImGuiWindowClassPtr(ImGuiWindowClass* handle) { Handle = handle; } + + public ImGuiWindowClass* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiWindowClassPtr Null => new ImGuiWindowClassPtr(null); + + public ImGuiWindowClass this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* handle) => new ImGuiWindowClassPtr(handle); + + public static implicit operator ImGuiWindowClass*(ImGuiWindowClassPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle == right; + + public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle != right; + + public bool Equals(ImGuiWindowClassPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiWindowClassPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiWindowClassPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ClassId => ref Unsafe.AsRef(&Handle->ClassId); + /// + /// To be documented. + /// + public ref uint ParentViewportId => ref Unsafe.AsRef(&Handle->ParentViewportId); + /// + /// To be documented. + /// + public ref ImGuiViewportFlags ViewportFlagsOverrideSet => ref Unsafe.AsRef(&Handle->ViewportFlagsOverrideSet); + /// + /// To be documented. + /// + public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef(&Handle->ViewportFlagsOverrideClear); + /// + /// To be documented. + /// + public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef(&Handle->TabItemFlagsOverrideSet); + /// + /// To be documented. + /// + public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef(&Handle->DockNodeFlagsOverrideSet); + /// + /// To be documented. + /// + public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef(&Handle->DockingAlwaysTabBar); + /// + /// To be documented. + /// + public ref bool DockingAllowUnclassed => ref Unsafe.AsRef(&Handle->DockingAllowUnclassed); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs new file mode 100644 index 000000000..8125cf9bd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs @@ -0,0 +1,71 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowDockStyle + { + /// + /// To be documented. + /// + public uint Colors_0; + public uint Colors_1; + public uint Colors_2; + public uint Colors_3; + public uint Colors_4; + public uint Colors_5; + + + /// + /// To be documented. + /// + public unsafe ImGuiWindowDockStyle(uint* colors = default) + { + if (colors != default(uint*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + + /// + /// To be documented. + /// + public unsafe ImGuiWindowDockStyle(Span colors = default) + { + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs new file mode 100644 index 000000000..6345c2151 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs @@ -0,0 +1,198 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowSettings + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImVec2Ih Pos; + + /// + /// To be documented. + /// + public ImVec2Ih Size; + + /// + /// To be documented. + /// + public ImVec2Ih ViewportPos; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public uint ClassId; + + /// + /// To be documented. + /// + public short DockOrder; + + /// + /// To be documented. + /// + public byte Collapsed; + + /// + /// To be documented. + /// + public byte WantApply; + + + /// + /// To be documented. + /// + public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default) + { + ID = id; + Pos = pos; + Size = size; + ViewportPos = viewportPos; + ViewportId = viewportId; + DockId = dockId; + ClassId = classId; + DockOrder = dockOrder; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantApply = wantApply ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiWindowSettings* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiWindowSettingsPtr : IEquatable + { + public ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) { Handle = handle; } + + public ImGuiWindowSettings* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiWindowSettingsPtr Null => new ImGuiWindowSettingsPtr(null); + + public ImGuiWindowSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) => new ImGuiWindowSettingsPtr(handle); + + public static implicit operator ImGuiWindowSettings*(ImGuiWindowSettingsPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle == right; + + public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle != right; + + public bool Equals(ImGuiWindowSettingsPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiWindowSettingsPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiWindowSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImVec2Ih Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref ImVec2Ih Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public ref ImVec2Ih ViewportPos => ref Unsafe.AsRef(&Handle->ViewportPos); + /// + /// To be documented. + /// + public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId); + /// + /// To be documented. + /// + public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId); + /// + /// To be documented. + /// + public ref uint ClassId => ref Unsafe.AsRef(&Handle->ClassId); + /// + /// To be documented. + /// + public ref short DockOrder => ref Unsafe.AsRef(&Handle->DockOrder); + /// + /// To be documented. + /// + public ref bool Collapsed => ref Unsafe.AsRef(&Handle->Collapsed); + /// + /// To be documented. + /// + public ref bool WantApply => ref Unsafe.AsRef(&Handle->WantApply); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs new file mode 100644 index 000000000..307059db4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs @@ -0,0 +1,109 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowStackData + { + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public ImGuiLastItemData ParentLastItemDataBackup; + + /// + /// To be documented. + /// + public ImGuiStackSizes StackSizesOnBegin; + + + /// + /// To be documented. + /// + public unsafe ImGuiWindowStackData(ImGuiWindowPtr window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) + { + Window = window; + ParentLastItemDataBackup = parentLastItemDataBackup; + StackSizesOnBegin = stackSizesOnBegin; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImGuiWindowStackDataPtr : IEquatable + { + public ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) { Handle = handle; } + + public ImGuiWindowStackData* Handle; + + public bool IsNull => Handle == null; + + public static ImGuiWindowStackDataPtr Null => new ImGuiWindowStackDataPtr(null); + + public ImGuiWindowStackData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) => new ImGuiWindowStackDataPtr(handle); + + public static implicit operator ImGuiWindowStackData*(ImGuiWindowStackDataPtr handle) => handle.Handle; + + public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle == right; + + public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle != right; + + public bool Equals(ImGuiWindowStackDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImGuiWindowStackDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImGuiWindowStackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&Handle->Window); + /// + /// To be documented. + /// + public ref ImGuiLastItemData ParentLastItemDataBackup => ref Unsafe.AsRef(&Handle->ParentLastItemDataBackup); + /// + /// To be documented. + /// + public ref ImGuiStackSizes StackSizesOnBegin => ref Unsafe.AsRef(&Handle->StackSizesOnBegin); + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs new file mode 100644 index 000000000..118d62337 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs @@ -0,0 +1,246 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowTempData + { + /// + /// To be documented. + /// + public Vector2 CursorPos; + + /// + /// To be documented. + /// + public Vector2 CursorPosPrevLine; + + /// + /// To be documented. + /// + public Vector2 CursorStartPos; + + /// + /// To be documented. + /// + public Vector2 CursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 IdealMaxPos; + + /// + /// To be documented. + /// + public Vector2 CurrLineSize; + + /// + /// To be documented. + /// + public Vector2 PrevLineSize; + + /// + /// To be documented. + /// + public float CurrLineTextBaseOffset; + + /// + /// To be documented. + /// + public float PrevLineTextBaseOffset; + + /// + /// To be documented. + /// + public byte IsSameLine; + + /// + /// To be documented. + /// + public ImVec1 Indent; + + /// + /// To be documented. + /// + public ImVec1 ColumnsOffset; + + /// + /// To be documented. + /// + public ImVec1 GroupOffset; + + /// + /// To be documented. + /// + public Vector2 CursorStartPosLossyness; + + /// + /// To be documented. + /// + public ImGuiNavLayer NavLayerCurrent; + + /// + /// To be documented. + /// + public short NavLayersActiveMask; + + /// + /// To be documented. + /// + public short NavLayersActiveMaskNext; + + /// + /// To be documented. + /// + public uint NavFocusScopeIdCurrent; + + /// + /// To be documented. + /// + public byte NavHideHighlightOneFrame; + + /// + /// To be documented. + /// + public byte NavHasScroll; + + /// + /// To be documented. + /// + public byte MenuBarAppending; + + /// + /// To be documented. + /// + public Vector2 MenuBarOffset; + + /// + /// To be documented. + /// + public ImGuiMenuColumns MenuColumns; + + /// + /// To be documented. + /// + public int TreeDepth; + + /// + /// To be documented. + /// + public uint TreeJumpToParentOnPopMask; + + /// + /// To be documented. + /// + public ImVector ChildWindows; + + /// + /// To be documented. + /// + public unsafe ImGuiStorage* StateStorage; + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumns* CurrentColumns; + + /// + /// To be documented. + /// + public int CurrentTableIdx; + + /// + /// To be documented. + /// + public ImGuiLayoutType LayoutType; + + /// + /// To be documented. + /// + public ImGuiLayoutType ParentLayoutType; + + /// + /// To be documented. + /// + public float ItemWidth; + + /// + /// To be documented. + /// + public float TextWrapPos; + + /// + /// To be documented. + /// + public ImVector ItemWidthStack; + + /// + /// To be documented. + /// + public ImVector TextWrapPosStack; + + + /// + /// To be documented. + /// + public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, uint navFocusScopeIdCurrent = default, bool navHideHighlightOneFrame = default, bool navHasScroll = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVector childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, ImGuiLayoutType layoutType = default, ImGuiLayoutType parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVector itemWidthStack = default, ImVector textWrapPosStack = default) + { + CursorPos = cursorPos; + CursorPosPrevLine = cursorPosPrevLine; + CursorStartPos = cursorStartPos; + CursorMaxPos = cursorMaxPos; + IdealMaxPos = idealMaxPos; + CurrLineSize = currLineSize; + PrevLineSize = prevLineSize; + CurrLineTextBaseOffset = currLineTextBaseOffset; + PrevLineTextBaseOffset = prevLineTextBaseOffset; + IsSameLine = isSameLine ? (byte)1 : (byte)0; + Indent = indent; + ColumnsOffset = columnsOffset; + GroupOffset = groupOffset; + CursorStartPosLossyness = cursorStartPosLossyness; + NavLayerCurrent = navLayerCurrent; + NavLayersActiveMask = navLayersActiveMask; + NavLayersActiveMaskNext = navLayersActiveMaskNext; + NavFocusScopeIdCurrent = navFocusScopeIdCurrent; + NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; + NavHasScroll = navHasScroll ? (byte)1 : (byte)0; + MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; + MenuBarOffset = menuBarOffset; + MenuColumns = menuColumns; + TreeDepth = treeDepth; + TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; + ChildWindows = childWindows; + StateStorage = stateStorage; + CurrentColumns = currentColumns; + CurrentTableIdx = currentTableIdx; + LayoutType = layoutType; + ParentLayoutType = parentLayoutType; + ItemWidth = itemWidth; + TextWrapPos = textWrapPos; + ItemWidthStack = itemWidthStack; + TextWrapPosStack = textWrapPosStack; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs new file mode 100644 index 000000000..e16aed08c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTabBar + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImGuiTabBar(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs new file mode 100644 index 000000000..3c546e300 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTable + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImGuiTable(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs new file mode 100644 index 000000000..0130247c9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs @@ -0,0 +1,118 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImRect + { + /// + /// To be documented. + /// + public Vector2 Min; + + /// + /// To be documented. + /// + public Vector2 Max; + + + /// + /// To be documented. + /// + public unsafe ImRect(Vector2 min = default, Vector2 max = default) + { + Min = min; + Max = max; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImRect* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImRectPtr : IEquatable + { + public ImRectPtr(ImRect* handle) { Handle = handle; } + + public ImRect* Handle; + + public bool IsNull => Handle == null; + + public static ImRectPtr Null => new ImRectPtr(null); + + public ImRect this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImRectPtr(ImRect* handle) => new ImRectPtr(handle); + + public static implicit operator ImRect*(ImRectPtr handle) => handle.Handle; + + public static bool operator ==(ImRectPtr left, ImRectPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImRectPtr left, ImRectPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImRectPtr left, ImRect* right) => left.Handle == right; + + public static bool operator !=(ImRectPtr left, ImRect* right) => left.Handle != right; + + public bool Equals(ImRectPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImRectPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector2 Min => ref Unsafe.AsRef(&Handle->Min); + /// + /// To be documented. + /// + public ref Vector2 Max => ref Unsafe.AsRef(&Handle->Max); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs new file mode 100644 index 000000000..7b087362a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableCellData + { + /// + /// To be documented. + /// + public unsafe ImGuiTableCellData* Data; + + /// + /// To be documented. + /// + public unsafe ImGuiTableCellData* DataEnd; + + + /// + /// To be documented. + /// + public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs new file mode 100644 index 000000000..37bbcc2c4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumn + { + /// + /// To be documented. + /// + public unsafe ImGuiTableColumn* Data; + + /// + /// To be documented. + /// + public unsafe ImGuiTableColumn* DataEnd; + + + /// + /// To be documented. + /// + public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs new file mode 100644 index 000000000..b28325a51 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumnIdx + { + /// + /// To be documented. + /// + public unsafe sbyte* Data; + + /// + /// To be documented. + /// + public unsafe sbyte* DataEnd; + + + /// + /// To be documented. + /// + public unsafe ImSpanImGuiTableColumnIdx(sbyte* data = default, sbyte* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs new file mode 100644 index 000000000..2dce2f41c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs @@ -0,0 +1,108 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec1 + { + /// + /// To be documented. + /// + public float X; + + + /// + /// To be documented. + /// + public unsafe ImVec1(float x = default) + { + X = x; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImVec1* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImVec1Ptr : IEquatable + { + public ImVec1Ptr(ImVec1* handle) { Handle = handle; } + + public ImVec1* Handle; + + public bool IsNull => Handle == null; + + public static ImVec1Ptr Null => new ImVec1Ptr(null); + + public ImVec1 this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImVec1Ptr(ImVec1* handle) => new ImVec1Ptr(handle); + + public static implicit operator ImVec1*(ImVec1Ptr handle) => handle.Handle; + + public static bool operator ==(ImVec1Ptr left, ImVec1Ptr right) => left.Handle == right.Handle; + + public static bool operator !=(ImVec1Ptr left, ImVec1Ptr right) => left.Handle != right.Handle; + + public static bool operator ==(ImVec1Ptr left, ImVec1* right) => left.Handle == right; + + public static bool operator !=(ImVec1Ptr left, ImVec1* right) => left.Handle != right; + + public bool Equals(ImVec1Ptr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImVec1Ptr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImVec1Ptr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs new file mode 100644 index 000000000..2b4457e0b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs @@ -0,0 +1,118 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec2Ih + { + /// + /// To be documented. + /// + public short X; + + /// + /// To be documented. + /// + public short Y; + + + /// + /// To be documented. + /// + public unsafe ImVec2Ih(short x = default, short y = default) + { + X = x; + Y = y; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImVec2Ih* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImVec2IhPtr : IEquatable + { + public ImVec2IhPtr(ImVec2Ih* handle) { Handle = handle; } + + public ImVec2Ih* Handle; + + public bool IsNull => Handle == null; + + public static ImVec2IhPtr Null => new ImVec2IhPtr(null); + + public ImVec2Ih this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImVec2IhPtr(ImVec2Ih* handle) => new ImVec2IhPtr(handle); + + public static implicit operator ImVec2Ih*(ImVec2IhPtr handle) => handle.Handle; + + public static bool operator ==(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle == right; + + public static bool operator !=(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle != right; + + public bool Equals(ImVec2IhPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImVec2IhPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImVec2IhPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref short X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public ref short Y => ref Unsafe.AsRef(&Handle->Y); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs new file mode 100644 index 000000000..49d3e236e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct STBTexteditState + { + /// + /// To be documented. + /// + public int Cursor; + + /// + /// To be documented. + /// + public int SelectStart; + + /// + /// To be documented. + /// + public int SelectEnd; + + /// + /// To be documented. + /// + public byte InsertMode; + + /// + /// To be documented. + /// + public int RowCountPerPage; + + /// + /// To be documented. + /// + public byte CursorAtEndOfLine; + + /// + /// To be documented. + /// + public byte Initialized; + + /// + /// To be documented. + /// + public byte HasPreferredX; + + /// + /// To be documented. + /// + public byte SingleLine; + + /// + /// To be documented. + /// + public byte Padding1; + + /// + /// To be documented. + /// + public byte Padding2; + + /// + /// To be documented. + /// + public byte Padding3; + + /// + /// To be documented. + /// + public float PreferredX; + + /// + /// To be documented. + /// + public StbUndoState Undostate; + + + /// + /// To be documented. + /// + public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) + { + Cursor = cursor; + SelectStart = selectStart; + SelectEnd = selectEnd; + InsertMode = insertMode; + RowCountPerPage = rowCountPerPage; + CursorAtEndOfLine = cursorAtEndOfLine; + Initialized = initialized; + HasPreferredX = hasPreferredX; + SingleLine = singleLine; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + PreferredX = preferredX; + Undostate = undostate; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs new file mode 100644 index 000000000..b1600a592 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbTexteditRow + { + /// + /// To be documented. + /// + public float X0; + + /// + /// To be documented. + /// + public float X1; + + /// + /// To be documented. + /// + public float BaselineYDelta; + + /// + /// To be documented. + /// + public float Ymin; + + /// + /// To be documented. + /// + public float Ymax; + + /// + /// To be documented. + /// + public int NumChars; + + + /// + /// To be documented. + /// + public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) + { + X0 = x0; + X1 = x1; + BaselineYDelta = baselineYDelta; + Ymin = ymin; + Ymax = ymax; + NumChars = numChars; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs new file mode 100644 index 000000000..f86fb607a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoRecord + { + /// + /// To be documented. + /// + public int Where; + + /// + /// To be documented. + /// + public int InsertLength; + + /// + /// To be documented. + /// + public int DeleteLength; + + /// + /// To be documented. + /// + public int CharStorage; + + + /// + /// To be documented. + /// + public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) + { + Where = where; + InsertLength = insertLength; + DeleteLength = deleteLength; + CharStorage = charStorage; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs new file mode 100644 index 000000000..7825af3e5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs @@ -0,0 +1,3399 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoState + { + /// + /// To be documented. + /// + public StbUndoRecord UndoRec_0; + public StbUndoRecord UndoRec_1; + public StbUndoRecord UndoRec_2; + public StbUndoRecord UndoRec_3; + public StbUndoRecord UndoRec_4; + public StbUndoRecord UndoRec_5; + public StbUndoRecord UndoRec_6; + public StbUndoRecord UndoRec_7; + public StbUndoRecord UndoRec_8; + public StbUndoRecord UndoRec_9; + public StbUndoRecord UndoRec_10; + public StbUndoRecord UndoRec_11; + public StbUndoRecord UndoRec_12; + public StbUndoRecord UndoRec_13; + public StbUndoRecord UndoRec_14; + public StbUndoRecord UndoRec_15; + public StbUndoRecord UndoRec_16; + public StbUndoRecord UndoRec_17; + public StbUndoRecord UndoRec_18; + public StbUndoRecord UndoRec_19; + public StbUndoRecord UndoRec_20; + public StbUndoRecord UndoRec_21; + public StbUndoRecord UndoRec_22; + public StbUndoRecord UndoRec_23; + public StbUndoRecord UndoRec_24; + public StbUndoRecord UndoRec_25; + public StbUndoRecord UndoRec_26; + public StbUndoRecord UndoRec_27; + public StbUndoRecord UndoRec_28; + public StbUndoRecord UndoRec_29; + public StbUndoRecord UndoRec_30; + public StbUndoRecord UndoRec_31; + public StbUndoRecord UndoRec_32; + public StbUndoRecord UndoRec_33; + public StbUndoRecord UndoRec_34; + public StbUndoRecord UndoRec_35; + public StbUndoRecord UndoRec_36; + public StbUndoRecord UndoRec_37; + public StbUndoRecord UndoRec_38; + public StbUndoRecord UndoRec_39; + public StbUndoRecord UndoRec_40; + public StbUndoRecord UndoRec_41; + public StbUndoRecord UndoRec_42; + public StbUndoRecord UndoRec_43; + public StbUndoRecord UndoRec_44; + public StbUndoRecord UndoRec_45; + public StbUndoRecord UndoRec_46; + public StbUndoRecord UndoRec_47; + public StbUndoRecord UndoRec_48; + public StbUndoRecord UndoRec_49; + public StbUndoRecord UndoRec_50; + public StbUndoRecord UndoRec_51; + public StbUndoRecord UndoRec_52; + public StbUndoRecord UndoRec_53; + public StbUndoRecord UndoRec_54; + public StbUndoRecord UndoRec_55; + public StbUndoRecord UndoRec_56; + public StbUndoRecord UndoRec_57; + public StbUndoRecord UndoRec_58; + public StbUndoRecord UndoRec_59; + public StbUndoRecord UndoRec_60; + public StbUndoRecord UndoRec_61; + public StbUndoRecord UndoRec_62; + public StbUndoRecord UndoRec_63; + public StbUndoRecord UndoRec_64; + public StbUndoRecord UndoRec_65; + public StbUndoRecord UndoRec_66; + public StbUndoRecord UndoRec_67; + public StbUndoRecord UndoRec_68; + public StbUndoRecord UndoRec_69; + public StbUndoRecord UndoRec_70; + public StbUndoRecord UndoRec_71; + public StbUndoRecord UndoRec_72; + public StbUndoRecord UndoRec_73; + public StbUndoRecord UndoRec_74; + public StbUndoRecord UndoRec_75; + public StbUndoRecord UndoRec_76; + public StbUndoRecord UndoRec_77; + public StbUndoRecord UndoRec_78; + public StbUndoRecord UndoRec_79; + public StbUndoRecord UndoRec_80; + public StbUndoRecord UndoRec_81; + public StbUndoRecord UndoRec_82; + public StbUndoRecord UndoRec_83; + public StbUndoRecord UndoRec_84; + public StbUndoRecord UndoRec_85; + public StbUndoRecord UndoRec_86; + public StbUndoRecord UndoRec_87; + public StbUndoRecord UndoRec_88; + public StbUndoRecord UndoRec_89; + public StbUndoRecord UndoRec_90; + public StbUndoRecord UndoRec_91; + public StbUndoRecord UndoRec_92; + public StbUndoRecord UndoRec_93; + public StbUndoRecord UndoRec_94; + public StbUndoRecord UndoRec_95; + public StbUndoRecord UndoRec_96; + public StbUndoRecord UndoRec_97; + public StbUndoRecord UndoRec_98; + + /// + /// To be documented. + /// + public ushort UndoChar_0; + public ushort UndoChar_1; + public ushort UndoChar_2; + public ushort UndoChar_3; + public ushort UndoChar_4; + public ushort UndoChar_5; + public ushort UndoChar_6; + public ushort UndoChar_7; + public ushort UndoChar_8; + public ushort UndoChar_9; + public ushort UndoChar_10; + public ushort UndoChar_11; + public ushort UndoChar_12; + public ushort UndoChar_13; + public ushort UndoChar_14; + public ushort UndoChar_15; + public ushort UndoChar_16; + public ushort UndoChar_17; + public ushort UndoChar_18; + public ushort UndoChar_19; + public ushort UndoChar_20; + public ushort UndoChar_21; + public ushort UndoChar_22; + public ushort UndoChar_23; + public ushort UndoChar_24; + public ushort UndoChar_25; + public ushort UndoChar_26; + public ushort UndoChar_27; + public ushort UndoChar_28; + public ushort UndoChar_29; + public ushort UndoChar_30; + public ushort UndoChar_31; + public ushort UndoChar_32; + public ushort UndoChar_33; + public ushort UndoChar_34; + public ushort UndoChar_35; + public ushort UndoChar_36; + public ushort UndoChar_37; + public ushort UndoChar_38; + public ushort UndoChar_39; + public ushort UndoChar_40; + public ushort UndoChar_41; + public ushort UndoChar_42; + public ushort UndoChar_43; + public ushort UndoChar_44; + public ushort UndoChar_45; + public ushort UndoChar_46; + public ushort UndoChar_47; + public ushort UndoChar_48; + public ushort UndoChar_49; + public ushort UndoChar_50; + public ushort UndoChar_51; + public ushort UndoChar_52; + public ushort UndoChar_53; + public ushort UndoChar_54; + public ushort UndoChar_55; + public ushort UndoChar_56; + public ushort UndoChar_57; + public ushort UndoChar_58; + public ushort UndoChar_59; + public ushort UndoChar_60; + public ushort UndoChar_61; + public ushort UndoChar_62; + public ushort UndoChar_63; + public ushort UndoChar_64; + public ushort UndoChar_65; + public ushort UndoChar_66; + public ushort UndoChar_67; + public ushort UndoChar_68; + public ushort UndoChar_69; + public ushort UndoChar_70; + public ushort UndoChar_71; + public ushort UndoChar_72; + public ushort UndoChar_73; + public ushort UndoChar_74; + public ushort UndoChar_75; + public ushort UndoChar_76; + public ushort UndoChar_77; + public ushort UndoChar_78; + public ushort UndoChar_79; + public ushort UndoChar_80; + public ushort UndoChar_81; + public ushort UndoChar_82; + public ushort UndoChar_83; + public ushort UndoChar_84; + public ushort UndoChar_85; + public ushort UndoChar_86; + public ushort UndoChar_87; + public ushort UndoChar_88; + public ushort UndoChar_89; + public ushort UndoChar_90; + public ushort UndoChar_91; + public ushort UndoChar_92; + public ushort UndoChar_93; + public ushort UndoChar_94; + public ushort UndoChar_95; + public ushort UndoChar_96; + public ushort UndoChar_97; + public ushort UndoChar_98; + public ushort UndoChar_99; + public ushort UndoChar_100; + public ushort UndoChar_101; + public ushort UndoChar_102; + public ushort UndoChar_103; + public ushort UndoChar_104; + public ushort UndoChar_105; + public ushort UndoChar_106; + public ushort UndoChar_107; + public ushort UndoChar_108; + public ushort UndoChar_109; + public ushort UndoChar_110; + public ushort UndoChar_111; + public ushort UndoChar_112; + public ushort UndoChar_113; + public ushort UndoChar_114; + public ushort UndoChar_115; + public ushort UndoChar_116; + public ushort UndoChar_117; + public ushort UndoChar_118; + public ushort UndoChar_119; + public ushort UndoChar_120; + public ushort UndoChar_121; + public ushort UndoChar_122; + public ushort UndoChar_123; + public ushort UndoChar_124; + public ushort UndoChar_125; + public ushort UndoChar_126; + public ushort UndoChar_127; + public ushort UndoChar_128; + public ushort UndoChar_129; + public ushort UndoChar_130; + public ushort UndoChar_131; + public ushort UndoChar_132; + public ushort UndoChar_133; + public ushort UndoChar_134; + public ushort UndoChar_135; + public ushort UndoChar_136; + public ushort UndoChar_137; + public ushort UndoChar_138; + public ushort UndoChar_139; + public ushort UndoChar_140; + public ushort UndoChar_141; + public ushort UndoChar_142; + public ushort UndoChar_143; + public ushort UndoChar_144; + public ushort UndoChar_145; + public ushort UndoChar_146; + public ushort UndoChar_147; + public ushort UndoChar_148; + public ushort UndoChar_149; + public ushort UndoChar_150; + public ushort UndoChar_151; + public ushort UndoChar_152; + public ushort UndoChar_153; + public ushort UndoChar_154; + public ushort UndoChar_155; + public ushort UndoChar_156; + public ushort UndoChar_157; + public ushort UndoChar_158; + public ushort UndoChar_159; + public ushort UndoChar_160; + public ushort UndoChar_161; + public ushort UndoChar_162; + public ushort UndoChar_163; + public ushort UndoChar_164; + public ushort UndoChar_165; + public ushort UndoChar_166; + public ushort UndoChar_167; + public ushort UndoChar_168; + public ushort UndoChar_169; + public ushort UndoChar_170; + public ushort UndoChar_171; + public ushort UndoChar_172; + public ushort UndoChar_173; + public ushort UndoChar_174; + public ushort UndoChar_175; + public ushort UndoChar_176; + public ushort UndoChar_177; + public ushort UndoChar_178; + public ushort UndoChar_179; + public ushort UndoChar_180; + public ushort UndoChar_181; + public ushort UndoChar_182; + public ushort UndoChar_183; + public ushort UndoChar_184; + public ushort UndoChar_185; + public ushort UndoChar_186; + public ushort UndoChar_187; + public ushort UndoChar_188; + public ushort UndoChar_189; + public ushort UndoChar_190; + public ushort UndoChar_191; + public ushort UndoChar_192; + public ushort UndoChar_193; + public ushort UndoChar_194; + public ushort UndoChar_195; + public ushort UndoChar_196; + public ushort UndoChar_197; + public ushort UndoChar_198; + public ushort UndoChar_199; + public ushort UndoChar_200; + public ushort UndoChar_201; + public ushort UndoChar_202; + public ushort UndoChar_203; + public ushort UndoChar_204; + public ushort UndoChar_205; + public ushort UndoChar_206; + public ushort UndoChar_207; + public ushort UndoChar_208; + public ushort UndoChar_209; + public ushort UndoChar_210; + public ushort UndoChar_211; + public ushort UndoChar_212; + public ushort UndoChar_213; + public ushort UndoChar_214; + public ushort UndoChar_215; + public ushort UndoChar_216; + public ushort UndoChar_217; + public ushort UndoChar_218; + public ushort UndoChar_219; + public ushort UndoChar_220; + public ushort UndoChar_221; + public ushort UndoChar_222; + public ushort UndoChar_223; + public ushort UndoChar_224; + public ushort UndoChar_225; + public ushort UndoChar_226; + public ushort UndoChar_227; + public ushort UndoChar_228; + public ushort UndoChar_229; + public ushort UndoChar_230; + public ushort UndoChar_231; + public ushort UndoChar_232; + public ushort UndoChar_233; + public ushort UndoChar_234; + public ushort UndoChar_235; + public ushort UndoChar_236; + public ushort UndoChar_237; + public ushort UndoChar_238; + public ushort UndoChar_239; + public ushort UndoChar_240; + public ushort UndoChar_241; + public ushort UndoChar_242; + public ushort UndoChar_243; + public ushort UndoChar_244; + public ushort UndoChar_245; + public ushort UndoChar_246; + public ushort UndoChar_247; + public ushort UndoChar_248; + public ushort UndoChar_249; + public ushort UndoChar_250; + public ushort UndoChar_251; + public ushort UndoChar_252; + public ushort UndoChar_253; + public ushort UndoChar_254; + public ushort UndoChar_255; + public ushort UndoChar_256; + public ushort UndoChar_257; + public ushort UndoChar_258; + public ushort UndoChar_259; + public ushort UndoChar_260; + public ushort UndoChar_261; + public ushort UndoChar_262; + public ushort UndoChar_263; + public ushort UndoChar_264; + public ushort UndoChar_265; + public ushort UndoChar_266; + public ushort UndoChar_267; + public ushort UndoChar_268; + public ushort UndoChar_269; + public ushort UndoChar_270; + public ushort UndoChar_271; + public ushort UndoChar_272; + public ushort UndoChar_273; + public ushort UndoChar_274; + public ushort UndoChar_275; + public ushort UndoChar_276; + public ushort UndoChar_277; + public ushort UndoChar_278; + public ushort UndoChar_279; + public ushort UndoChar_280; + public ushort UndoChar_281; + public ushort UndoChar_282; + public ushort UndoChar_283; + public ushort UndoChar_284; + public ushort UndoChar_285; + public ushort UndoChar_286; + public ushort UndoChar_287; + public ushort UndoChar_288; + public ushort UndoChar_289; + public ushort UndoChar_290; + public ushort UndoChar_291; + public ushort UndoChar_292; + public ushort UndoChar_293; + public ushort UndoChar_294; + public ushort UndoChar_295; + public ushort UndoChar_296; + public ushort UndoChar_297; + public ushort UndoChar_298; + public ushort UndoChar_299; + public ushort UndoChar_300; + public ushort UndoChar_301; + public ushort UndoChar_302; + public ushort UndoChar_303; + public ushort UndoChar_304; + public ushort UndoChar_305; + public ushort UndoChar_306; + public ushort UndoChar_307; + public ushort UndoChar_308; + public ushort UndoChar_309; + public ushort UndoChar_310; + public ushort UndoChar_311; + public ushort UndoChar_312; + public ushort UndoChar_313; + public ushort UndoChar_314; + public ushort UndoChar_315; + public ushort UndoChar_316; + public ushort UndoChar_317; + public ushort UndoChar_318; + public ushort UndoChar_319; + public ushort UndoChar_320; + public ushort UndoChar_321; + public ushort UndoChar_322; + public ushort UndoChar_323; + public ushort UndoChar_324; + public ushort UndoChar_325; + public ushort UndoChar_326; + public ushort UndoChar_327; + public ushort UndoChar_328; + public ushort UndoChar_329; + public ushort UndoChar_330; + public ushort UndoChar_331; + public ushort UndoChar_332; + public ushort UndoChar_333; + public ushort UndoChar_334; + public ushort UndoChar_335; + public ushort UndoChar_336; + public ushort UndoChar_337; + public ushort UndoChar_338; + public ushort UndoChar_339; + public ushort UndoChar_340; + public ushort UndoChar_341; + public ushort UndoChar_342; + public ushort UndoChar_343; + public ushort UndoChar_344; + public ushort UndoChar_345; + public ushort UndoChar_346; + public ushort UndoChar_347; + public ushort UndoChar_348; + public ushort UndoChar_349; + public ushort UndoChar_350; + public ushort UndoChar_351; + public ushort UndoChar_352; + public ushort UndoChar_353; + public ushort UndoChar_354; + public ushort UndoChar_355; + public ushort UndoChar_356; + public ushort UndoChar_357; + public ushort UndoChar_358; + public ushort UndoChar_359; + public ushort UndoChar_360; + public ushort UndoChar_361; + public ushort UndoChar_362; + public ushort UndoChar_363; + public ushort UndoChar_364; + public ushort UndoChar_365; + public ushort UndoChar_366; + public ushort UndoChar_367; + public ushort UndoChar_368; + public ushort UndoChar_369; + public ushort UndoChar_370; + public ushort UndoChar_371; + public ushort UndoChar_372; + public ushort UndoChar_373; + public ushort UndoChar_374; + public ushort UndoChar_375; + public ushort UndoChar_376; + public ushort UndoChar_377; + public ushort UndoChar_378; + public ushort UndoChar_379; + public ushort UndoChar_380; + public ushort UndoChar_381; + public ushort UndoChar_382; + public ushort UndoChar_383; + public ushort UndoChar_384; + public ushort UndoChar_385; + public ushort UndoChar_386; + public ushort UndoChar_387; + public ushort UndoChar_388; + public ushort UndoChar_389; + public ushort UndoChar_390; + public ushort UndoChar_391; + public ushort UndoChar_392; + public ushort UndoChar_393; + public ushort UndoChar_394; + public ushort UndoChar_395; + public ushort UndoChar_396; + public ushort UndoChar_397; + public ushort UndoChar_398; + public ushort UndoChar_399; + public ushort UndoChar_400; + public ushort UndoChar_401; + public ushort UndoChar_402; + public ushort UndoChar_403; + public ushort UndoChar_404; + public ushort UndoChar_405; + public ushort UndoChar_406; + public ushort UndoChar_407; + public ushort UndoChar_408; + public ushort UndoChar_409; + public ushort UndoChar_410; + public ushort UndoChar_411; + public ushort UndoChar_412; + public ushort UndoChar_413; + public ushort UndoChar_414; + public ushort UndoChar_415; + public ushort UndoChar_416; + public ushort UndoChar_417; + public ushort UndoChar_418; + public ushort UndoChar_419; + public ushort UndoChar_420; + public ushort UndoChar_421; + public ushort UndoChar_422; + public ushort UndoChar_423; + public ushort UndoChar_424; + public ushort UndoChar_425; + public ushort UndoChar_426; + public ushort UndoChar_427; + public ushort UndoChar_428; + public ushort UndoChar_429; + public ushort UndoChar_430; + public ushort UndoChar_431; + public ushort UndoChar_432; + public ushort UndoChar_433; + public ushort UndoChar_434; + public ushort UndoChar_435; + public ushort UndoChar_436; + public ushort UndoChar_437; + public ushort UndoChar_438; + public ushort UndoChar_439; + public ushort UndoChar_440; + public ushort UndoChar_441; + public ushort UndoChar_442; + public ushort UndoChar_443; + public ushort UndoChar_444; + public ushort UndoChar_445; + public ushort UndoChar_446; + public ushort UndoChar_447; + public ushort UndoChar_448; + public ushort UndoChar_449; + public ushort UndoChar_450; + public ushort UndoChar_451; + public ushort UndoChar_452; + public ushort UndoChar_453; + public ushort UndoChar_454; + public ushort UndoChar_455; + public ushort UndoChar_456; + public ushort UndoChar_457; + public ushort UndoChar_458; + public ushort UndoChar_459; + public ushort UndoChar_460; + public ushort UndoChar_461; + public ushort UndoChar_462; + public ushort UndoChar_463; + public ushort UndoChar_464; + public ushort UndoChar_465; + public ushort UndoChar_466; + public ushort UndoChar_467; + public ushort UndoChar_468; + public ushort UndoChar_469; + public ushort UndoChar_470; + public ushort UndoChar_471; + public ushort UndoChar_472; + public ushort UndoChar_473; + public ushort UndoChar_474; + public ushort UndoChar_475; + public ushort UndoChar_476; + public ushort UndoChar_477; + public ushort UndoChar_478; + public ushort UndoChar_479; + public ushort UndoChar_480; + public ushort UndoChar_481; + public ushort UndoChar_482; + public ushort UndoChar_483; + public ushort UndoChar_484; + public ushort UndoChar_485; + public ushort UndoChar_486; + public ushort UndoChar_487; + public ushort UndoChar_488; + public ushort UndoChar_489; + public ushort UndoChar_490; + public ushort UndoChar_491; + public ushort UndoChar_492; + public ushort UndoChar_493; + public ushort UndoChar_494; + public ushort UndoChar_495; + public ushort UndoChar_496; + public ushort UndoChar_497; + public ushort UndoChar_498; + public ushort UndoChar_499; + public ushort UndoChar_500; + public ushort UndoChar_501; + public ushort UndoChar_502; + public ushort UndoChar_503; + public ushort UndoChar_504; + public ushort UndoChar_505; + public ushort UndoChar_506; + public ushort UndoChar_507; + public ushort UndoChar_508; + public ushort UndoChar_509; + public ushort UndoChar_510; + public ushort UndoChar_511; + public ushort UndoChar_512; + public ushort UndoChar_513; + public ushort UndoChar_514; + public ushort UndoChar_515; + public ushort UndoChar_516; + public ushort UndoChar_517; + public ushort UndoChar_518; + public ushort UndoChar_519; + public ushort UndoChar_520; + public ushort UndoChar_521; + public ushort UndoChar_522; + public ushort UndoChar_523; + public ushort UndoChar_524; + public ushort UndoChar_525; + public ushort UndoChar_526; + public ushort UndoChar_527; + public ushort UndoChar_528; + public ushort UndoChar_529; + public ushort UndoChar_530; + public ushort UndoChar_531; + public ushort UndoChar_532; + public ushort UndoChar_533; + public ushort UndoChar_534; + public ushort UndoChar_535; + public ushort UndoChar_536; + public ushort UndoChar_537; + public ushort UndoChar_538; + public ushort UndoChar_539; + public ushort UndoChar_540; + public ushort UndoChar_541; + public ushort UndoChar_542; + public ushort UndoChar_543; + public ushort UndoChar_544; + public ushort UndoChar_545; + public ushort UndoChar_546; + public ushort UndoChar_547; + public ushort UndoChar_548; + public ushort UndoChar_549; + public ushort UndoChar_550; + public ushort UndoChar_551; + public ushort UndoChar_552; + public ushort UndoChar_553; + public ushort UndoChar_554; + public ushort UndoChar_555; + public ushort UndoChar_556; + public ushort UndoChar_557; + public ushort UndoChar_558; + public ushort UndoChar_559; + public ushort UndoChar_560; + public ushort UndoChar_561; + public ushort UndoChar_562; + public ushort UndoChar_563; + public ushort UndoChar_564; + public ushort UndoChar_565; + public ushort UndoChar_566; + public ushort UndoChar_567; + public ushort UndoChar_568; + public ushort UndoChar_569; + public ushort UndoChar_570; + public ushort UndoChar_571; + public ushort UndoChar_572; + public ushort UndoChar_573; + public ushort UndoChar_574; + public ushort UndoChar_575; + public ushort UndoChar_576; + public ushort UndoChar_577; + public ushort UndoChar_578; + public ushort UndoChar_579; + public ushort UndoChar_580; + public ushort UndoChar_581; + public ushort UndoChar_582; + public ushort UndoChar_583; + public ushort UndoChar_584; + public ushort UndoChar_585; + public ushort UndoChar_586; + public ushort UndoChar_587; + public ushort UndoChar_588; + public ushort UndoChar_589; + public ushort UndoChar_590; + public ushort UndoChar_591; + public ushort UndoChar_592; + public ushort UndoChar_593; + public ushort UndoChar_594; + public ushort UndoChar_595; + public ushort UndoChar_596; + public ushort UndoChar_597; + public ushort UndoChar_598; + public ushort UndoChar_599; + public ushort UndoChar_600; + public ushort UndoChar_601; + public ushort UndoChar_602; + public ushort UndoChar_603; + public ushort UndoChar_604; + public ushort UndoChar_605; + public ushort UndoChar_606; + public ushort UndoChar_607; + public ushort UndoChar_608; + public ushort UndoChar_609; + public ushort UndoChar_610; + public ushort UndoChar_611; + public ushort UndoChar_612; + public ushort UndoChar_613; + public ushort UndoChar_614; + public ushort UndoChar_615; + public ushort UndoChar_616; + public ushort UndoChar_617; + public ushort UndoChar_618; + public ushort UndoChar_619; + public ushort UndoChar_620; + public ushort UndoChar_621; + public ushort UndoChar_622; + public ushort UndoChar_623; + public ushort UndoChar_624; + public ushort UndoChar_625; + public ushort UndoChar_626; + public ushort UndoChar_627; + public ushort UndoChar_628; + public ushort UndoChar_629; + public ushort UndoChar_630; + public ushort UndoChar_631; + public ushort UndoChar_632; + public ushort UndoChar_633; + public ushort UndoChar_634; + public ushort UndoChar_635; + public ushort UndoChar_636; + public ushort UndoChar_637; + public ushort UndoChar_638; + public ushort UndoChar_639; + public ushort UndoChar_640; + public ushort UndoChar_641; + public ushort UndoChar_642; + public ushort UndoChar_643; + public ushort UndoChar_644; + public ushort UndoChar_645; + public ushort UndoChar_646; + public ushort UndoChar_647; + public ushort UndoChar_648; + public ushort UndoChar_649; + public ushort UndoChar_650; + public ushort UndoChar_651; + public ushort UndoChar_652; + public ushort UndoChar_653; + public ushort UndoChar_654; + public ushort UndoChar_655; + public ushort UndoChar_656; + public ushort UndoChar_657; + public ushort UndoChar_658; + public ushort UndoChar_659; + public ushort UndoChar_660; + public ushort UndoChar_661; + public ushort UndoChar_662; + public ushort UndoChar_663; + public ushort UndoChar_664; + public ushort UndoChar_665; + public ushort UndoChar_666; + public ushort UndoChar_667; + public ushort UndoChar_668; + public ushort UndoChar_669; + public ushort UndoChar_670; + public ushort UndoChar_671; + public ushort UndoChar_672; + public ushort UndoChar_673; + public ushort UndoChar_674; + public ushort UndoChar_675; + public ushort UndoChar_676; + public ushort UndoChar_677; + public ushort UndoChar_678; + public ushort UndoChar_679; + public ushort UndoChar_680; + public ushort UndoChar_681; + public ushort UndoChar_682; + public ushort UndoChar_683; + public ushort UndoChar_684; + public ushort UndoChar_685; + public ushort UndoChar_686; + public ushort UndoChar_687; + public ushort UndoChar_688; + public ushort UndoChar_689; + public ushort UndoChar_690; + public ushort UndoChar_691; + public ushort UndoChar_692; + public ushort UndoChar_693; + public ushort UndoChar_694; + public ushort UndoChar_695; + public ushort UndoChar_696; + public ushort UndoChar_697; + public ushort UndoChar_698; + public ushort UndoChar_699; + public ushort UndoChar_700; + public ushort UndoChar_701; + public ushort UndoChar_702; + public ushort UndoChar_703; + public ushort UndoChar_704; + public ushort UndoChar_705; + public ushort UndoChar_706; + public ushort UndoChar_707; + public ushort UndoChar_708; + public ushort UndoChar_709; + public ushort UndoChar_710; + public ushort UndoChar_711; + public ushort UndoChar_712; + public ushort UndoChar_713; + public ushort UndoChar_714; + public ushort UndoChar_715; + public ushort UndoChar_716; + public ushort UndoChar_717; + public ushort UndoChar_718; + public ushort UndoChar_719; + public ushort UndoChar_720; + public ushort UndoChar_721; + public ushort UndoChar_722; + public ushort UndoChar_723; + public ushort UndoChar_724; + public ushort UndoChar_725; + public ushort UndoChar_726; + public ushort UndoChar_727; + public ushort UndoChar_728; + public ushort UndoChar_729; + public ushort UndoChar_730; + public ushort UndoChar_731; + public ushort UndoChar_732; + public ushort UndoChar_733; + public ushort UndoChar_734; + public ushort UndoChar_735; + public ushort UndoChar_736; + public ushort UndoChar_737; + public ushort UndoChar_738; + public ushort UndoChar_739; + public ushort UndoChar_740; + public ushort UndoChar_741; + public ushort UndoChar_742; + public ushort UndoChar_743; + public ushort UndoChar_744; + public ushort UndoChar_745; + public ushort UndoChar_746; + public ushort UndoChar_747; + public ushort UndoChar_748; + public ushort UndoChar_749; + public ushort UndoChar_750; + public ushort UndoChar_751; + public ushort UndoChar_752; + public ushort UndoChar_753; + public ushort UndoChar_754; + public ushort UndoChar_755; + public ushort UndoChar_756; + public ushort UndoChar_757; + public ushort UndoChar_758; + public ushort UndoChar_759; + public ushort UndoChar_760; + public ushort UndoChar_761; + public ushort UndoChar_762; + public ushort UndoChar_763; + public ushort UndoChar_764; + public ushort UndoChar_765; + public ushort UndoChar_766; + public ushort UndoChar_767; + public ushort UndoChar_768; + public ushort UndoChar_769; + public ushort UndoChar_770; + public ushort UndoChar_771; + public ushort UndoChar_772; + public ushort UndoChar_773; + public ushort UndoChar_774; + public ushort UndoChar_775; + public ushort UndoChar_776; + public ushort UndoChar_777; + public ushort UndoChar_778; + public ushort UndoChar_779; + public ushort UndoChar_780; + public ushort UndoChar_781; + public ushort UndoChar_782; + public ushort UndoChar_783; + public ushort UndoChar_784; + public ushort UndoChar_785; + public ushort UndoChar_786; + public ushort UndoChar_787; + public ushort UndoChar_788; + public ushort UndoChar_789; + public ushort UndoChar_790; + public ushort UndoChar_791; + public ushort UndoChar_792; + public ushort UndoChar_793; + public ushort UndoChar_794; + public ushort UndoChar_795; + public ushort UndoChar_796; + public ushort UndoChar_797; + public ushort UndoChar_798; + public ushort UndoChar_799; + public ushort UndoChar_800; + public ushort UndoChar_801; + public ushort UndoChar_802; + public ushort UndoChar_803; + public ushort UndoChar_804; + public ushort UndoChar_805; + public ushort UndoChar_806; + public ushort UndoChar_807; + public ushort UndoChar_808; + public ushort UndoChar_809; + public ushort UndoChar_810; + public ushort UndoChar_811; + public ushort UndoChar_812; + public ushort UndoChar_813; + public ushort UndoChar_814; + public ushort UndoChar_815; + public ushort UndoChar_816; + public ushort UndoChar_817; + public ushort UndoChar_818; + public ushort UndoChar_819; + public ushort UndoChar_820; + public ushort UndoChar_821; + public ushort UndoChar_822; + public ushort UndoChar_823; + public ushort UndoChar_824; + public ushort UndoChar_825; + public ushort UndoChar_826; + public ushort UndoChar_827; + public ushort UndoChar_828; + public ushort UndoChar_829; + public ushort UndoChar_830; + public ushort UndoChar_831; + public ushort UndoChar_832; + public ushort UndoChar_833; + public ushort UndoChar_834; + public ushort UndoChar_835; + public ushort UndoChar_836; + public ushort UndoChar_837; + public ushort UndoChar_838; + public ushort UndoChar_839; + public ushort UndoChar_840; + public ushort UndoChar_841; + public ushort UndoChar_842; + public ushort UndoChar_843; + public ushort UndoChar_844; + public ushort UndoChar_845; + public ushort UndoChar_846; + public ushort UndoChar_847; + public ushort UndoChar_848; + public ushort UndoChar_849; + public ushort UndoChar_850; + public ushort UndoChar_851; + public ushort UndoChar_852; + public ushort UndoChar_853; + public ushort UndoChar_854; + public ushort UndoChar_855; + public ushort UndoChar_856; + public ushort UndoChar_857; + public ushort UndoChar_858; + public ushort UndoChar_859; + public ushort UndoChar_860; + public ushort UndoChar_861; + public ushort UndoChar_862; + public ushort UndoChar_863; + public ushort UndoChar_864; + public ushort UndoChar_865; + public ushort UndoChar_866; + public ushort UndoChar_867; + public ushort UndoChar_868; + public ushort UndoChar_869; + public ushort UndoChar_870; + public ushort UndoChar_871; + public ushort UndoChar_872; + public ushort UndoChar_873; + public ushort UndoChar_874; + public ushort UndoChar_875; + public ushort UndoChar_876; + public ushort UndoChar_877; + public ushort UndoChar_878; + public ushort UndoChar_879; + public ushort UndoChar_880; + public ushort UndoChar_881; + public ushort UndoChar_882; + public ushort UndoChar_883; + public ushort UndoChar_884; + public ushort UndoChar_885; + public ushort UndoChar_886; + public ushort UndoChar_887; + public ushort UndoChar_888; + public ushort UndoChar_889; + public ushort UndoChar_890; + public ushort UndoChar_891; + public ushort UndoChar_892; + public ushort UndoChar_893; + public ushort UndoChar_894; + public ushort UndoChar_895; + public ushort UndoChar_896; + public ushort UndoChar_897; + public ushort UndoChar_898; + public ushort UndoChar_899; + public ushort UndoChar_900; + public ushort UndoChar_901; + public ushort UndoChar_902; + public ushort UndoChar_903; + public ushort UndoChar_904; + public ushort UndoChar_905; + public ushort UndoChar_906; + public ushort UndoChar_907; + public ushort UndoChar_908; + public ushort UndoChar_909; + public ushort UndoChar_910; + public ushort UndoChar_911; + public ushort UndoChar_912; + public ushort UndoChar_913; + public ushort UndoChar_914; + public ushort UndoChar_915; + public ushort UndoChar_916; + public ushort UndoChar_917; + public ushort UndoChar_918; + public ushort UndoChar_919; + public ushort UndoChar_920; + public ushort UndoChar_921; + public ushort UndoChar_922; + public ushort UndoChar_923; + public ushort UndoChar_924; + public ushort UndoChar_925; + public ushort UndoChar_926; + public ushort UndoChar_927; + public ushort UndoChar_928; + public ushort UndoChar_929; + public ushort UndoChar_930; + public ushort UndoChar_931; + public ushort UndoChar_932; + public ushort UndoChar_933; + public ushort UndoChar_934; + public ushort UndoChar_935; + public ushort UndoChar_936; + public ushort UndoChar_937; + public ushort UndoChar_938; + public ushort UndoChar_939; + public ushort UndoChar_940; + public ushort UndoChar_941; + public ushort UndoChar_942; + public ushort UndoChar_943; + public ushort UndoChar_944; + public ushort UndoChar_945; + public ushort UndoChar_946; + public ushort UndoChar_947; + public ushort UndoChar_948; + public ushort UndoChar_949; + public ushort UndoChar_950; + public ushort UndoChar_951; + public ushort UndoChar_952; + public ushort UndoChar_953; + public ushort UndoChar_954; + public ushort UndoChar_955; + public ushort UndoChar_956; + public ushort UndoChar_957; + public ushort UndoChar_958; + public ushort UndoChar_959; + public ushort UndoChar_960; + public ushort UndoChar_961; + public ushort UndoChar_962; + public ushort UndoChar_963; + public ushort UndoChar_964; + public ushort UndoChar_965; + public ushort UndoChar_966; + public ushort UndoChar_967; + public ushort UndoChar_968; + public ushort UndoChar_969; + public ushort UndoChar_970; + public ushort UndoChar_971; + public ushort UndoChar_972; + public ushort UndoChar_973; + public ushort UndoChar_974; + public ushort UndoChar_975; + public ushort UndoChar_976; + public ushort UndoChar_977; + public ushort UndoChar_978; + public ushort UndoChar_979; + public ushort UndoChar_980; + public ushort UndoChar_981; + public ushort UndoChar_982; + public ushort UndoChar_983; + public ushort UndoChar_984; + public ushort UndoChar_985; + public ushort UndoChar_986; + public ushort UndoChar_987; + public ushort UndoChar_988; + public ushort UndoChar_989; + public ushort UndoChar_990; + public ushort UndoChar_991; + public ushort UndoChar_992; + public ushort UndoChar_993; + public ushort UndoChar_994; + public ushort UndoChar_995; + public ushort UndoChar_996; + public ushort UndoChar_997; + public ushort UndoChar_998; + + /// + /// To be documented. + /// + public short UndoPoint; + + /// + /// To be documented. + /// + public short RedoPoint; + + /// + /// To be documented. + /// + public int UndoCharPoint; + + /// + /// To be documented. + /// + public int RedoCharPoint; + + + /// + /// To be documented. + /// + public unsafe StbUndoState(StbUndoRecord* undoRec = default, ushort* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default(StbUndoRecord*)) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default(ushort*)) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + + /// + /// To be documented. + /// + public unsafe StbUndoState(Span undoRec = default, Span undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default(Span)) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default(Span)) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + + + /// + /// To be documented. + /// + public unsafe Span UndoRec + + { + get + { + fixed (StbUndoRecord* p = &this.UndoRec_0) + { + return new Span(p, 99); + } + } + } + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs new file mode 100644 index 000000000..2bd237867 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs @@ -0,0 +1,72 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbttPackContext + { + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct StbttPackContextPtr : IEquatable + { + public StbttPackContextPtr(StbttPackContext* handle) { Handle = handle; } + + public StbttPackContext* Handle; + + public bool IsNull => Handle == null; + + public static StbttPackContextPtr Null => new StbttPackContextPtr(null); + + public StbttPackContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator StbttPackContextPtr(StbttPackContext* handle) => new StbttPackContextPtr(handle); + + public static implicit operator StbttPackContext*(StbttPackContextPtr handle) => handle.Handle; + + public static bool operator ==(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle == right.Handle; + + public static bool operator !=(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle != right.Handle; + + public static bool operator ==(StbttPackContextPtr left, StbttPackContext* right) => left.Handle == right; + + public static bool operator !=(StbttPackContextPtr left, StbttPackContext* right) => left.Handle != right; + + public bool Equals(StbttPackContextPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is StbttPackContextPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("StbttPackContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + } + +} diff --git a/imgui/Dalamud.Bindings.ImGui/ImGui.cs b/imgui/Dalamud.Bindings.ImGui/ImGui.cs new file mode 100644 index 000000000..42e1c2174 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/ImGui.cs @@ -0,0 +1,45 @@ +#nullable disable + +using System.Reflection; + +namespace Dalamud.Bindings.ImGui +{ + using HexaGen.Runtime; + using System.Diagnostics; + + public static class ImGuiConfig + { + public static bool AotStaticLink; + } + + public static unsafe partial class ImGui + { + static ImGui() + { + if (ImGuiConfig.AotStaticLink) + { + InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); + } + + var linuxPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".so"); + var windowsPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"); + + // This shouldn't affect wine as it'll be reported as Win32NT + if (System.Environment.OSVersion.Platform == PlatformID.Unix && File.Exists(linuxPath)) + { + InitApi(new NativeLibraryContext(linuxPath)); + } + else + { + InitApi(new NativeLibraryContext(windowsPath)); + } + } + + public static string GetLibraryName() + { + return "cimgui"; + } + + public const nint ImDrawCallbackResetRenderState = -8; + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs b/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs new file mode 100644 index 000000000..57a243397 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs @@ -0,0 +1,16 @@ +#nullable disable + +namespace Dalamud.Bindings.ImGui +{ + using HexaGen.Runtime; + + public static unsafe partial class ImGuiP + { + internal static FunctionTable funcTable; + + static ImGuiP() + { + funcTable = ImGui.funcTable; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs b/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs new file mode 100644 index 000000000..7be18f2dc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Dalamud.Bindings.ImGui +{ + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public readonly unsafe partial struct ImTextureID : IEquatable + { + public ImTextureID(ulong handle) { Handle = handle; } + public ImTextureID(nint handle) { Handle = (ulong)handle; } + public ImTextureID(void* handle) { Handle = (ulong)handle; } + public ulong Handle { get; } + public bool IsNull => Handle == 0; + public static ImTextureID Null => default; + public static implicit operator ImTextureID(ulong handle) => new ImTextureID(handle); + public static bool operator ==(ImTextureID left, ImTextureID right) => left.Handle == right.Handle; + public static bool operator !=(ImTextureID left, ImTextureID right) => left.Handle != right.Handle; + public static bool operator ==(ImTextureID left, nint right) => left.Handle == (ulong)right; + public static bool operator !=(ImTextureID left, nint right) => left.Handle != (ulong)right; + public static bool operator ==(ImTextureID left, ulong right) => left.Handle == right; + public static bool operator !=(ImTextureID left, ulong right) => left.Handle != right; + public bool Equals(ImTextureID other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is ImTextureID handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImTextureID [0x{0}]", Handle.ToString("X")); + #endif + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/ImU8String.cs b/imgui/Dalamud.Bindings.ImGui/ImU8String.cs new file mode 100644 index 000000000..88858ca10 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/ImU8String.cs @@ -0,0 +1,418 @@ +using System.Buffers; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text; +using System.Text.Unicode; + +namespace Dalamud.Bindings.ImGui; + +[InterpolatedStringHandler] +public ref struct ImU8String : IDisposable +{ + public const int AllocFreeBufferSize = 512; + private const int MinimumRentSize = AllocFreeBufferSize * 2; + + private IFormatProvider? formatProvider; + private byte[]? rentedBuffer; + private ref readonly byte externalFirstByte; + private State state; + private FixedBufferContainer fixedBuffer; + + [Flags] + private enum State : byte + { + None = 0, + Initialized = 1 << 0, + NullTerminated = 1 << 1, + Interpolation = 1 << 2, + } + + public ImU8String() + { + Unsafe.SkipInit(out this.fixedBuffer); + this.FixedBufferByteRef = 0; + } + + public ImU8String(int literalLength, int formattedCount) + : this(""u8) + { + this.state |= State.Interpolation; + literalLength += formattedCount * 4; + this.Reserve(literalLength); + } + + public ImU8String(int literalLength, int formattedCount, IFormatProvider? formatProvider) + : this(literalLength, formattedCount) + { + this.formatProvider = formatProvider; + } + + public ImU8String(ReadOnlySpan text, bool ensureNullTermination = false) + : this() + { + if (Unsafe.IsNullRef(in MemoryMarshal.GetReference(text))) + { + this.state = State.None; + return; + } + + this.state = State.Initialized; + if (text.IsEmpty) + { + this.state |= State.NullTerminated; + } + else if (ensureNullTermination) + { + this.Reserve(text.Length + 1); + var buffer = this.Buffer; + text.CopyTo(buffer); + buffer[^1] = 0; + this.Length = text.Length; + this.state |= State.NullTerminated; + } + else + { + this.externalFirstByte = ref text[0]; + this.Length = text.Length; + if (Unsafe.Add(ref Unsafe.AsRef(in this.externalFirstByte), this.Length) == 0) + this.state |= State.NullTerminated; + } + } + + public ImU8String(ReadOnlyMemory text, bool ensureNullTermination = false) + : this(text.Span, ensureNullTermination) + { + } + + public ImU8String(ReadOnlySpan text) + : this() + { + if (Unsafe.IsNullRef(in MemoryMarshal.GetReference(text))) + { + this.state = State.None; + return; + } + + this.state = State.Initialized | State.NullTerminated; + this.Length = Encoding.UTF8.GetByteCount(text); + if (this.Length + 1 < AllocFreeBufferSize) + { + var newSpan = this.FixedBufferSpan[..this.Length]; + Encoding.UTF8.GetBytes(text, newSpan); + this.FixedBufferSpan[this.Length] = 0; + } + else + { + this.rentedBuffer = ArrayPool.Shared.Rent(this.Length + 1); + var newSpan = this.rentedBuffer.AsSpan(0, this.Length); + Encoding.UTF8.GetBytes(text, newSpan); + this.rentedBuffer[this.Length] = 0; + } + } + + public ImU8String(ReadOnlyMemory text) + : this(text.Span) + { + } + + public ImU8String(string? text) + : this(text.AsSpan()) + { + } + + public unsafe ImU8String(byte* text) + : this(MemoryMarshal.CreateReadOnlySpanFromNullTerminated(text)) + { + this.state |= State.NullTerminated; + } + + public unsafe ImU8String(char* text) + : this(MemoryMarshal.CreateReadOnlySpanFromNullTerminated(text)) + { + } + + public static ImU8String Empty => default; + + public readonly ReadOnlySpan Span => + !Unsafe.IsNullRef(in this.externalFirstByte) + ? MemoryMarshal.CreateReadOnlySpan(in this.externalFirstByte, this.Length) + : this.rentedBuffer is { } rented + ? rented.AsSpan(0, this.Length) + : Unsafe.AsRef(in this).FixedBufferSpan[..this.Length]; + + public int Length { get; private set; } + + public readonly bool IsNull => (this.state & State.Initialized) == 0; + + public readonly bool IsEmpty => this.Length == 0; + + internal Span Buffer + { + get + { + if (Unsafe.IsNullRef(in this.externalFirstByte)) + this.ConvertToOwned(); + + return this.rentedBuffer is { } buf + ? buf.AsSpan() + : MemoryMarshal.Cast(new(ref Unsafe.AsRef(ref this.fixedBuffer))); + } + } + + private Span RemainingBuffer => this.Buffer[this.Length..]; + + private ref byte FixedBufferByteRef => ref this.FixedBufferSpan[0]; + + private Span FixedBufferSpan => + MemoryMarshal.Cast(new(ref Unsafe.AsRef(ref this.fixedBuffer))); + + public static implicit operator ImU8String(ReadOnlySpan text) => new(text); + public static implicit operator ImU8String(ReadOnlyMemory text) => new(text); + public static implicit operator ImU8String(Span text) => new(text); + public static implicit operator ImU8String(Memory text) => new(text); + public static implicit operator ImU8String(byte[]? text) => new(text.AsSpan()); + public static implicit operator ImU8String(ReadOnlySpan text) => new(text); + public static implicit operator ImU8String(ReadOnlyMemory text) => new(text); + public static implicit operator ImU8String(Span text) => new(text); + public static implicit operator ImU8String(Memory text) => new(text); + public static implicit operator ImU8String(char[]? text) => new(text.AsSpan()); + public static implicit operator ImU8String(string? text) => new(text); + public static unsafe implicit operator ImU8String(byte* text) => new(text); + public static unsafe implicit operator ImU8String(char* text) => new(text); + + public ref readonly byte GetPinnableReference() + { + if (this.IsNull) + return ref Unsafe.NullRef(); + + if (this.IsEmpty) + return ref this.FixedBufferSpan[0]; + + return ref this.Span.GetPinnableReference(); + } + + public ref readonly byte GetPinnableReference(ReadOnlySpan defaultValue) + { + if (this.IsNull) + return ref defaultValue.GetPinnableReference(); + + if (this.IsEmpty) + return ref this.FixedBufferSpan[0]; + + return ref this.Span.GetPinnableReference(); + } + + public ref readonly byte GetPinnableNullTerminatedReference(ReadOnlySpan defaultValue = default) + { + if (this.IsNull) + return ref defaultValue.GetPinnableReference(); + + if (this.IsEmpty) + { + ref var t = ref this.FixedBufferSpan[0]; + t = 0; + return ref t; + } + + if ((this.state & State.NullTerminated) == 0) + this.ConvertToOwned(); + + return ref this.Span[0]; + } + + private void ConvertToOwned() + { + if (Unsafe.IsNullRef(in this.externalFirstByte)) + return; + + Debug.Assert(this.rentedBuffer is null); + + if (this.Length + 1 < AllocFreeBufferSize) + { + var fixedBufferSpan = this.FixedBufferSpan; + this.Span.CopyTo(fixedBufferSpan); + fixedBufferSpan[this.Length] = 0; + } + else + { + var newBuffer = ArrayPool.Shared.Rent(this.Length + 1); + this.Span.CopyTo(newBuffer); + + newBuffer[this.Length] = 0; + this.rentedBuffer = newBuffer; + } + + this.state |= State.NullTerminated; + this.externalFirstByte = ref Unsafe.NullRef(); + } + + public void Dispose() + { + if (this.rentedBuffer is { } buf) + { + this.rentedBuffer = null; + ArrayPool.Shared.Return(buf); + } + } + + public ImU8String MoveOrDefault(ImU8String other) + { + if (!this.IsNull) + { + other.Dispose(); + var res = this; + this = default; + return res; + } + + return other; + } + + public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); + + public void AppendLiteral(string value) + { + if (string.IsNullOrEmpty(value)) + return; + + var remaining = this.RemainingBuffer; + var len = Encoding.UTF8.GetByteCount(value); + if (remaining.Length <= len) + this.IncreaseBuffer(out remaining, this.Length + len + 1); + this.Buffer[this.Length += Encoding.UTF8.GetBytes(value.AsSpan(), remaining)] = 0; + } + + public void AppendFormatted(ReadOnlySpan value) => this.AppendFormatted(value, null); + + public void AppendFormatted(ReadOnlySpan value, string? format) + { + var remaining = this.RemainingBuffer; + if (remaining.Length < value.Length + 1) + this.IncreaseBuffer(out remaining, this.Length + value.Length + 1); + value.CopyTo(remaining); + this.Buffer[this.Length += value.Length] = 0; + } + + public void AppendFormatted(ReadOnlySpan value, int alignment) => + this.AppendFormatted(value, alignment, null); + + public void AppendFormatted(ReadOnlySpan value, int alignment, string? format) + { + var startingPos = this.Length; + this.AppendFormatted(value, format); + FixAlignment(startingPos, alignment); + } + + public void AppendFormatted(ReadOnlySpan value) => this.AppendFormatted(value, null); + + public void AppendFormatted(ReadOnlySpan value, string? format) + { + var remaining = this.RemainingBuffer; + var len = Encoding.UTF8.GetByteCount(value); + if (remaining.Length < len + 1) + this.IncreaseBuffer(out remaining, this.Length + len + 1); + this.Buffer[this.Length += Encoding.UTF8.GetBytes(value, remaining)] = 0; + } + + public void AppendFormatted(ReadOnlySpan value, int alignment) => + this.AppendFormatted(value, alignment, null); + + public void AppendFormatted(ReadOnlySpan value, int alignment, string? format) + { + var startingPos = this.Length; + this.AppendFormatted(value, format); + FixAlignment(startingPos, alignment); + } + + public void AppendFormatted(object? value) => this.AppendFormatted(value!); + public void AppendFormatted(object? value, string? format) => this.AppendFormatted(value!, format); + public void AppendFormatted(object? value, int alignment) => this.AppendFormatted(value!, alignment); + public void AppendFormatted(object? value, int alignment, string? format) => + this.AppendFormatted(value!, alignment, format); + + public void AppendFormatted(T value) => this.AppendFormatted(value, null); + + public void AppendFormatted(T value, string? format) + { + var remaining = this.RemainingBuffer; + if (remaining.Length < 1) + this.IncreaseBuffer(out remaining); + + int written; + while (true) + { + var handler = new Utf8.TryWriteInterpolatedStringHandler(1, 1, remaining[..^1], this.formatProvider, out _); + handler.AppendFormatted(value, format); + if (Utf8.TryWrite(remaining, this.formatProvider, ref handler, out written)) + break; + this.IncreaseBuffer(out remaining); + } + + this.Buffer[this.Length += written] = 0; + } + + public void AppendFormatted(T value, int alignment) => this.AppendFormatted(value, alignment, null); + + public void AppendFormatted(T value, int alignment, string? format) + { + var startingPos = this.Length; + this.AppendFormatted(value, format); + FixAlignment(startingPos, alignment); + } + + public void Reserve(int length) + { + if (length >= AllocFreeBufferSize) + IncreaseBuffer(out _, length); + } + + private void FixAlignment(int startingPos, int alignment) + { + var appendedLength = this.Length - startingPos; + + var leftAlign = alignment < 0; + if (leftAlign) + alignment = -alignment; + + var fillLength = alignment - appendedLength; + if (fillLength <= 0) + return; + + var destination = this.Buffer; + if (fillLength > destination.Length - this.Length) + { + this.IncreaseBuffer(out _, fillLength + 1); + destination = this.Buffer; + } + + if (leftAlign) + { + destination.Slice(this.Length, fillLength).Fill((byte)' '); + } + else + { + destination.Slice(startingPos, appendedLength).CopyTo(destination[(startingPos + fillLength)..]); + destination.Slice(startingPos, fillLength).Fill((byte)' '); + } + + this.Buffer[this.Length += fillLength] = 0; + } + + private void IncreaseBuffer(out Span remaining, int minCapacity = 0) + { + minCapacity = Math.Max(minCapacity, Math.Max(this.Buffer.Length * 2, MinimumRentSize)); + var newBuffer = ArrayPool.Shared.Rent(minCapacity); + this.Span.CopyTo(newBuffer); + newBuffer[this.Length] = 0; + if (this.rentedBuffer is not null) + ArrayPool.Shared.Return(this.rentedBuffer); + + this.rentedBuffer = newBuffer; + this.externalFirstByte = ref Unsafe.NullRef(); + remaining = newBuffer.AsSpan(this.Length); + } + + [StructLayout(LayoutKind.Sequential, Size = AllocFreeBufferSize)] + private struct FixedBufferContainer; +} diff --git a/imgui/Dalamud.Bindings.ImGui/ImVector.cs b/imgui/Dalamud.Bindings.ImGui/ImVector.cs new file mode 100644 index 000000000..9a10c1d6b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/ImVector.cs @@ -0,0 +1,237 @@ +using System.Runtime.CompilerServices; + +namespace Dalamud.Bindings.ImGui; + +public unsafe struct ImVector +{ + public readonly int Size; + public readonly int Capacity; + public readonly void* Data; + + public ImVector(int size, int capacity, void* data) + { + Size = size; + Capacity = capacity; + Data = data; + } + + public ref T Ref(int index) + { + return ref Unsafe.AsRef((byte*)Data + index * Unsafe.SizeOf()); + } + + public IntPtr Address(int index) + { + return (IntPtr)((byte*)Data + index * Unsafe.SizeOf()); + } +} + +/// +/// A structure representing a dynamic array for unmanaged types. +/// +/// The type of elements in the vector, must be unmanaged. +public unsafe struct ImVector where T : unmanaged +{ + /// + /// Initializes a new instance of the struct with the specified size, capacity, and data pointer. + /// + /// The initial size of the vector. + /// The initial capacity of the vector. + /// Pointer to the initial data. + public ImVector(int size, int capacity, T* data) + { + this.size = size; + this.capacity = capacity; + this.data = data; + } + + private int size; + private int capacity; + private unsafe T* data; + + + /// + /// Gets or sets the element at the specified index. + /// + /// The zero-based index of the element to get or set. + /// The element at the specified index. + /// Thrown when the index is out of range. + public T this[int index] + { + get + { + if (index < 0 || index >= size) + { + throw new IndexOutOfRangeException(); + } + return data[index]; + } + set + { + if (index < 0 || index >= size) + { + throw new IndexOutOfRangeException(); + } + data[index] = value; + } + } + + /// + /// Gets a pointer to the first element of the vector. + /// + public readonly T* Data => data; + + /// + /// Gets a pointer to the first element of the vector. + /// + public readonly T* Front => data; + + /// + /// Gets a pointer to the last element of the vector. + /// + public readonly T* Back => size > 0 ? data + size - 1 : null; + + /// + /// Gets or sets the capacity of the vector. + /// + public int Capacity + { + readonly get => capacity; + set + { + if (capacity == value) + { + return; + } + + if (data == null) + { + data = (T*)ImGui.MemAlloc((nuint)(value * sizeof(T))); + } + else + { + int newSize = Math.Min(size, value); + T* newData = (T*)ImGui.MemAlloc((nuint)(value * sizeof(T))); + Buffer.MemoryCopy(data, newData, (nuint)(value * sizeof(T)), (nuint)(newSize * sizeof(T))); + ImGui.MemFree(data); + data = newData; + size = newSize; + } + + capacity = value; + + // Clear the rest of the data + for (int i = size; i < capacity; i++) + { + data[i] = default; + } + } + } + + /// + /// Gets the number of elements in the vector. + /// + public readonly int Size => size; + + /// + /// Grows the capacity of the vector to at least the specified value. + /// + /// The new capacity. + public void Grow(int newCapacity) + { + if (newCapacity > capacity) + { + Capacity = newCapacity * 2; + } + } + + /// + /// Ensures that the vector has at least the specified capacity. + /// + /// The minimum capacity required. + public void EnsureCapacity(int size) + { + if (size > capacity) + { + Grow(size); + } + } + + /// + /// Resizes the vector to the specified size. + /// + /// The new size of the vector. + public void Resize(int newSize) + { + EnsureCapacity(newSize); + size = newSize; + } + + /// + /// Clears all elements from the vector. + /// + public void Clear() + { + size = 0; + } + + /// + /// Adds an element to the end of the vector. + /// + /// The value to add. + public void PushBack(T value) + { + EnsureCapacity(size + 1); + data[size++] = value; + } + + /// + /// Removes the last element from the vector. + /// + public void PopBack() + { + if (size > 0) + { + size--; + } + } + + /// + /// Frees the memory allocated for the vector. + /// + public void Free() + { + if (data != null) + { + ImGui.MemFree(data); + data = null; + size = 0; + capacity = 0; + } + } + + public ref T Ref(int index) + { + return ref Unsafe.AsRef((byte*)Data + index * Unsafe.SizeOf()); + } + + public ref TCast Ref(int index) + { + return ref Unsafe.AsRef((byte*)Data + index * Unsafe.SizeOf()); + } + + public void* Address(int index) + { + return (byte*)Data + index * Unsafe.SizeOf(); + } + + public void* Address(int index) + { + return (byte*)Data + index * Unsafe.SizeOf(); + } + + public ImVector* ToUntyped() + { + return (ImVector*)Unsafe.AsPointer(ref this); + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs new file mode 100644 index 000000000..46d424749 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 uint ImHashDataNative(void* data, nuint dataSize, uint seed) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[688])(data, dataSize, seed); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[688])((nint)data, dataSize, seed); + #endif + } + + /// + /// To be documented. + /// + public static uint ImHashData(void* data, nuint dataSize, uint seed) + { + uint ret = ImHashDataNative(data, dataSize, seed); + return ret; + } + + /// + /// To be documented. + /// + public static uint ImHashData(void* data, nuint dataSize) + { + uint ret = ImHashDataNative(data, dataSize, (uint)(0)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImHashStrNative(byte* data, nuint dataSize, uint seed) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[689])(data, dataSize, seed); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[689])((nint)data, dataSize, seed); + #endif + } + + /// + /// To be documented. + /// + public static uint ImHashStr(byte* data, nuint dataSize, uint seed) + { + uint ret = ImHashStrNative(data, dataSize, seed); + return ret; + } + + /// + /// To be documented. + /// + public static uint ImHashStr(byte* data, nuint dataSize) + { + uint ret = ImHashStrNative(data, dataSize, (uint)(0)); + 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. + /// + public static uint ImHashStr(ref byte data, nuint 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, nuint 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, (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. + /// + public static uint ImHashStr(ReadOnlySpan data, nuint 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, nuint 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, (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. + /// + public static uint ImHashStr(string data, nuint 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, nuint 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, (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, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], int>, void>)funcTable[690])(baseValue, count, sizeOfElement, compareFunc); + #else + ((delegate* unmanaged[Cdecl])funcTable[690])((nint)baseValue, count, sizeOfElement, (nint)compareFunc); + #endif + } + + /// + /// To be documented. + /// + public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImAlphaBlendColorsNative(uint colA, uint colB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[691])(colA, colB); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[691])(colA, colB); + #endif + } + + /// + /// To be documented. + /// + public static uint ImAlphaBlendColors(uint colA, uint colB) + { + uint ret = ImAlphaBlendColorsNative(colA, colB); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImIsPowerOfTwoNative(int v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[692])(v); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[692])(v); + #endif + } + + /// + /// To be documented. + /// + public static bool ImIsPowerOfTwo(int v) + { + byte ret = ImIsPowerOfTwoNative(v); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImIsPowerOfTwoNative(ulong v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[693])(v); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[693])(v); + #endif + } + + /// + /// To be documented. + /// + public static bool ImIsPowerOfTwo(ulong v) + { + byte ret = ImIsPowerOfTwoNative(v); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImUpperPowerOfTwoNative(int v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[694])(v); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[694])(v); + #endif + } + + /// + /// To be documented. + /// + public static int ImUpperPowerOfTwo(int v) + { + int ret = ImUpperPowerOfTwoNative(v); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImStricmpNative(byte* str1, byte* str2) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[695])(str1, str2); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[695])((nint)str1, (nint)str2); + #endif + } + + /// + /// To be documented. + /// + public static int ImStricmp(byte* str1, byte* str2) + { + int ret = ImStricmpNative(str1, str2); + return ret; + } + + /// + /// To be documented. + /// + public static int ImStricmp(ref byte str1, byte* str2) + { + fixed (byte* pstr1 = &str1) + { + int ret = ImStricmpNative((byte*)pstr1, str2); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(ReadOnlySpan str1, byte* str2) + { + fixed (byte* pstr1 = str1) + { + int ret = ImStricmpNative((byte*)pstr1, str2); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(string str1, byte* str2) + { + 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 = ImStricmpNative(pStr0, str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImStricmp(byte* str1, ref byte str2) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStricmpNative(str1, (byte*)pstr2); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(byte* str1, ReadOnlySpan str2) + { + fixed (byte* pstr2 = str2) + { + int ret = ImStricmpNative(str1, (byte*)pstr2); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(byte* str1, string str2) + { + 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 = ImStricmpNative(str1, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImStricmp(ref byte str1, ref byte str2) + { + fixed (byte* pstr1 = &str1) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(ReadOnlySpan str1, ReadOnlySpan str2) + { + fixed (byte* pstr1 = str1) + { + fixed (byte* pstr2 = str2) + { + int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(string str1, string str2) + { + 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 = ImStricmpNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImStricmp(ref byte str1, ReadOnlySpan str2) + { + fixed (byte* pstr1 = &str1) + { + fixed (byte* pstr2 = str2) + { + int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(ref byte str1, string str2) + { + 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 = ImStricmpNative((byte*)pstr1, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(ReadOnlySpan str1, ref byte str2) + { + fixed (byte* pstr1 = str1) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(ReadOnlySpan str1, string str2) + { + 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 = ImStricmpNative((byte*)pstr1, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(string str1, ref byte str2) + { + 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 = ImStricmpNative(pStr0, (byte*)pstr2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImStricmp(string str1, ReadOnlySpan str2) + { + 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 = ImStricmpNative(pStr0, (byte*)pstr2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImStrnicmpNative(byte* str1, byte* str2, nuint count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[696])(str1, str2, count); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[696])((nint)str1, (nint)str2, count); + #endif + } + + /// + /// To be documented. + /// + public static int ImStrnicmp(byte* str1, byte* str2, nuint count) + { + int ret = ImStrnicmpNative(str1, str2, count); + return ret; + } + + /// + /// To be documented. + /// + public static int ImStrnicmp(ref byte str1, byte* str2, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImStrncpyNative(byte* dst, byte* src, nuint count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[697])(dst, src, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[697])((nint)dst, (nint)src, count); + #endif + } + + /// + /// To be documented. + /// + public static void ImStrncpy(byte* dst, byte* src, nuint count) + { + ImStrncpyNative(dst, src, count); + } + + /// + /// To be documented. + /// + public static void ImStrncpy(ref byte dst, byte* src, nuint count) + { + fixed (byte* pdst = &dst) + { + ImStrncpyNative((byte*)pdst, src, count); + } + } + + /// + /// To be documented. + /// + public static void ImStrncpy(ref string dst, byte* src, nuint 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, nuint count) + { + fixed (byte* psrc = &src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } + + /// + /// To be documented. + /// + public static void ImStrncpy(byte* dst, ReadOnlySpan src, nuint count) + { + fixed (byte* psrc = src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } + + /// + /// To be documented. + /// + public static void ImStrncpy(byte* dst, string src, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStrdupNative(byte* str) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[698])(str); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[698])((nint)str); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStrdup(byte* str) + { + byte* ret = ImStrdupNative(str); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrdupS(byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupNative(str)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrdup(ref byte str) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupNative((byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupS(ref byte str) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupNative((byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdup(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + byte* ret = ImStrdupNative((byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupS(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupNative((byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdup(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; + } + byte* ret = ImStrdupNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrdupS(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; + } + string ret = Utils.DecodeStringUTF8(ImStrdupNative(pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStrdupcpyNative(byte* dst, nuint* pDstSize, byte* str) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[699])(dst, pDstSize, str); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[699])((nint)dst, (nint)pDstSize, (nint)str); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) + { + byte* ret = ImStrdupcpyNative(dst, pDstSize, str); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, byte* str) + { + fixed (byte* pdst = &dst) + { + byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, str); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, byte* str) + { + fixed (byte* pdst = &dst) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, str)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref string dst, 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; + } + byte* ret = ImStrdupcpyNative(pStr0, pDstSize, str); + dst = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(ref string dst, 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; + } + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, str)); + dst = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ref byte str) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ref byte str) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, 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; + } + byte* ret = ImStrdupcpyNative(dst, pDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, 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; + } + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ref byte str) + { + fixed (byte* pdst = &dst) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ref byte str) + { + fixed (byte* pdst = &dst) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ReadOnlySpan str) + { + fixed (byte* pdst = &dst) + { + fixed (byte* pstr = str) + { + byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ReadOnlySpan str) + { + fixed (byte* pdst = &dst) + { + fixed (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref string dst, 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; + } + 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, pDstSize, 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, 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; + } + 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, pDstSize, 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, nuint* pDstSize, string str) + { + fixed (byte* pdst = &dst) + { + 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, pDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, string str) + { + fixed (byte* pdst = &dst) + { + 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, pDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrdupcpy(ref string dst, 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 (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative(pStr0, pDstSize, (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, 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 (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, (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, 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 (byte* pstr = str) + { + byte* ret = ImStrdupcpyNative(pStr0, pDstSize, (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, 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 (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, (byte*)pstr)); + dst = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[700])(strBegin, strEnd, c); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[700])((nint)strBegin, (nint)strEnd, c); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) + { + byte* ret = ImStrchrRangeNative(strBegin, strEnd, c); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(byte* strBegin, byte* strEnd, byte c) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, strEnd, c)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ref byte strBegin, byte* strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, strEnd, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ref byte strBegin, byte* strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, strEnd, c)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ReadOnlySpan strBegin, byte* strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, strEnd, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ReadOnlySpan strBegin, byte* strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, strEnd, c)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(string strBegin, byte* strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrchrRangeNative(pStr0, strEnd, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(string strBegin, byte* strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, strEnd, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(byte* strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(byte* strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(byte* strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(byte* strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(byte* strBegin, string strEnd, byte c) + { + 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; + } + byte* ret = ImStrchrRangeNative(strBegin, pStr0, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(byte* strBegin, string strEnd, byte c) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, pStr0, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ref byte strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ref byte strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ReadOnlySpan strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ReadOnlySpan strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(string strBegin, string strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, 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; + } + byte* ret = ImStrchrRangeNative(pStr0, pStr1, c); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(string strBegin, string strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, 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; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, pStr1, c)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ref byte strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ref byte strBegin, ReadOnlySpan strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ref byte strBegin, string strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + 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; + } + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, pStr0, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ref byte strBegin, string strEnd, byte c) + { + fixed (byte* pstrBegin = &strBegin) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, pStr0, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ReadOnlySpan strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ReadOnlySpan strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(ReadOnlySpan strBegin, string strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + 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; + } + byte* ret = ImStrchrRangeNative((byte*)pstrBegin, pStr0, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(ReadOnlySpan strBegin, string strEnd, byte c) + { + fixed (byte* pstrBegin = strBegin) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, pStr0, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(string strBegin, ref byte strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(string strBegin, ref byte strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrchrRange(string strBegin, ReadOnlySpan strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrchrRangeS(string strBegin, ReadOnlySpan strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImStrlenWNative(ushort* str) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[701])(str); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[701])((nint)str); + #endif + } + + /// + /// To be documented. + /// + public static int ImStrlenW(ushort* str) + { + int ret = ImStrlenWNative(str); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStreolRangeNative(byte* str, byte* strEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[702])(str, strEnd); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[702])((nint)str, (nint)strEnd); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(byte* str, byte* strEnd) + { + byte* ret = ImStreolRangeNative(str, strEnd); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(byte* str, byte* strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, strEnd)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStreolRangeNative((byte*)pstr, strEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, strEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ReadOnlySpan str, byte* strEnd) + { + fixed (byte* pstr = str) + { + byte* ret = ImStreolRangeNative((byte*)pstr, strEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ReadOnlySpan str, byte* strEnd) + { + fixed (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, strEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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; + } + byte* ret = ImStreolRangeNative(pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(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; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, strEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(byte* str, ReadOnlySpan strEnd) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(byte* str, ReadOnlySpan strEnd) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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; + } + byte* ret = ImStreolRangeNative(str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(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; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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; + } + byte* ret = ImStreolRangeNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(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; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ref byte str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ref byte str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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; + } + byte* ret = ImStreolRangeNative((byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(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; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(ReadOnlySpan str, ref byte strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(ReadOnlySpan str, ref byte strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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; + } + byte* ret = ImStreolRangeNative((byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(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; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(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) + { + byte* ret = ImStreolRangeNative(pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + 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 new file mode 100644 index 000000000..72b23b295 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, string 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* 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(haystack, pStr0, 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(byte* haystack, string haystackEnd, string 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* 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(haystack, pStr0, 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(byte* haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, 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; + } + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, 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; + } + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd)); + 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, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, string 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 (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* ret = ImStristrNative(pStr0, pStr1, pStr2, needleEnd); + 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, 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* 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, needleEnd)); + 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, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, string 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* 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((byte*)phaystack, pStr0, 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(ref byte haystack, string haystackEnd, string 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* 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((byte*)phaystack, pStr0, 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(ReadOnlySpan haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ref 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; + } + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan 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; + } + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string 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* 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((byte*)phaystack, pStr0, 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(ReadOnlySpan haystack, string haystackEnd, string 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* 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((byte*)phaystack, pStr0, 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(string haystack, ref 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* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref 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* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref 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* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref 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* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref 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; + } + 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* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, 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, ref 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; + } + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, 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(string haystack, ReadOnlySpan 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* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ReadOnlySpan 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* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ReadOnlySpan 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* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ReadOnlySpan 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* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ReadOnlySpan 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; + } + 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* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, 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, ReadOnlySpan 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; + } + 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; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, 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(string haystack, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, 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, 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd)); + 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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, 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, 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd)); + 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, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + 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, haystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + 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, haystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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; + } + 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, haystackEnd, 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, 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; + } + 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, haystackEnd, 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(ref byte haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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, haystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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, haystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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, haystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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, haystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, 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; + } + 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, 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(byte* haystack, string haystackEnd, 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; + } + 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, 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(byte* haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + 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(haystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + 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(haystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + 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(haystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + 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(haystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, 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* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, 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* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, 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* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, 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* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte 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(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 new file mode 100644 index 000000000..df197992c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs @@ -0,0 +1,5097 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static string ImStristrS(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) + { + 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, needle, (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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, (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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, needle, (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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, (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, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + 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, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + 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, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + 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, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + 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, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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; + } + 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, haystackEnd, 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, 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; + } + 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, haystackEnd, 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(ref byte haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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(ref byte haystack, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, string needle, ref 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, string needle, ReadOnlySpan 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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(ReadOnlySpan haystack, byte* haystackEnd, string needle, string 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* 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, haystackEnd, 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(string haystack, 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* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* 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, haystackEnd, (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, 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* 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, haystackEnd, (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, 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* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, 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* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, 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* 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, haystackEnd, (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, 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* 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, haystackEnd, (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, 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; + } + 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, haystackEnd, 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, 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; + } + 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, haystackEnd, 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, 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; + } + 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, haystackEnd, 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, 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; + } + 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, haystackEnd, 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, ref byte 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, ref byte 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, ReadOnlySpan 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, ReadOnlySpan 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, string haystackEnd, string 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; + } + 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(haystack, 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(byte* haystack, string haystackEnd, string 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; + } + 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(haystack, 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(byte* haystack, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte haystackEnd, ReadOnlySpan 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, ref byte haystackEnd, ReadOnlySpan 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, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte 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, ref byte 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, 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; + } + 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, 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 new file mode 100644 index 000000000..a886b0486 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs @@ -0,0 +1,5067 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte 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(ref byte haystack, ref byte haystackEnd, ref byte 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(ref byte haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan 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, ReadOnlySpan 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(ref byte haystack, ref byte 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(ref byte haystack, ref byte 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(ref byte haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (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(ref byte haystack, ref byte haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (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(ref byte haystack, ReadOnlySpan 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, ReadOnlySpan 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(ref byte haystack, ReadOnlySpan haystackEnd, ref byte 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(ref byte haystack, ReadOnlySpan haystackEnd, ref byte 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(ref byte haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan 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, ReadOnlySpan haystackEnd, ReadOnlySpan 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(ref byte 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(ref byte 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(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (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(ref byte haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + 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((byte*)phaystack, (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(ref byte haystack, string haystackEnd, ref 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* 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(ref byte haystack, string haystackEnd, ref 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* 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(ref byte haystack, string haystackEnd, ref 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* 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(ref byte haystack, string haystackEnd, ref 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* 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(ref byte haystack, string haystackEnd, ref 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; + } + 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(ref byte haystack, string haystackEnd, ref 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; + } + 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ReadOnlySpan 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(ReadOnlySpan 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, ref byte haystackEnd, ref byte 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, ref byte haystackEnd, ref byte 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(ReadOnlySpan haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan 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(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan 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, ref byte 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, ref byte 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(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (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(ReadOnlySpan haystack, ref byte haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (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(ReadOnlySpan haystack, ReadOnlySpan 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(ReadOnlySpan haystack, ReadOnlySpan 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, ref byte 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, ref byte 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(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan 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(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan 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, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (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(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + 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((byte*)phaystack, (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(ReadOnlySpan haystack, string haystackEnd, ref 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* 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, ref 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* 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, ref 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* 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, ref 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* 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, ref 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; + } + 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, ref 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; + } + 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, 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 new file mode 100644 index 000000000..e9231ce91 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static byte* ImStristr(string haystack, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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. + /// + public static byte* ImStristr(string haystack, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + 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, (byte*)pneedle, 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, 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; + } + 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; + } + fixed (byte* pneedle = &needle) + { + 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, (byte*)pneedle, 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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (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, string 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + 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, (byte*)pneedle, 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, 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; + } + 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; + } + fixed (byte* pneedle = needle) + { + 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, (byte*)pneedle, 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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd); + 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, 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; + } + 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; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd)); + 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, string 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; + } + 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd); + 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, 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; + } + 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; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd)); + 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImStrTrimBlanksNative(byte* str) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[705])(str); + #else + ((delegate* unmanaged[Cdecl])funcTable[705])((nint)str); + #endif + } + + /// + /// To be documented. + /// + public static void ImStrTrimBlanks(byte* str) + { + ImStrTrimBlanksNative(str); + } + + /// + /// To be documented. + /// + public static void ImStrTrimBlanks(ref byte str) + { + fixed (byte* pstr = &str) + { + ImStrTrimBlanksNative((byte*)pstr); + } + } + + /// + /// To be documented. + /// + public static void ImStrTrimBlanks(ref 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; + } + ImStrTrimBlanksNative(pStr0); + str = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStrSkipBlankNative(byte* str) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[706])(str); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[706])((nint)str); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStrSkipBlank(byte* str) + { + byte* ret = ImStrSkipBlankNative(str); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrSkipBlankS(byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(str)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStrSkipBlank(ref byte str) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrSkipBlankNative((byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrSkipBlankS(ref byte str) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative((byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrSkipBlank(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + byte* ret = ImStrSkipBlankNative((byte*)pstr); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStrSkipBlankS(ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative((byte*)pstr)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStrSkipBlank(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; + } + byte* ret = ImStrSkipBlankNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStrSkipBlankS(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; + } + string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImCharIsBlankANative(byte c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[707])(c); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[707])(c); + #endif + } + + /// + /// To be documented. + /// + public static bool ImCharIsBlankA(byte c) + { + byte ret = ImCharIsBlankANative(c); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImCharIsBlankWNative(uint c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[708])(c); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[708])(c); + #endif + } + + /// + /// To be documented. + /// + public static bool ImCharIsBlankW(uint c) + { + byte ret = ImCharIsBlankWNative(c); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[709])(outBuf, outBufEnd, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[709])((nint)outBuf, (nint)outBufEnd, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, byte* fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, fmt); + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, byte* fmt) + { + fixed (byte** poutBuf = &outBuf) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, fmt); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, byte* fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, fmt); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, byte* fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, fmt); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, 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; + } + ImFormatStringToTempBufferNative(outBuf, outBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, ref byte fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, ReadOnlySpan fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, string fmt) + { + fixed (byte** poutBuf = &outBuf) + { + 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; + } + ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, ref byte fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, ReadOnlySpan fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, string fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + 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; + } + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, ref byte fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, ReadOnlySpan fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, string fmt) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + 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; + } + ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[710])(outBuf, outBufEnd, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[710])((nint)outBuf, (nint)outBufEnd, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, fmt, args); + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, byte* fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, byte* fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, byte* fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, fmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, 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; + } + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, ref byte fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, ReadOnlySpan fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, string fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + 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; + } + ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, ReadOnlySpan fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, string fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + 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; + } + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, ReadOnlySpan fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = fmt) + { + ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + } + + /// + /// To be documented. + /// + public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, string fmt, nuint args) + { + fixed (byte** poutBuf = &outBuf) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + 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; + } + ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImParseFormatFindStartNative(byte* format) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[711])(format); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[711])((nint)format); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindStart(byte* format) + { + byte* ret = ImParseFormatFindStartNative(format); + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindStartS(byte* format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(format)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindStart(ref byte format) + { + fixed (byte* pformat = &format) + { + byte* ret = ImParseFormatFindStartNative((byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindStartS(ref byte format) + { + fixed (byte* pformat = &format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative((byte*)pformat)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindStart(ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte* ret = ImParseFormatFindStartNative((byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindStartS(ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative((byte*)pformat)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindStart(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 = ImParseFormatFindStartNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindStartS(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; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImParseFormatFindEndNative(byte* format) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[712])(format); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[712])((nint)format); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindEnd(byte* format) + { + byte* ret = ImParseFormatFindEndNative(format); + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindEndS(byte* format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(format)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindEnd(ref byte format) + { + fixed (byte* pformat = &format) + { + byte* ret = ImParseFormatFindEndNative((byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindEndS(ref byte format) + { + fixed (byte* pformat = &format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative((byte*)pformat)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindEnd(ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte* ret = ImParseFormatFindEndNative((byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindEndS(ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative((byte*)pformat)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatFindEnd(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 = ImParseFormatFindEndNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatFindEndS(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; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[713])(fmtIn, fmtOut, fmtOutSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[713])((nint)fmtIn, (nint)fmtOut, fmtOutSize); + #endif + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(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; + } + ImParseFormatSanitizeForPrintingNative(pStr0, fmtOut, fmtOutSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 new file mode 100644 index 000000000..61e059812 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ref byte inText, ref byte inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ref byte inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, ref byte inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(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 = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[719])(inText, inTextEnd); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[719])((nint)inText, (nint)inTextEnd); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ref byte inText, byte* inTextEnd) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, byte* inTextEnd) + { + fixed (byte* pinText = inText) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative(pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(byte* inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ref byte inText, ref byte inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ref byte inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, ref byte inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromChar(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 = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextCountUtf8BytesFromStrNative(ushort* inText, ushort* inTextEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[720])(inText, inTextEnd); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[720])((nint)inText, (nint)inTextEnd); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) + { + int ret = ImTextCountUtf8BytesFromStrNative(inText, inTextEnd); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[721])(filename, mode); + #else + return (ImFileHandle)((delegate* unmanaged[Cdecl])funcTable[721])((nint)filename, (nint)mode); + #endif + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(byte* filename, byte* mode) + { + ImFileHandle ret = ImFileOpenNative(filename, mode); + return ret; + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ref byte filename, byte* mode) + { + fixed (byte* pfilename = &filename) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ReadOnlySpan filename, byte* mode) + { + fixed (byte* pfilename = filename) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(string filename, byte* mode) + { + 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; + } + ImFileHandle ret = ImFileOpenNative(pStr0, mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(byte* filename, ref byte mode) + { + fixed (byte* pmode = &mode) + { + ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(byte* filename, ReadOnlySpan mode) + { + fixed (byte* pmode = mode) + { + ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(byte* filename, string mode) + { + 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; + } + ImFileHandle ret = ImFileOpenNative(filename, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ref byte filename, ref byte mode) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = &mode) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ReadOnlySpan filename, ReadOnlySpan mode) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = mode) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(string filename, string mode) + { + 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; + } + ImFileHandle ret = ImFileOpenNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ref byte filename, ReadOnlySpan mode) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = mode) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ref byte filename, string mode) + { + 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; + } + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ReadOnlySpan filename, ref byte mode) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = &mode) + { + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(ReadOnlySpan filename, string mode) + { + 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; + } + ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(string filename, ref byte mode) + { + 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) + { + ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFileHandle ImFileOpen(string filename, ReadOnlySpan mode) + { + 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) + { + ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImFileCloseNative(ImFileHandle file) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[722])(file); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[722])(file); + #endif + } + + /// + /// To be documented. + /// + public static bool ImFileClose(ImFileHandle file) + { + byte ret = ImFileCloseNative(file); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImFileGetSizeNative(ImFileHandle file) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[723])(file); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[723])(file); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImFileGetSize(ImFileHandle file) + { + ulong ret = ImFileGetSizeNative(file); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[724])(data, size, count, file); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[724])((nint)data, size, count, file); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImFileReadNative(data, size, count, file); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[725])(data, size, count, file); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[725])((nint)data, size, count, file); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImFileWriteNative(data, size, count, file); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[726])(filename, mode, outFileSize, paddingBytes); + #else + 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, nuint* outFileSize, int paddingBytes) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, byte* mode) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, byte* mode, int paddingBytes) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), paddingBytes); + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize) + { + fixed (byte* pfilename = &filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, byte* mode) + { + fixed (byte* pfilename = &filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, byte* mode, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize) + { + fixed (byte* pfilename = filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode) + { + fixed (byte* pfilename = filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, byte* mode, 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, byte* mode, 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, byte* mode) + { + 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, byte* 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ref byte mode) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ref byte mode, int paddingBytes) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, int paddingBytes) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, string mode) + { + 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; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(byte* filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, 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, 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, (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(string filename, string mode) + { + 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), (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(string filename, string 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; + } + 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; + } + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), paddingBytes); + 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, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, nuint* outFileSize) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, int paddingBytes) + { + fixed (byte* pfilename = &filename) + { + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, string mode) + { + 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ref byte filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, int paddingBytes) + { + fixed (byte* pfilename = filename) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode) + { + 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, 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; + } + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ref byte mode, 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) + { + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ref byte mode, 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) + { + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ref byte mode) + { + 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), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ref byte 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. + /// + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, 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) + { + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, 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) + { + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode) + { + 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), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + 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 new file mode 100644 index 000000000..8e4414279 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 ClipWithNative(ImRect* self, ImRect r) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[796])(self, r); + #else + ((delegate* unmanaged[Cdecl])funcTable[796])((nint)self, r); + #endif + } + + /// + /// To be documented. + /// + public static void ClipWith(ImRectPtr self, ImRect r) + { + ClipWithNative(self, r); + } + + /// + /// To be documented. + /// + public static void ClipWith(ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + ClipWithNative((ImRect*)pself, r); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClipWithFullNative(ImRect* self, ImRect r) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[797])(self, r); + #else + ((delegate* unmanaged[Cdecl])funcTable[797])((nint)self, r); + #endif + } + + /// + /// To be documented. + /// + public static void ClipWithFull(ImRectPtr self, ImRect r) + { + ClipWithFullNative(self, r); + } + + /// + /// To be documented. + /// + public static void ClipWithFull(ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + ClipWithFullNative((ImRect*)pself, r); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FloorNative(ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[798])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[798])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Floor(ImRectPtr self) + { + FloorNative(self); + } + + /// + /// To be documented. + /// + public static void Floor(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + FloorNative((ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInvertedNative(ImRect* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[799])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[799])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInverted(ImRectPtr self) + { + byte ret = IsInvertedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInverted(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + byte ret = IsInvertedNative((ImRect*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ToVec4Native(Vector4* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[800])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[800])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 ToVec4(ImRectPtr self) + { + Vector4 ret; + ToVec4Native(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void ToVec4(Vector4* pOut, ImRectPtr self) + { + ToVec4Native(pOut, self); + } + + /// + /// To be documented. + /// + public static void ToVec4(ref Vector4 pOut, ImRectPtr self) + { + fixed (Vector4* ppOut = &pOut) + { + ToVec4Native((Vector4*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector4 ToVec4(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector4 ret; + ToVec4Native(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void ToVec4(Vector4* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ToVec4Native(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void ToVec4(ref Vector4 pOut, ref ImRect self) + { + fixed (Vector4* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + ToVec4Native((Vector4*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImBitArrayTestBitNative(uint* arr, int n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[801])(arr, n); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[801])((nint)arr, n); + #endif + } + + /// + /// To be documented. + /// + public static bool ImBitArrayTestBit(uint* arr, int n) + { + byte ret = ImBitArrayTestBitNative(arr, n); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBitArrayClearBitNative(uint* arr, int n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[802])(arr, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[802])((nint)arr, n); + #endif + } + + /// + /// To be documented. + /// + public static void ImBitArrayClearBit(uint* arr, int n) + { + ImBitArrayClearBitNative(arr, n); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBitArraySetBitNative(uint* arr, int n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[803])(arr, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[803])((nint)arr, n); + #endif + } + + /// + /// To be documented. + /// + public static void ImBitArraySetBit(uint* arr, int n) + { + ImBitArraySetBitNative(arr, n); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBitArraySetBitRangeNative(uint* arr, int n, int n2) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[804])(arr, n, n2); + #else + ((delegate* unmanaged[Cdecl])funcTable[804])((nint)arr, n, n2); + #endif + } + + /// + /// To be documented. + /// + public static void ImBitArraySetBitRange(uint* arr, int n, int n2) + { + ImBitArraySetBitRangeNative(arr, n, n2); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CreateNative(ImBitVector* self, int sz) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[805])(self, sz); + #else + ((delegate* unmanaged[Cdecl])funcTable[805])((nint)self, sz); + #endif + } + + /// + /// To be documented. + /// + public static void Create(ImBitVectorPtr self, int sz) + { + CreateNative(self, sz); + } + + /// + /// To be documented. + /// + public static void Create(ref ImBitVector self, int sz) + { + fixed (ImBitVector* pself = &self) + { + CreateNative((ImBitVector*)pself, sz); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImBitVector* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[806])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[806])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImBitVectorPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImBitVector self) + { + fixed (ImBitVector* pself = &self) + { + ClearNative((ImBitVector*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TestBitNative(ImBitVector* self, int n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[807])(self, n); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[807])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static bool TestBit(ImBitVectorPtr self, int n) + { + byte ret = TestBitNative(self, n); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TestBit(ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + byte ret = TestBitNative((ImBitVector*)pself, n); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetBitNative(ImBitVector* self, int n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[808])(self, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[808])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static void SetBit(ImBitVectorPtr self, int n) + { + SetBitNative(self, n); + } + + /// + /// To be documented. + /// + public static void SetBit(ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + SetBitNative((ImBitVector*)pself, n); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearBitNative(ImBitVector* self, int n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[809])(self, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[809])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static void ClearBit(ImBitVectorPtr self, int n) + { + ClearBitNative(self, n); + } + + /// + /// To be documented. + /// + public static void ClearBit(ref ImBitVector self, int n) + { + fixed (ImBitVector* pself = &self) + { + ClearBitNative((ImBitVector*)pself, n); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawListSharedData* ImDrawListSharedDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[810])(); + #else + return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl])funcTable[810])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListSharedDataPtr ImDrawListSharedData() + { + ImDrawListSharedDataPtr ret = ImDrawListSharedDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCircleTessellationMaxErrorNative(ImDrawListSharedData* self, float maxError) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[811])(self, maxError); + #else + ((delegate* unmanaged[Cdecl])funcTable[811])((nint)self, maxError); + #endif + } + + /// + /// To be documented. + /// + public static void SetCircleTessellationMaxError(ImDrawListSharedDataPtr self, float maxError) + { + SetCircleTessellationMaxErrorNative(self, maxError); + } + + /// + /// To be documented. + /// + public static void SetCircleTessellationMaxError(ref ImDrawListSharedData self, float maxError) + { + fixed (ImDrawListSharedData* pself = &self) + { + SetCircleTessellationMaxErrorNative((ImDrawListSharedData*)pself, maxError); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImDrawDataBuilder* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[812])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[812])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImDrawDataBuilderPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + ClearNative((ImDrawDataBuilder*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFreeMemoryNative(ImDrawDataBuilder* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[813])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[813])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ImDrawDataBuilderPtr self) + { + ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + ClearFreeMemoryNative((ImDrawDataBuilder*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetDrawListCountNative(ImDrawDataBuilder* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[814])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[814])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetDrawListCount(ImDrawDataBuilderPtr self) + { + int ret = GetDrawListCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetDrawListCount(ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + int ret = GetDrawListCountNative((ImDrawDataBuilder*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FlattenIntoSingleLayerNative(ImDrawDataBuilder* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[815])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[815])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void FlattenIntoSingleLayer(ImDrawDataBuilderPtr self) + { + FlattenIntoSingleLayerNative(self); + } + + /// + /// To be documented. + /// + public static void FlattenIntoSingleLayer(ref ImDrawDataBuilder self) + { + fixed (ImDrawDataBuilder* pself = &self) + { + FlattenIntoSingleLayerNative((ImDrawDataBuilder*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, int v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[816])(idx, v); + #else + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[816])(idx, v); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, int v) + { + ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, float v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[817])(idx, v); + #else + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[817])(idx, v); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, float v) + { + ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, Vector2 v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[818])(idx, v); + #else + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[818])(idx, v); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) + { + ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiComboPreviewData* ImGuiComboPreviewDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[819])(); + #else + return (ImGuiComboPreviewData*)((delegate* unmanaged[Cdecl])funcTable[819])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiComboPreviewDataPtr ImGuiComboPreviewData() + { + ImGuiComboPreviewDataPtr ret = ImGuiComboPreviewDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiMenuColumns* ImGuiMenuColumnsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[820])(); + #else + return (ImGuiMenuColumns*)((delegate* unmanaged[Cdecl])funcTable[820])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiMenuColumnsPtr ImGuiMenuColumns() + { + ImGuiMenuColumnsPtr ret = ImGuiMenuColumnsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateNative(ImGuiMenuColumns* self, float spacing, byte windowReappearing) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[821])(self, spacing, windowReappearing); + #else + ((delegate* unmanaged[Cdecl])funcTable[821])((nint)self, spacing, windowReappearing); + #endif + } + + /// + /// To be documented. + /// + public static void Update(ImGuiMenuColumnsPtr self, float spacing, bool windowReappearing) + { + UpdateNative(self, spacing, windowReappearing ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void Update(ref ImGuiMenuColumns self, float spacing, bool windowReappearing) + { + fixed (ImGuiMenuColumns* pself = &self) + { + UpdateNative((ImGuiMenuColumns*)pself, spacing, windowReappearing ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float DeclColumnsNative(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[822])(self, wIcon, wLabel, wShortcut, wMark); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[822])((nint)self, wIcon, wLabel, wShortcut, wMark); + #endif + } + + /// + /// To be documented. + /// + public static float DeclColumns(ImGuiMenuColumnsPtr self, float wIcon, float wLabel, float wShortcut, float wMark) + { + float ret = DeclColumnsNative(self, wIcon, wLabel, wShortcut, wMark); + return ret; + } + + /// + /// To be documented. + /// + public static float DeclColumns(ref ImGuiMenuColumns self, float wIcon, float wLabel, float wShortcut, float wMark) + { + fixed (ImGuiMenuColumns* pself = &self) + { + float ret = DeclColumnsNative((ImGuiMenuColumns*)pself, wIcon, wLabel, wShortcut, wMark); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcNextTotalWidthNative(ImGuiMenuColumns* self, byte updateOffsets) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[823])(self, updateOffsets); + #else + ((delegate* unmanaged[Cdecl])funcTable[823])((nint)self, updateOffsets); + #endif + } + + /// + /// To be documented. + /// + public static void CalcNextTotalWidth(ImGuiMenuColumnsPtr self, bool updateOffsets) + { + CalcNextTotalWidthNative(self, updateOffsets ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void CalcNextTotalWidth(ref ImGuiMenuColumns self, bool updateOffsets) + { + fixed (ImGuiMenuColumns* pself = &self) + { + CalcNextTotalWidthNative((ImGuiMenuColumns*)pself, updateOffsets ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiInputTextState* ImGuiInputTextStateNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[824])(); + #else + return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl])funcTable[824])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiInputTextStatePtr ImGuiInputTextState() + { + ImGuiInputTextStatePtr ret = ImGuiInputTextStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearTextNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[825])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[825])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearText(ImGuiInputTextStatePtr self) + { + ClearTextNative(self); + } + + /// + /// To be documented. + /// + public static void ClearText(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ClearTextNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFreeMemoryNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[826])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[826])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ImGuiInputTextStatePtr self) + { + ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ClearFreeMemoryNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetUndoAvailCountNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[827])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[827])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetUndoAvailCount(ImGuiInputTextStatePtr self) + { + int ret = GetUndoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetUndoAvailCount(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = GetUndoAvailCountNative((ImGuiInputTextState*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetRedoAvailCountNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[828])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[828])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetRedoAvailCount(ImGuiInputTextStatePtr self) + { + int ret = GetRedoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetRedoAvailCount(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = GetRedoAvailCountNative((ImGuiInputTextState*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OnKeyPressedNative(ImGuiInputTextState* self, int key) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[829])(self, key); + #else + ((delegate* unmanaged[Cdecl])funcTable[829])((nint)self, key); + #endif + } + + /// + /// To be documented. + /// + public static void OnKeyPressed(ImGuiInputTextStatePtr self, int key) + { + OnKeyPressedNative(self, key); + } + + /// + /// To be documented. + /// + public static void OnKeyPressed(ref ImGuiInputTextState self, int key) + { + fixed (ImGuiInputTextState* pself = &self) + { + OnKeyPressedNative((ImGuiInputTextState*)pself, key); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CursorAnimResetNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[830])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[830])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void CursorAnimReset(ImGuiInputTextStatePtr self) + { + CursorAnimResetNative(self); + } + + /// + /// To be documented. + /// + public static void CursorAnimReset(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + CursorAnimResetNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CursorClampNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[831])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[831])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void CursorClamp(ImGuiInputTextStatePtr self) + { + CursorClampNative(self); + } + + /// + /// To be documented. + /// + public static void CursorClamp(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + CursorClampNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasSelectionNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[832])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[832])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasSelection(ImGuiInputTextStatePtr self) + { + byte ret = HasSelectionNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasSelection(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + byte ret = HasSelectionNative((ImGuiInputTextState*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearSelectionNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[833])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[833])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearSelection(ImGuiInputTextStatePtr self) + { + ClearSelectionNative(self); + } + + /// + /// To be documented. + /// + public static void ClearSelection(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + ClearSelectionNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetCursorPosNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[834])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[834])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetCursorPos(ImGuiInputTextStatePtr self) + { + int ret = GetCursorPosNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetCursorPos(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = GetCursorPosNative((ImGuiInputTextState*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetSelectionStartNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[835])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[835])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetSelectionStart(ImGuiInputTextStatePtr self) + { + int ret = GetSelectionStartNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetSelectionStart(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = GetSelectionStartNative((ImGuiInputTextState*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetSelectionEndNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[836])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[836])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetSelectionEnd(ImGuiInputTextStatePtr self) + { + int ret = GetSelectionEndNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetSelectionEnd(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + int ret = GetSelectionEndNative((ImGuiInputTextState*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SelectAllNative(ImGuiInputTextState* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[837])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[837])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void SelectAll(ImGuiInputTextStatePtr self) + { + SelectAllNative(self); + } + + /// + /// To be documented. + /// + public static void SelectAll(ref ImGuiInputTextState self) + { + fixed (ImGuiInputTextState* pself = &self) + { + SelectAllNative((ImGuiInputTextState*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPopupData* ImGuiPopupDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[838])(); + #else + return (ImGuiPopupData*)((delegate* unmanaged[Cdecl])funcTable[838])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPopupDataPtr ImGuiPopupData() + { + ImGuiPopupDataPtr ret = ImGuiPopupDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiNextWindowData* ImGuiNextWindowDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[839])(); + #else + return (ImGuiNextWindowData*)((delegate* unmanaged[Cdecl])funcTable[839])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiNextWindowDataPtr ImGuiNextWindowData() + { + ImGuiNextWindowDataPtr ret = ImGuiNextWindowDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFlagsNative(ImGuiNextWindowData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[840])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[840])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFlags(ImGuiNextWindowDataPtr self) + { + ClearFlagsNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFlags(ref ImGuiNextWindowData self) + { + fixed (ImGuiNextWindowData* pself = &self) + { + ClearFlagsNative((ImGuiNextWindowData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiNextItemData* ImGuiNextItemDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[841])(); + #else + return (ImGuiNextItemData*)((delegate* unmanaged[Cdecl])funcTable[841])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiNextItemDataPtr ImGuiNextItemData() + { + ImGuiNextItemDataPtr ret = ImGuiNextItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFlagsNative(ImGuiNextItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[842])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[842])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFlags(ImGuiNextItemDataPtr self) + { + ClearFlagsNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFlags(ref ImGuiNextItemData self) + { + fixed (ImGuiNextItemData* pself = &self) + { + ClearFlagsNative((ImGuiNextItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiLastItemData* ImGuiLastItemDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[843])(); + #else + return (ImGuiLastItemData*)((delegate* unmanaged[Cdecl])funcTable[843])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiLastItemDataPtr ImGuiLastItemData() + { + ImGuiLastItemDataPtr ret = ImGuiLastItemDataNative(); + 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(void* ptr) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[847])(ptr); + #else + return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[847])((nint)ptr); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(void* ptr) + { + ImGuiPtrOrIndexPtr ret = ImGuiPtrOrIndexNative(ptr); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(int index) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[848])(index); + #else + return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[848])(index); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(int index) + { + ImGuiPtrOrIndexPtr ret = ImGuiPtrOrIndexNative(index); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiInputEvent* ImGuiInputEventNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[849])(); + #else + return (ImGuiInputEvent*)((delegate* unmanaged[Cdecl])funcTable[849])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiInputEventPtr ImGuiInputEvent() + { + ImGuiInputEventPtr ret = ImGuiInputEventNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiListClipperRange FromIndicesNative(int min, int max) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[850])(min, max); + #else + return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[850])(min, max); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiListClipperRange FromIndices(int min, int max) + { + ImGuiListClipperRange ret = FromIndicesNative(min, max); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiListClipperRange FromPositionsNative(float y1, float y2, int offMin, int offMax) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[851])(y1, y2, offMin, offMax); + #else + return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[851])(y1, y2, offMin, offMax); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) + { + ImGuiListClipperRange ret = FromPositionsNative(y1, y2, offMin, offMax); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiListClipperData* ImGuiListClipperDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[852])(); + #else + return (ImGuiListClipperData*)((delegate* unmanaged[Cdecl])funcTable[852])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiListClipperDataPtr ImGuiListClipperData() + { + ImGuiListClipperDataPtr ret = ImGuiListClipperDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImGuiListClipperData* self, ImGuiListClipper* clipper) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[853])(self, clipper); + #else + ((delegate* unmanaged[Cdecl])funcTable[853])((nint)self, (nint)clipper); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImGuiListClipperDataPtr self, ImGuiListClipperPtr clipper) + { + ResetNative(self, clipper); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImGuiListClipperData self, ImGuiListClipperPtr clipper) + { + fixed (ImGuiListClipperData* pself = &self) + { + ResetNative((ImGuiListClipperData*)pself, clipper); + } + } + + /// + /// To be documented. + /// + public static void Reset(ImGuiListClipperDataPtr self, ref ImGuiListClipper clipper) + { + fixed (ImGuiListClipper* pclipper = &clipper) + { + ResetNative(self, (ImGuiListClipper*)pclipper); + } + } + + /// + /// To be documented. + /// + public static void Reset(ref ImGuiListClipperData self, ref ImGuiListClipper clipper) + { + fixed (ImGuiListClipperData* pself = &self) + { + fixed (ImGuiListClipper* pclipper = &clipper) + { + ResetNative((ImGuiListClipperData*)pself, (ImGuiListClipper*)pclipper); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiNavItemData* ImGuiNavItemDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[854])(); + #else + return (ImGuiNavItemData*)((delegate* unmanaged[Cdecl])funcTable[854])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiNavItemDataPtr ImGuiNavItemData() + { + ImGuiNavItemDataPtr ret = ImGuiNavItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImGuiNavItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[855])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[855])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImGuiNavItemDataPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImGuiNavItemData self) + { + fixed (ImGuiNavItemData* pself = &self) + { + 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 new file mode 100644 index 000000000..bf1832ee3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static ImGuiTableSettingsPtr ImGuiTableSettings() + { + ImGuiTableSettingsPtr ret = ImGuiTableSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableColumnSettings* GetColumnSettingsNative(ImGuiTableSettings* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[913])(self); + #else + return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl])funcTable[913])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnSettingsPtr GetColumnSettings(ImGuiTableSettingsPtr self) + { + ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnSettingsPtr GetColumnSettings(ref ImGuiTableSettings self) + { + fixed (ImGuiTableSettings* pself = &self) + { + ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative((ImGuiTableSettings*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* GetCurrentWindowReadNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[914])(); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[914])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr GetCurrentWindowRead() + { + ImGuiWindowPtr ret = GetCurrentWindowReadNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* GetCurrentWindowNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[915])(); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[915])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr GetCurrentWindow() + { + ImGuiWindowPtr ret = GetCurrentWindowNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* FindWindowByIDNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[916])(id); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[916])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindWindowByID(uint id) + { + ImGuiWindowPtr ret = FindWindowByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* FindWindowByNameNative(byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[917])(name); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[917])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindWindowByName(byte* name) + { + ImGuiWindowPtr ret = FindWindowByNameNative(name); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindWindowByName(ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindWindowByName(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindWindowByName(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 = FindWindowByNameNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateWindowParentAndRootLinksNative(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parentWindow) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[918])(window, flags, parentWindow); + #else + ((delegate* unmanaged[Cdecl])funcTable[918])((nint)window, flags, (nint)parentWindow); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) + { + UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); + } + + /// + /// To be documented. + /// + public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, parentWindow); + } + } + + /// + /// To be documented. + /// + public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) + { + fixed (ImGuiWindow* pparentWindow = &parentWindow) + { + UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); + } + } + + /// + /// To be documented. + /// + public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* pparentWindow = &parentWindow) + { + UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcWindowNextAutoFitSizeNative(Vector2* pOut, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[919])(pOut, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[919])((nint)pOut, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) + { + Vector2 ret; + CalcWindowNextAutoFitSizeNative(&ret, window); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindowPtr window) + { + CalcWindowNextAutoFitSizeNative(pOut, window); + } + + /// + /// To be documented. + /// + public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ImGuiWindowPtr window) + { + fixed (Vector2* ppOut = &pOut) + { + CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, window); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcWindowNextAutoFitSize(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + CalcWindowNextAutoFitSizeNative(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcWindowNextAutoFitSize(Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ref ImGuiWindow window) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowChildOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[920])(window, potentialParent, popupHierarchy, dockHierarchy); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[920])((nint)window, (nint)potentialParent, popupHierarchy, dockHierarchy); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowChildOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) + { + byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowChildOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowChildOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowChildOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowWithinBeginStackOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[921])(window, potentialParent); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[921])((nint)window, (nint)potentialParent); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent) + { + byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, potentialParent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowAboveNative(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[922])(potentialAbove, potentialBelow); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[922])((nint)potentialAbove, (nint)potentialBelow); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) + { + byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ImGuiWindowPtr potentialBelow) + { + fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) + { + byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, potentialBelow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ref ImGuiWindow potentialBelow) + { + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) + { + byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ref ImGuiWindow potentialBelow) + { + fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) + { + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) + { + byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsWindowNavFocusableNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[923])(window); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[923])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static bool IsWindowNavFocusable(ImGuiWindowPtr window) + { + byte ret = IsWindowNavFocusableNative(window); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsWindowNavFocusable(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = IsWindowNavFocusableNative((ImGuiWindow*)pwindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowPosNative(ImGuiWindow* window, Vector2 pos, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[924])(window, pos, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[924])((nint)window, pos, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos, ImGuiCond cond) + { + SetWindowPosNative(window, pos, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos) + { + SetWindowPosNative(window, pos, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowPosNative((ImGuiWindow*)pwindow, pos, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowPosNative((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowSizeNative(ImGuiWindow* window, Vector2 size, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[925])(window, size, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[925])((nint)window, size, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size, ImGuiCond cond) + { + SetWindowSizeNative(window, size, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size) + { + SetWindowSizeNative(window, size, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ref ImGuiWindow window, Vector2 size, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowSizeNative((ImGuiWindow*)pwindow, size, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowSize(ref ImGuiWindow window, Vector2 size) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowSizeNative((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowCollapsedNative(ImGuiWindow* window, byte collapsed, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[926])(window, collapsed, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[926])((nint)window, collapsed, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed, ImGuiCond cond) + { + SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed) + { + SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); + } + } + + /// + /// To be documented. + /// + public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowHitTestHoleNative(ImGuiWindow* window, Vector2 pos, Vector2 size) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[927])(window, pos, size); + #else + ((delegate* unmanaged[Cdecl])funcTable[927])((nint)window, pos, size); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowHitTestHole(ImGuiWindowPtr window, Vector2 pos, Vector2 size) + { + SetWindowHitTestHoleNative(window, pos, size); + } + + /// + /// To be documented. + /// + public static void SetWindowHitTestHole(ref ImGuiWindow window, Vector2 pos, Vector2 size) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowHitTestHoleNative((ImGuiWindow*)pwindow, pos, size); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void WindowRectAbsToRelNative(ImRect* pOut, ImGuiWindow* window, ImRect r) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[928])(pOut, window, r); + #else + ((delegate* unmanaged[Cdecl])funcTable[928])((nint)pOut, (nint)window, r); + #endif + } + + /// + /// To be documented. + /// + public static ImRect WindowRectAbsToRel(ImGuiWindowPtr window, ImRect r) + { + ImRect ret; + WindowRectAbsToRelNative(&ret, window, r); + return ret; + } + + /// + /// To be documented. + /// + public static void WindowRectAbsToRel(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) + { + WindowRectAbsToRelNative(pOut, window, r); + } + + /// + /// To be documented. + /// + public static void WindowRectAbsToRel(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + WindowRectAbsToRelNative((ImRect*)ppOut, window, r); + } + } + + /// + /// To be documented. + /// + public static ImRect WindowRectAbsToRel(ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + WindowRectAbsToRelNative(&ret, (ImGuiWindow*)pwindow, r); + return ret; + } + } + + /// + /// To be documented. + /// + public static void WindowRectAbsToRel(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); + } + } + + /// + /// To be documented. + /// + public static void WindowRectAbsToRel(ref ImRect pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectAbsToRelNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void WindowRectRelToAbsNative(ImRect* pOut, ImGuiWindow* window, ImRect r) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[929])(pOut, window, r); + #else + ((delegate* unmanaged[Cdecl])funcTable[929])((nint)pOut, (nint)window, r); + #endif + } + + /// + /// To be documented. + /// + public static ImRect WindowRectRelToAbs(ImGuiWindowPtr window, ImRect r) + { + ImRect ret; + WindowRectRelToAbsNative(&ret, window, r); + return ret; + } + + /// + /// To be documented. + /// + public static void WindowRectRelToAbs(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) + { + WindowRectRelToAbsNative(pOut, window, r); + } + + /// + /// To be documented. + /// + public static void WindowRectRelToAbs(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + WindowRectRelToAbsNative((ImRect*)ppOut, window, r); + } + } + + /// + /// To be documented. + /// + public static ImRect WindowRectRelToAbs(ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + WindowRectRelToAbsNative(&ret, (ImGuiWindow*)pwindow, r); + return ret; + } + } + + /// + /// To be documented. + /// + public static void WindowRectRelToAbs(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); + } + } + + /// + /// To be documented. + /// + public static void WindowRectRelToAbs(ref ImRect pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectRelToAbsNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FocusWindowNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[930])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[930])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void FocusWindow(ImGuiWindowPtr window) + { + FocusWindowNative(window); + } + + /// + /// To be documented. + /// + public static void FocusWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + FocusWindowNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FocusTopMostWindowUnderOneNative(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[931])(underThisWindow, ignoreWindow); + #else + ((delegate* unmanaged[Cdecl])funcTable[931])((nint)underThisWindow, (nint)ignoreWindow); + #endif + } + + /// + /// To be documented. + /// + public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow) + { + FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow); + } + + /// + /// To be documented. + /// + public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ImGuiWindowPtr ignoreWindow) + { + fixed (ImGuiWindow* punderThisWindow = &underThisWindow) + { + FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, ignoreWindow); + } + } + + /// + /// To be documented. + /// + public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ref ImGuiWindow ignoreWindow) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow); + } + } + + /// + /// To be documented. + /// + public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ref ImGuiWindow ignoreWindow) + { + fixed (ImGuiWindow* punderThisWindow = &underThisWindow) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BringWindowToFocusFrontNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[932])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[932])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void BringWindowToFocusFront(ImGuiWindowPtr window) + { + BringWindowToFocusFrontNative(window); + } + + /// + /// To be documented. + /// + public static void BringWindowToFocusFront(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + BringWindowToFocusFrontNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BringWindowToDisplayFrontNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[933])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[933])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayFront(ImGuiWindowPtr window) + { + BringWindowToDisplayFrontNative(window); + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayFront(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + BringWindowToDisplayFrontNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BringWindowToDisplayBackNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[934])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[934])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBack(ImGuiWindowPtr window) + { + BringWindowToDisplayBackNative(window); + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBack(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + BringWindowToDisplayBackNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BringWindowToDisplayBehindNative(ImGuiWindow* window, ImGuiWindow* aboveWindow) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[935])(window, aboveWindow); + #else + ((delegate* unmanaged[Cdecl])funcTable[935])((nint)window, (nint)aboveWindow); + #endif + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) + { + BringWindowToDisplayBehindNative(window, aboveWindow); + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ImGuiWindowPtr aboveWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, aboveWindow); + } + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ref ImGuiWindow aboveWindow) + { + fixed (ImGuiWindow* paboveWindow = &aboveWindow) + { + BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); + } + } + + /// + /// To be documented. + /// + public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ref ImGuiWindow aboveWindow) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiWindow* paboveWindow = &aboveWindow) + { + BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int FindWindowDisplayIndexNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[936])(window); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[936])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static int FindWindowDisplayIndex(ImGuiWindowPtr window) + { + int ret = FindWindowDisplayIndexNative(window); + return ret; + } + + /// + /// To be documented. + /// + public static int FindWindowDisplayIndex(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + int ret = FindWindowDisplayIndexNative((ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[937])(window); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[937])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) + { + ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative((ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCurrentFontNative(ImFont* font) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[938])(font); + #else + ((delegate* unmanaged[Cdecl])funcTable[938])((nint)font); + #endif + } + + /// + /// To be documented. + /// + public static void SetCurrentFont(ImFontPtr font) + { + SetCurrentFontNative(font); + } + + /// + /// To be documented. + /// + public static void SetCurrentFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + SetCurrentFontNative((ImFont*)pfont); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* GetDefaultFontNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[939])(); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[939])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr GetDefaultFont() + { + ImFontPtr ret = GetDefaultFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetForegroundDrawListNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[940])(window); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[940])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) + { + ImDrawListPtr ret = GetForegroundDrawListNative(window); + return ret; + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetForegroundDrawList(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void InitializeNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[941])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[941])(); + #endif + } + + /// + /// To be documented. + /// + public static void Initialize() + { + InitializeNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShutdownNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[942])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[942])(); + #endif + } + + /// + /// To be documented. + /// + public static void Shutdown() + { + ShutdownNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateInputEventsNative(byte trickleFastInputs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[943])(trickleFastInputs); + #else + ((delegate* unmanaged[Cdecl])funcTable[943])(trickleFastInputs); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateInputEvents(bool trickleFastInputs) + { + UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateHoveredWindowAndCaptureFlagsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[944])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[944])(); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateHoveredWindowAndCaptureFlags() + { + UpdateHoveredWindowAndCaptureFlagsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StartMouseMovingWindowNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[945])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[945])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindow(ImGuiWindowPtr window) + { + StartMouseMovingWindowNative(window); + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + StartMouseMovingWindowNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StartMouseMovingWindowOrNodeNative(ImGuiWindow* window, ImGuiDockNode* node, byte undockFloatingNode) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[946])(window, node, undockFloatingNode); + #else + ((delegate* unmanaged[Cdecl])funcTable[946])((nint)window, (nint)node, undockFloatingNode); + #endif + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undockFloatingNode) + { + StartMouseMovingWindowOrNodeNative(window, node, undockFloatingNode ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ImGuiDockNodePtr node, bool undockFloatingNode) + { + fixed (ImGuiWindow* pwindow = &window) + { + StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ref ImGuiDockNode node, bool undockFloatingNode) + { + fixed (ImGuiDockNode* pnode = &node) + { + StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ref ImGuiDockNode node, bool undockFloatingNode) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiDockNode* pnode = &node) + { + StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateMouseMovingWindowNewFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[947])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[947])(); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateMouseMovingWindowNewFrame() + { + UpdateMouseMovingWindowNewFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateMouseMovingWindowEndFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[948])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[948])(); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateMouseMovingWindowEndFrame() + { + UpdateMouseMovingWindowEndFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint AddContextHookNative(ImGuiContext* context, ImGuiContextHook* hook) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[949])(context, hook); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[949])((nint)context, (nint)hook); + #endif + } + + /// + /// To be documented. + /// + public static uint AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) + { + uint ret = AddContextHookNative(context, hook); + return ret; + } + + /// + /// To be documented. + /// + public static uint AddContextHook(ref ImGuiContext context, ImGuiContextHookPtr hook) + { + fixed (ImGuiContext* pcontext = &context) + { + uint ret = AddContextHookNative((ImGuiContext*)pcontext, hook); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint AddContextHook(ImGuiContextPtr context, ref ImGuiContextHook hook) + { + fixed (ImGuiContextHook* phook = &hook) + { + uint ret = AddContextHookNative(context, (ImGuiContextHook*)phook); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint AddContextHook(ref ImGuiContext context, ref ImGuiContextHook hook) + { + fixed (ImGuiContext* pcontext = &context) + { + fixed (ImGuiContextHook* phook = &hook) + { + uint ret = AddContextHookNative((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RemoveContextHookNative(ImGuiContext* context, uint hookToRemove) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[950])(context, hookToRemove); + #else + ((delegate* unmanaged[Cdecl])funcTable[950])((nint)context, hookToRemove); + #endif + } + + /// + /// To be documented. + /// + public static void RemoveContextHook(ImGuiContextPtr context, uint hookToRemove) + { + RemoveContextHookNative(context, hookToRemove); + } + + /// + /// To be documented. + /// + public static void RemoveContextHook(ref ImGuiContext context, uint hookToRemove) + { + fixed (ImGuiContext* pcontext = &context) + { + RemoveContextHookNative((ImGuiContext*)pcontext, hookToRemove); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CallContextHooksNative(ImGuiContext* context, ImGuiContextHookType type) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[951])(context, type); + #else + ((delegate* unmanaged[Cdecl])funcTable[951])((nint)context, type); + #endif + } + + /// + /// To be documented. + /// + public static void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) + { + CallContextHooksNative(context, type); + } + + /// + /// To be documented. + /// + public static void CallContextHooks(ref ImGuiContext context, ImGuiContextHookType type) + { + fixed (ImGuiContext* pcontext = &context) + { + CallContextHooksNative((ImGuiContext*)pcontext, type); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TranslateWindowsInViewportNative(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[952])(viewport, oldPos, newPos); + #else + ((delegate* unmanaged[Cdecl])funcTable[952])((nint)viewport, oldPos, newPos); + #endif + } + + /// + /// To be documented. + /// + public static void TranslateWindowsInViewport(ImGuiViewportPPtr viewport, Vector2 oldPos, Vector2 newPos) + { + TranslateWindowsInViewportNative(viewport, oldPos, newPos); + } + + /// + /// To be documented. + /// + public static void TranslateWindowsInViewport(ref ImGuiViewportP viewport, Vector2 oldPos, Vector2 newPos) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + TranslateWindowsInViewportNative((ImGuiViewportP*)pviewport, oldPos, newPos); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScaleWindowsInViewportNative(ImGuiViewportP* viewport, float scale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[953])(viewport, scale); + #else + ((delegate* unmanaged[Cdecl])funcTable[953])((nint)viewport, scale); + #endif + } + + /// + /// To be documented. + /// + public static void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) + { + ScaleWindowsInViewportNative(viewport, scale); + } + + /// + /// To be documented. + /// + public static void ScaleWindowsInViewport(ref ImGuiViewportP viewport, float scale) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + ScaleWindowsInViewportNative((ImGuiViewportP*)pviewport, scale); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyPlatformWindowNative(ImGuiViewportP* viewport) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[954])(viewport); + #else + ((delegate* unmanaged[Cdecl])funcTable[954])((nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static void DestroyPlatformWindow(ImGuiViewportPPtr viewport) + { + DestroyPlatformWindowNative(viewport); + } + + /// + /// To be documented. + /// + public static void DestroyPlatformWindow(ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DestroyPlatformWindowNative((ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[955])(window, viewport); + #else + ((delegate* unmanaged[Cdecl])funcTable[955])((nint)window, (nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) + { + SetWindowViewportNative(window, viewport); + } + + /// + /// To be documented. + /// + public static void SetWindowViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowViewportNative((ImGuiWindow*)pwindow, viewport); + } + } + + /// + /// To be documented. + /// + public static void SetWindowViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + public static void SetWindowViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetWindowViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCurrentViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[956])(window, viewport); + #else + ((delegate* unmanaged[Cdecl])funcTable[956])((nint)window, (nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) + { + SetCurrentViewportNative(window, viewport); + } + + /// + /// To be documented. + /// + public static void SetCurrentViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + 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 new file mode 100644 index 000000000..473d8c16e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs @@ -0,0 +1,5053 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void LogSetNextTextDecoration(ReadOnlySpan 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(string prefix, ref 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; + } + fixed (byte* psuffix = &suffix) + { + LogSetNextTextDecorationNative(pStr0, (byte*)psuffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(string prefix, ReadOnlySpan 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; + } + fixed (byte* psuffix = suffix) + { + LogSetNextTextDecorationNative(pStr0, (byte*)psuffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1009])(name, id, sizeArg, border, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1009])((nint)name, id, sizeArg, border, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginChildEx(byte* name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) + { + byte ret = BeginChildExNative(name, id, sizeArg, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginChildEx(ref byte name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginChildExNative((byte*)pname, id, sizeArg, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChildEx(ReadOnlySpan name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginChildExNative((byte*)pname, id, sizeArg, border ? (byte)1 : (byte)0, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginChildEx(string name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags 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 = BeginChildExNative(pStr0, id, sizeArg, border ? (byte)1 : (byte)0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OpenPopupExNative(uint id, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1010])(id, popupFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1010])(id, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) + { + OpenPopupExNative(id, popupFlags); + } + + /// + /// To be documented. + /// + public static void OpenPopupEx(uint id) + { + OpenPopupExNative(id, (ImGuiPopupFlags)(ImGuiPopupFlags.None)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClosePopupToLevelNative(int remaining, byte restoreFocusToWindowUnderPopup) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); + #else + ((delegate* unmanaged[Cdecl])funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); + #endif + } + + /// + /// To be documented. + /// + public static void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) + { + ClosePopupToLevelNative(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClosePopupsOverWindowNative(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1012])(refWindow, restoreFocusToWindowUnderPopup); + #else + ((delegate* unmanaged[Cdecl])funcTable[1012])((nint)refWindow, restoreFocusToWindowUnderPopup); + #endif + } + + /// + /// To be documented. + /// + public static void ClosePopupsOverWindow(ImGuiWindowPtr refWindow, bool restoreFocusToWindowUnderPopup) + { + ClosePopupsOverWindowNative(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ClosePopupsOverWindow(ref ImGuiWindow refWindow, bool restoreFocusToWindowUnderPopup) + { + fixed (ImGuiWindow* prefWindow = &refWindow) + { + ClosePopupsOverWindowNative((ImGuiWindow*)prefWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClosePopupsExceptModalsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1013])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1013])(); + #endif + } + + /// + /// To be documented. + /// + public static void ClosePopupsExceptModals() + { + ClosePopupsExceptModalsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPopupOpenNative(uint id, ImGuiPopupFlags popupFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1014])(id, popupFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1014])(id, popupFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) + { + byte ret = IsPopupOpenNative(id, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPopupExNative(uint id, ImGuiWindowFlags extraFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1015])(id, extraFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1015])(id, extraFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) + { + byte ret = BeginPopupExNative(id, extraFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginTooltipExNative(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1016])(tooltipFlags, extraWindowFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1016])(tooltipFlags, extraWindowFlags); + #endif + } + + /// + /// To be documented. + /// + public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) + { + BeginTooltipExNative(tooltipFlags, extraWindowFlags); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetPopupAllowedExtentRectNative(ImRect* pOut, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1017])(pOut, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1017])((nint)pOut, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static ImRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) + { + ImRect ret; + GetPopupAllowedExtentRectNative(&ret, window); + return ret; + } + + /// + /// To be documented. + /// + public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ImGuiWindowPtr window) + { + GetPopupAllowedExtentRectNative(pOut, window); + } + + /// + /// To be documented. + /// + public static void GetPopupAllowedExtentRect(ref ImRect pOut, ImGuiWindowPtr window) + { + fixed (ImRect* ppOut = &pOut) + { + GetPopupAllowedExtentRectNative((ImRect*)ppOut, window); + } + } + + /// + /// To be documented. + /// + public static ImRect GetPopupAllowedExtentRect(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + GetPopupAllowedExtentRectNative(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetPopupAllowedExtentRectNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + public static void GetPopupAllowedExtentRect(ref ImRect pOut, ref ImGuiWindow window) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetPopupAllowedExtentRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* GetTopMostPopupModalNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1018])(); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[1018])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr GetTopMostPopupModal() + { + ImGuiWindowPtr ret = GetTopMostPopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* GetTopMostAndVisiblePopupModalNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1019])(); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[1019])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr GetTopMostAndVisiblePopupModal() + { + ImGuiWindowPtr ret = GetTopMostAndVisiblePopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FindBestWindowPosForPopupNative(Vector2* pOut, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1020])(pOut, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1020])((nint)pOut, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 FindBestWindowPosForPopup(ImGuiWindowPtr window) + { + Vector2 ret; + FindBestWindowPosForPopupNative(&ret, window); + return ret; + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindowPtr window) + { + FindBestWindowPosForPopupNative(pOut, window); + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopup(ref Vector2 pOut, ImGuiWindowPtr window) + { + fixed (Vector2* ppOut = &pOut) + { + FindBestWindowPosForPopupNative((Vector2*)ppOut, window); + } + } + + /// + /// To be documented. + /// + public static Vector2 FindBestWindowPosForPopup(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + FindBestWindowPosForPopupNative(&ret, (ImGuiWindow*)pwindow); + return ret; + } + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopup(Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + FindBestWindowPosForPopupNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopup(ref Vector2 pOut, ref ImGuiWindow window) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + FindBestWindowPosForPopupNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FindBestWindowPosForPopupExNative(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1021])(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + #else + ((delegate* unmanaged[Cdecl])funcTable[1021])((nint)pOut, refPos, size, (nint)lastDir, rOuter, rAvoid, policy); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 FindBestWindowPosForPopupEx(Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + Vector2 ret; + FindBestWindowPosForPopupExNative(&ret, refPos, size, lastDir, rOuter, rAvoid, policy); + return ret; + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + FindBestWindowPosForPopupExNative(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + + /// + /// To be documented. + /// + public static void FindBestWindowPosForPopupEx(ref Vector2 pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + fixed (Vector2* ppOut = &pOut) + { + FindBestWindowPosForPopupExNative((Vector2*)ppOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1022])(name, viewport, dir, size, windowFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1022])((nint)name, (nint)viewport, dir, size, windowFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(byte* name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + byte ret = BeginViewportSideBarNative(name, viewport, dir, size, windowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(ref byte name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (byte* pname = &name) + { + byte ret = BeginViewportSideBarNative((byte*)pname, viewport, dir, size, windowFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(ReadOnlySpan name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (byte* pname = name) + { + byte ret = BeginViewportSideBarNative((byte*)pname, viewport, dir, size, windowFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(string name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + 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 = BeginViewportSideBarNative(pStr0, viewport, dir, size, windowFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(byte* name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + byte ret = BeginViewportSideBarNative(name, (ImGuiViewport*)pviewport, dir, size, windowFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(ref byte name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (byte* pname = &name) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + byte ret = BeginViewportSideBarNative((byte*)pname, (ImGuiViewport*)pviewport, dir, size, windowFlags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(ReadOnlySpan name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + fixed (byte* pname = name) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + byte ret = BeginViewportSideBarNative((byte*)pname, (ImGuiViewport*)pviewport, dir, size, windowFlags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginViewportSideBar(string name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) + { + 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 (ImGuiViewport* pviewport = &viewport) + { + byte ret = BeginViewportSideBarNative(pStr0, (ImGuiViewport*)pviewport, dir, size, windowFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginMenuExNative(byte* label, byte* icon, byte enabled) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1023])(label, icon, enabled); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1023])((nint)label, (nint)icon, enabled); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, byte* icon, bool enabled) + { + byte ret = BeginMenuExNative(label, icon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, byte* icon) + { + byte ret = BeginMenuExNative(label, icon, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, byte* icon, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = BeginMenuExNative((byte*)plabel, icon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, byte* icon) + { + fixed (byte* plabel = &label) + { + byte ret = BeginMenuExNative((byte*)plabel, icon, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, byte* icon, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = BeginMenuExNative((byte*)plabel, icon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, byte* icon) + { + fixed (byte* plabel = label) + { + byte ret = BeginMenuExNative((byte*)plabel, icon, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(string label, byte* icon, 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 = BeginMenuExNative(pStr0, icon, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(string label, 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; + } + byte ret = BeginMenuExNative(pStr0, icon, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, ref byte icon, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, ref byte icon) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, ReadOnlySpan icon, bool enabled) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, ReadOnlySpan icon) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(byte* label, string icon, 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 = BeginMenuExNative(label, pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(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 = BeginMenuExNative(label, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, ref byte icon, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, ref byte icon) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, ReadOnlySpan icon, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, ReadOnlySpan icon) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(string label, string icon, 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 = BeginMenuExNative(pStr0, pStr1, 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 BeginMenuEx(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 = BeginMenuExNative(pStr0, pStr1, (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 BeginMenuEx(ref byte label, ReadOnlySpan icon, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, ReadOnlySpan icon) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ref byte label, string icon, 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 = BeginMenuExNative((byte*)plabel, pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(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 = BeginMenuExNative((byte*)plabel, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, ref byte icon, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, ref byte icon) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(ReadOnlySpan label, string icon, 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 = BeginMenuExNative((byte*)plabel, pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(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 = BeginMenuExNative((byte*)plabel, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(string label, ref byte icon, 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 = BeginMenuExNative(pStr0, (byte*)picon, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(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 = BeginMenuExNative(pStr0, (byte*)picon, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(string label, ReadOnlySpan icon, 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 = BeginMenuExNative(pStr0, (byte*)picon, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginMenuEx(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 = BeginMenuExNative(pStr0, (byte*)picon, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1024])(label, icon, shortcut, selected, enabled); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1024])((nint)label, (nint)icon, (nint)shortcut, selected, enabled); + #endif + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut, bool selected, bool enabled) + { + byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut, bool selected) + { + byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut) + { + byte ret = MenuItemExNative(label, icon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon) + { + byte ret = MenuItemExNative(label, icon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, bool selected) + { + byte ret = MenuItemExNative(label, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, bool selected, bool enabled) + { + byte ret = MenuItemExNative(label, icon, (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, byte* icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, 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, byte* shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, byte* shortcut) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, bool selected) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, byte* shortcut) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, bool selected) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, 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; + } + byte ret = MenuItemExNative(pStr0, icon, 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, 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; + } + byte ret = MenuItemExNative(pStr0, icon, 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, 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; + } + byte ret = MenuItemExNative(pStr0, icon, shortcut, (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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), (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 new file mode 100644 index 000000000..171c74377 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan 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, string icon, ref 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; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, 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(byte* label, string icon, ref 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; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, 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(byte* label, string icon, ref 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; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, pStr0, (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, string icon, ReadOnlySpan 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; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, 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(byte* label, string icon, ReadOnlySpan 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; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, 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(byte* label, string icon, ReadOnlySpan 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; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (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, ref byte icon, ref byte shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string 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 (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* pStr2 = null; + int pStrSize2 = 0; + if (shortcut != null) + { + pStrSize2 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + 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 MenuItemEx(string label, string 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 (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* pStr2 = null; + int pStrSize2 = 0; + if (shortcut != null) + { + pStrSize2 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, (byte)(1)); + 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 MenuItemEx(string label, string 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 (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* pStr2 = null; + int pStrSize2 = 0; + if (shortcut != null) + { + pStrSize2 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, pStr2, (byte)(0), (byte)(1)); + 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 MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (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, ref byte icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (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(ref byte label, ref byte icon, string shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (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(ref byte label, ref byte icon, string shortcut) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (byte*)picon, 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, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (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, ReadOnlySpan icon, ref byte shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ref byte shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (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, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (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(ref byte label, ReadOnlySpan icon, string shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (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(ref byte label, ReadOnlySpan icon, string shortcut) + { + fixed (byte* plabel = &label) + { + 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((byte*)plabel, (byte*)picon, 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, string icon, ref 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; + } + 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(ref byte label, string icon, ref 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; + } + 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(ref byte label, string icon, ref 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; + } + 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ReadOnlySpan label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, 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, ref byte shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ref byte shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, 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, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (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(ReadOnlySpan label, ref byte icon, string shortcut, bool selected) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (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(ReadOnlySpan label, ref byte icon, string shortcut) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (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(ReadOnlySpan label, ReadOnlySpan icon, string shortcut, bool selected) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (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(ReadOnlySpan label, ReadOnlySpan icon, string shortcut) + { + fixed (byte* plabel = label) + { + 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((byte*)plabel, (byte*)picon, pStr0, (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, ref 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; + } + 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, ref 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; + } + 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, ref 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; + } + 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, 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 new file mode 100644 index 000000000..e21e476a7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs @@ -0,0 +1,5021 @@ +// ------------------------------------------------------------------------------ +// +// 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 DockNodeEndAmendTabBarNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1076])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1076])(); + #endif + } + + /// + /// To be documented. + /// + public static void DockNodeEndAmendTabBar() + { + DockNodeEndAmendTabBarNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1077])(node); + #else + return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1077])((nint)node); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) + { + ImGuiDockNodePtr ret = DockNodeGetRootNodeNative(node); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + ImGuiDockNodePtr ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1078])(node, parent); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1078])((nint)node, (nint)parent); + #endif + } + + /// + /// To be documented. + /// + public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) + { + byte ret = DockNodeIsInHierarchyOfNative(node, parent); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent) + { + fixed (ImGuiDockNode* pnode = &node) + { + byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent) + { + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent) + { + fixed (ImGuiDockNode* pnode = &node) + { + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int DockNodeGetDepthNative(ImGuiDockNode* node) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1079])(node); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1079])((nint)node); + #endif + } + + /// + /// To be documented. + /// + public static int DockNodeGetDepth(ImGuiDockNodePtr node) + { + int ret = DockNodeGetDepthNative(node); + return ret; + } + + /// + /// To be documented. + /// + public static int DockNodeGetDepth(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1080])(node); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1080])((nint)node); + #endif + } + + /// + /// To be documented. + /// + public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) + { + uint ret = DockNodeGetWindowMenuButtonIdNative(node); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + uint ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockNode* GetWindowDockNodeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1081])(); + #else + return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1081])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr GetWindowDockNode() + { + ImGuiDockNodePtr ret = GetWindowDockNodeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1082])(window); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1082])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) + { + byte ret = GetWindowAlwaysWantOwnTabBarNative(window); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginDockedNative(ImGuiWindow* window, bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1083])(window, pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[1083])((nint)window, (nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen) + { + BeginDockedNative(window, pOpen); + } + + /// + /// To be documented. + /// + public static void BeginDocked(ref ImGuiWindow window, bool* pOpen) + { + fixed (ImGuiWindow* pwindow = &window) + { + BeginDockedNative((ImGuiWindow*)pwindow, pOpen); + } + } + + /// + /// To be documented. + /// + public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + BeginDockedNative(window, (bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (bool* ppOpen = &pOpen) + { + BeginDockedNative((ImGuiWindow*)pwindow, (bool*)ppOpen); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginDockableDragDropSourceNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1084])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1084])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void BeginDockableDragDropSource(ImGuiWindowPtr window) + { + BeginDockableDragDropSourceNative(window); + } + + /// + /// To be documented. + /// + public static void BeginDockableDragDropSource(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginDockableDragDropTargetNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1085])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1085])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void BeginDockableDragDropTarget(ImGuiWindowPtr window) + { + BeginDockableDragDropTargetNative(window); + } + + /// + /// To be documented. + /// + public static void BeginDockableDragDropTarget(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowDockNative(ImGuiWindow* window, uint dockId, ImGuiCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1086])(window, dockId, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[1086])((nint)window, dockId, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond) + { + SetWindowDockNative(window, dockId, cond); + } + + /// + /// To be documented. + /// + public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1087])(windowName, nodeId); + #else + ((delegate* unmanaged[Cdecl])funcTable[1087])((nint)windowName, nodeId); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderDockWindow(byte* windowName, uint nodeId) + { + DockBuilderDockWindowNative(windowName, nodeId); + } + + /// + /// To be documented. + /// + public static void DockBuilderDockWindow(ref byte windowName, uint nodeId) + { + fixed (byte* pwindowName = &windowName) + { + DockBuilderDockWindowNative((byte*)pwindowName, nodeId); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderDockWindow(ReadOnlySpan windowName, uint nodeId) + { + fixed (byte* pwindowName = windowName) + { + DockBuilderDockWindowNative((byte*)pwindowName, nodeId); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderDockWindow(string windowName, uint nodeId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (windowName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(windowName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(windowName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderDockWindowNative(pStr0, nodeId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId); + #else + return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId) + { + ImGuiDockNodePtr ret = DockBuilderGetNodeNative(nodeId); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId); + #else + return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId) + { + ImGuiDockNodePtr ret = DockBuilderGetCentralNodeNative(nodeId); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockBuilderAddNodeNative(uint nodeId, ImGuiDockNodeFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId, flags); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId, flags); + #endif + } + + /// + /// To be documented. + /// + public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) + { + uint ret = DockBuilderAddNodeNative(nodeId, flags); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockBuilderAddNode(uint nodeId) + { + uint ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockBuilderAddNode() + { + uint ret = DockBuilderAddNodeNative((uint)(0), (ImGuiDockNodeFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags) + { + uint ret = DockBuilderAddNodeNative((uint)(0), flags); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderRemoveNodeNative(uint nodeId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId); + #else + ((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderRemoveNode(uint nodeId) + { + DockBuilderRemoveNodeNative(nodeId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId, clearSettingsRefs); + #else + ((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId, clearSettingsRefs); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs) + { + DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void DockBuilderRemoveNodeDockedWindows(uint nodeId) + { + DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderRemoveNodeChildNodesNative(uint nodeId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId); + #else + ((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderRemoveNodeChildNodes(uint nodeId) + { + DockBuilderRemoveNodeChildNodesNative(nodeId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, pos); + #else + ((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, pos); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) + { + DockBuilderSetNodePosNative(nodeId, pos); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, size); + #else + ((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, size); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) + { + DockBuilderSetNodeSizeNative(nodeId, size); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockBuilderSplitNodeNative(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, (nint)outIdAtDir, (nint)outIdAtOppositeDir); + #endif + } + + /// + /// To be documented. + /// + public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]>*, void>)funcTable[1097])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + #else + ((delegate* unmanaged[Cdecl])funcTable[1097])(srcDockspaceId, dstDockspaceId, (nint)inWindowRemapPairs); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) + { + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector> inWindowRemapPairs) + { + fixed (ImVector>* pinWindowRemapPairs = &inWindowRemapPairs) + { + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVector>*)pinWindowRemapPairs); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); + #else + ((delegate* unmanaged[Cdecl])funcTable[1098])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + { + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs) + { + fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs) + { + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1099])(srcName, dstName); + #else + ((delegate* unmanaged[Cdecl])funcTable[1099])((nint)srcName, (nint)dstName); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, dstName); + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ref byte srcName, byte* dstName) + { + fixed (byte* psrcName = &srcName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, byte* dstName) + { + fixed (byte* psrcName = srcName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(string srcName, byte* dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (srcName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(srcName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderCopyWindowSettingsNative(pStr0, dstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(byte* srcName, ref byte dstName) + { + fixed (byte* pdstName = &dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(byte* srcName, ReadOnlySpan dstName) + { + fixed (byte* pdstName = dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(byte* srcName, string dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (dstName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(dstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderCopyWindowSettingsNative(srcName, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ref byte srcName, ref byte dstName) + { + fixed (byte* psrcName = &srcName) + { + fixed (byte* pdstName = &dstName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ReadOnlySpan dstName) + { + fixed (byte* psrcName = srcName) + { + fixed (byte* pdstName = dstName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(string srcName, string dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (srcName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(srcName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (dstName != null) + { + pStrSize1 = Utils.GetByteCountUTF8(dstName); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(dstName, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + DockBuilderCopyWindowSettingsNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ref byte srcName, ReadOnlySpan dstName) + { + fixed (byte* psrcName = &srcName) + { + fixed (byte* pdstName = dstName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ref byte srcName, string dstName) + { + fixed (byte* psrcName = &srcName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (dstName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(dstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ref byte dstName) + { + fixed (byte* psrcName = srcName) + { + fixed (byte* pdstName = &dstName) + { + DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, string dstName) + { + fixed (byte* psrcName = srcName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (dstName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(dstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(string srcName, ref byte dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (srcName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(srcName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pdstName = &dstName) + { + DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DockBuilderCopyWindowSettings(string srcName, ReadOnlySpan dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (srcName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(srcName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pdstName = dstName) + { + DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockBuilderFinishNative(uint nodeId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1100])(nodeId); + #else + ((delegate* unmanaged[Cdecl])funcTable[1100])(nodeId); + #endif + } + + /// + /// To be documented. + /// + public static void DockBuilderFinish(uint nodeId) + { + DockBuilderFinishNative(nodeId); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsDragDropActiveNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1101])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1101])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsDragDropActive() + { + byte ret = IsDragDropActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropTargetCustomNative(ImRect bb, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1102])(bb, id); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1102])(bb, id); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropTargetCustom(ImRect bb, uint id) + { + byte ret = BeginDragDropTargetCustomNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearDragDropNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1103])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1103])(); + #endif + } + + /// + /// To be documented. + /// + public static void ClearDragDrop() + { + ClearDragDropNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsDragDropPayloadBeingAcceptedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1104])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1104])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsDragDropPayloadBeingAccepted() + { + byte ret = IsDragDropPayloadBeingAcceptedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1105])(window, clipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[1105])((nint)window, clipRect); + #endif + } + + /// + /// To be documented. + /// + public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect) + { + SetWindowClipRectBeforeSetChannelNative(window, clipRect); + } + + /// + /// To be documented. + /// + public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetWindowClipRectBeforeSetChannelNative((ImGuiWindow*)pwindow, clipRect); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1106])(strId, count, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1106])((nint)strId, count, flags); + #endif + } + + /// + /// To be documented. + /// + public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags) + { + BeginColumnsNative(strId, count, flags); + } + + /// + /// To be documented. + /// + public static void BeginColumns(byte* strId, int count) + { + BeginColumnsNative(strId, count, (ImGuiOldColumnFlags)(0)); + } + + /// + /// To be documented. + /// + public static void BeginColumns(ref byte strId, int count, ImGuiOldColumnFlags flags) + { + fixed (byte* pstrId = &strId) + { + BeginColumnsNative((byte*)pstrId, count, flags); + } + } + + /// + /// To be documented. + /// + public static void BeginColumns(ref byte strId, int count) + { + fixed (byte* pstrId = &strId) + { + BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void BeginColumns(ReadOnlySpan strId, int count, ImGuiOldColumnFlags flags) + { + fixed (byte* pstrId = strId) + { + BeginColumnsNative((byte*)pstrId, count, flags); + } + } + + /// + /// To be documented. + /// + public static void BeginColumns(ReadOnlySpan strId, int count) + { + fixed (byte* pstrId = strId) + { + BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void BeginColumns(string strId, int count, ImGuiOldColumnFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + BeginColumnsNative(pStr0, count, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void BeginColumns(string strId, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + BeginColumnsNative(pStr0, count, (ImGuiOldColumnFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndColumnsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1107])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1107])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndColumns() + { + EndColumnsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushColumnClipRectNative(int columnIndex) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1108])(columnIndex); + #else + ((delegate* unmanaged[Cdecl])funcTable[1108])(columnIndex); + #endif + } + + /// + /// To be documented. + /// + public static void PushColumnClipRect(int columnIndex) + { + PushColumnClipRectNative(columnIndex); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushColumnsBackgroundNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1109])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1109])(); + #endif + } + + /// + /// To be documented. + /// + public static void PushColumnsBackground() + { + PushColumnsBackgroundNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopColumnsBackgroundNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1110])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1110])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopColumnsBackground() + { + PopColumnsBackgroundNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetColumnsIDNative(byte* strId, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1111])(strId, count); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1111])((nint)strId, count); + #endif + } + + /// + /// To be documented. + /// + public static uint GetColumnsID(byte* strId, int count) + { + uint ret = GetColumnsIDNative(strId, count); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetColumnsID(ref byte strId, int count) + { + fixed (byte* pstrId = &strId) + { + uint ret = GetColumnsIDNative((byte*)pstrId, count); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetColumnsID(ReadOnlySpan strId, int count) + { + fixed (byte* pstrId = strId) + { + uint ret = GetColumnsIDNative((byte*)pstrId, count); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetColumnsID(string strId, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetColumnsIDNative(pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1112])(window, id); + #else + return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl])funcTable[1112])((nint)window, id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id) + { + ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative(window, id); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative((ImGuiWindow*)pwindow, id); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1113])(columns, offsetNorm); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[1113])((nint)columns, offsetNorm); + #endif + } + + /// + /// To be documented. + /// + public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) + { + float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); + return ret; + } + + /// + /// To be documented. + /// + public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + float ret = GetColumnOffsetFromNormNative((ImGuiOldColumns*)pcolumns, offsetNorm); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1114])(columns, offset); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[1114])((nint)columns, offset); + #endif + } + + /// + /// To be documented. + /// + public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) + { + float ret = GetColumnNormFromOffsetNative(columns, offset); + return ret; + } + + /// + /// To be documented. + /// + public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + float ret = GetColumnNormFromOffsetNative((ImGuiOldColumns*)pcolumns, offset); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableOpenContextMenuNative(int columnN) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1115])(columnN); + #else + ((delegate* unmanaged[Cdecl])funcTable[1115])(columnN); + #endif + } + + /// + /// To be documented. + /// + public static void TableOpenContextMenu(int columnN) + { + TableOpenContextMenuNative(columnN); + } + + /// + /// To be documented. + /// + public static void TableOpenContextMenu() + { + TableOpenContextMenuNative((int)(-1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetColumnWidthNative(int columnN, float width) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1116])(columnN, width); + #else + ((delegate* unmanaged[Cdecl])funcTable[1116])(columnN, width); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetColumnWidth(int columnN, float width) + { + TableSetColumnWidthNative(columnN, width); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetColumnSortDirectionNative(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1117])(columnN, sortDirection, appendToSortSpecs); + #else + ((delegate* unmanaged[Cdecl])funcTable[1117])(columnN, sortDirection, appendToSortSpecs); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs) + { + TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int TableGetHoveredColumnNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1118])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1118])(); + #endif + } + + /// + /// To be documented. + /// + public static int TableGetHoveredColumn() + { + int ret = TableGetHoveredColumnNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float TableGetHeaderRowHeightNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1119])(); + #else + 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 new file mode 100644 index 000000000..f7d2e4988 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs @@ -0,0 +1,5036 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan 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. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, 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, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, 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, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, 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, ref bool outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, 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, ref bool outJustClosed, bool* outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + fixed (byte* plabel = label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// 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, ref bool outTextClipped) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + + /// + /// 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, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + } + + /// + /// 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, ref bool outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) + { + fixed (byte* plabel = label) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (byte* plabel = label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + fixed (bool* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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* poutJustClosed = &outJustClosed) + { + fixed (bool* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1174])(pos, text, textEnd, hideTextAfterHash); + #else + ((delegate* unmanaged[Cdecl])funcTable[1174])(pos, (nint)text, (nint)textEnd, hideTextAfterHash); + #endif + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, byte* textEnd, bool hideTextAfterHash) + { + RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, byte* textEnd) + { + RenderTextNative(pos, text, textEnd, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text) + { + RenderTextNative(pos, text, (byte*)(default), (byte)(1)); + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, bool hideTextAfterHash) + { + RenderTextNative(pos, text, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, byte* textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, byte* textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, bool hideTextAfterHash) + { + fixed (byte* ptext = text) + { + RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, string text, byte* textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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; + } + RenderTextNative(pos, pStr0, textEnd, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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; + } + RenderTextNative(pos, pStr0, (byte*)(default), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, string text, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(pos, pStr0, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, ref byte textEnd, bool hideTextAfterHash) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan textEnd, bool hideTextAfterHash) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, byte* text, string textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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; + } + RenderTextNative(pos, text, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, string text, string textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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; + } + RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (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(Vector2 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; + } + RenderTextNative(pos, pStr0, pStr1, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ref byte text, string textEnd, bool hideTextAfterHash) + { + 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; + } + RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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; + } + RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, ReadOnlySpan text, string textEnd, bool hideTextAfterHash) + { + 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; + } + RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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; + } + RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, string text, ref byte textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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) + { + RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 pos, string text, ReadOnlySpan textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(Vector2 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) + { + RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1175])(pos, text, textEnd, wrapWidth); + #else + ((delegate* unmanaged[Cdecl])funcTable[1175])(pos, (nint)text, (nint)textEnd, wrapWidth); + #endif + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) + { + RenderTextWrappedNative(pos, text, textEnd, wrapWidth); + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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; + } + RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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; + } + RenderTextWrappedNative(pos, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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; + } + RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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; + } + RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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; + } + RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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) + { + RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextWrapped(Vector2 pos, 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) + { + RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// 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 new file mode 100644 index 000000000..76ce5b14c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + 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, ReadOnlySpan 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. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(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 RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, 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, 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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, 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, 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) + { + RenderTextClippedNative(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 RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string 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; + } + 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) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (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 RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte 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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (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, ReadOnlySpan 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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan 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) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (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, string text, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (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, string text, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + 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, 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1177])(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[1177])((nint)drawList, posMin, posMax, (nint)text, (nint)textEnd, (nint)textSizeIfKnown, align, (nint)clipRect); + #endif + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (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, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (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, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, 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, 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; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, 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, 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; + } + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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; + } + RenderTextClippedExNative(drawList, 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(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, 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, 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, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (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, 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 new file mode 100644 index 000000000..c57d27c26 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, 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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (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, 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) + { + RenderTextClippedExNative(drawList, 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 RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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 RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (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, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (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, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref 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; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, 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, byte* text, string textEnd, ref 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; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, 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, 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) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, 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 RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref 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; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, 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 RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (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, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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 RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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 RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (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, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, 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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (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, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (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, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, 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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (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, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, 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) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, 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) + { + RenderTextClippedExNative(drawList, 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(ImDrawListPtr drawList, 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) + { + RenderTextClippedExNative(drawList, 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, ref byte 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, ref byte 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, 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) + { + 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, 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, 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, ReadOnlySpan 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, ReadOnlySpan 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, ReadOnlySpan 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, string text, string 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; + } + 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, 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, 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; + } + 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, 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, 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 new file mode 100644 index 000000000..39b8a423a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan 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, string text, string 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; + } + 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) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, 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, 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; + } + 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) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (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, 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, ReadOnlySpan 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, ref byte text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, 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, ref byte text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, 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, ReadOnlySpan 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, ReadOnlySpan 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, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, 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, ReadOnlySpan text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, 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, string text, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, string text, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (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, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (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, string text, string 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; + } + 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) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, 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, 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; + } + 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) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (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, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (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, ref byte text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, 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, ref byte text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, 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, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (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, ReadOnlySpan text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, 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, ReadOnlySpan text, string textEnd, ref 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 (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, 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, string text, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, ref 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 (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, string text, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (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, ReadOnlySpan 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 (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1178])(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + #else + ((delegate* unmanaged[Cdecl])funcTable[1178])((nint)drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (nint)text, (nint)textEnd, (nint)textSizeIfKnown); + #endif + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, 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, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, 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, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, 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, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, 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, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); + 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, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, 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, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, 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; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, 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, 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) + { + RenderTextEllipsisNative(drawList, 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, 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) + { + RenderTextEllipsisNative(drawList, 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, ref byte 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, ReadOnlySpan 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, 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; + } + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); + 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, 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, 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; + } + 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, 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 new file mode 100644 index 000000000..768ed1aa7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static bool ButtonEx(ReadOnlySpan 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(ReadOnlySpan 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(string label, Vector2 sizeArg, ImGuiButtonFlags 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 = ButtonExNative(pStr0, sizeArg, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(string label, Vector2 sizeArg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 = ButtonExNative(pStr0, sizeArg, (ImGuiButtonFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(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 = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(string label, ImGuiButtonFlags 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 = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CloseButtonNative(uint id, Vector2 pos) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1195])(id, pos); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1195])(id, pos); + #endif + } + + /// + /// To be documented. + /// + public static bool CloseButton(uint id, Vector2 pos) + { + byte ret = CloseButtonNative(id, pos); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CollapseButtonNative(uint id, Vector2 pos, ImGuiDockNode* dockNode) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1196])(id, pos, dockNode); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1196])(id, pos, (nint)dockNode); + #endif + } + + /// + /// To be documented. + /// + public static bool CollapseButton(uint id, Vector2 pos, ImGuiDockNodePtr dockNode) + { + byte ret = CollapseButtonNative(id, pos, dockNode); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CollapseButton(uint id, Vector2 pos, ref ImGuiDockNode dockNode) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ArrowButtonExNative(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1197])(strId, dir, sizeArg, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1197])((nint)strId, dir, sizeArg, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg) + { + byte ret = ArrowButtonExNative(strId, dir, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + fixed (byte* pstrId = &strId) + { + byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg) + { + fixed (byte* pstrId = &strId) + { + byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(ReadOnlySpan strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + fixed (byte* pstrId = strId) + { + byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(ReadOnlySpan strId, ImGuiDir dir, Vector2 sizeArg) + { + fixed (byte* pstrId = strId) + { + byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, (ImGuiButtonFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScrollbarNative(ImGuiAxis axis) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1198])(axis); + #else + ((delegate* unmanaged[Cdecl])funcTable[1198])(axis); + #endif + } + + /// + /// To be documented. + /// + public static void Scrollbar(ImGuiAxis axis) + { + ScrollbarNative(axis); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ScrollbarExNative(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1199])(bb, id, axis, pScrollV, availV, contentsV, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1199])(bb, id, axis, (nint)pScrollV, availV, contentsV, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) + { + byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImageButtonExNative(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); + #endif + } + + /// + /// To be documented. + /// + public static bool ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonExNative(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWindowScrollbarRectNative(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1201])(pOut, window, axis); + #else + ((delegate* unmanaged[Cdecl])funcTable[1201])((nint)pOut, (nint)window, axis); + #endif + } + + /// + /// To be documented. + /// + public static ImRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) + { + ImRect ret; + GetWindowScrollbarRectNative(&ret, window, axis); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWindowScrollbarRect(ImRectPtr pOut, ImGuiWindowPtr window, ImGuiAxis axis) + { + GetWindowScrollbarRectNative(pOut, window, axis); + } + + /// + /// To be documented. + /// + public static void GetWindowScrollbarRect(ref ImRect pOut, ImGuiWindowPtr window, ImGuiAxis axis) + { + fixed (ImRect* ppOut = &pOut) + { + GetWindowScrollbarRectNative((ImRect*)ppOut, window, axis); + } + } + + /// + /// To be documented. + /// + public static ImRect GetWindowScrollbarRect(ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + ImRect ret; + GetWindowScrollbarRectNative(&ret, (ImGuiWindow*)pwindow, axis); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetWindowScrollbarRect(ImRectPtr pOut, ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis); + } + } + + /// + /// To be documented. + /// + public static void GetWindowScrollbarRect(ref ImRect pOut, ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetWindowScrollbarRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetWindowScrollbarIDNative(ImGuiWindow* window, ImGuiAxis axis) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1202])(window, axis); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1202])((nint)window, axis); + #endif + } + + /// + /// To be documented. + /// + public static uint GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) + { + uint ret = GetWindowScrollbarIDNative(window, axis); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetWindowScrollbarID(ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = GetWindowScrollbarIDNative((ImGuiWindow*)pwindow, axis); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetWindowResizeCornerIDNative(ImGuiWindow* window, int n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1203])(window, n); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1203])((nint)window, n); + #endif + } + + /// + /// To be documented. + /// + public static uint GetWindowResizeCornerID(ImGuiWindowPtr window, int n) + { + uint ret = GetWindowResizeCornerIDNative(window, n); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetWindowResizeCornerID(ref ImGuiWindow window, int n) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = GetWindowResizeCornerIDNative((ImGuiWindow*)pwindow, n); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetWindowResizeBorderIDNative(ImGuiWindow* window, ImGuiDir dir) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1204])(window, dir); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1204])((nint)window, dir); + #endif + } + + /// + /// To be documented. + /// + public static uint GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) + { + uint ret = GetWindowResizeBorderIDNative(window, dir); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetWindowResizeBorderID(ref ImGuiWindow window, ImGuiDir dir) + { + fixed (ImGuiWindow* pwindow = &window) + { + uint ret = GetWindowResizeBorderIDNative((ImGuiWindow*)pwindow, dir); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SeparatorExNative(ImGuiSeparatorFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1205])(flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1205])(flags); + #endif + } + + /// + /// To be documented. + /// + public static void SeparatorEx(ImGuiSeparatorFlags flags) + { + SeparatorExNative(flags); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CheckboxFlagsNative(byte* label, long* flags, long flagsValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1206])(label, flags, flagsValue); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1206])((nint)label, (nint)flags, flagsValue); + #endif + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, long* flags, long flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, long* flags, long flagsValue) + { + fixed (byte* plabel = &label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, long* flags, long flagsValue) + { + fixed (byte* plabel = label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, 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; + } + byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CheckboxFlagsNative(byte* label, ulong* flags, ulong flagsValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1207])(label, flags, flagsValue); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1207])((nint)label, (nint)flags, flagsValue); + #endif + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(byte* label, ulong* flags, ulong flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ref byte label, ulong* flags, ulong flagsValue) + { + fixed (byte* plabel = &label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(ReadOnlySpan label, ulong* flags, ulong flagsValue) + { + fixed (byte* plabel = label) + { + byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool CheckboxFlags(string label, 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; + } + byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ButtonBehaviorNative(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1208])(bb, id, outHovered, outHeld, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1208])(bb, id, (nint)outHovered, (nint)outHeld, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHovered = &outHovered) + { + byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld) + { + fixed (bool* poutHovered = &outHovered) + { + byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld, ImGuiButtonFlags flags) + { + fixed (bool* poutHovered = &outHovered) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld) + { + fixed (bool* poutHovered = &outHovered) + { + fixed (bool* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragBehaviorNative(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1209])(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1209])(id, dataType, (nint)pV, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags) + { + fixed (byte* pformat = format) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags 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; + } + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SliderBehaviorNative(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1210])(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1210])(bb, id, dataType, (nint)pV, (nint)pMin, (nint)pMax, (nint)format, flags, (nint)outGrabBb); + #endif + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) + { + fixed (byte* pformat = &format) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) + { + fixed (byte* pformat = format) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) + { + 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 = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ref ImRect outGrabBb) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ref ImRect outGrabBb) + { + fixed (byte* pformat = &format) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan format, ImGuiSliderFlags flags, ref ImRect outGrabBb) + { + fixed (byte* pformat = format) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ref ImRect outGrabBb) + { + 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 (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SplitterBehaviorNative(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1211])(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1211])(bb, id, axis, (nint)size1, (nint)size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + #endif + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, uint bgCol) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeBehaviorNative(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1212])(id, flags, label, labelEnd); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1212])(id, flags, (nint)label, (nint)labelEnd); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, byte* labelEnd) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label, byte* labelEnd) + { + fixed (byte* plabel = label) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, 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; + } + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, 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 = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ref byte labelEnd) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ReadOnlySpan labelEnd) + { + fixed (byte* plabelEnd = labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, string labelEnd) + { + 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, label, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte 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, 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, 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 new file mode 100644 index 000000000..6e47757d5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs @@ -0,0 +1,2114 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, string label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImGuiViewportP*)pviewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ref byte label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ReadOnlySpan label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, string label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImGuiViewportP*)pviewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ReadOnlySpan label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, string label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ReadOnlySpan label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, string label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ReadOnlySpan label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ReadOnlySpan label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeDrawCmdShowMeshAndBoundingBoxNative(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1245])(outDrawList, drawList, drawCmd, showMesh, showAabb); + #else + ((delegate* unmanaged[Cdecl])funcTable[1245])((nint)outDrawList, (nint)drawList, (nint)drawCmd, showMesh, showAabb); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* poutDrawList = &outDrawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeFontNative(ImFont* font) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1246])(font); + #else + ((delegate* unmanaged[Cdecl])funcTable[1246])((nint)font); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeFont(ImFontPtr font) + { + DebugNodeFontNative(font); + } + + /// + /// To be documented. + /// + public static void DebugNodeFont(ref ImFont font) + { + fixed (ImFont* pfont = &font) + { + DebugNodeFontNative((ImFont*)pfont); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeFontGlyphNative(ImFont* font, ImFontGlyph* glyph) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1247])(font, glyph); + #else + ((delegate* unmanaged[Cdecl])funcTable[1247])((nint)font, (nint)glyph); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) + { + DebugNodeFontGlyphNative(font, glyph); + } + + /// + /// To be documented. + /// + public static void DebugNodeFontGlyph(ref ImFont font, ImFontGlyphPtr glyph) + { + fixed (ImFont* pfont = &font) + { + DebugNodeFontGlyphNative((ImFont*)pfont, glyph); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeFontGlyph(ImFontPtr font, ref ImFontGlyph glyph) + { + fixed (ImFontGlyph* pglyph = &glyph) + { + DebugNodeFontGlyphNative(font, (ImFontGlyph*)pglyph); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeFontGlyph(ref ImFont font, ref ImFontGlyph glyph) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontGlyph* pglyph = &glyph) + { + DebugNodeFontGlyphNative((ImFont*)pfont, (ImFontGlyph*)pglyph); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeStorageNative(ImGuiStorage* storage, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1248])(storage, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1248])((nint)storage, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ImGuiStoragePtr storage, byte* label) + { + DebugNodeStorageNative(storage, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ref ImGuiStorage storage, byte* label) + { + fixed (ImGuiStorage* pstorage = &storage) + { + DebugNodeStorageNative((ImGuiStorage*)pstorage, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ImGuiStoragePtr storage, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeStorageNative(storage, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ImGuiStoragePtr storage, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeStorageNative(storage, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ImGuiStoragePtr storage, 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; + } + DebugNodeStorageNative(storage, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ref ImGuiStorage storage, ref byte label) + { + fixed (ImGuiStorage* pstorage = &storage) + { + fixed (byte* plabel = &label) + { + DebugNodeStorageNative((ImGuiStorage*)pstorage, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ref ImGuiStorage storage, ReadOnlySpan label) + { + fixed (ImGuiStorage* pstorage = &storage) + { + fixed (byte* plabel = label) + { + DebugNodeStorageNative((ImGuiStorage*)pstorage, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeStorage(ref ImGuiStorage storage, string label) + { + fixed (ImGuiStorage* pstorage = &storage) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeStorageNative((ImGuiStorage*)pstorage, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1249])(tabBar, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1249])((nint)tabBar, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, byte* label) + { + DebugNodeTabBarNative(tabBar, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, byte* label) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeTabBarNative(tabBar, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeTabBarNative(tabBar, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, 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; + } + DebugNodeTabBarNative(tabBar, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, ref byte label) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = &label) + { + DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, ReadOnlySpan label) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = label) + { + DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, string label) + { + 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; + } + DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeTableNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1250])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1250])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeTable(ImGuiTablePtr table) + { + DebugNodeTableNative(table); + } + + /// + /// To be documented. + /// + public static void DebugNodeTable(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + DebugNodeTableNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeTableSettingsNative(ImGuiTableSettings* settings) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1251])(settings); + #else + ((delegate* unmanaged[Cdecl])funcTable[1251])((nint)settings); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) + { + DebugNodeTableSettingsNative(settings); + } + + /// + /// To be documented. + /// + public static void DebugNodeTableSettings(ref ImGuiTableSettings settings) + { + fixed (ImGuiTableSettings* psettings = &settings) + { + DebugNodeTableSettingsNative((ImGuiTableSettings*)psettings); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeInputTextStateNative(ImGuiInputTextState* state) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1252])(state); + #else + ((delegate* unmanaged[Cdecl])funcTable[1252])((nint)state); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeInputTextState(ImGuiInputTextStatePtr state) + { + DebugNodeInputTextStateNative(state); + } + + /// + /// To be documented. + /// + public static void DebugNodeInputTextState(ref ImGuiInputTextState state) + { + fixed (ImGuiInputTextState* pstate = &state) + { + DebugNodeInputTextStateNative((ImGuiInputTextState*)pstate); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeWindowNative(ImGuiWindow* window, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1253])(window, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1253])((nint)window, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ImGuiWindowPtr window, byte* label) + { + DebugNodeWindowNative(window, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ref ImGuiWindow window, byte* label) + { + fixed (ImGuiWindow* pwindow = &window) + { + DebugNodeWindowNative((ImGuiWindow*)pwindow, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ImGuiWindowPtr window, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowNative(window, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ImGuiWindowPtr window, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeWindowNative(window, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ImGuiWindowPtr window, 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; + } + DebugNodeWindowNative(window, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ref ImGuiWindow window, ref byte label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowNative((ImGuiWindow*)pwindow, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ref ImGuiWindow window, ReadOnlySpan label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (byte* plabel = label) + { + DebugNodeWindowNative((ImGuiWindow*)pwindow, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindow(ref ImGuiWindow window, 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; + } + DebugNodeWindowNative((ImGuiWindow*)pwindow, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeWindowSettingsNative(ImGuiWindowSettings* settings) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1254])(settings); + #else + ((delegate* unmanaged[Cdecl])funcTable[1254])((nint)settings); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) + { + DebugNodeWindowSettingsNative(settings); + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowSettings(ref ImGuiWindowSettings settings) + { + fixed (ImGuiWindowSettings* psettings = &settings) + { + DebugNodeWindowSettingsNative((ImGuiWindowSettings*)psettings); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeWindowsListNative(ImVector* windows, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, byte*, void>)funcTable[1255])(windows, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1255])((nint)windows, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ImVector* windows, byte* label) + { + DebugNodeWindowsListNative(windows, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ref ImVector windows, byte* label) + { + fixed (ImVector* pwindows = &windows) + { + DebugNodeWindowsListNative((ImVector*)pwindows, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ImVector* windows, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowsListNative(windows, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ImVector* windows, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeWindowsListNative(windows, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ImVector* windows, 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; + } + DebugNodeWindowsListNative(windows, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ref ImVector windows, ref byte label) + { + fixed (ImVector* pwindows = &windows) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowsListNative((ImVector*)pwindows, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ref ImVector windows, ReadOnlySpan label) + { + fixed (ImVector* pwindows = &windows) + { + fixed (byte* plabel = label) + { + DebugNodeWindowsListNative((ImVector*)pwindows, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsList(ref ImVector windows, string label) + { + fixed (ImVector* pwindows = &windows) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeWindowsListNative((ImVector*)pwindows, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeWindowsListByBeginStackParentNative(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1256])(windows, windowsSize, parentInBeginStack); + #else + ((delegate* unmanaged[Cdecl])funcTable[1256])((nint)windows, windowsSize, (nint)parentInBeginStack); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) + { + DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, parentInBeginStack); + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) + { + fixed (ImGuiWindow** pwindows = &windows) + { + DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, parentInBeginStack); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ref ImGuiWindow parentInBeginStack) + { + fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) + { + DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, (ImGuiWindow*)pparentInBeginStack); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ref ImGuiWindow parentInBeginStack) + { + fixed (ImGuiWindow** pwindows = &windows) + { + fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) + { + DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, (ImGuiWindow*)pparentInBeginStack); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeViewportNative(ImGuiViewportP* viewport) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1257])(viewport); + #else + ((delegate* unmanaged[Cdecl])funcTable[1257])((nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeViewport(ImGuiViewportPPtr viewport) + { + DebugNodeViewportNative(viewport); + } + + /// + /// To be documented. + /// + public static void DebugNodeViewport(ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugNodeViewportNative((ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugRenderViewportThumbnailNative(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1258])(drawList, viewport, bb); + #else + ((delegate* unmanaged[Cdecl])funcTable[1258])((nint)drawList, (nint)viewport, bb); + #endif + } + + /// + /// To be documented. + /// + public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ImGuiViewportPPtr viewport, ImRect bb) + { + DebugRenderViewportThumbnailNative(drawList, viewport, bb); + } + + /// + /// To be documented. + /// + public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ImGuiViewportPPtr viewport, ImRect bb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, viewport, bb); + } + } + + /// + /// To be documented. + /// + public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ref ImGuiViewportP viewport, ImRect bb) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugRenderViewportThumbnailNative(drawList, (ImGuiViewportP*)pviewport, bb); + } + } + + /// + /// To be documented. + /// + public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ref ImGuiViewportP viewport, ImRect bb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, (ImGuiViewportP*)pviewport, bb); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetypeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1259])(); + #else + return (ImFontBuilderIO*)((delegate* unmanaged[Cdecl])funcTable[1259])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontBuilderIOPtr ImFontAtlasGetBuilderForStbTruetype() + { + ImFontBuilderIOPtr ret = ImFontAtlasGetBuilderForStbTruetypeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildInitNative(ImFontAtlas* atlas) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1260])(atlas); + #else + ((delegate* unmanaged[Cdecl])funcTable[1260])((nint)atlas); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildInit(ImFontAtlasPtr atlas) + { + ImFontAtlasBuildInitNative(atlas); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildInit(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildInitNative((ImFontAtlas*)patlas); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildSetupFontNative(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1261])(atlas, font, fontConfig, ascent, descent); + #else + ((delegate* unmanaged[Cdecl])funcTable[1261])((nint)atlas, (nint)font, (nint)fontConfig, ascent, descent); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + ImFontAtlasBuildSetupFontNative(atlas, font, fontConfig, ascent, descent); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, fontConfig, ascent, descent); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, fontConfig, ascent, descent); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFont* pfont = &font) + { + ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, fontConfig, ascent, descent); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative(atlas, font, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + } + + /// + /// 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/LICENSE.txt b/imgui/Dalamud.Bindings.ImGui/LICENSE.txt new file mode 100644 index 000000000..b5dae7ac2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Juna Meinhold + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs new file mode 100644 index 000000000..c69cf3a9a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs @@ -0,0 +1,5063 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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); + #else + 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, 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 = InputTextNative(label, 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 InputText(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 = InputTextNative(label, 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 InputText(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 = InputTextNative(label, 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 InputText(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 = 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, 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 = 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, 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 = InputTextNative(label, 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 InputText(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 = 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, 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 = 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, nuint 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, 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 = InputTextNative(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 InputText(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 = InputTextNative(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 InputText(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 = InputTextNative(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 InputText(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 = 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, 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 = 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, 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 = InputTextNative(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 InputText(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 = 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, 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 = 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, 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 = InputTextNative((byte*)plabel, 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 InputText(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 = InputTextNative((byte*)plabel, 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 InputText(ref byte label, 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 = InputTextNative((byte*)plabel, 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 InputText(ref byte label, 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 = 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, 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 = 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, 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 = InputTextNative((byte*)plabel, 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 InputText(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 = 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, 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 = 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, 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 = InputTextNative((byte*)plabel, 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 InputText(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 = InputTextNative((byte*)plabel, 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 InputText(ReadOnlySpan label, 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 = InputTextNative((byte*)plabel, 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 InputText(ReadOnlySpan label, 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 = 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, 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 = 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, 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 = InputTextNative((byte*)plabel, 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 InputText(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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = 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, 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 = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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); + #else + 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, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte ret = InputTextMultilineNative(label, buf, bufSize, size, 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) + { + byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// To be documented. + /// + 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; + } + + /// + /// 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) + { + 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(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 new file mode 100644 index 000000000..7d2e8a977 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 InputTextMultiline(string label, 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 = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (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, 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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(ref byte label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ref byte label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ref byte label, ref string buf, nuint bufSize, Vector2 size, 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 = InputTextMultilineNative((byte*)plabel, 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(ref byte label, ref string buf, nuint bufSize, Vector2 size) + { + 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), (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) + { + 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), (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, 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 = InputTextMultilineNative((byte*)plabel, 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(ref byte label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ref byte label, 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 = InputTextMultilineNative((byte*)plabel, 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(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 || ((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 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 || ((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 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 || ((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 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 || ((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(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, 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 = InputTextMultilineNative((byte*)plabel, 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(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size) + { + 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), (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) + { + 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), (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, 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 = InputTextMultilineNative((byte*)plabel, 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(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, 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, 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(ReadOnlySpan label, 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 = InputTextMultilineNative((byte*)plabel, 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(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 || ((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(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 || ((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(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 || ((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(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 || ((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(string label, ref 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; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, 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, 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; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, ref 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; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, ref 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; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, 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 = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, 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 = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, ref 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; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, 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 = InputTextMultilineNative(pStr0, (byte*)pbuf, 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, 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, nuint 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, 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) + { + 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 new file mode 100644 index 000000000..123aae9c8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs @@ -0,0 +1,5040 @@ +// ------------------------------------------------------------------------------ +// +// 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(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) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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, 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 || ((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, 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 || ((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, 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 || ((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, 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) + { + 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, 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(ref byte 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(ref byte 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(ref byte 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(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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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 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 || ((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 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 || ((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 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 || ((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 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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; + } + } + + /// + /// 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 || ((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 new file mode 100644 index 000000000..a9cf6e9ba --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs @@ -0,0 +1,5049 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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) + { + 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 || ((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 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 || ((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 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 || ((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 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 || ((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 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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, 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, nuint 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, 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, 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, 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; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + } + + /// + /// 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; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs new file mode 100644 index 000000000..7f6b7f843 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs @@ -0,0 +1,5050 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [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 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; + } + } + } + + /// + /// 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; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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 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 || ((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 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 || ((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 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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, 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 || ((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(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 || ((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, 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 || ((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) + { + 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 || ((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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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; + } + } + + /// + /// 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 new file mode 100644 index 000000000..5147fc41b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs @@ -0,0 +1,3531 @@ +// ------------------------------------------------------------------------------ +// +// 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(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 || ((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) + { + 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, 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 || ((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, 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 || ((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 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 || ((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 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 || ((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 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 || ((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 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; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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 || ((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 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 || ((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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 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 || ((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 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.ImGui/STBTexteditStatePtr.cs b/imgui/Dalamud.Bindings.ImGui/STBTexteditStatePtr.cs new file mode 100644 index 000000000..8927bda0d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGui/STBTexteditStatePtr.cs @@ -0,0 +1,45 @@ +#nullable disable + +namespace Dalamud.Bindings.ImGui +{ + using System; + + public unsafe struct STBTexteditStatePtr : IEquatable + { + public STBTexteditState* Handle; + + public unsafe STBTexteditStatePtr(STBTexteditState* handle) + { + Handle = handle; + } + + public override readonly bool Equals(object obj) + { + return obj is STBTexteditStatePtr ptr && Equals(ptr); + } + + public readonly bool Equals(STBTexteditStatePtr other) + { + return Handle == other.Handle; + } + + public override readonly int GetHashCode() + { + return ((nint)Handle).GetHashCode(); + } + + public static bool operator ==(STBTexteditStatePtr left, STBTexteditStatePtr right) + { + return left.Equals(right); + } + + public static bool operator !=(STBTexteditStatePtr left, STBTexteditStatePtr right) + { + return !(left == right); + } + + public static implicit operator STBTexteditState*(STBTexteditStatePtr handle) => handle.Handle; + + public static implicit operator STBTexteditStatePtr(STBTexteditState* handle) => new(handle); + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj b/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj new file mode 100644 index 000000000..650381100 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj @@ -0,0 +1,19 @@ + + + + enable + enable + true + + true + + + + + + + + + + + diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs new file mode 100644 index 000000000..b9dc65c06 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImGuizmo +{ + public unsafe partial class ImGuizmo + { + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs new file mode 100644 index 000000000..2e0866799 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImGuizmo +{ +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs new file mode 100644 index 000000000..e76e5d5d6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImGuizmo +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuizmoMode : int + { + /// + /// To be documented. + /// + Local = unchecked(0), + + /// + /// To be documented. + /// + World = unchecked(1), + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs new file mode 100644 index 000000000..5d5b65fff --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs @@ -0,0 +1,118 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImGuizmo +{ + /// + /// To be documented. + /// + [Flags] + public enum ImGuizmoOperation : int + { + /// + /// To be documented. + /// + TranslateX = unchecked((int)(1U<<0)), + + /// + /// To be documented. + /// + TranslateY = unchecked((int)(1U<<1)), + + /// + /// To be documented. + /// + TranslateZ = unchecked((int)(1U<<2)), + + /// + /// To be documented. + /// + RotateX = unchecked((int)(1U<<3)), + + /// + /// To be documented. + /// + RotateY = unchecked((int)(1U<<4)), + + /// + /// To be documented. + /// + RotateZ = unchecked((int)(1U<<5)), + + /// + /// To be documented. + /// + RotateScreen = unchecked((int)(1U<<6)), + + /// + /// To be documented. + /// + ScaleX = unchecked((int)(1U<<7)), + + /// + /// To be documented. + /// + ScaleY = unchecked((int)(1U<<8)), + + /// + /// To be documented. + /// + ScaleZ = unchecked((int)(1U<<9)), + + /// + /// To be documented. + /// + Bounds = unchecked((int)(1U<<10)), + + /// + /// To be documented. + /// + ScaleXu = unchecked((int)(1U<<11)), + + /// + /// To be documented. + /// + ScaleYu = unchecked((int)(1U<<12)), + + /// + /// To be documented. + /// + ScaleZu = unchecked((int)(1U<<13)), + + /// + /// To be documented. + /// + Translate = unchecked(7), + + /// + /// To be documented. + /// + Rotate = unchecked(120), + + /// + /// To be documented. + /// + Scale = unchecked(896), + + /// + /// To be documented. + /// + Scaleu = unchecked(14336), + + /// + /// To be documented. + /// + Universal = unchecked(14463), + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs new file mode 100644 index 000000000..6ac542095 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// +// 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.ImGuizmo +{ + public unsafe partial class ImGuizmo + { + internal static FunctionTable funcTable; + + /// + /// Initializes the function table, automatically called. Do not call manually, only after . + /// + public static void InitApi(INativeContext context) + { + funcTable = new FunctionTable(context, 19); + funcTable.Load(0, "ImGuizmo_SetDrawlist"); + funcTable.Load(1, "ImGuizmo_BeginFrame"); + funcTable.Load(2, "ImGuizmo_SetImGuiContext"); + funcTable.Load(3, "ImGuizmo_IsOver_Nil"); + funcTable.Load(4, "ImGuizmo_IsUsing"); + funcTable.Load(5, "ImGuizmo_Enable"); + funcTable.Load(6, "ImGuizmo_DecomposeMatrixToComponents"); + funcTable.Load(7, "ImGuizmo_RecomposeMatrixFromComponents"); + funcTable.Load(8, "ImGuizmo_SetRect"); + funcTable.Load(9, "ImGuizmo_SetOrthographic"); + funcTable.Load(10, "ImGuizmo_DrawCubes"); + funcTable.Load(11, "ImGuizmo_DrawGrid"); + funcTable.Load(12, "ImGuizmo_Manipulate"); + funcTable.Load(13, "ImGuizmo_ViewManipulate_Float"); + funcTable.Load(14, "ImGuizmo_ViewManipulate_FloatPtr"); + funcTable.Load(15, "ImGuizmo_SetID"); + funcTable.Load(16, "ImGuizmo_IsOver_OPERATION"); + funcTable.Load(17, "ImGuizmo_SetGizmoSizeClipSpace"); + funcTable.Load(18, "ImGuizmo_AllowAxisFlip"); + } + + public static void FreeApi() + { + funcTable.Free(); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs new file mode 100644 index 000000000..40916326c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs @@ -0,0 +1,5021 @@ +// ------------------------------------------------------------------------------ +// +// 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.ImGuizmo +{ + public unsafe partial class ImGuizmo + { + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetDrawlistNative(ImDrawList* drawlist) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[0])(drawlist); + #else + ((delegate* unmanaged[Cdecl])funcTable[0])((nint)drawlist); + #endif + } + + /// + /// To be documented. + /// + public static void SetDrawlist(ImDrawListPtr drawlist) + { + SetDrawlistNative(drawlist); + } + + /// + /// To be documented. + /// + public static void SetDrawlist() + { + SetDrawlistNative((ImDrawList*)(default)); + } + + /// + /// To be documented. + /// + public static void SetDrawlist(ref ImDrawList drawlist) + { + fixed (ImDrawList* pdrawlist = &drawlist) + { + SetDrawlistNative((ImDrawList*)pdrawlist); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginFrameNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1])(); + #endif + } + + /// + /// To be documented. + /// + public static void BeginFrame() + { + BeginFrameNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetImGuiContextNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[2])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[2])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void SetImGuiContext(ImGuiContextPtr ctx) + { + SetImGuiContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void SetImGuiContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + SetImGuiContextNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsOverNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[3])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[3])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsOver() + { + byte ret = IsOverNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsUsingNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[4])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[4])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsUsing() + { + byte ret = IsUsingNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EnableNative(byte enable) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[5])(enable); + #else + ((delegate* unmanaged[Cdecl])funcTable[5])(enable); + #endif + } + + /// + /// To be documented. + /// + public static void Enable(bool enable) + { + EnableNative(enable ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DecomposeMatrixToComponentsNative(float* matrix, float* translation, float* rotation, float* scale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[6])(matrix, translation, rotation, scale); + #else + ((delegate* unmanaged[Cdecl])funcTable[6])((nint)matrix, (nint)translation, (nint)rotation, (nint)scale); + #endif + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, float* translation, float* rotation, float* scale) + { + DecomposeMatrixToComponentsNative(matrix, translation, rotation, scale); + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref Matrix4x4 matrix, ref Matrix4x4 translation, ref Matrix4x4 rotation, ref Matrix4x4 scale) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (Matrix4x4* ptranslation = &translation) + { + fixed (Matrix4x4* protation = &rotation) + { + fixed (Matrix4x4* pscale = &scale) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, (float*)pscale); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, float* translation, float* rotation, float* scale) + { + fixed (float* pmatrix = &matrix) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, translation, rotation, scale); + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, ref float translation, float* rotation, float* scale) + { + fixed (float* ptranslation = &translation) + { + DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, rotation, scale); + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, float* rotation, float* scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* ptranslation = &translation) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, rotation, scale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, float* translation, ref float rotation, float* scale) + { + fixed (float* protation = &rotation) + { + DecomposeMatrixToComponentsNative(matrix, translation, (float*)protation, scale); + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, float* translation, ref float rotation, float* scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* protation = &rotation) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, translation, (float*)protation, scale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, ref float translation, ref float rotation, float* scale) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, (float*)protation, scale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, ref float rotation, float* scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, scale); + } + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, float* translation, float* rotation, ref float scale) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative(matrix, translation, rotation, (float*)pscale); + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, float* translation, float* rotation, ref float scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, translation, rotation, (float*)pscale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, ref float translation, float* rotation, ref float scale) + { + fixed (float* ptranslation = &translation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, rotation, (float*)pscale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, float* rotation, ref float scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, rotation, (float*)pscale); + } + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, float* translation, ref float rotation, ref float scale) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative(matrix, translation, (float*)protation, (float*)pscale); + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, float* translation, ref float rotation, ref float scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, translation, (float*)protation, (float*)pscale); + } + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(float* matrix, ref float translation, ref float rotation, ref float scale) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, (float*)protation, (float*)pscale); + } + } + } + } + + /// + /// To be documented. + /// + public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, ref float rotation, ref float scale) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, (float*)pscale); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RecomposeMatrixFromComponentsNative(float* translation, float* rotation, float* scale, float* matrix) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[7])(translation, rotation, scale, matrix); + #else + ((delegate* unmanaged[Cdecl])funcTable[7])((nint)translation, (nint)rotation, (nint)scale, (nint)matrix); + #endif + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, float* rotation, float* scale, float* matrix) + { + RecomposeMatrixFromComponentsNative(translation, rotation, scale, matrix); + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref Matrix4x4 translation, ref Matrix4x4 rotation, ref Matrix4x4 scale, ref Matrix4x4 matrix) + { + fixed (Matrix4x4* ptranslation = &translation) + { + fixed (Matrix4x4* protation = &rotation) + { + fixed (Matrix4x4* pscale = &scale) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, (float*)pmatrix); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, float* scale, float* matrix) + { + fixed (float* ptranslation = &translation) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, scale, matrix); + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, float* scale, float* matrix) + { + fixed (float* protation = &rotation) + { + RecomposeMatrixFromComponentsNative(translation, (float*)protation, scale, matrix); + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, float* scale, float* matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, scale, matrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, float* rotation, ref float scale, float* matrix) + { + fixed (float* pscale = &scale) + { + RecomposeMatrixFromComponentsNative(translation, rotation, (float*)pscale, matrix); + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, ref float scale, float* matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* pscale = &scale) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, (float*)pscale, matrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, ref float scale, float* matrix) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + RecomposeMatrixFromComponentsNative(translation, (float*)protation, (float*)pscale, matrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, ref float scale, float* matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, matrix); + } + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, float* rotation, float* scale, ref float matrix) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative(translation, rotation, scale, (float*)pmatrix); + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, float* scale, ref float matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, scale, (float*)pmatrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, float* scale, ref float matrix) + { + fixed (float* protation = &rotation) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative(translation, (float*)protation, scale, (float*)pmatrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, float* scale, ref float matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, scale, (float*)pmatrix); + } + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, float* rotation, ref float scale, ref float matrix) + { + fixed (float* pscale = &scale) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative(translation, rotation, (float*)pscale, (float*)pmatrix); + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, ref float scale, ref float matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* pscale = &scale) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, (float*)pscale, (float*)pmatrix); + } + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, ref float scale, ref float matrix) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative(translation, (float*)protation, (float*)pscale, (float*)pmatrix); + } + } + } + } + + /// + /// To be documented. + /// + public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, ref float scale, ref float matrix) + { + fixed (float* ptranslation = &translation) + { + fixed (float* protation = &rotation) + { + fixed (float* pscale = &scale) + { + fixed (float* pmatrix = &matrix) + { + RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, (float*)pmatrix); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetRectNative(float x, float y, float width, float height) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[8])(x, y, width, height); + #else + ((delegate* unmanaged[Cdecl])funcTable[8])(x, y, width, height); + #endif + } + + /// + /// To be documented. + /// + public static void SetRect(float x, float y, float width, float height) + { + SetRectNative(x, y, width, height); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetOrthographicNative(byte isOrthographic) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[9])(isOrthographic); + #else + ((delegate* unmanaged[Cdecl])funcTable[9])(isOrthographic); + #endif + } + + /// + /// To be documented. + /// + public static void SetOrthographic(bool isOrthographic) + { + SetOrthographicNative(isOrthographic ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DrawCubesNative(float* view, float* projection, float* matrices, int matrixCount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[10])(view, projection, matrices, matrixCount); + #else + ((delegate* unmanaged[Cdecl])funcTable[10])((nint)view, (nint)projection, (nint)matrices, matrixCount); + #endif + } + + /// + /// To be documented. + /// + public static void DrawCubes(float* view, float* projection, float* matrices, int matrixCount) + { + DrawCubesNative(view, projection, matrices, matrixCount); + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref Matrix4x4 view, ref Matrix4x4 projection, Matrix4x4[] matrices, int matrixCount) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrices = matrices) + { + DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); + } + } + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref Matrix4x4 view, ref Matrix4x4 projection, ref Matrix4x4 matrices, int matrixCount) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrices = &matrices) + { + DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); + } + } + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref float view, float* projection, float* matrices, int matrixCount) + { + fixed (float* pview = &view) + { + DrawCubesNative((float*)pview, projection, matrices, matrixCount); + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(float* view, ref float projection, float* matrices, int matrixCount) + { + fixed (float* pprojection = &projection) + { + DrawCubesNative(view, (float*)pprojection, matrices, matrixCount); + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref float view, ref float projection, float* matrices, int matrixCount) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + DrawCubesNative((float*)pview, (float*)pprojection, matrices, matrixCount); + } + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(float* view, float* projection, ref float matrices, int matrixCount) + { + fixed (float* pmatrices = &matrices) + { + DrawCubesNative(view, projection, (float*)pmatrices, matrixCount); + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref float view, float* projection, ref float matrices, int matrixCount) + { + fixed (float* pview = &view) + { + fixed (float* pmatrices = &matrices) + { + DrawCubesNative((float*)pview, projection, (float*)pmatrices, matrixCount); + } + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(float* view, ref float projection, ref float matrices, int matrixCount) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrices = &matrices) + { + DrawCubesNative(view, (float*)pprojection, (float*)pmatrices, matrixCount); + } + } + } + + /// + /// To be documented. + /// + public static void DrawCubes(ref float view, ref float projection, ref float matrices, int matrixCount) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrices = &matrices) + { + DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DrawGridNative(float* view, float* projection, float* matrix, float gridSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[11])(view, projection, matrix, gridSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[11])((nint)view, (nint)projection, (nint)matrix, gridSize); + #endif + } + + /// + /// To be documented. + /// + public static void DrawGrid(float* view, float* projection, float* matrix, float gridSize) + { + DrawGridNative(view, projection, matrix, gridSize); + } + + /// + /// To be documented. + /// + public static void DrawGrid(ref Matrix4x4 view, ref Matrix4x4 projection, ref Matrix4x4 matrix, float gridSize) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + DrawGridNative((float*)pview, (float*)pprojection, (float*)pmatrix, gridSize); + } + } + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(ref float view, float* projection, float* matrix, float gridSize) + { + fixed (float* pview = &view) + { + DrawGridNative((float*)pview, projection, matrix, gridSize); + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(float* view, ref float projection, float* matrix, float gridSize) + { + fixed (float* pprojection = &projection) + { + DrawGridNative(view, (float*)pprojection, matrix, gridSize); + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(ref float view, ref float projection, float* matrix, float gridSize) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + DrawGridNative((float*)pview, (float*)pprojection, matrix, gridSize); + } + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(float* view, float* projection, ref float matrix, float gridSize) + { + fixed (float* pmatrix = &matrix) + { + DrawGridNative(view, projection, (float*)pmatrix, gridSize); + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(ref float view, float* projection, ref float matrix, float gridSize) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + DrawGridNative((float*)pview, projection, (float*)pmatrix, gridSize); + } + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(float* view, ref float projection, ref float matrix, float gridSize) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + DrawGridNative(view, (float*)pprojection, (float*)pmatrix, gridSize); + } + } + } + + /// + /// To be documented. + /// + public static void DrawGrid(ref float view, ref float projection, ref float matrix, float gridSize) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + DrawGridNative((float*)pview, (float*)pprojection, (float*)pmatrix, gridSize); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ManipulateNative(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[12])(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[12])((nint)view, (nint)projection, operation, mode, (nint)matrix, (nint)deltaMatrix, (nint)snap, (nint)localBounds, (nint)boundsSnap); + #endif + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap, ref float localBounds) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, default); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, default, default); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, default, default, default); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, default, default, default); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, default, default); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap, ref float localBounds) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, (float*)plocalBounds, default); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) + { + fixed (float* pview = &view) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) + { + fixed (float* pview = &view) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs new file mode 100644 index 000000000..700c21572 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs @@ -0,0 +1,1001 @@ +// ------------------------------------------------------------------------------ +// +// 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.ImGuizmo +{ + public unsafe partial class ImGuizmo + { + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + fixed (float* pdeltaMatrix = &deltaMatrix) + { + fixed (float* psnap = &snap) + { + fixed (float* plocalBounds = &localBounds) + { + fixed (float* pboundsSnap = &boundsSnap) + { + byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); + return ret != 0; + } + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ViewManipulateNative(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[13])(view, length, position, size, backgroundColor); + #else + ((delegate* unmanaged[Cdecl])funcTable[13])((nint)view, length, position, size, backgroundColor); + #endif + } + + /// + /// To be documented. + /// + public static void ViewManipulate(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + ViewManipulateNative(view, length, position, size, backgroundColor); + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref Matrix4x4 view, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (Matrix4x4* pview = &view) + { + ViewManipulateNative((float*)pview, length, position, size, backgroundColor); + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref float view, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pview = &view) + { + ViewManipulateNative((float*)pview, length, position, size, backgroundColor); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ViewManipulateNative(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[14])(view, projection, operation, mode, matrix, length, position, size, backgroundColor); + #else + ((delegate* unmanaged[Cdecl])funcTable[14])((nint)view, (nint)projection, operation, mode, (nint)matrix, length, position, size, backgroundColor); + #endif + } + + /// + /// To be documented. + /// + public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + ViewManipulateNative(view, projection, operation, mode, matrix, length, position, size, backgroundColor); + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (Matrix4x4* pview = &view) + { + fixed (Matrix4x4* pprojection = &projection) + { + fixed (Matrix4x4* pmatrix = &matrix) + { + ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); + } + } + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pview = &view) + { + ViewManipulateNative((float*)pview, projection, operation, mode, matrix, length, position, size, backgroundColor); + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pprojection = &projection) + { + ViewManipulateNative(view, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); + } + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pmatrix = &matrix) + { + ViewManipulateNative(view, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pview = &view) + { + fixed (float* pmatrix = &matrix) + { + ViewManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); + } + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + ViewManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); + } + } + } + + /// + /// To be documented. + /// + public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) + { + fixed (float* pview = &view) + { + fixed (float* pprojection = &projection) + { + fixed (float* pmatrix = &matrix) + { + ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetIDNative(int id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[15])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[15])(id); + #endif + } + + /// + /// To be documented. + /// + public static void SetID(int id) + { + SetIDNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsOverNative(ImGuizmoOperation op) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[16])(op); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[16])(op); + #endif + } + + /// + /// To be documented. + /// + public static bool IsOver(ImGuizmoOperation op) + { + byte ret = IsOverNative(op); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetGizmoSizeClipSpaceNative(float value) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[17])(value); + #else + ((delegate* unmanaged[Cdecl])funcTable[17])(value); + #endif + } + + /// + /// To be documented. + /// + public static void SetGizmoSizeClipSpace(float value) + { + SetGizmoSizeClipSpaceNative(value); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AllowAxisFlipNative(byte value) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[18])(value); + #else + ((delegate* unmanaged[Cdecl])funcTable[18])(value); + #endif + } + + /// + /// To be documented. + /// + public static void AllowAxisFlip(bool value) + { + AllowAxisFlipNative(value ? (byte)1 : (byte)0); + } + + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs b/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs new file mode 100644 index 000000000..7c03bdfa2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs @@ -0,0 +1,33 @@ +using System.Reflection; + +namespace Dalamud.Bindings.ImGuizmo +{ + using HexaGen.Runtime; + using System.Diagnostics; + + public static class ImGuizmoConfig + { + public static bool AotStaticLink; + } + + public static unsafe partial class ImGuizmo + { + static ImGuizmo() + { + if (ImGuizmoConfig.AotStaticLink) + { + InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); + } + else + { + // InitApi(new NativeLibraryContext(LibraryLoader.LoadLibrary(GetLibraryName, null))); + InitApi(new NativeLibraryContext(Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"))); + } + } + + public static string GetLibraryName() + { + return "cimguizmo"; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt b/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt new file mode 100644 index 000000000..b5dae7ac2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Juna Meinhold + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj b/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj new file mode 100644 index 000000000..650381100 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj @@ -0,0 +1,19 @@ + + + + enable + enable + true + + true + + + + + + + + + + + diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs new file mode 100644 index 000000000..bb286f3cc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + public unsafe partial class ImPlot + { + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs new file mode 100644 index 000000000..209000c11 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs @@ -0,0 +1,180 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int Formatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int Formatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void Locator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] ImPlotTicker* ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] ImPlotRange* range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] delegate* formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] void* formatterData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void Locator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] nint ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] nint range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] nint formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] nint formatterData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double TransformForward([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double TransformForward([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double TransformInverse([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double TransformInverse([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int UserFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int UserFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int ImPlotFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int ImPlotFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImPlotLocator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] ImPlotTicker* ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] ImPlotRange* range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] delegate* formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] void* formatterData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ImPlotLocator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] nint ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] nint range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] nint formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] nint formatterData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double ImPlotTransform([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate double ImPlotTransform([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate ImPlotPoint ImPlotGetter([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate ImPlotPoint ImPlotGetter([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + + #endif + + #if NET5_0_OR_GREATER + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void* ImPlotPointGetter([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "point")] [NativeName(NativeNameType.Type, "ImPlotPoint*")] ImPlotPoint* point); + + #else + /// + /// To be documented. + /// + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate nint ImPlotPointGetter([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] nint data, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "point")] [NativeName(NativeNameType.Type, "ImPlotPoint*")] nint point); + + #endif + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs new file mode 100644 index 000000000..19413110b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImAxis : int + { + /// + /// To be documented. + /// + X1 = unchecked(0), + + /// + /// To be documented. + /// + X2 = unchecked(1), + + /// + /// To be documented. + /// + X3 = unchecked(2), + + /// + /// To be documented. + /// + Y1 = unchecked(3), + + /// + /// To be documented. + /// + Y2 = unchecked(4), + + /// + /// To be documented. + /// + Y3 = unchecked(5), + + /// + /// To be documented. + /// + Count = unchecked(6), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs new file mode 100644 index 000000000..44648730c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotAxisFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoLabel = unchecked(1), + + /// + /// To be documented. + /// + NoGridLines = unchecked(2), + + /// + /// To be documented. + /// + NoTickMarks = unchecked(4), + + /// + /// To be documented. + /// + NoTickLabels = unchecked(8), + + /// + /// To be documented. + /// + NoInitialFit = unchecked(16), + + /// + /// To be documented. + /// + NoMenus = unchecked(32), + + /// + /// To be documented. + /// + NoSideSwitch = unchecked(64), + + /// + /// To be documented. + /// + NoHighlight = unchecked(128), + + /// + /// To be documented. + /// + Opposite = unchecked(256), + + /// + /// To be documented. + /// + Foreground = unchecked(512), + + /// + /// To be documented. + /// + Invert = unchecked(1024), + + /// + /// To be documented. + /// + AutoFit = unchecked(2048), + + /// + /// To be documented. + /// + RangeFit = unchecked(4096), + + /// + /// To be documented. + /// + PanStretch = unchecked(8192), + + /// + /// To be documented. + /// + LockMin = unchecked(16384), + + /// + /// To be documented. + /// + LockMax = unchecked(32768), + + /// + /// To be documented. + /// + Lock = unchecked(49152), + + /// + /// To be documented. + /// + NoDecorations = unchecked(15), + + /// + /// To be documented. + /// + AuxDefault = unchecked(258), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs new file mode 100644 index 000000000..9f0946a92 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotBarGroupsFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + + /// + /// To be documented. + /// + Stacked = unchecked(2048), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs new file mode 100644 index 000000000..c694a3162 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotBarsFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs new file mode 100644 index 000000000..c432a1425 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotBin : int + { + /// + /// To be documented. + /// + Sqrt = unchecked(-1), + + /// + /// To be documented. + /// + Sturges = unchecked(-2), + + /// + /// To be documented. + /// + Rice = unchecked(-3), + + /// + /// To be documented. + /// + Scott = unchecked(-4), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs new file mode 100644 index 000000000..aafb2314a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs @@ -0,0 +1,133 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotCol : int + { + /// + /// To be documented. + /// + Line = unchecked(0), + + /// + /// To be documented. + /// + Fill = unchecked(1), + + /// + /// To be documented. + /// + MarkerOutline = unchecked(2), + + /// + /// To be documented. + /// + MarkerFill = unchecked(3), + + /// + /// To be documented. + /// + ErrorBar = unchecked(4), + + /// + /// To be documented. + /// + FrameBg = unchecked(5), + + /// + /// To be documented. + /// + Bg = unchecked(6), + + /// + /// To be documented. + /// + Border = unchecked(7), + + /// + /// To be documented. + /// + LegendBg = unchecked(8), + + /// + /// To be documented. + /// + LegendBorder = unchecked(9), + + /// + /// To be documented. + /// + LegendText = unchecked(10), + + /// + /// To be documented. + /// + TitleText = unchecked(11), + + /// + /// To be documented. + /// + InlayText = unchecked(12), + + /// + /// To be documented. + /// + AxisText = unchecked(13), + + /// + /// To be documented. + /// + AxisGrid = unchecked(14), + + /// + /// To be documented. + /// + AxisTick = unchecked(15), + + /// + /// To be documented. + /// + AxisBg = unchecked(16), + + /// + /// To be documented. + /// + AxisBgHovered = unchecked(17), + + /// + /// To be documented. + /// + AxisBgActive = unchecked(18), + + /// + /// To be documented. + /// + Selection = unchecked(19), + + /// + /// To be documented. + /// + Crosshairs = unchecked(20), + + /// + /// To be documented. + /// + Count = unchecked(21), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs new file mode 100644 index 000000000..c750ea39c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs @@ -0,0 +1,103 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotColormap : int + { + /// + /// To be documented. + /// + Deep = unchecked(0), + + /// + /// To be documented. + /// + Dark = unchecked(1), + + /// + /// To be documented. + /// + Pastel = unchecked(2), + + /// + /// To be documented. + /// + Paired = unchecked(3), + + /// + /// To be documented. + /// + Viridis = unchecked(4), + + /// + /// To be documented. + /// + Plasma = unchecked(5), + + /// + /// To be documented. + /// + Hot = unchecked(6), + + /// + /// To be documented. + /// + Cool = unchecked(7), + + /// + /// To be documented. + /// + Pink = unchecked(8), + + /// + /// To be documented. + /// + Jet = unchecked(9), + + /// + /// To be documented. + /// + Twilight = unchecked(10), + + /// + /// To be documented. + /// + RdBu = unchecked(11), + + /// + /// To be documented. + /// + BrBg = unchecked(12), + + /// + /// To be documented. + /// + PiYg = unchecked(13), + + /// + /// To be documented. + /// + Spectral = unchecked(14), + + /// + /// To be documented. + /// + Greys = unchecked(15), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs new file mode 100644 index 000000000..01209d93b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotColormapScaleFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoLabel = unchecked(1), + + /// + /// To be documented. + /// + Opposite = unchecked(2), + + /// + /// To be documented. + /// + Invert = unchecked(4), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs new file mode 100644 index 000000000..73136b129 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotCond : int + { + /// + /// To be documented. + /// + None = unchecked((int)0), + + /// + /// To be documented. + /// + Always = unchecked((int)1), + + /// + /// To be documented. + /// + Once = unchecked((int)2), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs new file mode 100644 index 000000000..908807931 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotDateFmt : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + DayMo = unchecked(1), + + /// + /// To be documented. + /// + DayMoYr = unchecked(2), + + /// + /// To be documented. + /// + MoYr = unchecked(3), + + /// + /// To be documented. + /// + Mo = unchecked(4), + + /// + /// To be documented. + /// + Yr = unchecked(5), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs new file mode 100644 index 000000000..54cf62553 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotDigitalFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs new file mode 100644 index 000000000..5eac2c51d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotDragToolFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoCursors = unchecked(1), + + /// + /// To be documented. + /// + NoFit = unchecked(2), + + /// + /// To be documented. + /// + NoInputs = unchecked(4), + + /// + /// To be documented. + /// + Delayed = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs new file mode 100644 index 000000000..3be1ac4af --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotDummyFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs new file mode 100644 index 000000000..1225bd575 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotErrorBarsFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs new file mode 100644 index 000000000..5eba7ef23 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs @@ -0,0 +1,83 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoTitle = unchecked(1), + + /// + /// To be documented. + /// + NoLegend = unchecked(2), + + /// + /// To be documented. + /// + NoMouseText = unchecked(4), + + /// + /// To be documented. + /// + NoInputs = unchecked(8), + + /// + /// To be documented. + /// + NoMenus = unchecked(16), + + /// + /// To be documented. + /// + NoBoxSelect = unchecked(32), + + /// + /// To be documented. + /// + NoChild = unchecked(64), + + /// + /// To be documented. + /// + NoFrame = unchecked(128), + + /// + /// To be documented. + /// + Equal = unchecked(256), + + /// + /// To be documented. + /// + Crosshairs = unchecked(512), + + /// + /// To be documented. + /// + CanvasOnly = unchecked(55), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs new file mode 100644 index 000000000..9bc31be74 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotHeatmapFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + ColMajor = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs new file mode 100644 index 000000000..9706cf645 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotHistogramFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + + /// + /// To be documented. + /// + Cumulative = unchecked(2048), + + /// + /// To be documented. + /// + Density = unchecked(4096), + + /// + /// To be documented. + /// + NoOutliers = unchecked(8192), + + /// + /// To be documented. + /// + ColMajor = unchecked(16384), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs new file mode 100644 index 000000000..bca33cd13 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotImageFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs new file mode 100644 index 000000000..59c259efe --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotInfLinesFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs new file mode 100644 index 000000000..e16d40db4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotItemFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoLegend = unchecked(1), + + /// + /// To be documented. + /// + NoFit = unchecked(2), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs new file mode 100644 index 000000000..d3596a413 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotLegendFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoButtons = unchecked(1), + + /// + /// To be documented. + /// + NoHighlightItem = unchecked(2), + + /// + /// To be documented. + /// + NoHighlightAxis = unchecked(4), + + /// + /// To be documented. + /// + NoMenus = unchecked(8), + + /// + /// To be documented. + /// + Outside = unchecked(16), + + /// + /// To be documented. + /// + Horizontal = unchecked(32), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs new file mode 100644 index 000000000..ee52730f5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotLineFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Segments = unchecked(1024), + + /// + /// To be documented. + /// + Loop = unchecked(2048), + + /// + /// To be documented. + /// + SkipNaN = unchecked(4096), + + /// + /// To be documented. + /// + NoClip = unchecked(8192), + + /// + /// To be documented. + /// + Shaded = unchecked(16384), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs new file mode 100644 index 000000000..f1a58d9c3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotLocation : int + { + /// + /// To be documented. + /// + Center = unchecked(0), + + /// + /// To be documented. + /// + North = unchecked(1), + + /// + /// To be documented. + /// + South = unchecked(2), + + /// + /// To be documented. + /// + West = unchecked(4), + + /// + /// To be documented. + /// + East = unchecked(8), + + /// + /// To be documented. + /// + NorthWest = unchecked(5), + + /// + /// To be documented. + /// + NorthEast = unchecked(9), + + /// + /// To be documented. + /// + SouthWest = unchecked(6), + + /// + /// To be documented. + /// + SouthEast = unchecked(10), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs new file mode 100644 index 000000000..5ab69893b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs @@ -0,0 +1,83 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotMarker : int + { + /// + /// To be documented. + /// + None = unchecked(-1), + + /// + /// To be documented. + /// + Circle = unchecked(0), + + /// + /// To be documented. + /// + Square = unchecked(1), + + /// + /// To be documented. + /// + Diamond = unchecked(2), + + /// + /// To be documented. + /// + Up = unchecked(3), + + /// + /// To be documented. + /// + Down = unchecked(4), + + /// + /// To be documented. + /// + Left = unchecked(5), + + /// + /// To be documented. + /// + Right = unchecked(6), + + /// + /// To be documented. + /// + Cross = unchecked(7), + + /// + /// To be documented. + /// + Plus = unchecked(8), + + /// + /// To be documented. + /// + Asterisk = unchecked(9), + + /// + /// To be documented. + /// + Count = unchecked(10), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs new file mode 100644 index 000000000..2c28345d1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotMouseTextFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoAuxAxes = unchecked(1), + + /// + /// To be documented. + /// + NoFormat = unchecked(2), + + /// + /// To be documented. + /// + ShowAlways = unchecked(4), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs new file mode 100644 index 000000000..1d90a94aa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotPieChartFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Normalize = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs new file mode 100644 index 000000000..1f6923bc3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotScale : int + { + /// + /// To be documented. + /// + Linear = unchecked(0), + + /// + /// To be documented. + /// + Time = unchecked(1), + + /// + /// To be documented. + /// + Log10 = unchecked(2), + + /// + /// To be documented. + /// + SymLog = unchecked(3), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs new file mode 100644 index 000000000..36e6c2885 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotScatterFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoClip = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs new file mode 100644 index 000000000..1d3aa01bb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotShadedFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs new file mode 100644 index 000000000..96709f1e6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotStairsFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + PreStep = unchecked(1024), + + /// + /// To be documented. + /// + Shaded = unchecked(2048), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs new file mode 100644 index 000000000..42c4f46f1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotStemsFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Horizontal = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs new file mode 100644 index 000000000..5216632f0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotStyleVar : int + { + /// + /// To be documented. + /// + LineWeight = unchecked(0), + + /// + /// To be documented. + /// + Marker = unchecked(1), + + /// + /// To be documented. + /// + MarkerSize = unchecked(2), + + /// + /// To be documented. + /// + MarkerWeight = unchecked(3), + + /// + /// To be documented. + /// + FillAlpha = unchecked(4), + + /// + /// To be documented. + /// + ErrorBarSize = unchecked(5), + + /// + /// To be documented. + /// + ErrorBarWeight = unchecked(6), + + /// + /// To be documented. + /// + DigitalHeight = unchecked(7), + + /// + /// To be documented. + /// + DigitalGap = unchecked(8), + + /// + /// To be documented. + /// + BorderSize = unchecked(9), + + /// + /// To be documented. + /// + MinorAlpha = unchecked(10), + + /// + /// To be documented. + /// + MajorTickLen = unchecked(11), + + /// + /// To be documented. + /// + MinorTickLen = unchecked(12), + + /// + /// To be documented. + /// + MajorTickSize = unchecked(13), + + /// + /// To be documented. + /// + MinorTickSize = unchecked(14), + + /// + /// To be documented. + /// + MajorGridSize = unchecked(15), + + /// + /// To be documented. + /// + MinorGridSize = unchecked(16), + + /// + /// To be documented. + /// + Padding = unchecked(17), + + /// + /// To be documented. + /// + LabelPadding = unchecked(18), + + /// + /// To be documented. + /// + LegendPadding = unchecked(19), + + /// + /// To be documented. + /// + LegendInnerPadding = unchecked(20), + + /// + /// To be documented. + /// + LegendSpacing = unchecked(21), + + /// + /// To be documented. + /// + MousePosPadding = unchecked(22), + + /// + /// To be documented. + /// + AnnotationPadding = unchecked(23), + + /// + /// To be documented. + /// + FitPadding = unchecked(24), + + /// + /// To be documented. + /// + DefaultSize = unchecked(25), + + /// + /// To be documented. + /// + MinSize = unchecked(26), + + /// + /// To be documented. + /// + Count = unchecked(27), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs new file mode 100644 index 000000000..885250abf --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs @@ -0,0 +1,83 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotSubplotFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + NoTitle = unchecked(1), + + /// + /// To be documented. + /// + NoLegend = unchecked(2), + + /// + /// To be documented. + /// + NoMenus = unchecked(4), + + /// + /// To be documented. + /// + NoResize = unchecked(8), + + /// + /// To be documented. + /// + NoAlign = unchecked(16), + + /// + /// To be documented. + /// + ShareItems = unchecked(32), + + /// + /// To be documented. + /// + LinkRows = unchecked(64), + + /// + /// To be documented. + /// + LinkCols = unchecked(128), + + /// + /// To be documented. + /// + LinkAllX = unchecked(256), + + /// + /// To be documented. + /// + LinkAllY = unchecked(512), + + /// + /// To be documented. + /// + ColMajor = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs new file mode 100644 index 000000000..b3a1fa084 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotTextFlags : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Vertical = unchecked(1024), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs new file mode 100644 index 000000000..78c646fcb --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotTimeFmt : int + { + /// + /// To be documented. + /// + None = unchecked(0), + + /// + /// To be documented. + /// + Us = unchecked(1), + + /// + /// To be documented. + /// + SUs = unchecked(2), + + /// + /// To be documented. + /// + SMs = unchecked(3), + + /// + /// To be documented. + /// + S = unchecked(4), + + /// + /// To be documented. + /// + HrMinSMs = unchecked(5), + + /// + /// To be documented. + /// + HrMinS = unchecked(6), + + /// + /// To be documented. + /// + HrMin = unchecked(7), + + /// + /// To be documented. + /// + Hr = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs new file mode 100644 index 000000000..1400fd463 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------ +// +// 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 HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [Flags] + public enum ImPlotTimeUnit : int + { + /// + /// To be documented. + /// + Us = unchecked(0), + + /// + /// To be documented. + /// + Ms = unchecked(1), + + /// + /// To be documented. + /// + S = unchecked(2), + + /// + /// To be documented. + /// + Min = unchecked(3), + + /// + /// To be documented. + /// + Hr = unchecked(4), + + /// + /// To be documented. + /// + Day = unchecked(5), + + /// + /// To be documented. + /// + Mo = unchecked(6), + + /// + /// To be documented. + /// + Yr = unchecked(7), + + /// + /// To be documented. + /// + Count = unchecked(8), + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs new file mode 100644 index 000000000..3b3d48bc7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs @@ -0,0 +1,763 @@ +// ------------------------------------------------------------------------------ +// +// 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 + { + internal static FunctionTable funcTable; + + /// + /// Initializes the function table, automatically called. Do not call manually, only after . + /// + public static void InitApi(INativeContext context) + { + funcTable = new FunctionTable(context, 727); + funcTable.Load(0, "ImPlotPoint_ImPlotPoint_Nil"); + funcTable.Load(1, "ImPlotPoint_destroy"); + funcTable.Load(2, "ImPlotPoint_ImPlotPoint_double"); + funcTable.Load(3, "ImPlotPoint_ImPlotPoint_Vec2"); + funcTable.Load(4, "ImPlotRange_ImPlotRange_Nil"); + funcTable.Load(5, "ImPlotRange_destroy"); + funcTable.Load(6, "ImPlotRange_ImPlotRange_double"); + funcTable.Load(7, "ImPlotRange_Contains"); + funcTable.Load(8, "ImPlotRange_Size"); + funcTable.Load(9, "ImPlotRange_Clamp"); + funcTable.Load(10, "ImPlotRect_ImPlotRect_Nil"); + funcTable.Load(11, "ImPlotRect_destroy"); + funcTable.Load(12, "ImPlotRect_ImPlotRect_double"); + funcTable.Load(13, "ImPlotRect_Contains_PlotPoInt"); + funcTable.Load(14, "ImPlotRect_Contains_double"); + funcTable.Load(15, "ImPlotRect_Size"); + funcTable.Load(16, "ImPlotRect_Clamp_PlotPoInt"); + funcTable.Load(17, "ImPlotRect_Clamp_double"); + funcTable.Load(18, "ImPlotRect_Min"); + funcTable.Load(19, "ImPlotRect_Max"); + funcTable.Load(20, "ImPlotStyle_ImPlotStyle"); + funcTable.Load(21, "ImPlotStyle_destroy"); + funcTable.Load(22, "ImPlotInputMap_ImPlotInputMap"); + funcTable.Load(23, "ImPlotInputMap_destroy"); + funcTable.Load(24, "ImPlot_CreateContext"); + funcTable.Load(25, "ImPlot_DestroyContext"); + funcTable.Load(26, "ImPlot_GetCurrentContext"); + funcTable.Load(27, "ImPlot_SetCurrentContext"); + funcTable.Load(28, "ImPlot_SetImGuiContext"); + funcTable.Load(29, "ImPlot_BeginPlot"); + funcTable.Load(30, "ImPlot_EndPlot"); + funcTable.Load(31, "ImPlot_BeginSubplots"); + funcTable.Load(32, "ImPlot_EndSubplots"); + funcTable.Load(33, "ImPlot_SetupAxis"); + funcTable.Load(34, "ImPlot_SetupAxisLimits"); + funcTable.Load(35, "ImPlot_SetupAxisLinks"); + funcTable.Load(36, "ImPlot_SetupAxisFormat_Str"); + funcTable.Load(37, "ImPlot_SetupAxisFormat_PlotFormatter"); + funcTable.Load(38, "ImPlot_SetupAxisTicks_doublePtr"); + funcTable.Load(39, "ImPlot_SetupAxisTicks_double"); + funcTable.Load(40, "ImPlot_SetupAxisScale_PlotScale"); + funcTable.Load(41, "ImPlot_SetupAxisScale_PlotTransform"); + funcTable.Load(42, "ImPlot_SetupAxisLimitsConstraints"); + funcTable.Load(43, "ImPlot_SetupAxisZoomConstraints"); + funcTable.Load(44, "ImPlot_SetupAxes"); + funcTable.Load(45, "ImPlot_SetupAxesLimits"); + funcTable.Load(46, "ImPlot_SetupLegend"); + funcTable.Load(47, "ImPlot_SetupMouseText"); + funcTable.Load(48, "ImPlot_SetupFinish"); + funcTable.Load(49, "ImPlot_SetNextAxisLimits"); + funcTable.Load(50, "ImPlot_SetNextAxisLinks"); + funcTable.Load(51, "ImPlot_SetNextAxisToFit"); + funcTable.Load(52, "ImPlot_SetNextAxesLimits"); + funcTable.Load(53, "ImPlot_SetNextAxesToFit"); + funcTable.Load(54, "ImPlot_PlotLine_FloatPtrInt"); + funcTable.Load(55, "ImPlot_PlotLine_doublePtrInt"); + funcTable.Load(56, "ImPlot_PlotLine_S8PtrInt"); + 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() + { + funcTable.Free(); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs new file mode 100644 index 000000000..1e7e1b53e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs @@ -0,0 +1,5019 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPoint* ImPlotPointNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[0])(); + #else + return (ImPlotPoint*)((delegate* unmanaged[Cdecl])funcTable[0])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPointPtr ImPlotPoint() + { + ImPlotPointPtr ret = ImPlotPointNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotPoint* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[1])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotPointPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotPoint self) + { + fixed (ImPlotPoint* pself = &self) + { + DestroyNative((ImPlotPoint*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPoint* ImPlotPointNative(double x, double y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[2])(x, y); + #else + return (ImPlotPoint*)((delegate* unmanaged[Cdecl])funcTable[2])(x, y); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPointPtr ImPlotPoint(double x, double y) + { + ImPlotPointPtr ret = ImPlotPointNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPoint* ImPlotPointNative(Vector2 p) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[3])(p); + #else + return (ImPlotPoint*)((delegate* unmanaged[Cdecl])funcTable[3])(p); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPointPtr ImPlotPoint(Vector2 p) + { + ImPlotPointPtr ret = ImPlotPointNative(p); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRange* ImPlotRangeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[4])(); + #else + return (ImPlotRange*)((delegate* unmanaged[Cdecl])funcTable[4])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotRangePtr ImPlotRange() + { + ImPlotRangePtr ret = ImPlotRangeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotRange* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[5])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[5])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotRangePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotRange self) + { + fixed (ImPlotRange* pself = &self) + { + DestroyNative((ImPlotRange*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRange* ImPlotRangeNative(double min, double max) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[6])(min, max); + #else + return (ImPlotRange*)((delegate* unmanaged[Cdecl])funcTable[6])(min, max); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotRangePtr ImPlotRange(double min, double max) + { + ImPlotRangePtr ret = ImPlotRangeNative(min, max); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ContainsNative(ImPlotRange* self, double value) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[7])(self, value); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[7])((nint)self, value); + #endif + } + + /// + /// To be documented. + /// + public static bool Contains(ImPlotRangePtr self, double value) + { + byte ret = ContainsNative(self, value); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Contains(ref ImPlotRange self, double value) + { + fixed (ImPlotRange* pself = &self) + { + byte ret = ContainsNative((ImPlotRange*)pself, value); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double SizeNative(ImPlotRange* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[8])(self); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[8])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static double Size(ImPlotRangePtr self) + { + double ret = SizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static double Size(ref ImPlotRange self) + { + fixed (ImPlotRange* pself = &self) + { + double ret = SizeNative((ImPlotRange*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ClampNative(ImPlotRange* self, double value) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[9])(self, value); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[9])((nint)self, value); + #endif + } + + /// + /// To be documented. + /// + public static double Clamp(ImPlotRangePtr self, double value) + { + double ret = ClampNative(self, value); + return ret; + } + + /// + /// To be documented. + /// + public static double Clamp(ref ImPlotRange self, double value) + { + fixed (ImPlotRange* pself = &self) + { + double ret = ClampNative((ImPlotRange*)pself, value); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRect* ImPlotRectNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[10])(); + #else + return (ImPlotRect*)((delegate* unmanaged[Cdecl])funcTable[10])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotRectPtr ImPlotRect() + { + ImPlotRectPtr ret = ImPlotRectNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[11])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[11])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotRectPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + DestroyNative((ImPlotRect*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRect* ImPlotRectNative(double xMin, double xMax, double yMin, double yMax) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[12])(xMin, xMax, yMin, yMax); + #else + return (ImPlotRect*)((delegate* unmanaged[Cdecl])funcTable[12])(xMin, xMax, yMin, yMax); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotRectPtr ImPlotRect(double xMin, double xMax, double yMin, double yMax) + { + ImPlotRectPtr ret = ImPlotRectNative(xMin, xMax, yMin, yMax); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ContainsNative(ImPlotRect* self, ImPlotPoint p) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[13])(self, p); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[13])((nint)self, p); + #endif + } + + /// + /// To be documented. + /// + public static bool Contains(ImPlotRectPtr self, ImPlotPoint p) + { + byte ret = ContainsNative(self, p); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Contains(ref ImPlotRect self, ImPlotPoint p) + { + fixed (ImPlotRect* pself = &self) + { + byte ret = ContainsNative((ImPlotRect*)pself, p); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ContainsNative(ImPlotRect* self, double x, double y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[14])(self, x, y); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[14])((nint)self, x, y); + #endif + } + + /// + /// To be documented. + /// + public static bool Contains(ImPlotRectPtr self, double x, double y) + { + byte ret = ContainsNative(self, x, y); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Contains(ref ImPlotRect self, double x, double y) + { + fixed (ImPlotRect* pself = &self) + { + byte ret = ContainsNative((ImPlotRect*)pself, x, y); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SizeNative(ImPlotPoint* pOut, ImPlotRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[15])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[15])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPoint Size(ImPlotRectPtr self) + { + ImPlotPoint ret; + SizeNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void Size(ImPlotPointPtr pOut, ImPlotRectPtr self) + { + SizeNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void Size(ref ImPlotPoint pOut, ImPlotRectPtr self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + SizeNative((ImPlotPoint*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImPlotPoint Size(ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + ImPlotPoint ret; + SizeNative(&ret, (ImPlotRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Size(ImPlotPointPtr pOut, ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + SizeNative(pOut, (ImPlotRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void Size(ref ImPlotPoint pOut, ref ImPlotRect self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + fixed (ImPlotRect* pself = &self) + { + SizeNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClampNative(ImPlotPoint* pOut, ImPlotRect* self, ImPlotPoint p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[16])(pOut, self, p); + #else + ((delegate* unmanaged[Cdecl])funcTable[16])((nint)pOut, (nint)self, p); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPoint Clamp(ImPlotRectPtr self, ImPlotPoint p) + { + ImPlotPoint ret; + ClampNative(&ret, self, p); + return ret; + } + + /// + /// To be documented. + /// + public static void Clamp(ImPlotPointPtr pOut, ImPlotRectPtr self, ImPlotPoint p) + { + ClampNative(pOut, self, p); + } + + /// + /// To be documented. + /// + public static void Clamp(ref ImPlotPoint pOut, ImPlotRectPtr self, ImPlotPoint p) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + ClampNative((ImPlotPoint*)ppOut, self, p); + } + } + + /// + /// To be documented. + /// + public static ImPlotPoint Clamp(ref ImPlotRect self, ImPlotPoint p) + { + fixed (ImPlotRect* pself = &self) + { + ImPlotPoint ret; + ClampNative(&ret, (ImPlotRect*)pself, p); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Clamp(ImPlotPointPtr pOut, ref ImPlotRect self, ImPlotPoint p) + { + fixed (ImPlotRect* pself = &self) + { + ClampNative(pOut, (ImPlotRect*)pself, p); + } + } + + /// + /// To be documented. + /// + public static void Clamp(ref ImPlotPoint pOut, ref ImPlotRect self, ImPlotPoint p) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + fixed (ImPlotRect* pself = &self) + { + ClampNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself, p); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClampNative(ImPlotPoint* pOut, ImPlotRect* self, double x, double y) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[17])(pOut, self, x, y); + #else + ((delegate* unmanaged[Cdecl])funcTable[17])((nint)pOut, (nint)self, x, y); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPoint Clamp(ImPlotRectPtr self, double x, double y) + { + ImPlotPoint ret; + ClampNative(&ret, self, x, y); + return ret; + } + + /// + /// To be documented. + /// + public static void Clamp(ImPlotPointPtr pOut, ImPlotRectPtr self, double x, double y) + { + ClampNative(pOut, self, x, y); + } + + /// + /// To be documented. + /// + public static void Clamp(ref ImPlotPoint pOut, ImPlotRectPtr self, double x, double y) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + ClampNative((ImPlotPoint*)ppOut, self, x, y); + } + } + + /// + /// To be documented. + /// + public static ImPlotPoint Clamp(ref ImPlotRect self, double x, double y) + { + fixed (ImPlotRect* pself = &self) + { + ImPlotPoint ret; + ClampNative(&ret, (ImPlotRect*)pself, x, y); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Clamp(ImPlotPointPtr pOut, ref ImPlotRect self, double x, double y) + { + fixed (ImPlotRect* pself = &self) + { + ClampNative(pOut, (ImPlotRect*)pself, x, y); + } + } + + /// + /// To be documented. + /// + public static void Clamp(ref ImPlotPoint pOut, ref ImPlotRect self, double x, double y) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + fixed (ImPlotRect* pself = &self) + { + ClampNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself, x, y); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MinNative(ImPlotPoint* pOut, ImPlotRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[18])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[18])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPoint Min(ImPlotRectPtr self) + { + ImPlotPoint ret; + MinNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void Min(ImPlotPointPtr pOut, ImPlotRectPtr self) + { + MinNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void Min(ref ImPlotPoint pOut, ImPlotRectPtr self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + MinNative((ImPlotPoint*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImPlotPoint Min(ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + ImPlotPoint ret; + MinNative(&ret, (ImPlotRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Min(ImPlotPointPtr pOut, ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + MinNative(pOut, (ImPlotRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void Min(ref ImPlotPoint pOut, ref ImPlotRect self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + fixed (ImPlotRect* pself = &self) + { + MinNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MaxNative(ImPlotPoint* pOut, ImPlotRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[19])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[19])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPoint Max(ImPlotRectPtr self) + { + ImPlotPoint ret; + MaxNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void Max(ImPlotPointPtr pOut, ImPlotRectPtr self) + { + MaxNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void Max(ref ImPlotPoint pOut, ImPlotRectPtr self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + MaxNative((ImPlotPoint*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImPlotPoint Max(ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + ImPlotPoint ret; + MaxNative(&ret, (ImPlotRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Max(ImPlotPointPtr pOut, ref ImPlotRect self) + { + fixed (ImPlotRect* pself = &self) + { + MaxNative(pOut, (ImPlotRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void Max(ref ImPlotPoint pOut, ref ImPlotRect self) + { + fixed (ImPlotPoint* ppOut = &pOut) + { + fixed (ImPlotRect* pself = &self) + { + MaxNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotStyle* ImPlotStyleNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[20])(); + #else + return (ImPlotStyle*)((delegate* unmanaged[Cdecl])funcTable[20])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotStylePtr ImPlotStyle() + { + ImPlotStylePtr ret = ImPlotStyleNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotStyle* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[21])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[21])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotStylePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotStyle self) + { + fixed (ImPlotStyle* pself = &self) + { + DestroyNative((ImPlotStyle*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotInputMap* ImPlotInputMapNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[22])(); + #else + return (ImPlotInputMap*)((delegate* unmanaged[Cdecl])funcTable[22])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotInputMapPtr ImPlotInputMap() + { + ImPlotInputMapPtr ret = ImPlotInputMapNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotInputMap* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[23])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[23])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotInputMapPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotInputMap self) + { + fixed (ImPlotInputMap* pself = &self) + { + DestroyNative((ImPlotInputMap*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotContext* CreateContextNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[24])(); + #else + return (ImPlotContext*)((delegate* unmanaged[Cdecl])funcTable[24])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotContextPtr CreateContext() + { + ImPlotContextPtr ret = CreateContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyContextNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[25])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[25])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DestroyContext(ImPlotContextPtr ctx) + { + DestroyContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void DestroyContext() + { + DestroyContextNative((ImPlotContext*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void DestroyContext(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + DestroyContextNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotContext* GetCurrentContextNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[26])(); + #else + return (ImPlotContext*)((delegate* unmanaged[Cdecl])funcTable[26])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotContextPtr GetCurrentContext() + { + ImPlotContextPtr ret = GetCurrentContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCurrentContextNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[27])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[27])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void SetCurrentContext(ImPlotContextPtr ctx) + { + SetCurrentContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void SetCurrentContext(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + SetCurrentContextNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetImGuiContextNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[28])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[28])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void SetImGuiContext(ImGuiContextPtr ctx) + { + SetImGuiContextNative(ctx); + } + + /// + /// To be documented. + /// + public static void SetImGuiContext(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + SetImGuiContextNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginPlotNative(byte* titleId, Vector2 size, ImPlotFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[29])(titleId, size, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[29])((nint)titleId, size, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginPlot(byte* titleId, Vector2 size, ImPlotFlags flags) + { + byte ret = BeginPlotNative(titleId, size, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(byte* titleId, Vector2 size) + { + byte ret = BeginPlotNative(titleId, size, (ImPlotFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(byte* titleId) + { + byte ret = BeginPlotNative(titleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(byte* titleId, ImPlotFlags flags) + { + byte ret = BeginPlotNative(titleId, (Vector2)(new Vector2(-1,0)), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ref byte titleId, Vector2 size, ImPlotFlags flags) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ref byte titleId, Vector2 size) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, size, (ImPlotFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ref byte titleId) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ref byte titleId, ImPlotFlags flags) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ReadOnlySpan titleId, Vector2 size, ImPlotFlags flags) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ReadOnlySpan titleId, Vector2 size) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, size, (ImPlotFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ReadOnlySpan titleId) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(ReadOnlySpan titleId, ImPlotFlags flags) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginPlot(string titleId, Vector2 size, ImPlotFlags flags) + { + 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; + } + byte ret = BeginPlotNative(pStr0, size, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(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; + } + byte ret = BeginPlotNative(pStr0, size, (ImPlotFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(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; + } + byte ret = BeginPlotNative(pStr0, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginPlot(string titleId, ImPlotFlags flags) + { + 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; + } + byte ret = BeginPlotNative(pStr0, (Vector2)(new Vector2(-1,0)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndPlotNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[30])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[30])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndPlot() + { + EndPlotNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginSubplotsNative(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[31])(titleId, rows, cols, size, flags, rowRatios, colRatios); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[31])((nint)titleId, rows, cols, size, flags, (nint)rowRatios, (nint)colRatios); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, colRatios); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) + { + fixed (byte* ptitleId = &titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, float* rowRatios) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) + { + fixed (byte* ptitleId = titleId) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) + { + 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, colRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) + { + 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) + { + 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios) + { + 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) + { + 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; + } + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, colRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, colRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ref float rowRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, colRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) + { + 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; + } + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, (float*)pcolRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) + { + 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; + } + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = &titleId) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(ReadOnlySpan titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) + { + fixed (byte* ptitleId = titleId) + { + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) + { + 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; + } + fixed (float* prowRatios = &rowRatios) + { + fixed (float* pcolRatios = &colRatios) + { + byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndSubplotsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[32])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[32])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndSubplots() + { + EndSubplotsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisNative(ImAxis axis, byte* label, ImPlotAxisFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[33])(axis, label, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[33])(axis, (nint)label, flags); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, byte* label, ImPlotAxisFlags flags) + { + SetupAxisNative(axis, label, flags); + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, byte* label) + { + SetupAxisNative(axis, label, (ImPlotAxisFlags)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis) + { + SetupAxisNative(axis, (byte*)(((void*)0)), (ImPlotAxisFlags)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, ImPlotAxisFlags flags) + { + SetupAxisNative(axis, (byte*)(((void*)0)), flags); + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, ref byte label, ImPlotAxisFlags flags) + { + fixed (byte* plabel = &label) + { + SetupAxisNative(axis, (byte*)plabel, flags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, ref byte label) + { + fixed (byte* plabel = &label) + { + SetupAxisNative(axis, (byte*)plabel, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, ReadOnlySpan label, ImPlotAxisFlags flags) + { + fixed (byte* plabel = label) + { + SetupAxisNative(axis, (byte*)plabel, flags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + SetupAxisNative(axis, (byte*)plabel, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis axis, string label, ImPlotAxisFlags 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; + } + SetupAxisNative(axis, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxis(ImAxis 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; + } + SetupAxisNative(axis, pStr0, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisLimitsNative(ImAxis axis, double vMin, double vMax, ImPlotCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[34])(axis, vMin, vMax, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[34])(axis, vMin, vMax, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisLimits(ImAxis axis, double vMin, double vMax, ImPlotCond cond) + { + SetupAxisLimitsNative(axis, vMin, vMax, cond); + } + + /// + /// To be documented. + /// + public static void SetupAxisLimits(ImAxis axis, double vMin, double vMax) + { + SetupAxisLimitsNative(axis, vMin, vMax, (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisLinksNative(ImAxis axis, double* linkMin, double* linkMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[35])(axis, linkMin, linkMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[35])(axis, (nint)linkMin, (nint)linkMax); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisLinks(ImAxis axis, double* linkMin, double* linkMax) + { + SetupAxisLinksNative(axis, linkMin, linkMax); + } + + /// + /// To be documented. + /// + public static void SetupAxisLinks(ImAxis axis, ref double linkMin, double* linkMax) + { + fixed (double* plinkMin = &linkMin) + { + SetupAxisLinksNative(axis, (double*)plinkMin, linkMax); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisLinks(ImAxis axis, double* linkMin, ref double linkMax) + { + fixed (double* plinkMax = &linkMax) + { + SetupAxisLinksNative(axis, linkMin, (double*)plinkMax); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisLinks(ImAxis axis, ref double linkMin, ref double linkMax) + { + fixed (double* plinkMin = &linkMin) + { + fixed (double* plinkMax = &linkMax) + { + SetupAxisLinksNative(axis, (double*)plinkMin, (double*)plinkMax); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisFormatNative(ImAxis axis, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[36])(axis, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[36])(axis, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, byte* fmt) + { + SetupAxisFormatNative(axis, fmt); + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + SetupAxisFormatNative(axis, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + SetupAxisFormatNative(axis, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, 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; + } + SetupAxisFormatNative(axis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisFormatNative(ImAxis axis, ImPlotFormatter formatter, void* data) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[37])(axis, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), data); + #else + ((delegate* unmanaged[Cdecl])funcTable[37])(axis, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)data); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, ImPlotFormatter formatter, void* data) + { + SetupAxisFormatNative(axis, formatter, data); + } + + /// + /// To be documented. + /// + public static void SetupAxisFormat(ImAxis axis, ImPlotFormatter formatter) + { + SetupAxisFormatNative(axis, formatter, (void*)(((void*)0))); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisTicksNative(ImAxis axis, double* values, int nTicks, byte** labels, byte keepDefault) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[38])(axis, values, nTicks, labels, keepDefault); + #else + ((delegate* unmanaged[Cdecl])funcTable[38])(axis, (nint)values, nTicks, (nint)labels, keepDefault); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, byte** labels, bool keepDefault) + { + SetupAxisTicksNative(axis, values, nTicks, labels, keepDefault ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, byte** labels) + { + SetupAxisTicksNative(axis, values, nTicks, labels, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks) + { + SetupAxisTicksNative(axis, values, nTicks, (byte**)(((void*)0)), (byte)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, bool keepDefault) + { + SetupAxisTicksNative(axis, values, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, byte** labels, bool keepDefault) + { + fixed (double* pvalues = &values) + { + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, labels, keepDefault ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, byte** labels) + { + fixed (double* pvalues = &values) + { + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, labels, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks) + { + fixed (double* pvalues = &values) + { + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, (byte**)(((void*)0)), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, bool keepDefault) + { + fixed (double* pvalues = &values) + { + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, string[] labels, bool keepDefault) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, values, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, string[] labels) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, values, nTicks, pStrArray0, (byte)(0)); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, string[] labels, bool keepDefault) + { + fixed (double* pvalues = &values) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, string[] labels) + { + fixed (double* pvalues = &values) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, (double*)pvalues, nTicks, pStrArray0, (byte)(0)); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisTicksNative(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels, byte keepDefault) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[39])(axis, vMin, vMax, nTicks, labels, keepDefault); + #else + ((delegate* unmanaged[Cdecl])funcTable[39])(axis, vMin, vMax, nTicks, (nint)labels, keepDefault); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels, bool keepDefault) + { + SetupAxisTicksNative(axis, vMin, vMax, nTicks, labels, keepDefault ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels) + { + SetupAxisTicksNative(axis, vMin, vMax, nTicks, labels, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks) + { + SetupAxisTicksNative(axis, vMin, vMax, nTicks, (byte**)(((void*)0)), (byte)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, bool keepDefault) + { + SetupAxisTicksNative(axis, vMin, vMax, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, string[] labels, bool keepDefault) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, vMin, vMax, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, string[] labels) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labels); + if (labels != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labels.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); + } + SetupAxisTicksNative(axis, vMin, vMax, nTicks, pStrArray0, (byte)(0)); + for (int i = 0; i < labels.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisScaleNative(ImAxis axis, ImPlotScale scale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[40])(axis, scale); + #else + ((delegate* unmanaged[Cdecl])funcTable[40])(axis, scale); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisScale(ImAxis axis, ImPlotScale scale) + { + SetupAxisScaleNative(axis, scale); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisScaleNative(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse, void* data) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], delegate*, void*, void>)funcTable[41])(axis, (delegate*)Utils.GetFunctionPointerForDelegate(forward), (delegate*)Utils.GetFunctionPointerForDelegate(inverse), data); + #else + ((delegate* unmanaged[Cdecl])funcTable[41])(axis, (nint)Utils.GetFunctionPointerForDelegate(forward), (nint)Utils.GetFunctionPointerForDelegate(inverse), (nint)data); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisScale(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse, void* data) + { + SetupAxisScaleNative(axis, forward, inverse, data); + } + + /// + /// To be documented. + /// + public static void SetupAxisScale(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse) + { + SetupAxisScaleNative(axis, forward, inverse, (void*)(((void*)0))); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisLimitsConstraintsNative(ImAxis axis, double vMin, double vMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[42])(axis, vMin, vMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[42])(axis, vMin, vMax); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisLimitsConstraints(ImAxis axis, double vMin, double vMax) + { + SetupAxisLimitsConstraintsNative(axis, vMin, vMax); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxisZoomConstraintsNative(ImAxis axis, double zMin, double zMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[43])(axis, zMin, zMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[43])(axis, zMin, zMax); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxisZoomConstraints(ImAxis axis, double zMin, double zMax) + { + SetupAxisZoomConstraintsNative(axis, zMin, zMax); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxesNative(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[44])(xLabel, yLabel, xFlags, yFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[44])((nint)xLabel, (nint)yLabel, xFlags, yFlags); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + SetupAxesNative(xLabel, yLabel, xFlags, yFlags); + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags) + { + SetupAxesNative(xLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, byte* yLabel) + { + SetupAxesNative(xLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = &xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, xFlags, yFlags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, byte* yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = &xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, byte* yLabel) + { + fixed (byte* pxLabel = &xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, xFlags, yFlags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, byte* yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, byte* yLabel) + { + fixed (byte* pxLabel = xLabel) + { + SetupAxesNative((byte*)pxLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(pStr0, yLabel, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, byte* yLabel, ImPlotAxisFlags xFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(pStr0, yLabel, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, byte* yLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(pStr0, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ref byte yLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, ReadOnlySpan yLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(xLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(xLabel, pStr0, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, string yLabel, ImPlotAxisFlags xFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(xLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(byte* xLabel, string yLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative(xLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ref byte yLabel) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ReadOnlySpan yLabel) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (yLabel != null) + { + pStrSize1 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SetupAxesNative(pStr0, pStr1, xFlags, yFlags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, string yLabel, ImPlotAxisFlags xFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (yLabel != null) + { + pStrSize1 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SetupAxesNative(pStr0, pStr1, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, string yLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (yLabel != null) + { + pStrSize1 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SetupAxesNative(pStr0, pStr1, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, ReadOnlySpan yLabel) + { + fixed (byte* pxLabel = &xLabel) + { + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = &xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, string yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = &xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ref byte xLabel, string yLabel) + { + fixed (byte* pxLabel = &xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, ref byte yLabel) + { + fixed (byte* pxLabel = xLabel) + { + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + fixed (byte* pxLabel = xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, string yLabel, ImPlotAxisFlags xFlags) + { + fixed (byte* pxLabel = xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(ReadOnlySpan xLabel, string yLabel) + { + fixed (byte* pxLabel = xLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (yLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(yLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetupAxesNative((byte*)pxLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ref byte yLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = &yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, yFlags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ReadOnlySpan yLabel, ImPlotAxisFlags xFlags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetupAxes(string xLabel, ReadOnlySpan yLabel) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (xLabel != null) + { + pStrSize0 = Utils.GetByteCountUTF8(xLabel); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pyLabel = yLabel) + { + SetupAxesNative(pStr0, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupAxesLimitsNative(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[45])(xMin, xMax, yMin, yMax, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[45])(xMin, xMax, yMin, yMax, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetupAxesLimits(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) + { + SetupAxesLimitsNative(xMin, xMax, yMin, yMax, cond); + } + + /// + /// To be documented. + /// + public static void SetupAxesLimits(double xMin, double xMax, double yMin, double yMax) + { + SetupAxesLimitsNative(xMin, xMax, yMin, yMax, (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupLegendNative(ImPlotLocation location, ImPlotLegendFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[46])(location, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[46])(location, flags); + #endif + } + + /// + /// To be documented. + /// + public static void SetupLegend(ImPlotLocation location, ImPlotLegendFlags flags) + { + SetupLegendNative(location, flags); + } + + /// + /// To be documented. + /// + public static void SetupLegend(ImPlotLocation location) + { + SetupLegendNative(location, (ImPlotLegendFlags)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupMouseTextNative(ImPlotLocation location, ImPlotMouseTextFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[47])(location, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[47])(location, flags); + #endif + } + + /// + /// To be documented. + /// + public static void SetupMouseText(ImPlotLocation location, ImPlotMouseTextFlags flags) + { + SetupMouseTextNative(location, flags); + } + + /// + /// To be documented. + /// + public static void SetupMouseText(ImPlotLocation location) + { + SetupMouseTextNative(location, (ImPlotMouseTextFlags)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupFinishNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[48])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[48])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetupFinish() + { + SetupFinishNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextAxisLimitsNative(ImAxis axis, double vMin, double vMax, ImPlotCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[49])(axis, vMin, vMax, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[49])(axis, vMin, vMax, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextAxisLimits(ImAxis axis, double vMin, double vMax, ImPlotCond cond) + { + SetNextAxisLimitsNative(axis, vMin, vMax, cond); + } + + /// + /// To be documented. + /// + public static void SetNextAxisLimits(ImAxis axis, double vMin, double vMax) + { + SetNextAxisLimitsNative(axis, vMin, vMax, (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextAxisLinksNative(ImAxis axis, double* linkMin, double* linkMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[50])(axis, linkMin, linkMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[50])(axis, (nint)linkMin, (nint)linkMax); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextAxisLinks(ImAxis axis, double* linkMin, double* linkMax) + { + SetNextAxisLinksNative(axis, linkMin, linkMax); + } + + /// + /// To be documented. + /// + public static void SetNextAxisLinks(ImAxis axis, ref double linkMin, double* linkMax) + { + fixed (double* plinkMin = &linkMin) + { + SetNextAxisLinksNative(axis, (double*)plinkMin, linkMax); + } + } + + /// + /// To be documented. + /// + public static void SetNextAxisLinks(ImAxis axis, double* linkMin, ref double linkMax) + { + fixed (double* plinkMax = &linkMax) + { + SetNextAxisLinksNative(axis, linkMin, (double*)plinkMax); + } + } + + /// + /// To be documented. + /// + public static void SetNextAxisLinks(ImAxis axis, ref double linkMin, ref double linkMax) + { + fixed (double* plinkMin = &linkMin) + { + fixed (double* plinkMax = &linkMax) + { + SetNextAxisLinksNative(axis, (double*)plinkMin, (double*)plinkMax); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextAxisToFitNative(ImAxis axis) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[51])(axis); + #else + ((delegate* unmanaged[Cdecl])funcTable[51])(axis); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextAxisToFit(ImAxis axis) + { + SetNextAxisToFitNative(axis); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextAxesLimitsNative(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[52])(xMin, xMax, yMin, yMax, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[52])(xMin, xMax, yMin, yMax, cond); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextAxesLimits(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) + { + SetNextAxesLimitsNative(xMin, xMax, yMin, yMax, cond); + } + + /// + /// To be documented. + /// + public static void SetNextAxesLimits(double xMin, double xMax, double yMin, double yMax) + { + SetNextAxesLimitsNative(xMin, xMax, yMin, yMax, (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextAxesToFitNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[53])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[53])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextAxesToFit() + { + SetNextAxesToFitNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[54])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[54])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* 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, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* 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, float* 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, float* 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, float* 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, float* 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, float* 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, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* 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, float* 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, float* 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, float* 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, float* 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, float* 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, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* 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(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* 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, float* 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs new file mode 100644 index 000000000..43be86995 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotLine(ReadOnlySpan labelId, float* 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, float* 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, float* 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, float* 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, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* 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(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + 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, 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; + } + 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, 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; + } + 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, float* 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, float* 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 float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLine(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) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, (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 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) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (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 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) + { + PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (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 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLine(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) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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) + { + PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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) + { + PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLine(string labelId, ref float 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLine(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) + { + PlotLineNative(pStr0, (float*)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 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) + { + PlotLineNative(pStr0, (float*)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 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) + { + PlotLineNative(pStr0, (float*)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 float 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 (float* pvalues = &values) + { + PlotLineNative(pStr0, (float*)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 float 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 (float* pvalues = &values) + { + PlotLineNative(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 PlotLineNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[55])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[55])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* 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, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + 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, 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; + } + 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, 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; + } + 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, double* 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, double* 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 double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, (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 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (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 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) + { + PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (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 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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) + { + PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)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 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) + { + PlotLineNative(pStr0, (double*)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 double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)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 double 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 (double* pvalues = &values) + { + PlotLineNative(pStr0, (double*)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, 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); + #else + ((delegate* unmanaged[Cdecl])funcTable[56])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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))); + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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); + } + + /// + /// To be documented. + /// + 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) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs new file mode 100644 index 000000000..e10e1296d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, 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, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// 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. + /// + public static void PlotLine(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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, short* 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); + #else + ((delegate* unmanaged[Cdecl])funcTable[58])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* 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, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* 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, short* 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, short* 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, short* 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, short* 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, 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; + } + 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, 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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, ushort* 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, ushort* 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, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, 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; + } + 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, 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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(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 PlotLine(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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, int* 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, 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. + /// + [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 new file mode 100644 index 000000000..6eb0f58e9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotLine(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(string labelId, uint* 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, uint* 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(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* 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(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, 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; + } + PlotLineNative(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 PlotLine(string labelId, 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; + } + PlotLineNative(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 PlotLine(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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(pStr0, values, 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, 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; + } + PlotLineNative(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 PlotLine(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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int 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, long* 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, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + 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) + { + 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); + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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 (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 new file mode 100644 index 000000000..1a02c80c1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs @@ -0,0 +1,5044 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 (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); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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[66])(labelId, xs, ys, count, flags, offset, stride); + #else + ((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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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(ref byte labelId, sbyte* xs, sbyte* 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(ref byte labelId, sbyte* xs, sbyte* 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(ref byte labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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; + } + 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[67])(labelId, xs, ys, count, flags, offset, stride); + #else + ((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, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* xs, byte* 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, 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(ref byte 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #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(byte* labelId, short* xs, short* 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, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* xs, short* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, short* xs, short* 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, short* xs, short* 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, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, short* xs, short* 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, short* xs, short* 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, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* 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, 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, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string 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, xs, ys, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string 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, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(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; + } + 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(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; + } + 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(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; + } + 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, 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) + { + 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) + { + 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 new file mode 100644 index 000000000..766e3129f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[75])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[75])((nint)labelId, (nint)values, count, xscale, xstart, 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) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(double))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, double* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (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, 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double 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 (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double 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 (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double 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 (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double 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 (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, 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) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)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 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) + { + PlotScatterNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)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, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[76])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[76])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* 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, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + 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, 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; + } + 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, 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, 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, sbyte* 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, sbyte* 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, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[77])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[77])((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) + { + PlotScatterNative(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) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset) + { + 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 new file mode 100644 index 000000000..93f58eaa5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte 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(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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, byte* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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); + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[78])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[78])((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) + { + PlotScatterNative(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) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* 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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(short))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, 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; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, 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; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, 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; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + 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, 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; + } + 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, 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; + } + 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, short* 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, short* 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, ushort* 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, ushort* 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, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(ushort))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(pStr0, values, 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, 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; + } + PlotScatterNative(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 PlotScatter(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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, int* 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, int* 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, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* 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))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotScatterNative((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) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* 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))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, int* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (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, 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), 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, 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + 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 new file mode 100644 index 000000000..d13ff40de --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 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. + /// + [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); + } + } + } + + /// + /// 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) + { + 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); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref 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* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, 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, 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* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(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 PlotScatter(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) + { + PlotScatterNative(pStr0, (float*)pxs, (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, 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) + { + PlotScatterNative(pStr0, (float*)pxs, (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, 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) + { + PlotScatterNative(pStr0, (float*)pxs, (float*)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, double* xs, double* 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, double* xs, double* 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, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, double* 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, double* xs, double* 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, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, double* 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, double* xs, double* 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, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* 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, double* xs, double* 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, double* xs, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* xs, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + 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 double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + 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 (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, double* 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))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, double* 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))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, double* 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, 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) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* 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))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* 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))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double xs, double* 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 (double* pxs = &xs) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double xs, double* 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 (double* pxs = &xs) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + 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 (double* pys = &ys) + { + 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 new file mode 100644 index 000000000..5ca337f13 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* xs, ref double 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 (double* pys = &ys) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* xs, ref double 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 (double* pys = &ys) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double xs, ref double 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 (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double xs, ref double 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 (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(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 PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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) + { + PlotScatterNative(pStr0, (double*)pxs, (double*)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, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[86])(labelId, xs, ys, count, flags, offset, stride); + #else + ((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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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); + } + } + + /// + /// To be documented. + /// + 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, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[87])(labelId, xs, ys, count, flags, offset, stride); + #else + ((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, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* xs, byte* 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, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* xs, byte* 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, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* 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, byte* xs, byte* 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, byte* xs, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* xs, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(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; + } + 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, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #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(byte* labelId, short* xs, short* 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, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* xs, short* 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, short* xs, short* 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, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte 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(ReadOnlySpan labelId, short* xs, short* 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, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + 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) + { + 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 new file mode 100644 index 000000000..feb156111 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, flags, 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, 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 (float* pvalues = &values) + { + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, 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, 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, xstart, 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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), (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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), (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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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), (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); + } + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[95])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[95])((nint)labelId, (nint)values, count, 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) + { + PlotStairsNative(labelId, values, count, 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) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + 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, 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; + } + 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, 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; + } + 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, double* 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, double* 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (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 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (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 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) + { + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (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 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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) + { + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotStairsNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)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 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) + { + PlotStairsNative(pStr0, (double*)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 double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)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 double 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 (double* pvalues = &values) + { + PlotStairsNative(pStr0, (double*)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, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[96])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[96])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* 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, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, int offset) + { + 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(ref byte labelId, sbyte* 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(ref byte labelId, sbyte* 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(ref byte labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, sbyte* 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, sbyte* 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, sbyte* 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, sbyte* 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, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int 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 PlotStairs(byte* labelId, byte* 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, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* 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(byte))); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs new file mode 100644 index 000000000..513659690 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(byte))); + 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(byte))); + 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(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); + } + } + + /// + /// 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[98])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[98])((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); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan 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(ReadOnlySpan 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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[99])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[99])((nint)labelId, (nint)values, count, xscale, xstart, 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) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, 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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int 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 PlotStairs(byte* labelId, int* 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, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* 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(int))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* 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(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* 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(int))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, 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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(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 PlotStairs(string labelId, 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; + } + PlotStairsNative(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 PlotStairs(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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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; + } + PlotStairsNative(pStr0, values, 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, 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. + /// + [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 new file mode 100644 index 000000000..c625fdfa6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref 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; + } + fixed (float* pxs = &xs) + { + PlotStairsNative(pStr0, (float*)pxs, ys, 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, 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) + { + PlotStairsNative(pStr0, (float*)pxs, ys, 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, 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) + { + PlotStairsNative(pStr0, (float*)pxs, 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, 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 PlotStairsNative(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[105])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[105])((nint)labelId, (nint)xs, (nint)ys, 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) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, double* 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, double* xs, double* 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, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, double* 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, double* xs, double* 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, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* 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, 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; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, xs, ys, 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, 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; + } + PlotStairsNative(pStr0, xs, 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, 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; + } + PlotStairsNative(pStr0, xs, ys, 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, 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; + } + 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 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs new file mode 100644 index 000000000..ffb03c49e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// 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 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, xs, 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, sbyte* xs, sbyte* 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, byte* xs, byte* 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, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + 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) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* 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, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* 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, 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; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, 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; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(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; + } + 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, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int 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 PlotStairs(byte* labelId, short* xs, short* 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, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + 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) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(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) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* 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, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* 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, short* xs, short* 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, short* xs, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* xs, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + 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 new file mode 100644 index 000000000..9dba7c8e5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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, 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 (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, 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) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, 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, 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); + } + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[116])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[116])((nint)labelId, (nint)values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// 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) + { + 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, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* 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(double))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* 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(double))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, double* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (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, 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (int)(sizeof(double))); + 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, 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 (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + 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, 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 (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (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 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 (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (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 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 (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (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 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) + { + 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(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 PlotShaded(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, 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) + { + PlotShadedNative(pStr0, (double*)pvalues, 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, ref 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; + } + 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref 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; + } + 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref 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; + } + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// 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); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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[117])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[117])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* 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, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* values, int count, int offset, int stride) + { + 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 new file mode 100644 index 000000000..a075894b6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs @@ -0,0 +1,5035 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotShaded(byte* labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* 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(sbyte))); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, sbyte* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + pStr0 = Utils.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); + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[118])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[118])((nint)labelId, (nint)values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// 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(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) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (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) + { + 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) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* 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(byte))); + } + } + + /// + /// 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (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* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (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* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* 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(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, byte* 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, byte* 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, 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; + } + 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, byte* 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, byte* 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, byte* 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, 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[119])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[119])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + 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) + { + 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) + { + pStr0 = Utils.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, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* 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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(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 PlotShaded(string labelId, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(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 PlotShaded(string labelId, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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; + } + 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, 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); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, 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; + } + 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, 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; + } + 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, 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[120])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[120])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + 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) + { + 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) + { + pStr0 = Utils.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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs new file mode 100644 index 000000000..e4a95237a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotShaded(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; + } + 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. + /// + [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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[121])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[121])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + 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) + { + 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, int* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, int* 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(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + 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. + /// + [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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[122])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[122])((nint)labelId, (nint)values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// 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) + { + 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, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* 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(uint))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* 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(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* 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(uint))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, uint* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(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 PlotShaded(string labelId, 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; + } + PlotShadedNative(pStr0, values, 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, 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; + } + PlotShadedNative(pStr0, values, 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, 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. + /// + [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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[123])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[123])((nint)labelId, (nint)values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, 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) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale) + { + 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 new file mode 100644 index 000000000..3710e13f2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + 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, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* 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(ulong))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* 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(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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. + /// + [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); + } + } + } + + /// + /// 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, flags, 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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(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 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 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[126])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[126])((nint)labelId, (nint)xs, (nint)ys, count, yref, 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) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((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* 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs new file mode 100644 index 000000000..602ccfd0e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, double* xs, 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; + } + PlotShadedNative(pStr0, xs, ys, count, yref, 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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, xs, ys, 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, double* xs, 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; + } + PlotShadedNative(pStr0, xs, ys, 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, 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, flags, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotShadedNative(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 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, flags, 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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(pStr0, xs, (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, 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) + { + PlotShadedNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotShadedNative(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 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 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[127])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[127])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, xs, 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[128])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[128])((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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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; + } + PlotShadedNative(pStr0, xs, ys, count, yref, 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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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 new file mode 100644 index 000000000..a60c3b1a4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs @@ -0,0 +1,5046 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotShaded(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; + } + PlotShadedNative(pStr0, xs, ys, count, (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, short* xs, short* 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(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, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(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; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (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* 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(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, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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; + } + 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, short* xs, short* 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, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[130])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[130])((nint)labelId, (nint)xs, (nint)ys, count, yref, 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) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* 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, ushort* xs, ushort* 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, ushort* xs, ushort* 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, 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(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. + /// + [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[131])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[131])((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); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, int* xs, 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; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (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* 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(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, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(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, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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; + } + 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, int* xs, 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; + } + 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, uint* xs, 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; + } + PlotShadedNative(pStr0, xs, ys, count, yref, 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, 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(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 new file mode 100644 index 000000000..d219f078e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs @@ -0,0 +1,5045 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotShaded(string labelId, 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* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, 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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, 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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, 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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (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, 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, 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) + { + pStr0 = Utils.Alloc(pStrSize0 + 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); + } + } + } + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[136])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[136])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, 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) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(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) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* 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, double* xs, double* ys1, double* 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, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* 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, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(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) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* 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, double* xs, double* ys1, 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; + } + 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, double* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + PlotShadedNative(pStr0, xs, ys1, 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, double* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, ys1, ys2, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, 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, 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) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, 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, 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) + { + PlotShadedNative(pStr0, xs, (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, 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* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (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, 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* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (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, 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* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (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, 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* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, 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, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, 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) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, 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) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, 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) + { + fixed (double* pxs = &xs) + { + 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 PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (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) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (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, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (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, 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* 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 new file mode 100644 index 000000000..90c2c33e0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotShaded(string labelId, ref double xs, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (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, 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* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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))); + } + } + } + } + + /// + /// 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 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[137])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[137])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* 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, sbyte* xs, sbyte* ys1, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* 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, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[138])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[138])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, 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) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* 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, byte* xs, byte* ys1, byte* 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, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* 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, byte* xs, byte* ys1, byte* 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, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* 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, byte* xs, 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; + } + 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, byte* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, 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* 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (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* 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (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* 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; + } + 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, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[139])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[139])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, 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) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* 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, short* xs, short* ys1, short* 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, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* 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, short* xs, short* ys1, short* 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, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* 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, short* xs, 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; + } + 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, short* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + PlotShadedNative(pStr0, xs, ys1, 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, short* xs, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + 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, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int 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 PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* 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, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + 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) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* 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, ushort* xs, ushort* ys1, ushort* 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, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* 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, ushort* xs, ushort* ys1, 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; + } + 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, ushort* xs, ushort* ys1, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, ushort* ys1, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, ushort* ys1, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, ushort* ys1, 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; + } + 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, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int 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 PlotShaded(byte* labelId, int* xs, int* ys1, int* 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, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + 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) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* 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, int* xs, int* ys1, int* 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, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* 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, int* xs, 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); + } + 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, int* xs, int* ys1, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + PlotShadedNative(pStr0, xs, ys1, ys2, 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, 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; + } + 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 new file mode 100644 index 000000000..f1912925c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 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); + 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, 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, shift, 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, 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* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, 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) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, ref 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; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, 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, 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); + } + } + } + + /// + /// 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[146])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[146])((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) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, double* 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(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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(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; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (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, 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(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (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 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (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 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) + { + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (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 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, 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) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, 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, ref 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)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 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) + { + PlotBarsNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)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 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; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)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, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[147])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[147])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, 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) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, sbyte* 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, sbyte* 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, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[148])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[148])((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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs new file mode 100644 index 000000000..2078ecf30 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotBars(byte* labelId, byte* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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) + { + 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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. + /// + [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[149])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[149])((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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ReadOnlySpan labelId, ushort* 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, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* 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(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* 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(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 new file mode 100644 index 000000000..16984fb2c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotBars(string labelId, uint* 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(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(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; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), 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, 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(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* 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(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, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, uint* 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, 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; + } + 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, uint* 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, uint* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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. + /// + [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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref 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; + } + fixed (float* pxs = &xs) + { + PlotBarsNative(pStr0, (float*)pxs, 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, ref 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; + } + fixed (float* pxs = &xs) + { + PlotBarsNative(pStr0, (float*)pxs, 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, ref 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; + } + fixed (float* pxs = &xs) + { + PlotBarsNative(pStr0, (float*)pxs, 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, ref 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; + } + 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotBarsNative(pStr0, xs, (float*)pys, 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, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// 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) + { + 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, 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) + { + pStr0 = Utils.Alloc(pStrSize0 + 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); + } + } + } + } + + /// + /// 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[156])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[156])((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) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(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) + { + 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, 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref 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; + } + fixed (double* pxs = &xs) + { + PlotBarsNative(pStr0, (double*)pxs, 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, ref 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; + } + 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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref 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; + } + fixed (double* pxs = &xs) + { + PlotBarsNative(pStr0, (double*)pxs, 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, 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs new file mode 100644 index 000000000..920c32de1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, 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) + { + 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); + 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) + { + pStr0 = Utils.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); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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[157])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[157])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, sbyte* xs, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, sbyte* xs, sbyte* 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. + /// + [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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, 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; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, 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; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, 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; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, 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; + } + PlotBarsNative(pStr0, xs, ys, 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotBarsNative(pStr0, xs, ys, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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; + } + PlotBarsNative(pStr0, xs, ys, 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, ushort* xs, ushort* 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(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* xs, ushort* 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(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* xs, ushort* 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(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* xs, ushort* 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(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* xs, ushort* 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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int 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 PlotBars(byte* labelId, int* xs, int* 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, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* xs, int* 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, int* xs, int* 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, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* xs, int* 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, int* xs, int* 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, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* 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, 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; + } + 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, 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; + } + PlotBarsNative(pStr0, xs, ys, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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; + } + PlotBarsNative(pStr0, xs, 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, 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. + /// + [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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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. + /// + [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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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. + /// + [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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, ulong* xs, ulong* 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(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* xs, ulong* 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(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* xs, ulong* 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(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* xs, ulong* 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(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* xs, ulong* 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. + /// + [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) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + 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[166])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[166])((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, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #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) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + 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, sbyte* 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs new file mode 100644 index 000000000..d88d01fd0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs @@ -0,0 +1,5047 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotBarGroups(string[] labelIds, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[168])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[168])((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. + /// + [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[169])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[169])((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. + /// + [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 new file mode 100644 index 000000000..4bcc5c49b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotErrorBars(string labelId, float* xs, ref 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* pys = &ys) + { + 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 PlotErrorBars(string labelId, float* xs, ref 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* pys = &ys) + { + 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 PlotErrorBars(string labelId, float* xs, ref 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* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (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, 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) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// 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) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// 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) + { + 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, flags, 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) + { + 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, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + 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 (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, 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 err, int count) + { + 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), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + 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 (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, 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 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) + { + 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, flags, 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) + { + 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, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + 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, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count) + { + 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), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, int offset) + { + 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, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + 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 (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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (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, 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* pxs = &xs) + { + fixed (float* pys = &ys) + { + 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); + } + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (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, ref 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* pys = &ys) + { + 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); + } + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (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, ref 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* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)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, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[176])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[176])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* 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, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* 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, double* xs, double* ys, double* 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, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* 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, double* xs, double* ys, double* 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, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* 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, double* xs, 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; + } + 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, double* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, 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; + } + 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, 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) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, 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, 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) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, 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, 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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 new file mode 100644 index 000000000..c96bb69cd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotErrorBars(string labelId, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, 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; + } + 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, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[179])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[179])((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); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, short* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, short* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, err, 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, 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; + } + 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, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[180])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[180])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* 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, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* 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, ushort* xs, ushort* ys, ushort* 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, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* 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, ushort* xs, ushort* ys, ushort* 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, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* 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, ushort* xs, 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; + } + 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, ushort* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, 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; + } + 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 PlotErrorBars(string labelId, ushort* xs, 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; + } + 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 PlotErrorBars(string labelId, ushort* xs, 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; + } + 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 PlotErrorBars(string labelId, ushort* xs, 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; + } + 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, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #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) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte 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(ReadOnlySpan labelId, int* xs, int* ys, int* 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, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + 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 new file mode 100644 index 000000000..f07595c3b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count) + { + fixed (float* pys = &ys) + { + 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 PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) + { + fixed (float* pys = &ys) + { + 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 PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + 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) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, 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, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + 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))); + } + } + } + } + + /// + /// To be documented. + /// + 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) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, 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, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + 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) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + 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) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, 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, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + 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); + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + 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); + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, 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* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + 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) + { + pStr0 = Utils.Alloc(pStrSize0 + 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); + } + } + } + } + } + + /// + /// 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) + { + 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) + { + 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 new file mode 100644 index 000000000..d646397fc --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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) + { + 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); + } + } + } + } + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[186])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((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 PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* 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, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* 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, 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, 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, double* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref 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; + } + 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// 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) + { + fixed (double* pys = &ys) + { + 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); + } + } + + /// + /// 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) + { + 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(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) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (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) + { + 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, neg, 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, 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) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (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, 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* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (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, 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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); + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + 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); + } + } + } + } + + /// + /// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (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, 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* 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 PlotErrorBars(string labelId, ref 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* pxs = &xs) + { + 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 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (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, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// 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) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// 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) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs new file mode 100644 index 000000000..60c618d88 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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 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 (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// 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) + { + 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))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, 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), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// 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) + { + 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); + } + } + } + } + + /// + /// 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) + { + 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); + } + } + } + } + + /// + /// 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) + { + 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))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, 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), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + 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 (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// 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) + { + 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); + } + } + } + } + + /// + /// 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) + { + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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); + } + } + } + } + + /// + /// 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) + { + 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 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[187])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((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 PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, byte* xs, byte* ys, byte* neg, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int 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 PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* 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, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* 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, short* xs, short* ys, short* neg, short* 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, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* 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, short* xs, short* ys, 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; + } + 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, short* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, short* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, short* xs, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, 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, short* xs, 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; + } + 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, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #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 PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* 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, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* 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, ushort* xs, ushort* ys, ushort* neg, ushort* 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, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + 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) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// 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) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* 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, 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; + } + 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, 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, ushort* ys, 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; + } + 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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; + } + PlotErrorBarsNative(pStr0, xs, 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, 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; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 new file mode 100644 index 000000000..3218a2cc0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs @@ -0,0 +1,5032 @@ +// ------------------------------------------------------------------------------ +// +// 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 PlotErrorBars(string labelId, 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; + } + PlotErrorBarsNative(pStr0, xs, 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, 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); + } + } + } + + /// + /// To be documented. + /// + 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, (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, 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, start, 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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); + } + } + } + + /// + /// 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) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[196])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[196])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #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) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + 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) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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, 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs new file mode 100644 index 000000000..a1f541b64 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, 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; + } + PlotStemsNative(pStr0, values, 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, 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); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + 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[197])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[197])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* 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, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + 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) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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, 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* 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(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, sbyte* 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, sbyte* 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, sbyte* 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, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int 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 PlotStems(byte* labelId, byte* 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, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + 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) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, 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) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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, 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; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, 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, 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(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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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 new file mode 100644 index 000000000..a20535ba4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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(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, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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(byte))); + 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(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, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 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. + /// + [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[199])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[199])((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. + /// + [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[200])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[200])((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. + /// + [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 new file mode 100644 index 000000000..26478d957 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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. + /// + [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[203])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[203])((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))); + } + } + + /// + /// 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. + /// + [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) + { + 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. + /// + [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) + { + 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))); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs new file mode 100644 index 000000000..dcd840414 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// 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 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[206])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[206])((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); + } + } + + /// + /// 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))); + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs new file mode 100644 index 000000000..1baf25fb0 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs @@ -0,0 +1,5040 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[207])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[207])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, 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) + { + 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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; + } + 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[208])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[208])((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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(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) + { + 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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) + { + 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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. + /// + [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 new file mode 100644 index 000000000..3f7f934b2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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. + /// + [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); + } + } + } + + /// + /// 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[216])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[216])((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, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int 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 PlotInfLines(byte* labelId, sbyte* 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, sbyte* 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, sbyte* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, sbyte* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, sbyte* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + 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) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + } + 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, 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; + } + 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, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int 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 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(byte))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, byte* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, byte* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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. + /// + [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[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 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. + /// + [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 new file mode 100644 index 000000000..476739bd3 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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(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. + /// + [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); + } + } + } + + /// + /// 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[226])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[226])((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, 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 (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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 (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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 (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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 (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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[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 new file mode 100644 index 000000000..863edf631 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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, 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. + /// + [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[229])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[229])((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, 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. + /// + [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[230])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[230])((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, 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. + /// + [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 (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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. + /// + [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[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) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + 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, 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 new file mode 100644 index 000000000..c1e7c9548 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs @@ -0,0 +1,5042 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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. + /// + [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[235])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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); + } + } + + /// + /// 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs new file mode 100644 index 000000000..ee2962286 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + + /// + /// 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs new file mode 100644 index 000000000..8c17ac67b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs @@ -0,0 +1,5047 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + } + } + + /// + /// 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); + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs new file mode 100644 index 000000000..7a7e406ed --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs @@ -0,0 +1,5052 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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[236])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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); + } + } + + /// + /// 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs new file mode 100644 index 000000000..a9bae8d48 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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 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)); + } + } + } + + /// + /// 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs new file mode 100644 index 000000000..434049058 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + } + } + + /// + /// 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); + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs new file mode 100644 index 000000000..10c81bfd9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs @@ -0,0 +1,5030 @@ +// ------------------------------------------------------------------------------ +// +// 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 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, 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[237])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 PlotHeatmap(byte* labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, 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) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, 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) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + 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 new file mode 100644 index 000000000..74a2b2e73 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* 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, 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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[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, 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, sbyte* 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, sbyte* 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, sbyte* 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, 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); + } + } + } + + /// + /// 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[238])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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)); + } + } + + /// + /// 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs new file mode 100644 index 000000000..e0627f308 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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, 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) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs new file mode 100644 index 000000000..040d74de2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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. + /// + [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); + } + } + + /// + /// 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, 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 (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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs new file mode 100644 index 000000000..4a42303ca --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs @@ -0,0 +1,5040 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + } + + /// + /// 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[240])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs new file mode 100644 index 000000000..00f9ff4ad --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs @@ -0,0 +1,5049 @@ +// ------------------------------------------------------------------------------ +// +// 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, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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, 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); + } + } + } + + /// + /// 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 new file mode 100644 index 000000000..0d9962ced --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[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. + /// + [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[241])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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, 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)); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs new file mode 100644 index 000000000..427b133db --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + } + + /// + /// 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. + /// + [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[242])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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, 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs new file mode 100644 index 000000000..3f3b85227 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs @@ -0,0 +1,5033 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + } + + /// + /// 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. + /// + [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[243])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[243])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); + #endif + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs new file mode 100644 index 000000000..f5aff30cd --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs @@ -0,0 +1,5040 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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, 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.056.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs new file mode 100644 index 000000000..dc2139595 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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. + /// + [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[244])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((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 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); + } + } + + /// + /// 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, 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs new file mode 100644 index 000000000..58af123f9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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); + } + } + + /// + /// 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. + /// + [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[245])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[245])((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; + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs new file mode 100644 index 000000000..c0e3fa542 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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; + } + } + } + + /// + /// 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, 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) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, 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) + { + 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(ReadOnlySpan 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(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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, sbyte* 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, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #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 new file mode 100644 index 000000000..68c25b06b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs @@ -0,0 +1,5048 @@ +// ------------------------------------------------------------------------------ +// +// 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(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. + /// + [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[249])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[249])((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. + /// + [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[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 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. + /// + [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) + { + 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; + } + } + + /// + /// 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. + /// + [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) + { + 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; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs new file mode 100644 index 000000000..e3e180a0a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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. + /// + [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[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 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; + } + + /// + /// 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 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; + } + } + + /// + /// 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; + } + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs new file mode 100644 index 000000000..cc33cdc3e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// 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 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[256])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[256])((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; + } + } + } + } + + /// + /// 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, 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) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, 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) + { + 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, 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(ref byte 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(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) + { + 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 new file mode 100644 index 000000000..de631b144 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs @@ -0,0 +1,5033 @@ +// ------------------------------------------------------------------------------ +// +// 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[258])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[258])((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. + /// + [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[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 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; + } + + /// + /// 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. + /// + [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[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 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. + /// + [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 new file mode 100644 index 000000000..fe3fbae24 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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. + /// + [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); + } + } + } + + /// + /// 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[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 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, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int 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 PlotDigital(byte* labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* 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, 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) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, 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; + } + 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, sbyte* xs, sbyte* 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, sbyte* xs, sbyte* 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, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int 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 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + } + } + + /// + /// 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(byte))); + 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(byte))); + 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(byte))); + 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(byte))); + 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. + /// + [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[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 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. + /// + [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[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 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))); + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs new file mode 100644 index 000000000..f1cbb2b9b --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs @@ -0,0 +1,5033 @@ +// ------------------------------------------------------------------------------ +// +// 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(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. + /// + [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) + { + 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. + /// + [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) + { + 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) + { + 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[282])(x, y, col, pixOffset, clamp, round); + #else + ((delegate* unmanaged[Cdecl])funcTable[282])(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[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 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[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 (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[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 (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[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 (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[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 (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[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 (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[291])(axis); + #else + ((delegate* unmanaged[Cdecl])funcTable[291])(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[292])(xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[292])(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[293])(pOut, pix, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[293])((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[294])(pOut, x, y, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[294])((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[295])(pOut, plt, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[295])((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[296])(pOut, x, y, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[296])((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[297])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[297])((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[298])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[298])((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[299])(pOut, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[299])((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[300])(xAxis, yAxis); + #else + return (ImPlotRect)((delegate* unmanaged[Cdecl])funcTable[300])(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[301])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[301])(); + #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[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 new file mode 100644 index 000000000..5da30f965 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs @@ -0,0 +1,5026 @@ +// ------------------------------------------------------------------------------ +// +// 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 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 (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[309])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[309])(); + #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[310])(labelId, mouseButton); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[310])((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; + } + + /// + /// 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) + { + 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[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) + { + 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[320])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[320])(); + #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[321])(); + #else + return (ImPlotStyle*)((delegate* unmanaged[Cdecl])funcTable[321])(); + #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[322])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[322])((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[323])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[323])((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[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) + { + StyleColorsDarkNative((ImPlotStyle*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsLightNative(ImPlotStyle* dst) + { + #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) + { + 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[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) + { + 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[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) + { + 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[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); + } + } + + /// + /// To be documented. + /// + [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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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); + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs new file mode 100644 index 000000000..4e7748ef9 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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(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); + } + } + } + + /// + /// 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[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; + } + } + } + + /// + /// 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; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs new file mode 100644 index 000000000..bf4b6eba1 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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; + } + } + + /// + /// 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[354])(label, size, cmap); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[354])((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[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); + } + } + + /// + /// To be documented. + /// + [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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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[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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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[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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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[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) + { + 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) + { + 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[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) + { + 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(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) + { + #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 ImMinMaxArray(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(byte* values, int count, byte* minOut, byte* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(short* values, int count, short* minOut, short* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(ushort* values, int count, ushort* minOut, ushort* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(int* values, int count, int* minOut, int* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(uint* values, int count, uint* minOut, uint* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(long* values, int count, long* minOut, long* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// 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[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 ImMinMaxArray(ulong* values, int count, ulong* minOut, ulong* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImSumNative(float* values, int count) + { + #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 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[437])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[437])((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 sbyte ImSumNative(sbyte* values, int count) + { + #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 sbyte ImSum(sbyte* values, int count) + { + sbyte ret = ImSumNative(values, 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[439])(values, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[439])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImSumNative(short* values, int count) + { + #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 short ImSum(short* values, int count) + { + short ret = ImSumNative(values, 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[441])(values, count); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[441])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImSumNative(int* values, int count) + { + #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 int ImSum(int* values, int count) + { + int ret = ImSumNative(values, 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[443])(values, count); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[443])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImSumNative(long* values, int count) + { + #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 long ImSum(long* values, int count) + { + long ret = ImSumNative(values, 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[445])(values, count); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[445])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(float* values, int count) + { + #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 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[447])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[447])((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(sbyte* values, int count) + { + #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 double ImMean(sbyte* values, int count) + { + double ret = ImMeanNative(values, 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[449])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[449])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(short* values, int count) + { + #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 double ImMean(short* values, int count) + { + double ret = ImMeanNative(values, 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[451])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[451])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(int* values, int count) + { + #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 double ImMean(int* values, int count) + { + double ret = ImMeanNative(values, 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[453])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[453])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(long* values, int count) + { + #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 double ImMean(long* values, int count) + { + double ret = ImMeanNative(values, 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[455])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[455])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(float* values, int count) + { + #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 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[457])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[457])((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(sbyte* values, int count) + { + #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 double ImStdDev(sbyte* values, int count) + { + double ret = ImStdDevNative(values, 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[459])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[459])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(short* values, int count) + { + #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 double ImStdDev(short* values, int count) + { + double ret = ImStdDevNative(values, 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[461])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[461])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(int* values, int count) + { + #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 double ImStdDev(int* values, int count) + { + double ret = ImStdDevNative(values, 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[463])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[463])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(long* values, int count) + { + #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 double ImStdDev(long* values, int count) + { + double ret = ImStdDevNative(values, 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[465])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[465])((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. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImMixU32Native(uint a, uint b, uint s) + { + #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 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[467])(colors, size, t); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[467])((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. + /// + [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 new file mode 100644 index 000000000..6264f658d --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// 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 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 (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. + /// + [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 (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[496])(self, cmap); + #else + return (uint*)((delegate* unmanaged[Cdecl])funcTable[496])((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[497])(self, cmap); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[497])((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[498])(self, cmap, idx); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[498])((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[499])(self, cmap, idx, value); + #else + ((delegate* unmanaged[Cdecl])funcTable[499])((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[500])(self, cmap); + #else + return (uint*)((delegate* unmanaged[Cdecl])funcTable[500])((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[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) + { + 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[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 (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[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 (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[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 (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[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 (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[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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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[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) + { + 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[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) + { + 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) + { + 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[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) + { + 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) + { + 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); + } + } + } + } + + /// + /// 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[572])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[572])((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[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) + { + ResetNative((ImPlotAlignmentData*)pself); + } + } + + /// + /// To be documented. + /// + [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) + { + 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 new file mode 100644 index 000000000..26c28f510 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs @@ -0,0 +1,5043 @@ +// ------------------------------------------------------------------------------ +// +// 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 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[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); + } + } + + /// + /// 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[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 (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = 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[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); + } + } + + /// + /// 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[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); + } + } + } + + /// + /// 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); + } + } + } + + /// + /// 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[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) + { + 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); + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs new file mode 100644 index 000000000..984fbb78c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs @@ -0,0 +1,5055 @@ +// ------------------------------------------------------------------------------ +// +// 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 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[656])(pOut, text); + #else + ((delegate* unmanaged[Cdecl])funcTable[656])((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[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 (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[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 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[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 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[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 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; + } + } + + /// + /// 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; + } + } + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs new file mode 100644 index 000000000..ce8cab5d7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs @@ -0,0 +1,1357 @@ +// ------------------------------------------------------------------------------ +// +// 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, 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[708])(id, t); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[708])((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[709])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[709])(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[710])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[710])(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[711])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[711])(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[712])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[712])(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[713])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[713])(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[714])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[714])(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[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 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[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 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[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 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[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 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) + { + 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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[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; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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[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/Structs/FormatterTimeData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/FormatterTimeData.cs new file mode 100644 index 000000000..c93bd849f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/FormatterTimeData.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct FormatterTimeData + { + /// + /// To be documented. + /// + public ImPlotTime Time; + + /// + /// To be documented. + /// + public ImPlotDateTimeSpec Spec; + + /// + /// To be documented. + /// + public unsafe void* UserFormatter; + /// + /// To be documented. + /// + public unsafe void* UserFormatterData; + + + /// + /// To be documented. + /// + public unsafe FormatterTimeData(ImPlotTime time = default, ImPlotDateTimeSpec spec = default, ImPlotFormatter userFormatter = default, void* userFormatterData = default) + { + Time = time; + Spec = spec; + UserFormatter = (void*)Marshal.GetFunctionPointerForDelegate(userFormatter); + UserFormatterData = userFormatterData; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs new file mode 100644 index 000000000..ff075394f --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs @@ -0,0 +1,702 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotAlignmentData + { + /// + /// To be documented. + /// + public byte Vertical; + + /// + /// To be documented. + /// + public float PadA; + + /// + /// To be documented. + /// + public float PadB; + + /// + /// To be documented. + /// + public float PadAMax; + + /// + /// To be documented. + /// + public float PadBMax; + + + /// + /// To be documented. + /// + public unsafe ImPlotAlignmentData(bool vertical = default, float padA = default, float padB = default, float padAMax = default, float padBMax = default) + { + Vertical = vertical ? (byte)1 : (byte)0; + PadA = padA; + PadB = padB; + PadAMax = padAMax; + PadBMax = padBMax; + } + + + /// + /// To be documented. + /// + public unsafe void Begin() + { + fixed (ImPlotAlignmentData* @this = &this) + { + ImPlot.BeginNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotAlignmentData* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void End() + { + fixed (ImPlotAlignmentData* @this = &this) + { + ImPlot.EndNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotAlignmentData* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + ImPlot.UpdateNative(@this, padA, padB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadB = &padB) + { + ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, deltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, deltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, deltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, padA, padB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* @this = &this) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotAlignmentDataPtr : IEquatable + { + public ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) { Handle = handle; } + + public ImPlotAlignmentData* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotAlignmentDataPtr Null => new ImPlotAlignmentDataPtr(null); + + public ImPlotAlignmentData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) => new ImPlotAlignmentDataPtr(handle); + + public static implicit operator ImPlotAlignmentData*(ImPlotAlignmentDataPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle == right; + + public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle != right; + + public bool Equals(ImPlotAlignmentDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotAlignmentDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotAlignmentDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref bool Vertical => ref Unsafe.AsRef(&Handle->Vertical); + /// + /// To be documented. + /// + public ref float PadA => ref Unsafe.AsRef(&Handle->PadA); + /// + /// To be documented. + /// + public ref float PadB => ref Unsafe.AsRef(&Handle->PadB); + /// + /// To be documented. + /// + public ref float PadAMax => ref Unsafe.AsRef(&Handle->PadAMax); + /// + /// To be documented. + /// + public ref float PadBMax => ref Unsafe.AsRef(&Handle->PadBMax); + /// + /// To be documented. + /// + public unsafe void Begin() + { + ImPlot.BeginNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void End() + { + ImPlot.EndNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) + { + ImPlot.UpdateNative(Handle, padA, padB, deltaA, deltaB); + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB) + { + fixed (float* ppadB = &padB) + { + ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, padA, padB, deltaA, (float*)pdeltaB); + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void Update(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) + { + ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs new file mode 100644 index 000000000..2b1748f63 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs @@ -0,0 +1,140 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotAnnotation + { + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Offset; + + /// + /// To be documented. + /// + public uint ColorBg; + + /// + /// To be documented. + /// + public uint ColorFg; + + /// + /// To be documented. + /// + public int TextOffset; + + /// + /// To be documented. + /// + public byte Clamp; + + + /// + /// To be documented. + /// + public unsafe ImPlotAnnotation(Vector2 pos = default, Vector2 offset = default, uint colorBg = default, uint colorFg = default, int textOffset = default, bool clamp = default) + { + Pos = pos; + Offset = offset; + ColorBg = colorBg; + ColorFg = colorFg; + TextOffset = textOffset; + Clamp = clamp ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotAnnotationPtr : IEquatable + { + public ImPlotAnnotationPtr(ImPlotAnnotation* handle) { Handle = handle; } + + public ImPlotAnnotation* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotAnnotationPtr Null => new ImPlotAnnotationPtr(null); + + public ImPlotAnnotation this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotAnnotationPtr(ImPlotAnnotation* handle) => new ImPlotAnnotationPtr(handle); + + public static implicit operator ImPlotAnnotation*(ImPlotAnnotationPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle == right; + + public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle != right; + + public bool Equals(ImPlotAnnotationPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotAnnotationPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotAnnotationPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public ref Vector2 Offset => ref Unsafe.AsRef(&Handle->Offset); + /// + /// To be documented. + /// + public ref uint ColorBg => ref Unsafe.AsRef(&Handle->ColorBg); + /// + /// To be documented. + /// + public ref uint ColorFg => ref Unsafe.AsRef(&Handle->ColorFg); + /// + /// To be documented. + /// + public ref int TextOffset => ref Unsafe.AsRef(&Handle->TextOffset); + /// + /// To be documented. + /// + public ref bool Clamp => ref Unsafe.AsRef(&Handle->Clamp); + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs new file mode 100644 index 000000000..fced27408 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs @@ -0,0 +1,450 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotAnnotationCollection + { + /// + /// To be documented. + /// + public ImVector Annotations; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TextBuffer; + + /// + /// To be documented. + /// + public int Size; + + + /// + /// To be documented. + /// + public unsafe ImPlotAnnotationCollection(ImVector annotations = default, ImGuiTextBuffer textBuffer = default, int size = default) + { + Annotations = annotations; + TextBuffer = textBuffer; + Size = size; + } + + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + 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; + } + ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + 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; + } + ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + byte* ret = ImPlot.GetTextNative(@this, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotAnnotationCollection* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotAnnotationCollectionPtr : IEquatable + { + public ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) { Handle = handle; } + + public ImPlotAnnotationCollection* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotAnnotationCollectionPtr Null => new ImPlotAnnotationCollectionPtr(null); + + public ImPlotAnnotationCollection this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) => new ImPlotAnnotationCollectionPtr(handle); + + public static implicit operator ImPlotAnnotationCollection*(ImPlotAnnotationCollectionPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle == right; + + public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle != right; + + public bool Equals(ImPlotAnnotationCollectionPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotAnnotationCollectionPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotAnnotationCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Annotations => ref Unsafe.AsRef>(&Handle->Annotations); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef(&Handle->TextBuffer); + /// + /// To be documented. + /// + public ref int Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) + { + ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); + } + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(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; + } + ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) + { + ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(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; + } + ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + byte* ret = ImPlot.GetTextNative(Handle, idx); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs new file mode 100644 index 000000000..fec898382 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs @@ -0,0 +1,1489 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotAxis + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImPlotAxisFlags Flags; + + /// + /// To be documented. + /// + public ImPlotAxisFlags PreviousFlags; + + /// + /// To be documented. + /// + public ImPlotRange Range; + + /// + /// To be documented. + /// + public ImPlotCond RangeCond; + + /// + /// To be documented. + /// + public ImPlotScale Scale; + + /// + /// To be documented. + /// + public ImPlotRange FitExtents; + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* OrthoAxis; + + /// + /// To be documented. + /// + public ImPlotRange ConstraintRange; + + /// + /// To be documented. + /// + public ImPlotRange ConstraintZoom; + + /// + /// To be documented. + /// + public ImPlotTicker Ticker; + + /// + /// To be documented. + /// + public unsafe void* Formatter; + /// + /// To be documented. + /// + public unsafe void* FormatterData; + + /// + /// To be documented. + /// + public byte FormatSpec_0; + public byte FormatSpec_1; + public byte FormatSpec_2; + public byte FormatSpec_3; + public byte FormatSpec_4; + public byte FormatSpec_5; + public byte FormatSpec_6; + public byte FormatSpec_7; + public byte FormatSpec_8; + public byte FormatSpec_9; + public byte FormatSpec_10; + public byte FormatSpec_11; + public byte FormatSpec_12; + public byte FormatSpec_13; + public byte FormatSpec_14; + public byte FormatSpec_15; + + /// + /// To be documented. + /// + public unsafe void* Locator; + /// + /// To be documented. + /// + public unsafe double* LinkedMin; + + /// + /// To be documented. + /// + public unsafe double* LinkedMax; + + /// + /// To be documented. + /// + public int PickerLevel; + + /// + /// To be documented. + /// + public ImPlotTime PickerTimeMin; + + /// + /// To be documented. + /// + public ImPlotTime PickerTimeMax; + + /// + /// To be documented. + /// + public unsafe void* TransformForward; + /// + /// To be documented. + /// + public unsafe void* TransformInverse; + /// + /// To be documented. + /// + public unsafe void* TransformData; + + /// + /// To be documented. + /// + public float PixelMin; + + /// + /// To be documented. + /// + public float PixelMax; + + /// + /// To be documented. + /// + public double ScaleMin; + + /// + /// To be documented. + /// + public double ScaleMax; + + /// + /// To be documented. + /// + public double ScaleToPixel; + + /// + /// To be documented. + /// + public float Datum1; + + /// + /// To be documented. + /// + public float Datum2; + + /// + /// To be documented. + /// + public ImRect HoverRect; + + /// + /// To be documented. + /// + public int LabelOffset; + + /// + /// To be documented. + /// + public uint ColorMaj; + + /// + /// To be documented. + /// + public uint ColorMin; + + /// + /// To be documented. + /// + public uint ColorTick; + + /// + /// To be documented. + /// + public uint ColorTxt; + + /// + /// To be documented. + /// + public uint ColorBg; + + /// + /// To be documented. + /// + public uint ColorHov; + + /// + /// To be documented. + /// + public uint ColorAct; + + /// + /// To be documented. + /// + public uint ColorHiLi; + + /// + /// To be documented. + /// + public byte Enabled; + + /// + /// To be documented. + /// + public byte Vertical; + + /// + /// To be documented. + /// + public byte FitThisFrame; + + /// + /// To be documented. + /// + public byte HasRange; + + /// + /// To be documented. + /// + public byte HasFormatSpec; + + /// + /// To be documented. + /// + public byte ShowDefaultTicks; + + /// + /// To be documented. + /// + public byte Hovered; + + /// + /// To be documented. + /// + public byte Held; + + + /// + /// To be documented. + /// + public unsafe ImPlotAxis(uint id = default, ImPlotAxisFlags flags = default, ImPlotAxisFlags previousFlags = default, ImPlotRange range = default, ImPlotCond rangeCond = default, ImPlotScale scale = default, ImPlotRange fitExtents = default, ImPlotAxis* orthoAxis = default, ImPlotRange constraintRange = default, ImPlotRange constraintZoom = default, ImPlotTicker ticker = default, ImPlotFormatter formatter = default, void* formatterData = default, byte* formatSpec = default, ImPlotLocator locator = default, double* linkedMin = default, double* linkedMax = default, int pickerLevel = default, ImPlotTime pickerTimeMin = default, ImPlotTime pickerTimeMax = default, ImPlotTransform transformForward = default, ImPlotTransform transformInverse = default, void* transformData = default, float pixelMin = default, float pixelMax = default, double scaleMin = default, double scaleMax = default, double scaleToPixel = default, float datum1 = default, float datum2 = default, ImRect hoverRect = default, int labelOffset = default, uint colorMaj = default, uint colorMin = default, uint colorTick = default, uint colorTxt = default, uint colorBg = default, uint colorHov = default, uint colorAct = default, uint colorHiLi = default, bool enabled = default, bool vertical = default, bool fitThisFrame = default, bool hasRange = default, bool hasFormatSpec = default, bool showDefaultTicks = default, bool hovered = default, bool held = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + Range = range; + RangeCond = rangeCond; + Scale = scale; + FitExtents = fitExtents; + OrthoAxis = orthoAxis; + ConstraintRange = constraintRange; + ConstraintZoom = constraintZoom; + Ticker = ticker; + Formatter = (void*)Marshal.GetFunctionPointerForDelegate(formatter); + FormatterData = formatterData; + if (formatSpec != default(byte*)) + { + FormatSpec_0 = formatSpec[0]; + FormatSpec_1 = formatSpec[1]; + FormatSpec_2 = formatSpec[2]; + FormatSpec_3 = formatSpec[3]; + FormatSpec_4 = formatSpec[4]; + FormatSpec_5 = formatSpec[5]; + FormatSpec_6 = formatSpec[6]; + FormatSpec_7 = formatSpec[7]; + FormatSpec_8 = formatSpec[8]; + FormatSpec_9 = formatSpec[9]; + FormatSpec_10 = formatSpec[10]; + FormatSpec_11 = formatSpec[11]; + FormatSpec_12 = formatSpec[12]; + FormatSpec_13 = formatSpec[13]; + FormatSpec_14 = formatSpec[14]; + FormatSpec_15 = formatSpec[15]; + } + Locator = (void*)Marshal.GetFunctionPointerForDelegate(locator); + LinkedMin = linkedMin; + LinkedMax = linkedMax; + PickerLevel = pickerLevel; + PickerTimeMin = pickerTimeMin; + PickerTimeMax = pickerTimeMax; + TransformForward = (void*)Marshal.GetFunctionPointerForDelegate(transformForward); + TransformInverse = (void*)Marshal.GetFunctionPointerForDelegate(transformInverse); + TransformData = transformData; + PixelMin = pixelMin; + PixelMax = pixelMax; + ScaleMin = scaleMin; + ScaleMax = scaleMax; + ScaleToPixel = scaleToPixel; + Datum1 = datum1; + Datum2 = datum2; + HoverRect = hoverRect; + LabelOffset = labelOffset; + ColorMaj = colorMaj; + ColorMin = colorMin; + ColorTick = colorTick; + ColorTxt = colorTxt; + ColorBg = colorBg; + ColorHov = colorHov; + ColorAct = colorAct; + ColorHiLi = colorHiLi; + Enabled = enabled ? (byte)1 : (byte)0; + Vertical = vertical ? (byte)1 : (byte)0; + FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; + HasRange = hasRange ? (byte)1 : (byte)0; + HasFormatSpec = hasFormatSpec ? (byte)1 : (byte)0; + ShowDefaultTicks = showDefaultTicks ? (byte)1 : (byte)0; + Hovered = hovered ? (byte)1 : (byte)0; + Held = held ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis(uint id = default, ImPlotAxisFlags flags = default, ImPlotAxisFlags previousFlags = default, ImPlotRange range = default, ImPlotCond rangeCond = default, ImPlotScale scale = default, ImPlotRange fitExtents = default, ImPlotAxis* orthoAxis = default, ImPlotRange constraintRange = default, ImPlotRange constraintZoom = default, ImPlotTicker ticker = default, ImPlotFormatter formatter = default, void* formatterData = default, Span formatSpec = default, ImPlotLocator locator = default, double* linkedMin = default, double* linkedMax = default, int pickerLevel = default, ImPlotTime pickerTimeMin = default, ImPlotTime pickerTimeMax = default, ImPlotTransform transformForward = default, ImPlotTransform transformInverse = default, void* transformData = default, float pixelMin = default, float pixelMax = default, double scaleMin = default, double scaleMax = default, double scaleToPixel = default, float datum1 = default, float datum2 = default, ImRect hoverRect = default, int labelOffset = default, uint colorMaj = default, uint colorMin = default, uint colorTick = default, uint colorTxt = default, uint colorBg = default, uint colorHov = default, uint colorAct = default, uint colorHiLi = default, bool enabled = default, bool vertical = default, bool fitThisFrame = default, bool hasRange = default, bool hasFormatSpec = default, bool showDefaultTicks = default, bool hovered = default, bool held = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + Range = range; + RangeCond = rangeCond; + Scale = scale; + FitExtents = fitExtents; + OrthoAxis = orthoAxis; + ConstraintRange = constraintRange; + ConstraintZoom = constraintZoom; + Ticker = ticker; + Formatter = (void*)Marshal.GetFunctionPointerForDelegate(formatter); + FormatterData = formatterData; + if (formatSpec != default(Span)) + { + FormatSpec_0 = formatSpec[0]; + FormatSpec_1 = formatSpec[1]; + FormatSpec_2 = formatSpec[2]; + FormatSpec_3 = formatSpec[3]; + FormatSpec_4 = formatSpec[4]; + FormatSpec_5 = formatSpec[5]; + FormatSpec_6 = formatSpec[6]; + FormatSpec_7 = formatSpec[7]; + FormatSpec_8 = formatSpec[8]; + FormatSpec_9 = formatSpec[9]; + FormatSpec_10 = formatSpec[10]; + FormatSpec_11 = formatSpec[11]; + FormatSpec_12 = formatSpec[12]; + FormatSpec_13 = formatSpec[13]; + FormatSpec_14 = formatSpec[14]; + FormatSpec_15 = formatSpec[15]; + } + Locator = (void*)Marshal.GetFunctionPointerForDelegate(locator); + LinkedMin = linkedMin; + LinkedMax = linkedMax; + PickerLevel = pickerLevel; + PickerTimeMin = pickerTimeMin; + PickerTimeMax = pickerTimeMax; + TransformForward = (void*)Marshal.GetFunctionPointerForDelegate(transformForward); + TransformInverse = (void*)Marshal.GetFunctionPointerForDelegate(transformInverse); + TransformData = transformData; + PixelMin = pixelMin; + PixelMax = pixelMax; + ScaleMin = scaleMin; + ScaleMax = scaleMax; + ScaleToPixel = scaleToPixel; + Datum1 = datum1; + Datum2 = datum2; + HoverRect = hoverRect; + LabelOffset = labelOffset; + ColorMaj = colorMaj; + ColorMin = colorMin; + ColorTick = colorTick; + ColorTxt = colorTxt; + ColorBg = colorBg; + ColorHov = colorHov; + ColorAct = colorAct; + ColorHiLi = colorHiLi; + Enabled = enabled ? (byte)1 : (byte)0; + Vertical = vertical ? (byte)1 : (byte)0; + FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; + HasRange = hasRange ? (byte)1 : (byte)0; + HasFormatSpec = hasFormatSpec ? (byte)1 : (byte)0; + ShowDefaultTicks = showDefaultTicks ? (byte)1 : (byte)0; + Hovered = hovered ? (byte)1 : (byte)0; + Held = held ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void ApplyFit(float padding) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.ApplyFitNative(@this, padding); + } + } + + /// + /// To be documented. + /// + public unsafe bool CanInitFit() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.CanInitFitNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void Constrain() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.ConstrainNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void ExtendFit(double v) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.ExtendFitNative(@this, v); + } + } + + /// + /// To be documented. + /// + public unsafe void ExtendFitWith(ImPlotAxis* alt, double v, double vAlt) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.ExtendFitWithNative(@this, alt, v, vAlt); + } + } + + /// + /// To be documented. + /// + public unsafe void ExtendFitWith(ref ImPlotAxis alt, double v, double vAlt) + { + fixed (ImPlotAxis* @this = &this) + { + fixed (ImPlotAxis* palt = &alt) + { + ImPlot.ExtendFitWithNative(@this, (ImPlotAxis*)palt, v, vAlt); + } + } + } + + /// + /// To be documented. + /// + public unsafe double GetAspect() + { + fixed (ImPlotAxis* @this = &this) + { + double ret = ImPlot.GetAspectNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasGridLines() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.HasGridLinesNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasLabel() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.HasLabelNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasMenus() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.HasMenusNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasTickLabels() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.HasTickLabelsNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasTickMarks() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.HasTickMarksNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsAutoFitting() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsAutoFittingNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsForeground() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsForegroundNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLocked() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsInputLockedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLockedMax() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsInputLockedMaxNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLockedMin() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsInputLockedMinNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsInverted() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsInvertedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsLocked() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsLockedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsLockedMax() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsLockedMaxNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsLockedMin() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsLockedMinNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsOpposite() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsOppositeNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsPanLocked(bool increasing) + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsPanLockedNative(@this, increasing ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsRangeLocked() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.IsRangeLockedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe float PixelSize() + { + fixed (ImPlotAxis* @this = &this) + { + float ret = ImPlot.PixelSizeNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe double PixelsToPlot(float pix) + { + fixed (ImPlotAxis* @this = &this) + { + double ret = ImPlot.PixelsToPlotNative(@this, pix); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe float PlotToPixels(double plt) + { + fixed (ImPlotAxis* @this = &this) + { + float ret = ImPlot.PlotToPixelsNative(@this, plt); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void PullLinks() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.PullLinksNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void PushLinks() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.PushLinksNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAspect(double unitPerPix) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.SetAspectNative(@this, unitPerPix); + } + } + + /// + /// To be documented. + /// + public unsafe bool SetMax(double max, bool force) + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.SetMaxNative(@this, max, force ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool SetMax(double max) + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.SetMaxNative(@this, max, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool SetMin(double min, bool force) + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.SetMinNative(@this, min, force ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool SetMin(double min) + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.SetMinNative(@this, min, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void SetRange(double v1, double v2) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.SetRangeNative(@this, v1, v2); + } + } + + /// + /// To be documented. + /// + public unsafe void SetRange(ImPlotRange range) + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.SetRangeNative(@this, range); + } + } + + /// + /// To be documented. + /// + public unsafe void UpdateTransformCache() + { + fixed (ImPlotAxis* @this = &this) + { + ImPlot.UpdateTransformCacheNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe bool WillRender() + { + fixed (ImPlotAxis* @this = &this) + { + byte ret = ImPlot.WillRenderNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotAxisPtr : IEquatable + { + public ImPlotAxisPtr(ImPlotAxis* handle) { Handle = handle; } + + public ImPlotAxis* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotAxisPtr Null => new ImPlotAxisPtr(null); + + public ImPlotAxis this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotAxisPtr(ImPlotAxis* handle) => new ImPlotAxisPtr(handle); + + public static implicit operator ImPlotAxis*(ImPlotAxisPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotAxisPtr left, ImPlotAxisPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotAxisPtr left, ImPlotAxisPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotAxisPtr left, ImPlotAxis* right) => left.Handle == right; + + public static bool operator !=(ImPlotAxisPtr left, ImPlotAxis* right) => left.Handle != right; + + public bool Equals(ImPlotAxisPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotAxisPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotAxisPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImPlotAxisFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImPlotAxisFlags PreviousFlags => ref Unsafe.AsRef(&Handle->PreviousFlags); + /// + /// To be documented. + /// + public ref ImPlotRange Range => ref Unsafe.AsRef(&Handle->Range); + /// + /// To be documented. + /// + public ref ImPlotCond RangeCond => ref Unsafe.AsRef(&Handle->RangeCond); + /// + /// To be documented. + /// + public ref ImPlotScale Scale => ref Unsafe.AsRef(&Handle->Scale); + /// + /// To be documented. + /// + public ref ImPlotRange FitExtents => ref Unsafe.AsRef(&Handle->FitExtents); + /// + /// To be documented. + /// + public ref ImPlotAxisPtr OrthoAxis => ref Unsafe.AsRef(&Handle->OrthoAxis); + /// + /// To be documented. + /// + public ref ImPlotRange ConstraintRange => ref Unsafe.AsRef(&Handle->ConstraintRange); + /// + /// To be documented. + /// + public ref ImPlotRange ConstraintZoom => ref Unsafe.AsRef(&Handle->ConstraintZoom); + /// + /// To be documented. + /// + public ref ImPlotTicker Ticker => ref Unsafe.AsRef(&Handle->Ticker); + /// + /// To be documented. + /// + public void* Formatter { get => Handle->Formatter; set => Handle->Formatter = value; } + /// + /// To be documented. + /// + public void* FormatterData { get => Handle->FormatterData; set => Handle->FormatterData = value; } + /// + /// To be documented. + /// + public unsafe Span FormatSpec + + { + get + { + return new Span(&Handle->FormatSpec_0, 16); + } + } + /// + /// To be documented. + /// + public void* Locator { get => Handle->Locator; set => Handle->Locator = value; } + /// + /// To be documented. + /// + public double* LinkedMin { get => Handle->LinkedMin; set => Handle->LinkedMin = value; } + /// + /// To be documented. + /// + public double* LinkedMax { get => Handle->LinkedMax; set => Handle->LinkedMax = value; } + /// + /// To be documented. + /// + public ref int PickerLevel => ref Unsafe.AsRef(&Handle->PickerLevel); + /// + /// To be documented. + /// + public ref ImPlotTime PickerTimeMin => ref Unsafe.AsRef(&Handle->PickerTimeMin); + /// + /// To be documented. + /// + public ref ImPlotTime PickerTimeMax => ref Unsafe.AsRef(&Handle->PickerTimeMax); + /// + /// To be documented. + /// + public void* TransformForward { get => Handle->TransformForward; set => Handle->TransformForward = value; } + /// + /// To be documented. + /// + public void* TransformInverse { get => Handle->TransformInverse; set => Handle->TransformInverse = value; } + /// + /// To be documented. + /// + public void* TransformData { get => Handle->TransformData; set => Handle->TransformData = value; } + /// + /// To be documented. + /// + public ref float PixelMin => ref Unsafe.AsRef(&Handle->PixelMin); + /// + /// To be documented. + /// + public ref float PixelMax => ref Unsafe.AsRef(&Handle->PixelMax); + /// + /// To be documented. + /// + public ref double ScaleMin => ref Unsafe.AsRef(&Handle->ScaleMin); + /// + /// To be documented. + /// + public ref double ScaleMax => ref Unsafe.AsRef(&Handle->ScaleMax); + /// + /// To be documented. + /// + public ref double ScaleToPixel => ref Unsafe.AsRef(&Handle->ScaleToPixel); + /// + /// To be documented. + /// + public ref float Datum1 => ref Unsafe.AsRef(&Handle->Datum1); + /// + /// To be documented. + /// + public ref float Datum2 => ref Unsafe.AsRef(&Handle->Datum2); + /// + /// To be documented. + /// + public ref ImRect HoverRect => ref Unsafe.AsRef(&Handle->HoverRect); + /// + /// To be documented. + /// + public ref int LabelOffset => ref Unsafe.AsRef(&Handle->LabelOffset); + /// + /// To be documented. + /// + public ref uint ColorMaj => ref Unsafe.AsRef(&Handle->ColorMaj); + /// + /// To be documented. + /// + public ref uint ColorMin => ref Unsafe.AsRef(&Handle->ColorMin); + /// + /// To be documented. + /// + public ref uint ColorTick => ref Unsafe.AsRef(&Handle->ColorTick); + /// + /// To be documented. + /// + public ref uint ColorTxt => ref Unsafe.AsRef(&Handle->ColorTxt); + /// + /// To be documented. + /// + public ref uint ColorBg => ref Unsafe.AsRef(&Handle->ColorBg); + /// + /// To be documented. + /// + public ref uint ColorHov => ref Unsafe.AsRef(&Handle->ColorHov); + /// + /// To be documented. + /// + public ref uint ColorAct => ref Unsafe.AsRef(&Handle->ColorAct); + /// + /// To be documented. + /// + public ref uint ColorHiLi => ref Unsafe.AsRef(&Handle->ColorHiLi); + /// + /// To be documented. + /// + public ref bool Enabled => ref Unsafe.AsRef(&Handle->Enabled); + /// + /// To be documented. + /// + public ref bool Vertical => ref Unsafe.AsRef(&Handle->Vertical); + /// + /// To be documented. + /// + public ref bool FitThisFrame => ref Unsafe.AsRef(&Handle->FitThisFrame); + /// + /// To be documented. + /// + public ref bool HasRange => ref Unsafe.AsRef(&Handle->HasRange); + /// + /// To be documented. + /// + public ref bool HasFormatSpec => ref Unsafe.AsRef(&Handle->HasFormatSpec); + /// + /// To be documented. + /// + public ref bool ShowDefaultTicks => ref Unsafe.AsRef(&Handle->ShowDefaultTicks); + /// + /// To be documented. + /// + public ref bool Hovered => ref Unsafe.AsRef(&Handle->Hovered); + /// + /// To be documented. + /// + public ref bool Held => ref Unsafe.AsRef(&Handle->Held); + /// + /// To be documented. + /// + public unsafe void ApplyFit(float padding) + { + ImPlot.ApplyFitNative(Handle, padding); + } + + /// + /// To be documented. + /// + public unsafe bool CanInitFit() + { + byte ret = ImPlot.CanInitFitNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void Constrain() + { + ImPlot.ConstrainNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void ExtendFit(double v) + { + ImPlot.ExtendFitNative(Handle, v); + } + + /// + /// To be documented. + /// + public unsafe void ExtendFitWith(ImPlotAxisPtr alt, double v, double vAlt) + { + ImPlot.ExtendFitWithNative(Handle, alt, v, vAlt); + } + + /// + /// To be documented. + /// + public unsafe void ExtendFitWith(ref ImPlotAxis alt, double v, double vAlt) + { + fixed (ImPlotAxis* palt = &alt) + { + ImPlot.ExtendFitWithNative(Handle, (ImPlotAxis*)palt, v, vAlt); + } + } + + /// + /// To be documented. + /// + public unsafe double GetAspect() + { + double ret = ImPlot.GetAspectNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool HasGridLines() + { + byte ret = ImPlot.HasGridLinesNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool HasLabel() + { + byte ret = ImPlot.HasLabelNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool HasMenus() + { + byte ret = ImPlot.HasMenusNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool HasTickLabels() + { + byte ret = ImPlot.HasTickLabelsNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool HasTickMarks() + { + byte ret = ImPlot.HasTickMarksNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsAutoFitting() + { + byte ret = ImPlot.IsAutoFittingNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsForeground() + { + byte ret = ImPlot.IsForegroundNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLocked() + { + byte ret = ImPlot.IsInputLockedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLockedMax() + { + byte ret = ImPlot.IsInputLockedMaxNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLockedMin() + { + byte ret = ImPlot.IsInputLockedMinNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsInverted() + { + byte ret = ImPlot.IsInvertedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsLocked() + { + byte ret = ImPlot.IsLockedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsLockedMax() + { + byte ret = ImPlot.IsLockedMaxNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsLockedMin() + { + byte ret = ImPlot.IsLockedMinNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsOpposite() + { + byte ret = ImPlot.IsOppositeNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsPanLocked(bool increasing) + { + byte ret = ImPlot.IsPanLockedNative(Handle, increasing ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsRangeLocked() + { + byte ret = ImPlot.IsRangeLockedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe float PixelSize() + { + float ret = ImPlot.PixelSizeNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe double PixelsToPlot(float pix) + { + double ret = ImPlot.PixelsToPlotNative(Handle, pix); + return ret; + } + + /// + /// To be documented. + /// + public unsafe float PlotToPixels(double plt) + { + float ret = ImPlot.PlotToPixelsNative(Handle, plt); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void PullLinks() + { + ImPlot.PullLinksNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void PushLinks() + { + ImPlot.PushLinksNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void SetAspect(double unitPerPix) + { + ImPlot.SetAspectNative(Handle, unitPerPix); + } + + /// + /// To be documented. + /// + public unsafe bool SetMax(double max, bool force) + { + byte ret = ImPlot.SetMaxNative(Handle, max, force ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool SetMax(double max) + { + byte ret = ImPlot.SetMaxNative(Handle, max, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool SetMin(double min, bool force) + { + byte ret = ImPlot.SetMinNative(Handle, min, force ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool SetMin(double min) + { + byte ret = ImPlot.SetMinNative(Handle, min, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void SetRange(double v1, double v2) + { + ImPlot.SetRangeNative(Handle, v1, v2); + } + + /// + /// To be documented. + /// + public unsafe void SetRange(ImPlotRange range) + { + ImPlot.SetRangeNative(Handle, range); + } + + /// + /// To be documented. + /// + public unsafe void UpdateTransformCache() + { + ImPlot.UpdateTransformCacheNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe bool WillRender() + { + byte ret = ImPlot.WillRenderNative(Handle); + return ret != 0; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs new file mode 100644 index 000000000..182a908a2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotAxisColor + { + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs new file mode 100644 index 000000000..53d54463c --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs @@ -0,0 +1,752 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotColormapData + { + /// + /// To be documented. + /// + public ImVector Keys; + + /// + /// To be documented. + /// + public ImVector KeyCounts; + + /// + /// To be documented. + /// + public ImVector KeyOffsets; + + /// + /// To be documented. + /// + public ImVector Tables; + + /// + /// To be documented. + /// + public ImVector TableSizes; + + /// + /// To be documented. + /// + public ImVector TableOffsets; + + /// + /// To be documented. + /// + public ImGuiTextBuffer Text; + + /// + /// To be documented. + /// + public ImVector TextOffsets; + + /// + /// To be documented. + /// + public ImVector Quals; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int Count; + + + /// + /// To be documented. + /// + public unsafe ImPlotColormapData(ImVector keys = default, ImVector keyCounts = default, ImVector keyOffsets = default, ImVector tables = default, ImVector tableSizes = default, ImVector tableOffsets = default, ImGuiTextBuffer text = default, ImVector textOffsets = default, ImVector quals = default, ImGuiStorage map = default, int count = default) + { + Keys = keys; + KeyCounts = keyCounts; + KeyOffsets = keyOffsets; + Tables = tables; + TableSizes = tableSizes; + TableOffsets = tableOffsets; + Text = text; + TextOffsets = textOffsets; + Quals = quals; + Map = map; + Count = count; + } + + + /// + /// To be documented. + /// + public unsafe void _AppendTable(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + ImPlot._AppendTableNative(@this, cmap); + } + } + + /// + /// To be documented. + /// + public unsafe int Append(byte* name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* @this = &this) + { + int ret = ImPlot.AppendNative(@this, name, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int Append(ref byte name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* @this = &this) + { + fixed (byte* pname = &name) + { + int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe int Append(ReadOnlySpan name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* @this = &this) + { + fixed (byte* pname = name) + { + int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe int Append(string name, 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; + } + int ret = ImPlot.AppendNative(@this, pStr0, keys, count, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotColormapData* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(byte* name) + { + fixed (ImPlotColormapData* @this = &this) + { + ImPlotColormap ret = ImPlot.GetIndexNative(@this, name); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(ref byte name) + { + fixed (ImPlotColormapData* @this = &this) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(ReadOnlySpan name) + { + fixed (ImPlotColormapData* @this = &this) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(string name) + { + 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; + } + ImPlotColormap ret = ImPlot.GetIndexNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx) + { + fixed (ImPlotColormapData* @this = &this) + { + uint ret = ImPlot.GetKeyColorNative(@this, cmap, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetKeyCount(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + int ret = ImPlot.GetKeyCountNative(@this, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint* GetKeys(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + uint* ret = ImPlot.GetKeysNative(@this, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetName(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + byte* ret = ImPlot.GetNameNative(@this, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetNameS(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(@this, cmap)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint* GetTable(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + uint* ret = ImPlot.GetTableNative(@this, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetTableColor(ImPlotColormap cmap, int idx) + { + fixed (ImPlotColormapData* @this = &this) + { + uint ret = ImPlot.GetTableColorNative(@this, cmap, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetTableSize(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + int ret = ImPlot.GetTableSizeNative(@this, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsQual(ImPlotColormap cmap) + { + fixed (ImPlotColormapData* @this = &this) + { + byte ret = ImPlot.IsQualNative(@this, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe uint LerpTable(ImPlotColormap cmap, float t) + { + fixed (ImPlotColormapData* @this = &this) + { + uint ret = ImPlot.LerpTableNative(@this, cmap, t); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void RebuildTables() + { + fixed (ImPlotColormapData* @this = &this) + { + ImPlot.RebuildTablesNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value) + { + fixed (ImPlotColormapData* @this = &this) + { + ImPlot.SetKeyColorNative(@this, cmap, idx, value); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotColormapDataPtr : IEquatable + { + public ImPlotColormapDataPtr(ImPlotColormapData* handle) { Handle = handle; } + + public ImPlotColormapData* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotColormapDataPtr Null => new ImPlotColormapDataPtr(null); + + public ImPlotColormapData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotColormapDataPtr(ImPlotColormapData* handle) => new ImPlotColormapDataPtr(handle); + + public static implicit operator ImPlotColormapData*(ImPlotColormapDataPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle == right; + + public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle != right; + + public bool Equals(ImPlotColormapDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotColormapDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotColormapDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Keys => ref Unsafe.AsRef>(&Handle->Keys); + /// + /// To be documented. + /// + public ref ImVector KeyCounts => ref Unsafe.AsRef>(&Handle->KeyCounts); + /// + /// To be documented. + /// + public ref ImVector KeyOffsets => ref Unsafe.AsRef>(&Handle->KeyOffsets); + /// + /// To be documented. + /// + public ref ImVector Tables => ref Unsafe.AsRef>(&Handle->Tables); + /// + /// To be documented. + /// + public ref ImVector TableSizes => ref Unsafe.AsRef>(&Handle->TableSizes); + /// + /// To be documented. + /// + public ref ImVector TableOffsets => ref Unsafe.AsRef>(&Handle->TableOffsets); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer Text => ref Unsafe.AsRef(&Handle->Text); + /// + /// To be documented. + /// + public ref ImVector TextOffsets => ref Unsafe.AsRef>(&Handle->TextOffsets); + /// + /// To be documented. + /// + public ref ImVector Quals => ref Unsafe.AsRef>(&Handle->Quals); + /// + /// To be documented. + /// + public ref ImGuiStorage Map => ref Unsafe.AsRef(&Handle->Map); + /// + /// To be documented. + /// + public ref int Count => ref Unsafe.AsRef(&Handle->Count); + /// + /// To be documented. + /// + public unsafe void _AppendTable(ImPlotColormap cmap) + { + ImPlot._AppendTableNative(Handle, cmap); + } + + /// + /// To be documented. + /// + public unsafe int Append(byte* name, uint* keys, int count, bool qual) + { + int ret = ImPlot.AppendNative(Handle, name, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int Append(ref byte name, uint* keys, int count, bool qual) + { + fixed (byte* pname = &name) + { + int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int Append(ReadOnlySpan name, uint* keys, int count, bool qual) + { + fixed (byte* pname = name) + { + int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int Append(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 = ImPlot.AppendNative(Handle, pStr0, keys, count, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(byte* name) + { + ImPlotColormap ret = ImPlot.GetIndexNative(Handle, name); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(ref byte name) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotColormap GetIndex(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 = ImPlot.GetIndexNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx) + { + uint ret = ImPlot.GetKeyColorNative(Handle, cmap, idx); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetKeyCount(ImPlotColormap cmap) + { + int ret = ImPlot.GetKeyCountNative(Handle, cmap); + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint* GetKeys(ImPlotColormap cmap) + { + uint* ret = ImPlot.GetKeysNative(Handle, cmap); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetName(ImPlotColormap cmap) + { + byte* ret = ImPlot.GetNameNative(Handle, cmap); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetNameS(ImPlotColormap cmap) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(Handle, cmap)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint* GetTable(ImPlotColormap cmap) + { + uint* ret = ImPlot.GetTableNative(Handle, cmap); + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint GetTableColor(ImPlotColormap cmap, int idx) + { + uint ret = ImPlot.GetTableColorNative(Handle, cmap, idx); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetTableSize(ImPlotColormap cmap) + { + int ret = ImPlot.GetTableSizeNative(Handle, cmap); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool IsQual(ImPlotColormap cmap) + { + byte ret = ImPlot.IsQualNative(Handle, cmap); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe uint LerpTable(ImPlotColormap cmap, float t) + { + uint ret = ImPlot.LerpTableNative(Handle, cmap, t); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void RebuildTables() + { + ImPlot.RebuildTablesNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value) + { + ImPlot.SetKeyColorNative(Handle, cmap, idx, value); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs new file mode 100644 index 000000000..57327f126 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs @@ -0,0 +1,380 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotContext + { + /// + /// To be documented. + /// + public ImPoolImPlotPlot Plots; + + /// + /// To be documented. + /// + public ImPoolImPlotSubplot Subplots; + + /// + /// To be documented. + /// + public unsafe ImPlotPlot* CurrentPlot; + + /// + /// To be documented. + /// + public unsafe ImPlotSubplot* CurrentSubplot; + + /// + /// To be documented. + /// + public unsafe ImPlotItemGroup* CurrentItems; + + /// + /// To be documented. + /// + public unsafe ImPlotItem* CurrentItem; + + /// + /// To be documented. + /// + public unsafe ImPlotItem* PreviousItem; + + /// + /// To be documented. + /// + public ImPlotTicker CTicker; + + /// + /// To be documented. + /// + public ImPlotAnnotationCollection Annotations; + + /// + /// To be documented. + /// + public ImPlotTagCollection Tags; + + /// + /// To be documented. + /// + public byte ChildWindowMade; + + /// + /// To be documented. + /// + public ImPlotStyle Style; + + /// + /// To be documented. + /// + public ImVector ColorModifiers; + + /// + /// To be documented. + /// + public ImVector StyleModifiers; + + /// + /// To be documented. + /// + public ImPlotColormapData ColormapData; + + /// + /// To be documented. + /// + public ImVector ColormapModifiers; + + /// + /// To be documented. + /// + public Tm Tm; + + /// + /// To be documented. + /// + public ImVector TempDouble1; + + /// + /// To be documented. + /// + public ImVector TempDouble2; + + /// + /// To be documented. + /// + public ImVector TempInt1; + + /// + /// To be documented. + /// + public int DigitalPlotItemCnt; + + /// + /// To be documented. + /// + public int DigitalPlotOffset; + + /// + /// To be documented. + /// + public ImPlotNextPlotData NextPlotData; + + /// + /// To be documented. + /// + public ImPlotNextItemData NextItemData; + + /// + /// To be documented. + /// + public ImPlotInputMap InputMap; + + /// + /// To be documented. + /// + public byte OpenContextThisFrame; + + /// + /// To be documented. + /// + public ImGuiTextBuffer MousePosStringBuilder; + + /// + /// To be documented. + /// + public ImPoolImPlotAlignmentData AlignmentData; + + /// + /// To be documented. + /// + public unsafe ImPlotAlignmentData* CurrentAlignmentH; + + /// + /// To be documented. + /// + public unsafe ImPlotAlignmentData* CurrentAlignmentV; + + + /// + /// To be documented. + /// + public unsafe ImPlotContext(ImPoolImPlotPlot plots = default, ImPoolImPlotSubplot subplots = default, ImPlotPlot* currentPlot = default, ImPlotSubplot* currentSubplot = default, ImPlotItemGroup* currentItems = default, ImPlotItem* currentItem = default, ImPlotItem* previousItem = default, ImPlotTicker cTicker = default, ImPlotAnnotationCollection annotations = default, ImPlotTagCollection tags = default, bool childWindowMade = default, ImPlotStyle style = default, ImVector colorModifiers = default, ImVector styleModifiers = default, ImPlotColormapData colormapData = default, ImVector colormapModifiers = default, Tm tm = default, ImVector tempDouble1 = default, ImVector tempDouble2 = default, ImVector tempInt1 = default, int digitalPlotItemCnt = default, int digitalPlotOffset = default, ImPlotNextPlotData nextPlotData = default, ImPlotNextItemData nextItemData = default, ImPlotInputMap inputMap = default, bool openContextThisFrame = default, ImGuiTextBuffer mousePosStringBuilder = default, ImPoolImPlotAlignmentData alignmentData = default, ImPlotAlignmentData* currentAlignmentH = default, ImPlotAlignmentData* currentAlignmentV = default) + { + Plots = plots; + Subplots = subplots; + CurrentPlot = currentPlot; + CurrentSubplot = currentSubplot; + CurrentItems = currentItems; + CurrentItem = currentItem; + PreviousItem = previousItem; + CTicker = cTicker; + Annotations = annotations; + Tags = tags; + ChildWindowMade = childWindowMade ? (byte)1 : (byte)0; + Style = style; + ColorModifiers = colorModifiers; + StyleModifiers = styleModifiers; + ColormapData = colormapData; + ColormapModifiers = colormapModifiers; + Tm = tm; + TempDouble1 = tempDouble1; + TempDouble2 = tempDouble2; + TempInt1 = tempInt1; + DigitalPlotItemCnt = digitalPlotItemCnt; + DigitalPlotOffset = digitalPlotOffset; + NextPlotData = nextPlotData; + NextItemData = nextItemData; + InputMap = inputMap; + OpenContextThisFrame = openContextThisFrame ? (byte)1 : (byte)0; + MousePosStringBuilder = mousePosStringBuilder; + AlignmentData = alignmentData; + CurrentAlignmentH = currentAlignmentH; + CurrentAlignmentV = currentAlignmentV; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotContextPtr : IEquatable + { + public ImPlotContextPtr(ImPlotContext* handle) { Handle = handle; } + + public ImPlotContext* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotContextPtr Null => new ImPlotContextPtr(null); + + public ImPlotContext this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotContextPtr(ImPlotContext* handle) => new ImPlotContextPtr(handle); + + public static implicit operator ImPlotContext*(ImPlotContextPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotContextPtr left, ImPlotContext* right) => left.Handle == right; + + public static bool operator !=(ImPlotContextPtr left, ImPlotContext* right) => left.Handle != right; + + public bool Equals(ImPlotContextPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotContextPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImPoolImPlotPlot Plots => ref Unsafe.AsRef(&Handle->Plots); + /// + /// To be documented. + /// + public ref ImPoolImPlotSubplot Subplots => ref Unsafe.AsRef(&Handle->Subplots); + /// + /// To be documented. + /// + public ref ImPlotPlotPtr CurrentPlot => ref Unsafe.AsRef(&Handle->CurrentPlot); + /// + /// To be documented. + /// + public ref ImPlotSubplotPtr CurrentSubplot => ref Unsafe.AsRef(&Handle->CurrentSubplot); + /// + /// To be documented. + /// + public ref ImPlotItemGroupPtr CurrentItems => ref Unsafe.AsRef(&Handle->CurrentItems); + /// + /// To be documented. + /// + public ref ImPlotItemPtr CurrentItem => ref Unsafe.AsRef(&Handle->CurrentItem); + /// + /// To be documented. + /// + public ref ImPlotItemPtr PreviousItem => ref Unsafe.AsRef(&Handle->PreviousItem); + /// + /// To be documented. + /// + public ref ImPlotTicker CTicker => ref Unsafe.AsRef(&Handle->CTicker); + /// + /// To be documented. + /// + public ref ImPlotAnnotationCollection Annotations => ref Unsafe.AsRef(&Handle->Annotations); + /// + /// To be documented. + /// + public ref ImPlotTagCollection Tags => ref Unsafe.AsRef(&Handle->Tags); + /// + /// To be documented. + /// + public ref bool ChildWindowMade => ref Unsafe.AsRef(&Handle->ChildWindowMade); + /// + /// To be documented. + /// + public ref ImPlotStyle Style => ref Unsafe.AsRef(&Handle->Style); + /// + /// To be documented. + /// + public ref ImVector ColorModifiers => ref Unsafe.AsRef>(&Handle->ColorModifiers); + /// + /// To be documented. + /// + public ref ImVector StyleModifiers => ref Unsafe.AsRef>(&Handle->StyleModifiers); + /// + /// To be documented. + /// + public ref ImPlotColormapData ColormapData => ref Unsafe.AsRef(&Handle->ColormapData); + /// + /// To be documented. + /// + public ref ImVector ColormapModifiers => ref Unsafe.AsRef>(&Handle->ColormapModifiers); + /// + /// To be documented. + /// + public ref Tm Tm => ref Unsafe.AsRef(&Handle->Tm); + /// + /// To be documented. + /// + public ref ImVector TempDouble1 => ref Unsafe.AsRef>(&Handle->TempDouble1); + /// + /// To be documented. + /// + public ref ImVector TempDouble2 => ref Unsafe.AsRef>(&Handle->TempDouble2); + /// + /// To be documented. + /// + public ref ImVector TempInt1 => ref Unsafe.AsRef>(&Handle->TempInt1); + /// + /// To be documented. + /// + public ref int DigitalPlotItemCnt => ref Unsafe.AsRef(&Handle->DigitalPlotItemCnt); + /// + /// To be documented. + /// + public ref int DigitalPlotOffset => ref Unsafe.AsRef(&Handle->DigitalPlotOffset); + /// + /// To be documented. + /// + public ref ImPlotNextPlotData NextPlotData => ref Unsafe.AsRef(&Handle->NextPlotData); + /// + /// To be documented. + /// + public ref ImPlotNextItemData NextItemData => ref Unsafe.AsRef(&Handle->NextItemData); + /// + /// To be documented. + /// + public ref ImPlotInputMap InputMap => ref Unsafe.AsRef(&Handle->InputMap); + /// + /// To be documented. + /// + public ref bool OpenContextThisFrame => ref Unsafe.AsRef(&Handle->OpenContextThisFrame); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer MousePosStringBuilder => ref Unsafe.AsRef(&Handle->MousePosStringBuilder); + /// + /// To be documented. + /// + public ref ImPoolImPlotAlignmentData AlignmentData => ref Unsafe.AsRef(&Handle->AlignmentData); + /// + /// To be documented. + /// + public ref ImPlotAlignmentDataPtr CurrentAlignmentH => ref Unsafe.AsRef(&Handle->CurrentAlignmentH); + /// + /// To be documented. + /// + public ref ImPlotAlignmentDataPtr CurrentAlignmentV => ref Unsafe.AsRef(&Handle->CurrentAlignmentV); + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs new file mode 100644 index 000000000..a46916cb4 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotDateTimeSpec + { + /// + /// To be documented. + /// + public ImPlotDateFmt Date; + + /// + /// To be documented. + /// + public ImPlotTimeFmt Time; + + /// + /// To be documented. + /// + public byte UseISO8601; + + /// + /// To be documented. + /// + public byte Use24HourClock; + + + /// + /// To be documented. + /// + public unsafe ImPlotDateTimeSpec(ImPlotDateFmt date = default, ImPlotTimeFmt time = default, bool useIso8601 = default, bool use24HourClock = default) + { + Date = date; + Time = time; + UseISO8601 = useIso8601 ? (byte)1 : (byte)0; + Use24HourClock = use24HourClock ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotDateTimeSpec* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotDateTimeSpecPtr : IEquatable + { + public ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) { Handle = handle; } + + public ImPlotDateTimeSpec* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotDateTimeSpecPtr Null => new ImPlotDateTimeSpecPtr(null); + + public ImPlotDateTimeSpec this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) => new ImPlotDateTimeSpecPtr(handle); + + public static implicit operator ImPlotDateTimeSpec*(ImPlotDateTimeSpecPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle == right; + + public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle != right; + + public bool Equals(ImPlotDateTimeSpecPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotDateTimeSpecPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotDateTimeSpecPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImPlotDateFmt Date => ref Unsafe.AsRef(&Handle->Date); + /// + /// To be documented. + /// + public ref ImPlotTimeFmt Time => ref Unsafe.AsRef(&Handle->Time); + /// + /// To be documented. + /// + public ref bool UseISO8601 => ref Unsafe.AsRef(&Handle->UseISO8601); + /// + /// To be documented. + /// + public ref bool Use24HourClock => ref Unsafe.AsRef(&Handle->Use24HourClock); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs new file mode 100644 index 000000000..661b8fe19 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotInputMap + { + /// + /// To be documented. + /// + public ImGuiMouseButton Pan; + + /// + /// To be documented. + /// + public ImGuiModFlags PanMod; + + /// + /// To be documented. + /// + public ImGuiMouseButton Fit; + + /// + /// To be documented. + /// + public ImGuiMouseButton Select; + + /// + /// To be documented. + /// + public ImGuiMouseButton SelectCancel; + + /// + /// To be documented. + /// + public ImGuiModFlags SelectMod; + + /// + /// To be documented. + /// + public ImGuiModFlags SelectHorzMod; + + /// + /// To be documented. + /// + public ImGuiModFlags SelectVertMod; + + /// + /// To be documented. + /// + public ImGuiMouseButton Menu; + + /// + /// To be documented. + /// + public ImGuiModFlags OverrideMod; + + /// + /// To be documented. + /// + public ImGuiModFlags ZoomMod; + + /// + /// To be documented. + /// + public float ZoomRate; + + + /// + /// To be documented. + /// + public unsafe ImPlotInputMap(ImGuiMouseButton pan = default, ImGuiModFlags panMod = default, ImGuiMouseButton fit = default, ImGuiMouseButton select = default, ImGuiMouseButton selectCancel = default, ImGuiModFlags selectMod = default, ImGuiModFlags selectHorzMod = default, ImGuiModFlags selectVertMod = default, ImGuiMouseButton menu = default, ImGuiModFlags overrideMod = default, ImGuiModFlags zoomMod = default, float zoomRate = default) + { + Pan = pan; + PanMod = panMod; + Fit = fit; + Select = select; + SelectCancel = selectCancel; + SelectMod = selectMod; + SelectHorzMod = selectHorzMod; + SelectVertMod = selectVertMod; + Menu = menu; + OverrideMod = overrideMod; + ZoomMod = zoomMod; + ZoomRate = zoomRate; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotInputMap* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotInputMapPtr : IEquatable + { + public ImPlotInputMapPtr(ImPlotInputMap* handle) { Handle = handle; } + + public ImPlotInputMap* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotInputMapPtr Null => new ImPlotInputMapPtr(null); + + public ImPlotInputMap this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* handle) => new ImPlotInputMapPtr(handle); + + public static implicit operator ImPlotInputMap*(ImPlotInputMapPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle == right; + + public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle != right; + + public bool Equals(ImPlotInputMapPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotInputMapPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotInputMapPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImGuiMouseButton Pan => ref Unsafe.AsRef(&Handle->Pan); + /// + /// To be documented. + /// + public ref ImGuiModFlags PanMod => ref Unsafe.AsRef(&Handle->PanMod); + /// + /// To be documented. + /// + public ref ImGuiMouseButton Fit => ref Unsafe.AsRef(&Handle->Fit); + /// + /// To be documented. + /// + public ref ImGuiMouseButton Select => ref Unsafe.AsRef(&Handle->Select); + /// + /// To be documented. + /// + public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef(&Handle->SelectCancel); + /// + /// To be documented. + /// + public ref ImGuiModFlags SelectMod => ref Unsafe.AsRef(&Handle->SelectMod); + /// + /// To be documented. + /// + public ref ImGuiModFlags SelectHorzMod => ref Unsafe.AsRef(&Handle->SelectHorzMod); + /// + /// To be documented. + /// + public ref ImGuiModFlags SelectVertMod => ref Unsafe.AsRef(&Handle->SelectVertMod); + /// + /// To be documented. + /// + public ref ImGuiMouseButton Menu => ref Unsafe.AsRef(&Handle->Menu); + /// + /// To be documented. + /// + public ref ImGuiModFlags OverrideMod => ref Unsafe.AsRef(&Handle->OverrideMod); + /// + /// To be documented. + /// + public ref ImGuiModFlags ZoomMod => ref Unsafe.AsRef(&Handle->ZoomMod); + /// + /// To be documented. + /// + public ref float ZoomRate => ref Unsafe.AsRef(&Handle->ZoomRate); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs new file mode 100644 index 000000000..c653a62a6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs @@ -0,0 +1,169 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotItem + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public uint Color; + + /// + /// To be documented. + /// + public ImRect LegendHoverRect; + + /// + /// To be documented. + /// + public int NameOffset; + + /// + /// To be documented. + /// + public byte Show; + + /// + /// To be documented. + /// + public byte LegendHovered; + + /// + /// To be documented. + /// + public byte SeenThisFrame; + + + /// + /// To be documented. + /// + public unsafe ImPlotItem(uint id = default, uint color = default, ImRect legendHoverRect = default, int nameOffset = default, bool show = default, bool legendHovered = default, bool seenThisFrame = default) + { + ID = id; + Color = color; + LegendHoverRect = legendHoverRect; + NameOffset = nameOffset; + Show = show ? (byte)1 : (byte)0; + LegendHovered = legendHovered ? (byte)1 : (byte)0; + SeenThisFrame = seenThisFrame ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotItem* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotItemPtr : IEquatable + { + public ImPlotItemPtr(ImPlotItem* handle) { Handle = handle; } + + public ImPlotItem* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotItemPtr Null => new ImPlotItemPtr(null); + + public ImPlotItem this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotItemPtr(ImPlotItem* handle) => new ImPlotItemPtr(handle); + + public static implicit operator ImPlotItem*(ImPlotItemPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotItemPtr left, ImPlotItem* right) => left.Handle == right; + + public static bool operator !=(ImPlotItemPtr left, ImPlotItem* right) => left.Handle != right; + + public bool Equals(ImPlotItemPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotItemPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref uint Color => ref Unsafe.AsRef(&Handle->Color); + /// + /// To be documented. + /// + public ref ImRect LegendHoverRect => ref Unsafe.AsRef(&Handle->LegendHoverRect); + /// + /// To be documented. + /// + public ref int NameOffset => ref Unsafe.AsRef(&Handle->NameOffset); + /// + /// To be documented. + /// + public ref bool Show => ref Unsafe.AsRef(&Handle->Show); + /// + /// To be documented. + /// + public ref bool LegendHovered => ref Unsafe.AsRef(&Handle->LegendHovered); + /// + /// To be documented. + /// + public ref bool SeenThisFrame => ref Unsafe.AsRef(&Handle->SeenThisFrame); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs new file mode 100644 index 000000000..32109fcc5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs @@ -0,0 +1,650 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotItemGroup + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImPlotLegend Legend; + + /// + /// To be documented. + /// + public ImPoolImPlotItem ItemPool; + + /// + /// To be documented. + /// + public int ColormapIdx; + + + /// + /// To be documented. + /// + public unsafe ImPlotItemGroup(uint id = default, ImPlotLegend legend = default, ImPoolImPlotItem itemPool = default, int colormapIdx = default) + { + ID = id; + Legend = legend; + ItemPool = itemPool; + ColormapIdx = colormapIdx; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(uint id) + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlotItem* ret = ImPlot.GetItemNative(@this, id); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(byte* labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlotItem* ret = ImPlot.GetItemNative(@this, labelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(ref byte labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(ReadOnlySpan labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + fixed (byte* plabelId = labelId) + { + ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(string labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotItem* ret = ImPlot.GetItemNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItemByIndex(int i) + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlotItem* ret = ImPlot.GetItemByIndexNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetItemCount() + { + fixed (ImPlotItemGroup* @this = &this) + { + int ret = ImPlot.GetItemCountNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(byte* labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + uint ret = ImPlot.GetItemIDNative(@this, labelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(ref byte labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + fixed (byte* plabelId = &labelId) + { + uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(ReadOnlySpan labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + fixed (byte* plabelId = labelId) + { + uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(string labelId) + { + fixed (ImPlotItemGroup* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + 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 = ImPlot.GetItemIDNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetItemIndex(ImPlotItem* item) + { + fixed (ImPlotItemGroup* @this = &this) + { + int ret = ImPlot.GetItemIndexNative(@this, item); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetItemIndex(ref ImPlotItem item) + { + fixed (ImPlotItemGroup* @this = &this) + { + fixed (ImPlotItem* pitem = &item) + { + int ret = ImPlot.GetItemIndexNative(@this, (ImPlotItem*)pitem); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe int GetLegendCount() + { + fixed (ImPlotItemGroup* @this = &this) + { + int ret = ImPlot.GetLegendCountNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetLegendItem(int i) + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlotItem* ret = ImPlot.GetLegendItemNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetLegendLabel(int i) + { + fixed (ImPlotItemGroup* @this = &this) + { + byte* ret = ImPlot.GetLegendLabelNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetLegendLabelS(int i) + { + fixed (ImPlotItemGroup* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(@this, i)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetOrAddItem(uint id) + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlotItem* ret = ImPlot.GetOrAddItemNative(@this, id); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotItemGroup* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotItemGroupPtr : IEquatable + { + public ImPlotItemGroupPtr(ImPlotItemGroup* handle) { Handle = handle; } + + public ImPlotItemGroup* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotItemGroupPtr Null => new ImPlotItemGroupPtr(null); + + public ImPlotItemGroup this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotItemGroupPtr(ImPlotItemGroup* handle) => new ImPlotItemGroupPtr(handle); + + public static implicit operator ImPlotItemGroup*(ImPlotItemGroupPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle == right; + + public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle != right; + + public bool Equals(ImPlotItemGroupPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotItemGroupPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotItemGroupPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImPlotLegend Legend => ref Unsafe.AsRef(&Handle->Legend); + /// + /// To be documented. + /// + public ref ImPoolImPlotItem ItemPool => ref Unsafe.AsRef(&Handle->ItemPool); + /// + /// To be documented. + /// + public ref int ColormapIdx => ref Unsafe.AsRef(&Handle->ColormapIdx); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(uint id) + { + ImPlotItem* ret = ImPlot.GetItemNative(Handle, id); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(byte* labelId) + { + ImPlotItem* ret = ImPlot.GetItemNative(Handle, labelId); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(ref byte labelId) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItem(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* 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; + } + ImPlotItem* ret = ImPlot.GetItemNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetItemByIndex(int i) + { + ImPlotItem* ret = ImPlot.GetItemByIndexNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetItemCount() + { + int ret = ImPlot.GetItemCountNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(byte* labelId) + { + uint ret = ImPlot.GetItemIDNative(Handle, labelId); + return ret; + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(ref byte labelId) + { + fixed (byte* plabelId = &labelId) + { + uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe uint GetItemID(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 = ImPlot.GetItemIDNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetItemIndex(ImPlotItem* item) + { + int ret = ImPlot.GetItemIndexNative(Handle, item); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int GetItemIndex(ref ImPlotItem item) + { + fixed (ImPlotItem* pitem = &item) + { + int ret = ImPlot.GetItemIndexNative(Handle, (ImPlotItem*)pitem); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int GetLegendCount() + { + int ret = ImPlot.GetLegendCountNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetLegendItem(int i) + { + ImPlotItem* ret = ImPlot.GetLegendItemNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetLegendLabel(int i) + { + byte* ret = ImPlot.GetLegendLabelNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetLegendLabelS(int i) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(Handle, i)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotItem* GetOrAddItem(uint id) + { + ImPlotItem* ret = ImPlot.GetOrAddItemNative(Handle, id); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs new file mode 100644 index 000000000..7906118e2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs @@ -0,0 +1,218 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotLegend + { + /// + /// To be documented. + /// + public ImPlotLegendFlags Flags; + + /// + /// To be documented. + /// + public ImPlotLegendFlags PreviousFlags; + + /// + /// To be documented. + /// + public ImPlotLocation Location; + + /// + /// To be documented. + /// + public ImPlotLocation PreviousLocation; + + /// + /// To be documented. + /// + public ImVector Indices; + + /// + /// To be documented. + /// + public ImGuiTextBuffer Labels; + + /// + /// To be documented. + /// + public ImRect Rect; + + /// + /// To be documented. + /// + public byte Hovered; + + /// + /// To be documented. + /// + public byte Held; + + /// + /// To be documented. + /// + public byte CanGoInside; + + + /// + /// To be documented. + /// + public unsafe ImPlotLegend(ImPlotLegendFlags flags = default, ImPlotLegendFlags previousFlags = default, ImPlotLocation location = default, ImPlotLocation previousLocation = default, ImVector indices = default, ImGuiTextBuffer labels = default, ImRect rect = default, bool hovered = default, bool held = default, bool canGoInside = default) + { + Flags = flags; + PreviousFlags = previousFlags; + Location = location; + PreviousLocation = previousLocation; + Indices = indices; + Labels = labels; + Rect = rect; + Hovered = hovered ? (byte)1 : (byte)0; + Held = held ? (byte)1 : (byte)0; + CanGoInside = canGoInside ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotLegend* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotLegend* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotLegendPtr : IEquatable + { + public ImPlotLegendPtr(ImPlotLegend* handle) { Handle = handle; } + + public ImPlotLegend* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotLegendPtr Null => new ImPlotLegendPtr(null); + + public ImPlotLegend this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotLegendPtr(ImPlotLegend* handle) => new ImPlotLegendPtr(handle); + + public static implicit operator ImPlotLegend*(ImPlotLegendPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle == right; + + public static bool operator !=(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle != right; + + public bool Equals(ImPlotLegendPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotLegendPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotLegendPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImPlotLegendFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImPlotLegendFlags PreviousFlags => ref Unsafe.AsRef(&Handle->PreviousFlags); + /// + /// To be documented. + /// + public ref ImPlotLocation Location => ref Unsafe.AsRef(&Handle->Location); + /// + /// To be documented. + /// + public ref ImPlotLocation PreviousLocation => ref Unsafe.AsRef(&Handle->PreviousLocation); + /// + /// To be documented. + /// + public ref ImVector Indices => ref Unsafe.AsRef>(&Handle->Indices); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer Labels => ref Unsafe.AsRef(&Handle->Labels); + /// + /// To be documented. + /// + public ref ImRect Rect => ref Unsafe.AsRef(&Handle->Rect); + /// + /// To be documented. + /// + public ref bool Hovered => ref Unsafe.AsRef(&Handle->Hovered); + /// + /// To be documented. + /// + public ref bool Held => ref Unsafe.AsRef(&Handle->Held); + /// + /// To be documented. + /// + public ref bool CanGoInside => ref Unsafe.AsRef(&Handle->CanGoInside); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs new file mode 100644 index 000000000..5b014bd01 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs @@ -0,0 +1,351 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotNextItemData + { + /// + /// To be documented. + /// + public Vector4 Colors_0; + public Vector4 Colors_1; + public Vector4 Colors_2; + public Vector4 Colors_3; + public Vector4 Colors_4; + + /// + /// To be documented. + /// + public float LineWeight; + + /// + /// To be documented. + /// + public ImPlotMarker Marker; + + /// + /// To be documented. + /// + public float MarkerSize; + + /// + /// To be documented. + /// + public float MarkerWeight; + + /// + /// To be documented. + /// + public float FillAlpha; + + /// + /// To be documented. + /// + public float ErrorBarSize; + + /// + /// To be documented. + /// + public float ErrorBarWeight; + + /// + /// To be documented. + /// + public float DigitalBitHeight; + + /// + /// To be documented. + /// + public float DigitalBitGap; + + /// + /// To be documented. + /// + public byte RenderLine; + + /// + /// To be documented. + /// + public byte RenderFill; + + /// + /// To be documented. + /// + public byte RenderMarkerLine; + + /// + /// To be documented. + /// + public byte RenderMarkerFill; + + /// + /// To be documented. + /// + public byte HasHidden; + + /// + /// To be documented. + /// + public byte Hidden; + + /// + /// To be documented. + /// + public ImPlotCond HiddenCond; + + + /// + /// To be documented. + /// + public unsafe ImPlotNextItemData(Vector4* colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default) + { + if (colors != default(Vector4*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + } + LineWeight = lineWeight; + Marker = marker; + MarkerSize = markerSize; + MarkerWeight = markerWeight; + FillAlpha = fillAlpha; + ErrorBarSize = errorBarSize; + ErrorBarWeight = errorBarWeight; + DigitalBitHeight = digitalBitHeight; + DigitalBitGap = digitalBitGap; + RenderLine = renderLine ? (byte)1 : (byte)0; + RenderFill = renderFill ? (byte)1 : (byte)0; + RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0; + RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0; + HasHidden = hasHidden ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + HiddenCond = hiddenCond; + } + + /// + /// To be documented. + /// + public unsafe ImPlotNextItemData(Span colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default) + { + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + } + LineWeight = lineWeight; + Marker = marker; + MarkerSize = markerSize; + MarkerWeight = markerWeight; + FillAlpha = fillAlpha; + ErrorBarSize = errorBarSize; + ErrorBarWeight = errorBarWeight; + DigitalBitHeight = digitalBitHeight; + DigitalBitGap = digitalBitGap; + RenderLine = renderLine ? (byte)1 : (byte)0; + RenderFill = renderFill ? (byte)1 : (byte)0; + RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0; + RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0; + HasHidden = hasHidden ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + HiddenCond = hiddenCond; + } + + + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + fixed (Vector4* p = &this.Colors_0) + { + return new Span(p, 5); + } + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotNextItemData* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotNextItemData* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotNextItemDataPtr : IEquatable + { + public ImPlotNextItemDataPtr(ImPlotNextItemData* handle) { Handle = handle; } + + public ImPlotNextItemData* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotNextItemDataPtr Null => new ImPlotNextItemDataPtr(null); + + public ImPlotNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotNextItemDataPtr(ImPlotNextItemData* handle) => new ImPlotNextItemDataPtr(handle); + + public static implicit operator ImPlotNextItemData*(ImPlotNextItemDataPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle == right; + + public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle != right; + + public bool Equals(ImPlotNextItemDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotNextItemDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + return new Span(&Handle->Colors_0, 5); + } + } + /// + /// To be documented. + /// + public ref float LineWeight => ref Unsafe.AsRef(&Handle->LineWeight); + /// + /// To be documented. + /// + public ref ImPlotMarker Marker => ref Unsafe.AsRef(&Handle->Marker); + /// + /// To be documented. + /// + public ref float MarkerSize => ref Unsafe.AsRef(&Handle->MarkerSize); + /// + /// To be documented. + /// + public ref float MarkerWeight => ref Unsafe.AsRef(&Handle->MarkerWeight); + /// + /// To be documented. + /// + public ref float FillAlpha => ref Unsafe.AsRef(&Handle->FillAlpha); + /// + /// To be documented. + /// + public ref float ErrorBarSize => ref Unsafe.AsRef(&Handle->ErrorBarSize); + /// + /// To be documented. + /// + public ref float ErrorBarWeight => ref Unsafe.AsRef(&Handle->ErrorBarWeight); + /// + /// To be documented. + /// + public ref float DigitalBitHeight => ref Unsafe.AsRef(&Handle->DigitalBitHeight); + /// + /// To be documented. + /// + public ref float DigitalBitGap => ref Unsafe.AsRef(&Handle->DigitalBitGap); + /// + /// To be documented. + /// + public ref bool RenderLine => ref Unsafe.AsRef(&Handle->RenderLine); + /// + /// To be documented. + /// + public ref bool RenderFill => ref Unsafe.AsRef(&Handle->RenderFill); + /// + /// To be documented. + /// + public ref bool RenderMarkerLine => ref Unsafe.AsRef(&Handle->RenderMarkerLine); + /// + /// To be documented. + /// + public ref bool RenderMarkerFill => ref Unsafe.AsRef(&Handle->RenderMarkerFill); + /// + /// To be documented. + /// + public ref bool HasHidden => ref Unsafe.AsRef(&Handle->HasHidden); + /// + /// To be documented. + /// + public ref bool Hidden => ref Unsafe.AsRef(&Handle->Hidden); + /// + /// To be documented. + /// + public ref ImPlotCond HiddenCond => ref Unsafe.AsRef(&Handle->HiddenCond); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs new file mode 100644 index 000000000..e36f126c2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs @@ -0,0 +1,385 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotNextPlotData + { + /// + /// To be documented. + /// + public ImPlotCond RangeCond_0; + public ImPlotCond RangeCond_1; + public ImPlotCond RangeCond_2; + public ImPlotCond RangeCond_3; + public ImPlotCond RangeCond_4; + public ImPlotCond RangeCond_5; + + /// + /// To be documented. + /// + public ImPlotRange Range_0; + public ImPlotRange Range_1; + public ImPlotRange Range_2; + public ImPlotRange Range_3; + public ImPlotRange Range_4; + public ImPlotRange Range_5; + + /// + /// To be documented. + /// + public bool HasRange_0; + public bool HasRange_1; + public bool HasRange_2; + public bool HasRange_3; + public bool HasRange_4; + public bool HasRange_5; + + /// + /// To be documented. + /// + public bool Fit_0; + public bool Fit_1; + public bool Fit_2; + public bool Fit_3; + public bool Fit_4; + public bool Fit_5; + + /// + /// To be documented. + /// + public unsafe double* LinkedMin_0; + public unsafe double* LinkedMin_1; + public unsafe double* LinkedMin_2; + public unsafe double* LinkedMin_3; + public unsafe double* LinkedMin_4; + public unsafe double* LinkedMin_5; + + /// + /// To be documented. + /// + public unsafe double* LinkedMax_0; + public unsafe double* LinkedMax_1; + public unsafe double* LinkedMax_2; + public unsafe double* LinkedMax_3; + public unsafe double* LinkedMax_4; + public unsafe double* LinkedMax_5; + + + /// + /// To be documented. + /// + public unsafe ImPlotNextPlotData(ImPlotCond* rangeCond = default, ImPlotRangePtr range = default, bool* hasRange = default, bool* fit = default, double** linkedMin = default, double** linkedMax = default) + { + if (rangeCond != default(ImPlotCond*)) + { + RangeCond_0 = rangeCond[0]; + RangeCond_1 = rangeCond[1]; + RangeCond_2 = rangeCond[2]; + RangeCond_3 = rangeCond[3]; + RangeCond_4 = rangeCond[4]; + RangeCond_5 = rangeCond[5]; + } + if (range != default(ImPlotRangePtr)) + { + Range_0 = range[0]; + Range_1 = range[1]; + Range_2 = range[2]; + Range_3 = range[3]; + Range_4 = range[4]; + Range_5 = range[5]; + } + if (hasRange != default(bool*)) + { + HasRange_0 = hasRange[0]; + HasRange_1 = hasRange[1]; + HasRange_2 = hasRange[2]; + HasRange_3 = hasRange[3]; + HasRange_4 = hasRange[4]; + HasRange_5 = hasRange[5]; + } + if (fit != default(bool*)) + { + Fit_0 = fit[0]; + Fit_1 = fit[1]; + Fit_2 = fit[2]; + Fit_3 = fit[3]; + Fit_4 = fit[4]; + Fit_5 = fit[5]; + } + if (linkedMin != default(double**)) + { + LinkedMin_0 = linkedMin[0]; + LinkedMin_1 = linkedMin[1]; + LinkedMin_2 = linkedMin[2]; + LinkedMin_3 = linkedMin[3]; + LinkedMin_4 = linkedMin[4]; + LinkedMin_5 = linkedMin[5]; + } + if (linkedMax != default(double**)) + { + LinkedMax_0 = linkedMax[0]; + LinkedMax_1 = linkedMax[1]; + LinkedMax_2 = linkedMax[2]; + LinkedMax_3 = linkedMax[3]; + LinkedMax_4 = linkedMax[4]; + LinkedMax_5 = linkedMax[5]; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotNextPlotData(Span rangeCond = default, Span range = default, Span hasRange = default, Span fit = default, Span> linkedMin = default, Span> linkedMax = default) + { + if (rangeCond != default(Span)) + { + RangeCond_0 = rangeCond[0]; + RangeCond_1 = rangeCond[1]; + RangeCond_2 = rangeCond[2]; + RangeCond_3 = rangeCond[3]; + RangeCond_4 = rangeCond[4]; + RangeCond_5 = rangeCond[5]; + } + if (range != default(Span)) + { + Range_0 = range[0]; + Range_1 = range[1]; + Range_2 = range[2]; + Range_3 = range[3]; + Range_4 = range[4]; + Range_5 = range[5]; + } + if (hasRange != default(Span)) + { + HasRange_0 = hasRange[0]; + HasRange_1 = hasRange[1]; + HasRange_2 = hasRange[2]; + HasRange_3 = hasRange[3]; + HasRange_4 = hasRange[4]; + HasRange_5 = hasRange[5]; + } + if (fit != default(Span)) + { + Fit_0 = fit[0]; + Fit_1 = fit[1]; + Fit_2 = fit[2]; + Fit_3 = fit[3]; + Fit_4 = fit[4]; + Fit_5 = fit[5]; + } + if (linkedMin != default(Span>)) + { + LinkedMin_0 = linkedMin[0]; + LinkedMin_1 = linkedMin[1]; + LinkedMin_2 = linkedMin[2]; + LinkedMin_3 = linkedMin[3]; + LinkedMin_4 = linkedMin[4]; + LinkedMin_5 = linkedMin[5]; + } + if (linkedMax != default(Span>)) + { + LinkedMax_0 = linkedMax[0]; + LinkedMax_1 = linkedMax[1]; + LinkedMax_2 = linkedMax[2]; + LinkedMax_3 = linkedMax[3]; + LinkedMax_4 = linkedMax[4]; + LinkedMax_5 = linkedMax[5]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span Range + + { + get + { + fixed (ImPlotRange* p = &this.Range_0) + { + return new Span(p, 6); + } + } + } + /// + /// To be documented. + /// + public unsafe Span> LinkedMin + + { + get + { + fixed (double** p = &this.LinkedMin_0) + { + return new Span>(p, 6); + } + } + } + /// + /// To be documented. + /// + public unsafe Span> LinkedMax + + { + get + { + fixed (double** p = &this.LinkedMax_0) + { + return new Span>(p, 6); + } + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotNextPlotData* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotNextPlotData* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotNextPlotDataPtr : IEquatable + { + public ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) { Handle = handle; } + + public ImPlotNextPlotData* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotNextPlotDataPtr Null => new ImPlotNextPlotDataPtr(null); + + public ImPlotNextPlotData this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) => new ImPlotNextPlotDataPtr(handle); + + public static implicit operator ImPlotNextPlotData*(ImPlotNextPlotDataPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle == right; + + public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle != right; + + public bool Equals(ImPlotNextPlotDataPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotNextPlotDataPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotNextPlotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public unsafe Span RangeCond + + { + get + { + return new Span(&Handle->RangeCond_0, 6); + } + } + /// + /// To be documented. + /// + public unsafe Span Range + + { + get + { + return new Span(&Handle->Range_0, 6); + } + } + /// + /// To be documented. + /// + public unsafe Span HasRange + + { + get + { + return new Span(&Handle->HasRange_0, 6); + } + } + /// + /// To be documented. + /// + public unsafe Span Fit + + { + get + { + return new Span(&Handle->Fit_0, 6); + } + } + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs new file mode 100644 index 000000000..ff9da7ba8 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs @@ -0,0 +1,1119 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotPlot + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImPlotFlags Flags; + + /// + /// To be documented. + /// + public ImPlotFlags PreviousFlags; + + /// + /// To be documented. + /// + public ImPlotLocation MouseTextLocation; + + /// + /// To be documented. + /// + public ImPlotMouseTextFlags MouseTextFlags; + + /// + /// To be documented. + /// + public ImPlotAxis Axes_0; + public ImPlotAxis Axes_1; + public ImPlotAxis Axes_2; + public ImPlotAxis Axes_3; + public ImPlotAxis Axes_4; + public ImPlotAxis Axes_5; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TextBuffer; + + /// + /// To be documented. + /// + public ImPlotItemGroup Items; + + /// + /// To be documented. + /// + public ImAxis CurrentX; + + /// + /// To be documented. + /// + public ImAxis CurrentY; + + /// + /// To be documented. + /// + public ImRect FrameRect; + + /// + /// To be documented. + /// + public ImRect CanvasRect; + + /// + /// To be documented. + /// + public ImRect PlotRect; + + /// + /// To be documented. + /// + public ImRect AxesRect; + + /// + /// To be documented. + /// + public ImRect SelectRect; + + /// + /// To be documented. + /// + public Vector2 SelectStart; + + /// + /// To be documented. + /// + public int TitleOffset; + + /// + /// To be documented. + /// + public byte JustCreated; + + /// + /// To be documented. + /// + public byte Initialized; + + /// + /// To be documented. + /// + public byte SetupLocked; + + /// + /// To be documented. + /// + public byte FitThisFrame; + + /// + /// To be documented. + /// + public byte Hovered; + + /// + /// To be documented. + /// + public byte Held; + + /// + /// To be documented. + /// + public byte Selecting; + + /// + /// To be documented. + /// + public byte Selected; + + /// + /// To be documented. + /// + public byte ContextLocked; + + + /// + /// To be documented. + /// + public unsafe ImPlotPlot(uint id = default, ImPlotFlags flags = default, ImPlotFlags previousFlags = default, ImPlotLocation mouseTextLocation = default, ImPlotMouseTextFlags mouseTextFlags = default, ImPlotAxis* axes = default, ImGuiTextBuffer textBuffer = default, ImPlotItemGroup items = default, ImAxis currentX = default, ImAxis currentY = default, ImRect frameRect = default, ImRect canvasRect = default, ImRect plotRect = default, ImRect axesRect = default, ImRect selectRect = default, Vector2 selectStart = default, int titleOffset = default, bool justCreated = default, bool initialized = default, bool setupLocked = default, bool fitThisFrame = default, bool hovered = default, bool held = default, bool selecting = default, bool selected = default, bool contextLocked = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + MouseTextLocation = mouseTextLocation; + MouseTextFlags = mouseTextFlags; + if (axes != default(ImPlotAxis*)) + { + Axes_0 = axes[0]; + Axes_1 = axes[1]; + Axes_2 = axes[2]; + Axes_3 = axes[3]; + Axes_4 = axes[4]; + Axes_5 = axes[5]; + } + TextBuffer = textBuffer; + Items = items; + CurrentX = currentX; + CurrentY = currentY; + FrameRect = frameRect; + CanvasRect = canvasRect; + PlotRect = plotRect; + AxesRect = axesRect; + SelectRect = selectRect; + SelectStart = selectStart; + TitleOffset = titleOffset; + JustCreated = justCreated ? (byte)1 : (byte)0; + Initialized = initialized ? (byte)1 : (byte)0; + SetupLocked = setupLocked ? (byte)1 : (byte)0; + FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; + Hovered = hovered ? (byte)1 : (byte)0; + Held = held ? (byte)1 : (byte)0; + Selecting = selecting ? (byte)1 : (byte)0; + Selected = selected ? (byte)1 : (byte)0; + ContextLocked = contextLocked ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImPlotPlot(uint id = default, ImPlotFlags flags = default, ImPlotFlags previousFlags = default, ImPlotLocation mouseTextLocation = default, ImPlotMouseTextFlags mouseTextFlags = default, Span axes = default, ImGuiTextBuffer textBuffer = default, ImPlotItemGroup items = default, ImAxis currentX = default, ImAxis currentY = default, ImRect frameRect = default, ImRect canvasRect = default, ImRect plotRect = default, ImRect axesRect = default, ImRect selectRect = default, Vector2 selectStart = default, int titleOffset = default, bool justCreated = default, bool initialized = default, bool setupLocked = default, bool fitThisFrame = default, bool hovered = default, bool held = default, bool selecting = default, bool selected = default, bool contextLocked = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + MouseTextLocation = mouseTextLocation; + MouseTextFlags = mouseTextFlags; + if (axes != default(Span)) + { + Axes_0 = axes[0]; + Axes_1 = axes[1]; + Axes_2 = axes[2]; + Axes_3 = axes[3]; + Axes_4 = axes[4]; + Axes_5 = axes[5]; + } + TextBuffer = textBuffer; + Items = items; + CurrentX = currentX; + CurrentY = currentY; + FrameRect = frameRect; + CanvasRect = canvasRect; + PlotRect = plotRect; + AxesRect = axesRect; + SelectRect = selectRect; + SelectStart = selectStart; + TitleOffset = titleOffset; + JustCreated = justCreated ? (byte)1 : (byte)0; + Initialized = initialized ? (byte)1 : (byte)0; + SetupLocked = setupLocked ? (byte)1 : (byte)0; + FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; + Hovered = hovered ? (byte)1 : (byte)0; + Held = held ? (byte)1 : (byte)0; + Selecting = selecting ? (byte)1 : (byte)0; + Selected = selected ? (byte)1 : (byte)0; + ContextLocked = contextLocked ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe Span Axes + + { + get + { + fixed (ImPlotAxis* p = &this.Axes_0) + { + return new Span(p, 6); + } + } + } + /// + /// To be documented. + /// + public unsafe void ClearTextBuffer() + { + fixed (ImPlotPlot* @this = &this) + { + ImPlot.ClearTextBufferNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotPlot* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe int EnabledAxesX() + { + fixed (ImPlotPlot* @this = &this) + { + int ret = ImPlot.EnabledAxesXNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe int EnabledAxesY() + { + fixed (ImPlotPlot* @this = &this) + { + int ret = ImPlot.EnabledAxesYNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetAxisLabel(ImPlotAxis axis) + { + fixed (ImPlotPlot* @this = &this) + { + byte* ret = ImPlot.GetAxisLabelNative(@this, axis); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetAxisLabelS(ImPlotAxis axis) + { + fixed (ImPlotPlot* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetAxisLabelNative(@this, axis)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetTitle() + { + fixed (ImPlotPlot* @this = &this) + { + byte* ret = ImPlot.GetTitleNative(@this); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetTitleS() + { + fixed (ImPlotPlot* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTitleNative(@this)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool HasTitle() + { + fixed (ImPlotPlot* @this = &this) + { + byte ret = ImPlot.HasTitleNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLocked() + { + fixed (ImPlotPlot* @this = &this) + { + byte ret = ImPlot.IsInputLockedNative(@this); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, byte* label) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlot.SetAxisLabelNative(@this, axis, label); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, byte* label) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (ImPlotAxis* paxis = &axis) + { + ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, label); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, ref byte label) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (byte* plabel = &label) + { + ImPlot.SetAxisLabelNative(@this, axis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, ReadOnlySpan label) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (byte* plabel = label) + { + ImPlot.SetAxisLabelNative(@this, axis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, string label) + { + fixed (ImPlotPlot* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlot.SetAxisLabelNative(@this, axis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, ref byte label) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = &label) + { + ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, ReadOnlySpan label) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = label) + { + ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, string label) + { + fixed (ImPlotPlot* @this = &this) + { + 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; + } + ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(byte* title) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlot.SetTitleNative(@this, title); + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(ref byte title) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (byte* ptitle = &title) + { + ImPlot.SetTitleNative(@this, (byte*)ptitle); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(ReadOnlySpan title) + { + fixed (ImPlotPlot* @this = &this) + { + fixed (byte* ptitle = title) + { + ImPlot.SetTitleNative(@this, (byte*)ptitle); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(string title) + { + fixed (ImPlotPlot* @this = &this) + { + 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; + } + ImPlot.SetTitleNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* XAxis(int i) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlotAxis* ret = ImPlot.XAxisNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* ImPlotPlotXAxisConst(int i) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlotAxis* ret = ImPlot.ImPlotPlotXAxisConstNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* YAxis(int i) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlotAxis* ret = ImPlot.YAxisNative(@this, i); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* ImPlotPlotYAxisConst(int i) + { + fixed (ImPlotPlot* @this = &this) + { + ImPlotAxis* ret = ImPlot.ImPlotPlotYAxisConstNative(@this, i); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotPlotPtr : IEquatable + { + public ImPlotPlotPtr(ImPlotPlot* handle) { Handle = handle; } + + public ImPlotPlot* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotPlotPtr Null => new ImPlotPlotPtr(null); + + public ImPlotPlot this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotPlotPtr(ImPlotPlot* handle) => new ImPlotPlotPtr(handle); + + public static implicit operator ImPlotPlot*(ImPlotPlotPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotPlotPtr left, ImPlotPlotPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotPlotPtr left, ImPlotPlotPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotPlotPtr left, ImPlotPlot* right) => left.Handle == right; + + public static bool operator !=(ImPlotPlotPtr left, ImPlotPlot* right) => left.Handle != right; + + public bool Equals(ImPlotPlotPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotPlotPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotPlotPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImPlotFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImPlotFlags PreviousFlags => ref Unsafe.AsRef(&Handle->PreviousFlags); + /// + /// To be documented. + /// + public ref ImPlotLocation MouseTextLocation => ref Unsafe.AsRef(&Handle->MouseTextLocation); + /// + /// To be documented. + /// + public ref ImPlotMouseTextFlags MouseTextFlags => ref Unsafe.AsRef(&Handle->MouseTextFlags); + /// + /// To be documented. + /// + public unsafe Span Axes + + { + get + { + return new Span(&Handle->Axes_0, 6); + } + } + /// + /// To be documented. + /// + public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef(&Handle->TextBuffer); + /// + /// To be documented. + /// + public ref ImPlotItemGroup Items => ref Unsafe.AsRef(&Handle->Items); + /// + /// To be documented. + /// + public ref ImAxis CurrentX => ref Unsafe.AsRef(&Handle->CurrentX); + /// + /// To be documented. + /// + public ref ImAxis CurrentY => ref Unsafe.AsRef(&Handle->CurrentY); + /// + /// To be documented. + /// + public ref ImRect FrameRect => ref Unsafe.AsRef(&Handle->FrameRect); + /// + /// To be documented. + /// + public ref ImRect CanvasRect => ref Unsafe.AsRef(&Handle->CanvasRect); + /// + /// To be documented. + /// + public ref ImRect PlotRect => ref Unsafe.AsRef(&Handle->PlotRect); + /// + /// To be documented. + /// + public ref ImRect AxesRect => ref Unsafe.AsRef(&Handle->AxesRect); + /// + /// To be documented. + /// + public ref ImRect SelectRect => ref Unsafe.AsRef(&Handle->SelectRect); + /// + /// To be documented. + /// + public ref Vector2 SelectStart => ref Unsafe.AsRef(&Handle->SelectStart); + /// + /// To be documented. + /// + public ref int TitleOffset => ref Unsafe.AsRef(&Handle->TitleOffset); + /// + /// To be documented. + /// + public ref bool JustCreated => ref Unsafe.AsRef(&Handle->JustCreated); + /// + /// To be documented. + /// + public ref bool Initialized => ref Unsafe.AsRef(&Handle->Initialized); + /// + /// To be documented. + /// + public ref bool SetupLocked => ref Unsafe.AsRef(&Handle->SetupLocked); + /// + /// To be documented. + /// + public ref bool FitThisFrame => ref Unsafe.AsRef(&Handle->FitThisFrame); + /// + /// To be documented. + /// + public ref bool Hovered => ref Unsafe.AsRef(&Handle->Hovered); + /// + /// To be documented. + /// + public ref bool Held => ref Unsafe.AsRef(&Handle->Held); + /// + /// To be documented. + /// + public ref bool Selecting => ref Unsafe.AsRef(&Handle->Selecting); + /// + /// To be documented. + /// + public ref bool Selected => ref Unsafe.AsRef(&Handle->Selected); + /// + /// To be documented. + /// + public ref bool ContextLocked => ref Unsafe.AsRef(&Handle->ContextLocked); + /// + /// To be documented. + /// + public unsafe void ClearTextBuffer() + { + ImPlot.ClearTextBufferNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe int EnabledAxesX() + { + int ret = ImPlot.EnabledAxesXNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe int EnabledAxesY() + { + int ret = ImPlot.EnabledAxesYNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetAxisLabel(ImPlotAxis axis) + { + byte* ret = ImPlot.GetAxisLabelNative(Handle, axis); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetAxisLabelS(ImPlotAxis axis) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetAxisLabelNative(Handle, axis)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetTitle() + { + byte* ret = ImPlot.GetTitleNative(Handle); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetTitleS() + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTitleNative(Handle)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool HasTitle() + { + byte ret = ImPlot.HasTitleNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool IsInputLocked() + { + byte ret = ImPlot.IsInputLockedNative(Handle); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, byte* label) + { + ImPlot.SetAxisLabelNative(Handle, axis, label); + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, byte* label) + { + fixed (ImPlotAxis* paxis = &axis) + { + ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, label); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, ref byte label) + { + fixed (byte* plabel = &label) + { + ImPlot.SetAxisLabelNative(Handle, axis, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* axis, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + ImPlot.SetAxisLabelNative(Handle, axis, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ImPlotAxis* 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; + } + ImPlot.SetAxisLabelNative(Handle, axis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, ref byte label) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = &label) + { + ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(ref ImPlotAxis axis, ReadOnlySpan label) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = label) + { + ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetAxisLabel(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; + } + ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(byte* title) + { + ImPlot.SetTitleNative(Handle, title); + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(ref byte title) + { + fixed (byte* ptitle = &title) + { + ImPlot.SetTitleNative(Handle, (byte*)ptitle); + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(ReadOnlySpan title) + { + fixed (byte* ptitle = title) + { + ImPlot.SetTitleNative(Handle, (byte*)ptitle); + } + } + + /// + /// To be documented. + /// + public unsafe void SetTitle(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; + } + ImPlot.SetTitleNative(Handle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* XAxis(int i) + { + ImPlotAxis* ret = ImPlot.XAxisNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* ImPlotPlotXAxisConst(int i) + { + ImPlotAxis* ret = ImPlot.ImPlotPlotXAxisConstNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* YAxis(int i) + { + ImPlotAxis* ret = ImPlot.YAxisNative(Handle, i); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotAxis* ImPlotPlotYAxisConst(int i) + { + ImPlotAxis* ret = ImPlot.ImPlotPlotYAxisConstNative(Handle, i); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs new file mode 100644 index 000000000..d845401f5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs @@ -0,0 +1,119 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotPoint + { + /// + /// To be documented. + /// + public double X; + + /// + /// To be documented. + /// + public double Y; + + + /// + /// To be documented. + /// + public unsafe ImPlotPoint(double x = default, double y = default) + { + X = x; + Y = y; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotPoint* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotPointPtr : IEquatable + { + public ImPlotPointPtr(ImPlotPoint* handle) { Handle = handle; } + + public ImPlotPoint* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotPointPtr Null => new ImPlotPointPtr(null); + + public ImPlotPoint this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotPointPtr(ImPlotPoint* handle) => new ImPlotPointPtr(handle); + + public static implicit operator ImPlotPoint*(ImPlotPointPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle == right; + + public static bool operator !=(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle != right; + + public bool Equals(ImPlotPointPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotPointPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotPointPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref double X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public ref double Y => ref Unsafe.AsRef(&Handle->Y); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs new file mode 100644 index 000000000..348a27da5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotPointError + { + /// + /// To be documented. + /// + public double X; + + /// + /// To be documented. + /// + public double Y; + + /// + /// To be documented. + /// + public double Neg; + + /// + /// To be documented. + /// + public double Pos; + + + /// + /// To be documented. + /// + public unsafe ImPlotPointError(double x = default, double y = default, double neg = default, double pos = default) + { + X = x; + Y = y; + Neg = neg; + Pos = pos; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotPointError* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotPointErrorPtr : IEquatable + { + public ImPlotPointErrorPtr(ImPlotPointError* handle) { Handle = handle; } + + public ImPlotPointError* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotPointErrorPtr Null => new ImPlotPointErrorPtr(null); + + public ImPlotPointError this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotPointErrorPtr(ImPlotPointError* handle) => new ImPlotPointErrorPtr(handle); + + public static implicit operator ImPlotPointError*(ImPlotPointErrorPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle == right; + + public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle != right; + + public bool Equals(ImPlotPointErrorPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotPointErrorPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotPointErrorPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref double X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public ref double Y => ref Unsafe.AsRef(&Handle->Y); + /// + /// To be documented. + /// + public ref double Neg => ref Unsafe.AsRef(&Handle->Neg); + /// + /// To be documented. + /// + public ref double Pos => ref Unsafe.AsRef(&Handle->Pos); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs new file mode 100644 index 000000000..46f59f84a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs @@ -0,0 +1,182 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotRange + { + /// + /// To be documented. + /// + public double Min; + + /// + /// To be documented. + /// + public double Max; + + + /// + /// To be documented. + /// + public unsafe ImPlotRange(double min = default, double max = default) + { + Min = min; + Max = max; + } + + + /// + /// To be documented. + /// + public unsafe double Clamp(double value) + { + fixed (ImPlotRange* @this = &this) + { + double ret = ImPlot.ClampNative(@this, value); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe bool Contains(double value) + { + fixed (ImPlotRange* @this = &this) + { + byte ret = ImPlot.ContainsNative(@this, value); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotRange* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe double Size() + { + fixed (ImPlotRange* @this = &this) + { + double ret = ImPlot.SizeNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotRangePtr : IEquatable + { + public ImPlotRangePtr(ImPlotRange* handle) { Handle = handle; } + + public ImPlotRange* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotRangePtr Null => new ImPlotRangePtr(null); + + public ImPlotRange this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotRangePtr(ImPlotRange* handle) => new ImPlotRangePtr(handle); + + public static implicit operator ImPlotRange*(ImPlotRangePtr handle) => handle.Handle; + + public static bool operator ==(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotRangePtr left, ImPlotRange* right) => left.Handle == right; + + public static bool operator !=(ImPlotRangePtr left, ImPlotRange* right) => left.Handle != right; + + public bool Equals(ImPlotRangePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotRangePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref double Min => ref Unsafe.AsRef(&Handle->Min); + /// + /// To be documented. + /// + public ref double Max => ref Unsafe.AsRef(&Handle->Max); + /// + /// To be documented. + /// + public unsafe double Clamp(double value) + { + double ret = ImPlot.ClampNative(Handle, value); + return ret; + } + + /// + /// To be documented. + /// + public unsafe bool Contains(double value) + { + byte ret = ImPlot.ContainsNative(Handle, value); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe double Size() + { + double ret = ImPlot.SizeNative(Handle); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs new file mode 100644 index 000000000..3997c6cd6 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs @@ -0,0 +1,161 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotRect + { + /// + /// To be documented. + /// + public ImPlotRange X; + + /// + /// To be documented. + /// + public ImPlotRange Y; + + + /// + /// To be documented. + /// + public unsafe ImPlotRect(ImPlotRange x = default, ImPlotRange y = default) + { + X = x; + Y = y; + } + + + /// + /// To be documented. + /// + public unsafe bool Contains(ImPlotPoint p) + { + fixed (ImPlotRect* @this = &this) + { + byte ret = ImPlot.ContainsNative(@this, p); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe bool Contains(double x, double y) + { + fixed (ImPlotRect* @this = &this) + { + byte ret = ImPlot.ContainsNative(@this, x, y); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotRect* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotRectPtr : IEquatable + { + public ImPlotRectPtr(ImPlotRect* handle) { Handle = handle; } + + public ImPlotRect* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotRectPtr Null => new ImPlotRectPtr(null); + + public ImPlotRect this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotRectPtr(ImPlotRect* handle) => new ImPlotRectPtr(handle); + + public static implicit operator ImPlotRect*(ImPlotRectPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotRectPtr left, ImPlotRect* right) => left.Handle == right; + + public static bool operator !=(ImPlotRectPtr left, ImPlotRect* right) => left.Handle != right; + + public bool Equals(ImPlotRectPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotRectPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImPlotRange X => ref Unsafe.AsRef(&Handle->X); + /// + /// To be documented. + /// + public ref ImPlotRange Y => ref Unsafe.AsRef(&Handle->Y); + /// + /// To be documented. + /// + public unsafe bool Contains(ImPlotPoint p) + { + byte ret = ImPlot.ContainsNative(Handle, p); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe bool Contains(double x, double y) + { + byte ret = ImPlot.ContainsNative(Handle, x, y); + return ret != 0; + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs new file mode 100644 index 000000000..bd6d4a4da --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs @@ -0,0 +1,545 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotStyle + { + /// + /// To be documented. + /// + public float LineWeight; + + /// + /// To be documented. + /// + public int Marker; + + /// + /// To be documented. + /// + public float MarkerSize; + + /// + /// To be documented. + /// + public float MarkerWeight; + + /// + /// To be documented. + /// + public float FillAlpha; + + /// + /// To be documented. + /// + public float ErrorBarSize; + + /// + /// To be documented. + /// + public float ErrorBarWeight; + + /// + /// To be documented. + /// + public float DigitalBitHeight; + + /// + /// To be documented. + /// + public float DigitalBitGap; + + /// + /// To be documented. + /// + public float PlotBorderSize; + + /// + /// To be documented. + /// + public float MinorAlpha; + + /// + /// To be documented. + /// + public Vector2 MajorTickLen; + + /// + /// To be documented. + /// + public Vector2 MinorTickLen; + + /// + /// To be documented. + /// + public Vector2 MajorTickSize; + + /// + /// To be documented. + /// + public Vector2 MinorTickSize; + + /// + /// To be documented. + /// + public Vector2 MajorGridSize; + + /// + /// To be documented. + /// + public Vector2 MinorGridSize; + + /// + /// To be documented. + /// + public Vector2 PlotPadding; + + /// + /// To be documented. + /// + public Vector2 LabelPadding; + + /// + /// To be documented. + /// + public Vector2 LegendPadding; + + /// + /// To be documented. + /// + public Vector2 LegendInnerPadding; + + /// + /// To be documented. + /// + public Vector2 LegendSpacing; + + /// + /// To be documented. + /// + public Vector2 MousePosPadding; + + /// + /// To be documented. + /// + public Vector2 AnnotationPadding; + + /// + /// To be documented. + /// + public Vector2 FitPadding; + + /// + /// To be documented. + /// + public Vector2 PlotDefaultSize; + + /// + /// To be documented. + /// + public Vector2 PlotMinSize; + + /// + /// To be documented. + /// + public Vector4 Colors_0; + public Vector4 Colors_1; + public Vector4 Colors_2; + public Vector4 Colors_3; + public Vector4 Colors_4; + public Vector4 Colors_5; + public Vector4 Colors_6; + public Vector4 Colors_7; + public Vector4 Colors_8; + public Vector4 Colors_9; + public Vector4 Colors_10; + public Vector4 Colors_11; + public Vector4 Colors_12; + public Vector4 Colors_13; + public Vector4 Colors_14; + public Vector4 Colors_15; + public Vector4 Colors_16; + public Vector4 Colors_17; + public Vector4 Colors_18; + public Vector4 Colors_19; + public Vector4 Colors_20; + + /// + /// To be documented. + /// + public ImPlotColormap Colormap; + + /// + /// To be documented. + /// + public byte UseLocalTime; + + /// + /// To be documented. + /// + public byte UseISO8601; + + /// + /// To be documented. + /// + public byte Use24HourClock; + + + /// + /// To be documented. + /// + public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Vector4* colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) + { + LineWeight = lineWeight; + Marker = marker; + MarkerSize = markerSize; + MarkerWeight = markerWeight; + FillAlpha = fillAlpha; + ErrorBarSize = errorBarSize; + ErrorBarWeight = errorBarWeight; + DigitalBitHeight = digitalBitHeight; + DigitalBitGap = digitalBitGap; + PlotBorderSize = plotBorderSize; + MinorAlpha = minorAlpha; + MajorTickLen = majorTickLen; + MinorTickLen = minorTickLen; + MajorTickSize = majorTickSize; + MinorTickSize = minorTickSize; + MajorGridSize = majorGridSize; + MinorGridSize = minorGridSize; + PlotPadding = plotPadding; + LabelPadding = labelPadding; + LegendPadding = legendPadding; + LegendInnerPadding = legendInnerPadding; + LegendSpacing = legendSpacing; + MousePosPadding = mousePosPadding; + AnnotationPadding = annotationPadding; + FitPadding = fitPadding; + PlotDefaultSize = plotDefaultSize; + PlotMinSize = plotMinSize; + if (colors != default(Vector4*)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + } + Colormap = colormap; + UseLocalTime = useLocalTime ? (byte)1 : (byte)0; + UseISO8601 = useIso8601 ? (byte)1 : (byte)0; + Use24HourClock = use24HourClock ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Span colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) + { + LineWeight = lineWeight; + Marker = marker; + MarkerSize = markerSize; + MarkerWeight = markerWeight; + FillAlpha = fillAlpha; + ErrorBarSize = errorBarSize; + ErrorBarWeight = errorBarWeight; + DigitalBitHeight = digitalBitHeight; + DigitalBitGap = digitalBitGap; + PlotBorderSize = plotBorderSize; + MinorAlpha = minorAlpha; + MajorTickLen = majorTickLen; + MinorTickLen = minorTickLen; + MajorTickSize = majorTickSize; + MinorTickSize = minorTickSize; + MajorGridSize = majorGridSize; + MinorGridSize = minorGridSize; + PlotPadding = plotPadding; + LabelPadding = labelPadding; + LegendPadding = legendPadding; + LegendInnerPadding = legendInnerPadding; + LegendSpacing = legendSpacing; + MousePosPadding = mousePosPadding; + AnnotationPadding = annotationPadding; + FitPadding = fitPadding; + PlotDefaultSize = plotDefaultSize; + PlotMinSize = plotMinSize; + if (colors != default(Span)) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + } + Colormap = colormap; + UseLocalTime = useLocalTime ? (byte)1 : (byte)0; + UseISO8601 = useIso8601 ? (byte)1 : (byte)0; + Use24HourClock = use24HourClock ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + fixed (Vector4* p = &this.Colors_0) + { + return new Span(p, 21); + } + } + } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotStyle* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotStylePtr : IEquatable + { + public ImPlotStylePtr(ImPlotStyle* handle) { Handle = handle; } + + public ImPlotStyle* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotStylePtr Null => new ImPlotStylePtr(null); + + public ImPlotStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotStylePtr(ImPlotStyle* handle) => new ImPlotStylePtr(handle); + + public static implicit operator ImPlotStyle*(ImPlotStylePtr handle) => handle.Handle; + + public static bool operator ==(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle == right; + + public static bool operator !=(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle != right; + + public bool Equals(ImPlotStylePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotStylePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref float LineWeight => ref Unsafe.AsRef(&Handle->LineWeight); + /// + /// To be documented. + /// + public ref int Marker => ref Unsafe.AsRef(&Handle->Marker); + /// + /// To be documented. + /// + public ref float MarkerSize => ref Unsafe.AsRef(&Handle->MarkerSize); + /// + /// To be documented. + /// + public ref float MarkerWeight => ref Unsafe.AsRef(&Handle->MarkerWeight); + /// + /// To be documented. + /// + public ref float FillAlpha => ref Unsafe.AsRef(&Handle->FillAlpha); + /// + /// To be documented. + /// + public ref float ErrorBarSize => ref Unsafe.AsRef(&Handle->ErrorBarSize); + /// + /// To be documented. + /// + public ref float ErrorBarWeight => ref Unsafe.AsRef(&Handle->ErrorBarWeight); + /// + /// To be documented. + /// + public ref float DigitalBitHeight => ref Unsafe.AsRef(&Handle->DigitalBitHeight); + /// + /// To be documented. + /// + public ref float DigitalBitGap => ref Unsafe.AsRef(&Handle->DigitalBitGap); + /// + /// To be documented. + /// + public ref float PlotBorderSize => ref Unsafe.AsRef(&Handle->PlotBorderSize); + /// + /// To be documented. + /// + public ref float MinorAlpha => ref Unsafe.AsRef(&Handle->MinorAlpha); + /// + /// To be documented. + /// + public ref Vector2 MajorTickLen => ref Unsafe.AsRef(&Handle->MajorTickLen); + /// + /// To be documented. + /// + public ref Vector2 MinorTickLen => ref Unsafe.AsRef(&Handle->MinorTickLen); + /// + /// To be documented. + /// + public ref Vector2 MajorTickSize => ref Unsafe.AsRef(&Handle->MajorTickSize); + /// + /// To be documented. + /// + public ref Vector2 MinorTickSize => ref Unsafe.AsRef(&Handle->MinorTickSize); + /// + /// To be documented. + /// + public ref Vector2 MajorGridSize => ref Unsafe.AsRef(&Handle->MajorGridSize); + /// + /// To be documented. + /// + public ref Vector2 MinorGridSize => ref Unsafe.AsRef(&Handle->MinorGridSize); + /// + /// To be documented. + /// + public ref Vector2 PlotPadding => ref Unsafe.AsRef(&Handle->PlotPadding); + /// + /// To be documented. + /// + public ref Vector2 LabelPadding => ref Unsafe.AsRef(&Handle->LabelPadding); + /// + /// To be documented. + /// + public ref Vector2 LegendPadding => ref Unsafe.AsRef(&Handle->LegendPadding); + /// + /// To be documented. + /// + public ref Vector2 LegendInnerPadding => ref Unsafe.AsRef(&Handle->LegendInnerPadding); + /// + /// To be documented. + /// + public ref Vector2 LegendSpacing => ref Unsafe.AsRef(&Handle->LegendSpacing); + /// + /// To be documented. + /// + public ref Vector2 MousePosPadding => ref Unsafe.AsRef(&Handle->MousePosPadding); + /// + /// To be documented. + /// + public ref Vector2 AnnotationPadding => ref Unsafe.AsRef(&Handle->AnnotationPadding); + /// + /// To be documented. + /// + public ref Vector2 FitPadding => ref Unsafe.AsRef(&Handle->FitPadding); + /// + /// To be documented. + /// + public ref Vector2 PlotDefaultSize => ref Unsafe.AsRef(&Handle->PlotDefaultSize); + /// + /// To be documented. + /// + public ref Vector2 PlotMinSize => ref Unsafe.AsRef(&Handle->PlotMinSize); + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + return new Span(&Handle->Colors_0, 21); + } + } + /// + /// To be documented. + /// + public ref ImPlotColormap Colormap => ref Unsafe.AsRef(&Handle->Colormap); + /// + /// To be documented. + /// + public ref bool UseLocalTime => ref Unsafe.AsRef(&Handle->UseLocalTime); + /// + /// To be documented. + /// + public ref bool UseISO8601 => ref Unsafe.AsRef(&Handle->UseISO8601); + /// + /// To be documented. + /// + public ref bool Use24HourClock => ref Unsafe.AsRef(&Handle->Use24HourClock); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs new file mode 100644 index 000000000..ca1f5f772 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs @@ -0,0 +1,331 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotSubplot + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImPlotSubplotFlags Flags; + + /// + /// To be documented. + /// + public ImPlotSubplotFlags PreviousFlags; + + /// + /// To be documented. + /// + public ImPlotItemGroup Items; + + /// + /// To be documented. + /// + public int Rows; + + /// + /// To be documented. + /// + public int Cols; + + /// + /// To be documented. + /// + public int CurrentIdx; + + /// + /// To be documented. + /// + public ImRect FrameRect; + + /// + /// To be documented. + /// + public ImRect GridRect; + + /// + /// To be documented. + /// + public Vector2 CellSize; + + /// + /// To be documented. + /// + public ImVector RowAlignmentData; + + /// + /// To be documented. + /// + public ImVector ColAlignmentData; + + /// + /// To be documented. + /// + public ImVector RowRatios; + + /// + /// To be documented. + /// + public ImVector ColRatios; + + /// + /// To be documented. + /// + public ImVector RowLinkData; + + /// + /// To be documented. + /// + public ImVector ColLinkData; + + /// + /// To be documented. + /// + public float TempSizes_0; + public float TempSizes_1; + + /// + /// To be documented. + /// + public byte FrameHovered; + + /// + /// To be documented. + /// + public byte HasTitle; + + + /// + /// To be documented. + /// + public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector rowAlignmentData = default, ImVector colAlignmentData = default, ImVector rowRatios = default, ImVector colRatios = default, ImVector rowLinkData = default, ImVector colLinkData = default, float* tempSizes = default, bool frameHovered = default, bool hasTitle = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + Items = items; + Rows = rows; + Cols = cols; + CurrentIdx = currentIdx; + FrameRect = frameRect; + GridRect = gridRect; + CellSize = cellSize; + RowAlignmentData = rowAlignmentData; + ColAlignmentData = colAlignmentData; + RowRatios = rowRatios; + ColRatios = colRatios; + RowLinkData = rowLinkData; + ColLinkData = colLinkData; + if (tempSizes != default(float*)) + { + TempSizes_0 = tempSizes[0]; + TempSizes_1 = tempSizes[1]; + } + FrameHovered = frameHovered ? (byte)1 : (byte)0; + HasTitle = hasTitle ? (byte)1 : (byte)0; + } + + /// + /// To be documented. + /// + public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector rowAlignmentData = default, ImVector colAlignmentData = default, ImVector rowRatios = default, ImVector colRatios = default, ImVector rowLinkData = default, ImVector colLinkData = default, Span tempSizes = default, bool frameHovered = default, bool hasTitle = default) + { + ID = id; + Flags = flags; + PreviousFlags = previousFlags; + Items = items; + Rows = rows; + Cols = cols; + CurrentIdx = currentIdx; + FrameRect = frameRect; + GridRect = gridRect; + CellSize = cellSize; + RowAlignmentData = rowAlignmentData; + ColAlignmentData = colAlignmentData; + RowRatios = rowRatios; + ColRatios = colRatios; + RowLinkData = rowLinkData; + ColLinkData = colLinkData; + if (tempSizes != default(Span)) + { + TempSizes_0 = tempSizes[0]; + TempSizes_1 = tempSizes[1]; + } + FrameHovered = frameHovered ? (byte)1 : (byte)0; + HasTitle = hasTitle ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotSubplot* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotSubplotPtr : IEquatable + { + public ImPlotSubplotPtr(ImPlotSubplot* handle) { Handle = handle; } + + public ImPlotSubplot* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotSubplotPtr Null => new ImPlotSubplotPtr(null); + + public ImPlotSubplot this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotSubplotPtr(ImPlotSubplot* handle) => new ImPlotSubplotPtr(handle); + + public static implicit operator ImPlotSubplot*(ImPlotSubplotPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle == right; + + public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle != right; + + public bool Equals(ImPlotSubplotPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotSubplotPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotSubplotPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref uint ID => ref Unsafe.AsRef(&Handle->ID); + /// + /// To be documented. + /// + public ref ImPlotSubplotFlags Flags => ref Unsafe.AsRef(&Handle->Flags); + /// + /// To be documented. + /// + public ref ImPlotSubplotFlags PreviousFlags => ref Unsafe.AsRef(&Handle->PreviousFlags); + /// + /// To be documented. + /// + public ref ImPlotItemGroup Items => ref Unsafe.AsRef(&Handle->Items); + /// + /// To be documented. + /// + public ref int Rows => ref Unsafe.AsRef(&Handle->Rows); + /// + /// To be documented. + /// + public ref int Cols => ref Unsafe.AsRef(&Handle->Cols); + /// + /// To be documented. + /// + public ref int CurrentIdx => ref Unsafe.AsRef(&Handle->CurrentIdx); + /// + /// To be documented. + /// + public ref ImRect FrameRect => ref Unsafe.AsRef(&Handle->FrameRect); + /// + /// To be documented. + /// + public ref ImRect GridRect => ref Unsafe.AsRef(&Handle->GridRect); + /// + /// To be documented. + /// + public ref Vector2 CellSize => ref Unsafe.AsRef(&Handle->CellSize); + /// + /// To be documented. + /// + public ref ImVector RowAlignmentData => ref Unsafe.AsRef>(&Handle->RowAlignmentData); + /// + /// To be documented. + /// + public ref ImVector ColAlignmentData => ref Unsafe.AsRef>(&Handle->ColAlignmentData); + /// + /// To be documented. + /// + public ref ImVector RowRatios => ref Unsafe.AsRef>(&Handle->RowRatios); + /// + /// To be documented. + /// + public ref ImVector ColRatios => ref Unsafe.AsRef>(&Handle->ColRatios); + /// + /// To be documented. + /// + public ref ImVector RowLinkData => ref Unsafe.AsRef>(&Handle->RowLinkData); + /// + /// To be documented. + /// + public ref ImVector ColLinkData => ref Unsafe.AsRef>(&Handle->ColLinkData); + /// + /// To be documented. + /// + public unsafe Span TempSizes + + { + get + { + return new Span(&Handle->TempSizes_0, 2); + } + } + /// + /// To be documented. + /// + public ref bool FrameHovered => ref Unsafe.AsRef(&Handle->FrameHovered); + /// + /// To be documented. + /// + public ref bool HasTitle => ref Unsafe.AsRef(&Handle->HasTitle); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs new file mode 100644 index 000000000..054426a2e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotTag + { + /// + /// To be documented. + /// + public ImAxis Axis; + + /// + /// To be documented. + /// + public double Value; + + /// + /// To be documented. + /// + public uint ColorBg; + + /// + /// To be documented. + /// + public uint ColorFg; + + /// + /// To be documented. + /// + public int TextOffset; + + + /// + /// To be documented. + /// + public unsafe ImPlotTag(ImAxis axis = default, double value = default, uint colorBg = default, uint colorFg = default, int textOffset = default) + { + Axis = axis; + Value = value; + ColorBg = colorBg; + ColorFg = colorFg; + TextOffset = textOffset; + } + + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotTagPtr : IEquatable + { + public ImPlotTagPtr(ImPlotTag* handle) { Handle = handle; } + + public ImPlotTag* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotTagPtr Null => new ImPlotTagPtr(null); + + public ImPlotTag this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotTagPtr(ImPlotTag* handle) => new ImPlotTagPtr(handle); + + public static implicit operator ImPlotTag*(ImPlotTagPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotTagPtr left, ImPlotTag* right) => left.Handle == right; + + public static bool operator !=(ImPlotTagPtr left, ImPlotTag* right) => left.Handle != right; + + public bool Equals(ImPlotTagPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotTagPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotTagPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImAxis Axis => ref Unsafe.AsRef(&Handle->Axis); + /// + /// To be documented. + /// + public ref double Value => ref Unsafe.AsRef(&Handle->Value); + /// + /// To be documented. + /// + public ref uint ColorBg => ref Unsafe.AsRef(&Handle->ColorBg); + /// + /// To be documented. + /// + public ref uint ColorFg => ref Unsafe.AsRef(&Handle->ColorFg); + /// + /// To be documented. + /// + public ref int TextOffset => ref Unsafe.AsRef(&Handle->TextOffset); + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs new file mode 100644 index 000000000..0549fb9aa --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs @@ -0,0 +1,450 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotTagCollection + { + /// + /// To be documented. + /// + public ImVector Tags; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TextBuffer; + + /// + /// To be documented. + /// + public int Size; + + + /// + /// To be documented. + /// + public unsafe ImPlotTagCollection(ImVector tags = default, ImGuiTextBuffer textBuffer = default, int size = default) + { + Tags = tags; + TextBuffer = textBuffer; + Size = size; + } + + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt) + { + fixed (ImPlotTagCollection* @this = &this) + { + ImPlot.AppendNative(@this, axis, value, bg, fg, fmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt) + { + fixed (ImPlotTagCollection* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) + { + fixed (ImPlotTagCollection* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, string fmt) + { + fixed (ImPlotTagCollection* @this = &this) + { + 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; + } + ImPlot.AppendNative(@this, axis, value, bg, fg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) + { + fixed (ImPlotTagCollection* @this = &this) + { + ImPlot.AppendVNative(@this, axis, value, bg, fg, fmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) + { + fixed (ImPlotTagCollection* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) + { + fixed (ImPlotTagCollection* @this = &this) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) + { + fixed (ImPlotTagCollection* @this = &this) + { + 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; + } + ImPlot.AppendVNative(@this, axis, value, bg, fg, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotTagCollection* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + fixed (ImPlotTagCollection* @this = &this) + { + byte* ret = ImPlot.GetTextNative(@this, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + fixed (ImPlotTagCollection* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotTagCollection* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotTagCollectionPtr : IEquatable + { + public ImPlotTagCollectionPtr(ImPlotTagCollection* handle) { Handle = handle; } + + public ImPlotTagCollection* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotTagCollectionPtr Null => new ImPlotTagCollectionPtr(null); + + public ImPlotTagCollection this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotTagCollectionPtr(ImPlotTagCollection* handle) => new ImPlotTagCollectionPtr(handle); + + public static implicit operator ImPlotTagCollection*(ImPlotTagCollectionPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle == right; + + public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle != right; + + public bool Equals(ImPlotTagCollectionPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotTagCollectionPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotTagCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Tags => ref Unsafe.AsRef>(&Handle->Tags); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef(&Handle->TextBuffer); + /// + /// To be documented. + /// + public ref int Size => ref Unsafe.AsRef(&Handle->Size); + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt) + { + ImPlot.AppendNative(Handle, axis, value, bg, fg, fmt); + } + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public unsafe void Append(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; + } + ImPlot.AppendNative(Handle, axis, value, bg, fg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) + { + ImPlot.AppendVNative(Handle, axis, value, bg, fg, fmt, args); + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public unsafe void AppendV(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; + } + ImPlot.AppendVNative(Handle, axis, value, bg, fg, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + byte* ret = ImPlot.GetTextNative(Handle, idx); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs new file mode 100644 index 000000000..f3cd6e92a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotTick + { + /// + /// To be documented. + /// + public double PlotPos; + + /// + /// To be documented. + /// + public float PixelPos; + + /// + /// To be documented. + /// + public Vector2 LabelSize; + + /// + /// To be documented. + /// + public int TextOffset; + + /// + /// To be documented. + /// + public byte Major; + + /// + /// To be documented. + /// + public byte ShowLabel; + + /// + /// To be documented. + /// + public int Level; + + /// + /// To be documented. + /// + public int Idx; + + + /// + /// To be documented. + /// + public unsafe ImPlotTick(double plotPos = default, float pixelPos = default, Vector2 labelSize = default, int textOffset = default, bool major = default, bool showLabel = default, int level = default, int idx = default) + { + PlotPos = plotPos; + PixelPos = pixelPos; + LabelSize = labelSize; + TextOffset = textOffset; + Major = major ? (byte)1 : (byte)0; + ShowLabel = showLabel ? (byte)1 : (byte)0; + Level = level; + Idx = idx; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotTick* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotTickPtr : IEquatable + { + public ImPlotTickPtr(ImPlotTick* handle) { Handle = handle; } + + public ImPlotTick* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotTickPtr Null => new ImPlotTickPtr(null); + + public ImPlotTick this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotTickPtr(ImPlotTick* handle) => new ImPlotTickPtr(handle); + + public static implicit operator ImPlotTick*(ImPlotTickPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotTickPtr left, ImPlotTick* right) => left.Handle == right; + + public static bool operator !=(ImPlotTickPtr left, ImPlotTick* right) => left.Handle != right; + + public bool Equals(ImPlotTickPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotTickPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotTickPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref double PlotPos => ref Unsafe.AsRef(&Handle->PlotPos); + /// + /// To be documented. + /// + public ref float PixelPos => ref Unsafe.AsRef(&Handle->PixelPos); + /// + /// To be documented. + /// + public ref Vector2 LabelSize => ref Unsafe.AsRef(&Handle->LabelSize); + /// + /// To be documented. + /// + public ref int TextOffset => ref Unsafe.AsRef(&Handle->TextOffset); + /// + /// To be documented. + /// + public ref bool Major => ref Unsafe.AsRef(&Handle->Major); + /// + /// To be documented. + /// + public ref bool ShowLabel => ref Unsafe.AsRef(&Handle->ShowLabel); + /// + /// To be documented. + /// + public ref int Level => ref Unsafe.AsRef(&Handle->Level); + /// + /// To be documented. + /// + public ref int Idx => ref Unsafe.AsRef(&Handle->Idx); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs new file mode 100644 index 000000000..b213a57a7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs @@ -0,0 +1,472 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotTicker + { + /// + /// To be documented. + /// + public ImVector Ticks; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TextBuffer; + + /// + /// To be documented. + /// + public Vector2 MaxSize; + + /// + /// To be documented. + /// + public Vector2 LateSize; + + /// + /// To be documented. + /// + public int Levels; + + + /// + /// To be documented. + /// + public unsafe ImPlotTicker(ImVector ticks = default, ImGuiTextBuffer textBuffer = default, Vector2 maxSize = default, Vector2 lateSize = default, int levels = default) + { + Ticks = ticks; + TextBuffer = textBuffer; + MaxSize = maxSize; + LateSize = lateSize; + Levels = levels; + } + + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label) + { + fixed (ImPlotTicker* @this = &this) + { + ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label) + { + fixed (ImPlotTicker* @this = &this) + { + fixed (byte* plabel = &label) + { + ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan label) + { + fixed (ImPlotTicker* @this = &this) + { + fixed (byte* plabel = label) + { + ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, string label) + { + fixed (ImPlotTicker* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotTick* ret = ImPlot.AddTickNative(@this, 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 unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) + { + fixed (ImPlotTicker* @this = &this) + { + ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(ImPlotTick tick) + { + fixed (ImPlotTicker* @this = &this) + { + ImPlotTick* ret = ImPlot.AddTickNative(@this, tick); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotTicker* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + fixed (ImPlotTicker* @this = &this) + { + byte* ret = ImPlot.GetTextNative(@this, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + fixed (ImPlotTicker* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(ImPlotTick tick) + { + fixed (ImPlotTicker* @this = &this) + { + byte* ret = ImPlot.GetTextNative(@this, tick); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(ImPlotTick tick) + { + fixed (ImPlotTicker* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, tick)); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe void OverrideSizeLate(Vector2 size) + { + fixed (ImPlotTicker* @this = &this) + { + ImPlot.OverrideSizeLateNative(@this, size); + } + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + fixed (ImPlotTicker* @this = &this) + { + ImPlot.ResetNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe int TickCount() + { + fixed (ImPlotTicker* @this = &this) + { + int ret = ImPlot.TickCountNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotTickerPtr : IEquatable + { + public ImPlotTickerPtr(ImPlotTicker* handle) { Handle = handle; } + + public ImPlotTicker* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotTickerPtr Null => new ImPlotTickerPtr(null); + + public ImPlotTicker this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotTickerPtr(ImPlotTicker* handle) => new ImPlotTickerPtr(handle); + + public static implicit operator ImPlotTicker*(ImPlotTickerPtr handle) => handle.Handle; + + public static bool operator ==(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle == right; + + public static bool operator !=(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle != right; + + public bool Equals(ImPlotTickerPtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotTickerPtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotTickerPtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref ImVector Ticks => ref Unsafe.AsRef>(&Handle->Ticks); + /// + /// To be documented. + /// + public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef(&Handle->TextBuffer); + /// + /// To be documented. + /// + public ref Vector2 MaxSize => ref Unsafe.AsRef(&Handle->MaxSize); + /// + /// To be documented. + /// + public ref Vector2 LateSize => ref Unsafe.AsRef(&Handle->LateSize); + /// + /// To be documented. + /// + public ref int Levels => ref Unsafe.AsRef(&Handle->Levels); + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label) + { + ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label) + { + fixed (byte* plabel = &label) + { + ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(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; + } + ImPlotTick* ret = ImPlot.AddTickNative(Handle, 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 unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) + { + ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); + return ret; + } + + /// + /// To be documented. + /// + public unsafe ImPlotTick* AddTick(ImPlotTick tick) + { + ImPlotTick* ret = ImPlot.AddTickNative(Handle, tick); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(int idx) + { + byte* ret = ImPlot.GetTextNative(Handle, idx); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(int idx) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe byte* GetText(ImPlotTick tick) + { + byte* ret = ImPlot.GetTextNative(Handle, tick); + return ret; + } + + /// + /// To be documented. + /// + public unsafe string GetTextS(ImPlotTick tick) + { + string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, tick)); + return ret; + } + + /// + /// To be documented. + /// + public unsafe void OverrideSizeLate(Vector2 size) + { + ImPlot.OverrideSizeLateNative(Handle, size); + } + + /// + /// To be documented. + /// + public unsafe void Reset() + { + ImPlot.ResetNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe int TickCount() + { + int ret = ImPlot.TickCountNative(Handle); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs new file mode 100644 index 000000000..a9881cfaf --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs @@ -0,0 +1,178 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPlotTime + { + /// + /// To be documented. + /// + public long S; + + /// + /// To be documented. + /// + public int Us; + + + /// + /// To be documented. + /// + public unsafe ImPlotTime(long s = default, int us = default) + { + S = s; + Us = us; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImPlotTime* @this = &this) + { + ImPlot.DestroyNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe void FromDouble(double t) + { + fixed (ImPlotTime* @this = &this) + { + ImPlot.FromDoubleNative(@this, t); + } + } + + /// + /// To be documented. + /// + public unsafe void RollOver() + { + fixed (ImPlotTime* @this = &this) + { + ImPlot.RollOverNative(@this); + } + } + + /// + /// To be documented. + /// + public unsafe double ToDouble() + { + fixed (ImPlotTime* @this = &this) + { + double ret = ImPlot.ToDoubleNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + #if NET5_0_OR_GREATER + [DebuggerDisplay("{DebuggerDisplay,nq}")] + #endif + public unsafe struct ImPlotTimePtr : IEquatable + { + public ImPlotTimePtr(ImPlotTime* handle) { Handle = handle; } + + public ImPlotTime* Handle; + + public bool IsNull => Handle == null; + + public static ImPlotTimePtr Null => new ImPlotTimePtr(null); + + public ImPlotTime this[int index] { get => Handle[index]; set => Handle[index] = value; } + + public static implicit operator ImPlotTimePtr(ImPlotTime* handle) => new ImPlotTimePtr(handle); + + public static implicit operator ImPlotTime*(ImPlotTimePtr handle) => handle.Handle; + + public static bool operator ==(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle == right.Handle; + + public static bool operator !=(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle != right.Handle; + + public static bool operator ==(ImPlotTimePtr left, ImPlotTime* right) => left.Handle == right; + + public static bool operator !=(ImPlotTimePtr left, ImPlotTime* right) => left.Handle != right; + + public bool Equals(ImPlotTimePtr other) => Handle == other.Handle; + + /// + public override bool Equals(object obj) => obj is ImPlotTimePtr handle && Equals(handle); + + /// + public override int GetHashCode() => ((nuint)Handle).GetHashCode(); + + #if NET5_0_OR_GREATER + private string DebuggerDisplay => string.Format("ImPlotTimePtr [0x{0}]", ((nuint)Handle).ToString("X")); + #endif + /// + /// To be documented. + /// + public ref long S => ref Unsafe.AsRef(&Handle->S); + /// + /// To be documented. + /// + public ref int Us => ref Unsafe.AsRef(&Handle->Us); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImPlot.DestroyNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe void FromDouble(double t) + { + ImPlot.FromDoubleNative(Handle, t); + } + + /// + /// To be documented. + /// + public unsafe void RollOver() + { + ImPlot.RollOverNative(Handle); + } + + /// + /// To be documented. + /// + public unsafe double ToDouble() + { + double ret = ImPlot.ToDoubleNative(Handle); + return ret; + } + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs new file mode 100644 index 000000000..5e09b179a --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImPlotAlignmentData + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImPlotAlignmentData(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs new file mode 100644 index 000000000..a48825a0e --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImPlotItem + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImPlotItem(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs new file mode 100644 index 000000000..417266e20 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImPlotPlot + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImPlotPlot(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs new file mode 100644 index 000000000..5fecfa8a7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------ +// +// 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.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; +using Dalamud.Bindings.ImGui; + +namespace Dalamud.Bindings.ImPlot +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImPlotSubplot + { + /// + /// To be documented. + /// + public ImVector Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// + /// To be documented. + /// + public unsafe ImPoolImPlotSubplot(ImVector buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + +} diff --git a/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs b/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs new file mode 100644 index 000000000..2d43274a7 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs @@ -0,0 +1,33 @@ +using System.Reflection; + +namespace Dalamud.Bindings.ImPlot +{ + using HexaGen.Runtime; + using System.Diagnostics; + + public static class ImPlotConfig + { + public static bool AotStaticLink; + } + + public static unsafe partial class ImPlot + { + static ImPlot() + { + if (ImPlotConfig.AotStaticLink) + { + InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); + } + else + { + // InitApi(new NativeLibraryContext(LibraryLoader.LoadLibrary(GetLibraryName, null))); + InitApi(new NativeLibraryContext(Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"))); + } + } + + public static string GetLibraryName() + { + return "cimplot"; + } + } +} diff --git a/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt b/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt new file mode 100644 index 000000000..b5dae7ac2 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Juna Meinhold + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImPlot/Tm.cs b/imgui/Dalamud.Bindings.ImPlot/Tm.cs new file mode 100644 index 000000000..5143dcfc5 --- /dev/null +++ b/imgui/Dalamud.Bindings.ImPlot/Tm.cs @@ -0,0 +1,109 @@ +namespace Dalamud.Bindings.ImPlot +{ + using System; + + public struct Tm : IEquatable + { + /// + /// seconds after the minute - [0, 60] including leap second + /// + public int Sec; + + /// + /// minutes after the hour - [0, 59] + /// + public int Min; + + /// + /// hours since midnight - [0, 23] + /// + public int Hour; + + /// + /// day of the month - [1, 31] + /// + public int MDay; + + /// + /// months since January - [0, 11] + /// + public int Mon; + + /// + /// years since 1900 + /// + public int Year; + + /// + /// days since Sunday - [0, 6] + /// + public int WDay; + + /// + /// days since January 1 - [0, 365] + /// + public int YDay; + + /// + /// daylight savings time flag + /// + public int IsDst; + + public override bool Equals(object? obj) + { + return obj is Tm tm && Equals(tm); + } + + public bool Equals(Tm other) + { + return Sec == other.Sec && + Min == other.Min && + Hour == other.Hour && + MDay == other.MDay && + Mon == other.Mon && + Year == other.Year && + WDay == other.WDay && + YDay == other.YDay && + IsDst == other.IsDst; + } + + public override int GetHashCode() + { +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER + HashCode hash = new HashCode(); + hash.Add(Sec); + hash.Add(Min); + hash.Add(Hour); + hash.Add(MDay); + hash.Add(Mon); + hash.Add(Year); + hash.Add(WDay); + hash.Add(YDay); + hash.Add(IsDst); + return hash.ToHashCode(); +#else + int hash = 17; + hash = hash * 31 + Sec.GetHashCode(); + hash = hash * 31 + Min.GetHashCode(); + hash = hash * 31 + Hour.GetHashCode(); + hash = hash * 31 + MDay.GetHashCode(); + hash = hash * 31 + Mon.GetHashCode(); + hash = hash * 31 + Year.GetHashCode(); + hash = hash * 31 + WDay.GetHashCode(); + hash = hash * 31 + YDay.GetHashCode(); + hash = hash * 31 + IsDst.GetHashCode(); + return hash; +#endif + } + + public static bool operator ==(Tm left, Tm right) + { + return left.Equals(right); + } + + public static bool operator !=(Tm left, Tm right) + { + return !(left == right); + } + } +} diff --git a/imgui/ImGuiScene/Dummy.cs b/imgui/ImGuiScene/Dummy.cs new file mode 100644 index 000000000..91d31ff3d --- /dev/null +++ b/imgui/ImGuiScene/Dummy.cs @@ -0,0 +1,8 @@ +namespace ImGuiScene; + +public class Dummy +{ + // There is nothing here on purpose. This project does nothing. + // XIVLauncher checks if it can read ImGuiScene.dll to see if a Dalamud install is valid, so we need to ship it + // anyway for now... +} diff --git a/imgui/ImGuiScene/ImGuiScene.csproj b/imgui/ImGuiScene/ImGuiScene.csproj new file mode 100644 index 000000000..a652e3197 --- /dev/null +++ b/imgui/ImGuiScene/ImGuiScene.csproj @@ -0,0 +1,8 @@ + + + + enable + enable + + + diff --git a/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs b/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs new file mode 100644 index 000000000..5cf147ec3 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs @@ -0,0 +1,638 @@ +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +using Dalamud.Bindings.ImGui; + +using Veldrid; +using Veldrid.Sdl2; + +namespace StandaloneImGuiTestbed; + +public class ImGuiBackend : IDisposable +{ + private GraphicsDevice gd; + private bool frameBegun; + + // Veldrid objects + private DeviceBuffer? vertexBuffer; + private DeviceBuffer? indexBuffer; + private DeviceBuffer? projMatrixBuffer; + private Texture? fontTexture; + private TextureView? fontTextureView; + private Shader? vertexShader; + private Shader? fragmentShader; + private ResourceLayout? layout; + private ResourceLayout? textureLayout; + private Pipeline? pipeline; + private ResourceSet? mainResourceSet; + private ResourceSet? fontTextureResourceSet; + + private readonly IntPtr fontAtlasId = (IntPtr)1; + private bool controlDown; + private bool shiftDown; + private bool altDown; + private bool winKeyDown; + + private IntPtr iniPathPtr; + + private int windowWidth; + private int windowHeight; + private Vector2 scaleFactor = Vector2.One; + + // Image trackers + private readonly Dictionary setsByView = new(); + + private readonly Dictionary autoViewsByTexture = new(); + + private readonly Dictionary viewsById = new Dictionary(); + private readonly List ownedResources = new List(); + private int lastAssignedID = 100; + + private delegate void SetClipboardTextDelegate(IntPtr userData, string text); + + private delegate string GetClipboardTextDelegate(); + + // variables because they need to exist for the program duration without being gc'd + private SetClipboardTextDelegate setText; + private GetClipboardTextDelegate getText; + + /// + /// Constructs a new ImGuiBackend. + /// + public unsafe ImGuiBackend(GraphicsDevice gd, OutputDescription outputDescription, int width, int height, FileInfo iniPath, float fontPxSize) + { + this.gd = gd; + windowWidth = width; + windowHeight = height; + + ImGui.CreateContext(); + + ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.NavEnableKeyboard | ImGuiConfigFlags.NavEnableGamepad; + ImGui.GetIO().BackendFlags |= ImGuiBackendFlags.HasGamepad; + + SetIniPath(iniPath.FullName); + + setText = SetClipboardText; + getText = GetClipboardText; + + var io = ImGui.GetIO(); + io.SetClipboardTextFn = Marshal.GetFunctionPointerForDelegate(setText).ToPointer(); + io.GetClipboardTextFn = Marshal.GetFunctionPointerForDelegate(getText).ToPointer(); + io.ClipboardUserData = null; + + CreateDeviceResources(gd, outputDescription, fontPxSize); + SetKeyMappings(); + + SetPerFrameImGuiData(1f / 60f); + + ImGui.NewFrame(); + frameBegun = true; + } + + private void SetIniPath(string iniPath) + { + if (iniPathPtr != IntPtr.Zero) + { + Marshal.FreeHGlobal(iniPathPtr); + } + + iniPathPtr = Marshal.StringToHGlobalAnsi(iniPath); + + unsafe + { + var io = ImGui.GetIO(); + io.IniFilename = (byte*)iniPathPtr.ToPointer(); + } + } + + private static void SetClipboardText(IntPtr userData, string text) + { + // text always seems to have an extra newline, but I'll leave it for now + Sdl2Native.SDL_SetClipboardText(text); + } + + private static string GetClipboardText() + { + return Sdl2Native.SDL_GetClipboardText(); + } + + public void WindowResized(int width, int height) + { + windowWidth = width; + windowHeight = height; + } + + public void DestroyDeviceObjects() + { + Dispose(); + } + + public void CreateDeviceResources(GraphicsDevice gd, OutputDescription outputDescription, float fontPxSize) + { + this.gd = gd; + var factory = gd.ResourceFactory; + vertexBuffer = factory.CreateBuffer(new BufferDescription(10000, BufferUsage.VertexBuffer | BufferUsage.Dynamic)); + vertexBuffer.Name = "ImGui.NET Vertex Buffer"; + indexBuffer = factory.CreateBuffer(new BufferDescription(2000, BufferUsage.IndexBuffer | BufferUsage.Dynamic)); + indexBuffer.Name = "ImGui.NET Index Buffer"; + + var ioFonts = ImGui.GetIO().Fonts; + + ImGui.GetIO().Fonts.Clear(); + ImGui.GetIO().Fonts.AddFontDefault(); + ImGui.GetIO().Fonts.Build(); + + RecreateFontDeviceTexture(gd); + + projMatrixBuffer = factory.CreateBuffer(new BufferDescription(64, BufferUsage.UniformBuffer | BufferUsage.Dynamic)); + projMatrixBuffer.Name = "ImGui.NET Projection Buffer"; + + var vertexShaderBytes = LoadEmbeddedShaderCode(gd.ResourceFactory, "imgui-vertex", ShaderStages.Vertex); + var fragmentShaderBytes = LoadEmbeddedShaderCode(gd.ResourceFactory, "imgui-frag", ShaderStages.Fragment); + vertexShader = factory.CreateShader(new ShaderDescription(ShaderStages.Vertex, vertexShaderBytes, gd.BackendType == GraphicsBackend.Metal ? "VS" : "main")); + fragmentShader = factory.CreateShader(new ShaderDescription(ShaderStages.Fragment, fragmentShaderBytes, gd.BackendType == GraphicsBackend.Metal ? "FS" : "main")); + + var vertexLayouts = new VertexLayoutDescription[] + { + new VertexLayoutDescription( + new VertexElementDescription("in_position", VertexElementSemantic.Position, VertexElementFormat.Float2), + new VertexElementDescription("in_texCoord", VertexElementSemantic.TextureCoordinate, VertexElementFormat.Float2), + new VertexElementDescription("in_color", VertexElementSemantic.Color, VertexElementFormat.Byte4_Norm)) + }; + + layout = factory.CreateResourceLayout(new ResourceLayoutDescription( + new ResourceLayoutElementDescription("ProjectionMatrixBuffer", ResourceKind.UniformBuffer, ShaderStages.Vertex), + new ResourceLayoutElementDescription("MainSampler", ResourceKind.Sampler, ShaderStages.Fragment))); + textureLayout = factory.CreateResourceLayout(new ResourceLayoutDescription( + new ResourceLayoutElementDescription("MainTexture", ResourceKind.TextureReadOnly, ShaderStages.Fragment))); + + var pd = new GraphicsPipelineDescription( + BlendStateDescription.SingleAlphaBlend, + new DepthStencilStateDescription(false, false, ComparisonKind.Always), + new RasterizerStateDescription(FaceCullMode.None, PolygonFillMode.Solid, FrontFace.Clockwise, false, true), + PrimitiveTopology.TriangleList, + new ShaderSetDescription(vertexLayouts, new[] { vertexShader, fragmentShader }), + new ResourceLayout[] { layout, textureLayout }, + outputDescription, + ResourceBindingModel.Default); + pipeline = factory.CreateGraphicsPipeline(ref pd); + + mainResourceSet = factory.CreateResourceSet(new ResourceSetDescription(layout, + projMatrixBuffer, + gd.PointSampler)); + + fontTextureResourceSet = factory.CreateResourceSet(new ResourceSetDescription(textureLayout, fontTextureView)); + } + + /// + /// Gets or creates a handle for a texture to be drawn with ImGui. + /// Pass the returned handle to Image() or ImageButton(). + /// + public IntPtr GetOrCreateImGuiBinding(ResourceFactory factory, TextureView textureView) + { + if (!setsByView.TryGetValue(textureView, out var rsi)) + { + var resourceSet = factory.CreateResourceSet(new ResourceSetDescription(textureLayout, textureView)); + rsi = new ResourceSetInfo(this.GetNextImGuiBindingId(), resourceSet); + + setsByView.Add(textureView, rsi); + viewsById.Add(rsi.ImGuiBinding, rsi); + ownedResources.Add(resourceSet); + } + + return rsi.ImGuiBinding; + } + + private IntPtr GetNextImGuiBindingId() + { + var newId = lastAssignedID++; + return (IntPtr)newId; + } + + /// + /// Gets or creates a handle for a texture to be drawn with ImGui. + /// Pass the returned handle to Image() or ImageButton(). + /// + public IntPtr GetOrCreateImGuiBinding(ResourceFactory factory, Texture texture) + { + if (!autoViewsByTexture.TryGetValue(texture, out var textureView)) + { + textureView = factory.CreateTextureView(texture); + autoViewsByTexture.Add(texture, textureView); + ownedResources.Add(textureView); + } + + return GetOrCreateImGuiBinding(factory, textureView); + } + + /// + /// Retrieves the shader texture binding for the given helper handle. + /// + public ResourceSet GetImageResourceSet(IntPtr imGuiBinding) + { + if (!viewsById.TryGetValue(imGuiBinding, out var tvi)) + { + throw new InvalidOperationException("No registered ImGui binding with id " + imGuiBinding.ToString()); + } + + return tvi.ResourceSet; + } + + public void ClearCachedImageResources() + { + foreach (var resource in ownedResources) + { + resource.Dispose(); + } + + ownedResources.Clear(); + setsByView.Clear(); + viewsById.Clear(); + autoViewsByTexture.Clear(); + lastAssignedID = 100; + } + + public static byte[] GetEmbeddedResourceBytes(string resourceName) + { + var assembly = typeof(ImGuiBackend).Assembly; + + using var s = assembly.GetManifestResourceStream(resourceName); + if (s == null) + throw new ArgumentException($"Resource {resourceName} not found", nameof(resourceName)); + + var ret = new byte[s.Length]; + s.ReadExactly(ret, 0, (int)s.Length); + return ret; + } + + private byte[] LoadEmbeddedShaderCode(ResourceFactory factory, string name, ShaderStages stage) + { + switch (factory.BackendType) + { + case GraphicsBackend.Direct3D11: + { + var resourceName = name + ".hlsl.bytes"; + return GetEmbeddedResourceBytes(resourceName); + } + + case GraphicsBackend.OpenGL: + { + var resourceName = name + ".glsl"; + return GetEmbeddedResourceBytes(resourceName); + } + + case GraphicsBackend.Vulkan: + { + var resourceName = name + ".spv"; + return GetEmbeddedResourceBytes(resourceName); + } + + case GraphicsBackend.Metal: + { + var resourceName = name + ".metallib"; + return GetEmbeddedResourceBytes(resourceName); + } + + default: + throw new NotImplementedException(); + } + } + + /// + /// Recreates the device texture used to render text. + /// + public unsafe void RecreateFontDeviceTexture(GraphicsDevice gd) + { + var io = ImGui.GetIO(); + // Build + byte* pixels = null; + int width, height, bytesPerPixel; + io.Fonts.GetTexDataAsRGBA32(0, &pixels, &width, &height, &bytesPerPixel); + // Store our identifier + io.Fonts.SetTexID(0, new ImTextureID(this.fontAtlasId)); + + fontTexture = gd.ResourceFactory.CreateTexture(TextureDescription.Texture2D( + (uint)width, + (uint)height, + 1, + 1, + PixelFormat.R8_G8_B8_A8_UNorm, + TextureUsage.Sampled)); + fontTexture.Name = "ImGui.NET Font Texture"; + gd.UpdateTexture( + fontTexture, + new IntPtr(pixels), + (uint)(bytesPerPixel * width * height), + 0, + 0, + 0, + (uint)width, + (uint)height, + 1, + 0, + 0); + fontTextureView = gd.ResourceFactory.CreateTextureView(fontTexture); + + io.Fonts.ClearTexData(); + } + + /// + /// Renders the ImGui draw list data. + /// This method requires a because it may create new DeviceBuffers if the size of vertex + /// or index data has increased beyond the capacity of the existing buffers. + /// A is needed to submit drawing and resource update commands. + /// + public void Render(GraphicsDevice gd, CommandList cl) + { + if (frameBegun) + { + frameBegun = false; + ImGui.Render(); + RenderImDrawData(ImGui.GetDrawData(), gd, cl); + } + } + + /// + /// Updates ImGui input and IO configuration state. + /// + public void Update(float deltaSeconds, InputSnapshot snapshot) + { + if (frameBegun) + { + ImGui.Render(); + } + + SetPerFrameImGuiData(deltaSeconds); + UpdateImGuiInput(snapshot); + + frameBegun = true; + ImGui.NewFrame(); + } + + /// + /// Sets per-frame data based on the associated window. + /// This is called by Update(float). + /// + private void SetPerFrameImGuiData(float deltaSeconds) + { + var io = ImGui.GetIO(); + io.DisplaySize = new Vector2( + windowWidth / scaleFactor.X, + windowHeight / scaleFactor.Y); + io.DisplayFramebufferScale = scaleFactor; + io.DeltaTime = deltaSeconds; // DeltaTime is in seconds. + } + + private void UpdateImGuiInput(InputSnapshot snapshot) + { + var io = ImGui.GetIO(); + + var mousePosition = snapshot.MousePosition; + + // Determine if any of the mouse buttons were pressed during this snapshot period, even if they are no longer held. + var leftPressed = false; + var middlePressed = false; + var rightPressed = false; + + foreach (var me in snapshot.MouseEvents) + { + if (me.Down) + { + switch (me.MouseButton) + { + case MouseButton.Left: + leftPressed = true; + break; + + case MouseButton.Middle: + middlePressed = true; + break; + + case MouseButton.Right: + rightPressed = true; + break; + } + } + } + + io.MouseDown[0] = leftPressed || snapshot.IsMouseDown(MouseButton.Left); + io.MouseDown[1] = rightPressed || snapshot.IsMouseDown(MouseButton.Right); + io.MouseDown[2] = middlePressed || snapshot.IsMouseDown(MouseButton.Middle); + io.MousePos = mousePosition; + io.MouseWheel = snapshot.WheelDelta; + + var keyCharPresses = snapshot.KeyCharPresses; + + for (var i = 0; i < keyCharPresses.Count; i++) + { + var c = keyCharPresses[i]; + io.AddInputCharacter(c); + } + + var keyEvents = snapshot.KeyEvents; + + for (var i = 0; i < keyEvents.Count; i++) + { + var keyEvent = keyEvents[i]; + io.KeysDown[(int)keyEvent.Key] = keyEvent.Down; + + if (keyEvent.Key == Key.ControlLeft) + { + controlDown = keyEvent.Down; + } + + if (keyEvent.Key == Key.ShiftLeft) + { + shiftDown = keyEvent.Down; + } + + if (keyEvent.Key == Key.AltLeft) + { + altDown = keyEvent.Down; + } + + if (keyEvent.Key == Key.WinLeft) + { + winKeyDown = keyEvent.Down; + } + } + + io.KeyCtrl = controlDown; + io.KeyAlt = altDown; + io.KeyShift = shiftDown; + io.KeySuper = winKeyDown; + } + + private static void SetKeyMappings() + { + var io = ImGui.GetIO(); + io.KeyMap[(int)ImGuiKey.Tab] = (int)Key.Tab; + io.KeyMap[(int)ImGuiKey.LeftArrow] = (int)Key.Left; + io.KeyMap[(int)ImGuiKey.RightArrow] = (int)Key.Right; + io.KeyMap[(int)ImGuiKey.UpArrow] = (int)Key.Up; + io.KeyMap[(int)ImGuiKey.DownArrow] = (int)Key.Down; + io.KeyMap[(int)ImGuiKey.PageUp] = (int)Key.PageUp; + io.KeyMap[(int)ImGuiKey.PageDown] = (int)Key.PageDown; + io.KeyMap[(int)ImGuiKey.Home] = (int)Key.Home; + io.KeyMap[(int)ImGuiKey.End] = (int)Key.End; + io.KeyMap[(int)ImGuiKey.Delete] = (int)Key.Delete; + io.KeyMap[(int)ImGuiKey.Backspace] = (int)Key.BackSpace; + io.KeyMap[(int)ImGuiKey.Enter] = (int)Key.Enter; + io.KeyMap[(int)ImGuiKey.Escape] = (int)Key.Escape; + io.KeyMap[(int)ImGuiKey.Space] = (int)Key.Space; + io.KeyMap[(int)ImGuiKey.KeypadEnter] = (int)Key.KeypadEnter; + io.KeyMap[(int)ImGuiKey.A] = (int)Key.A; + io.KeyMap[(int)ImGuiKey.C] = (int)Key.C; + io.KeyMap[(int)ImGuiKey.V] = (int)Key.V; + io.KeyMap[(int)ImGuiKey.X] = (int)Key.X; + io.KeyMap[(int)ImGuiKey.Y] = (int)Key.Y; + io.KeyMap[(int)ImGuiKey.Z] = (int)Key.Z; + } + + private unsafe void RenderImDrawData(ImDrawDataPtr drawData, GraphicsDevice gd, CommandList cl) + { + uint vertexOffsetInVertices = 0; + uint indexOffsetInElements = 0; + + if (drawData.CmdListsCount == 0) + { + return; + } + + var totalVbSize = (uint)(drawData.TotalVtxCount * Unsafe.SizeOf()); + + if (totalVbSize > vertexBuffer!.SizeInBytes) + { + gd.DisposeWhenIdle(vertexBuffer); + vertexBuffer = gd.ResourceFactory.CreateBuffer(new BufferDescription((uint)(totalVbSize * 1.5f), BufferUsage.VertexBuffer | BufferUsage.Dynamic)); + } + + var totalIbSize = (uint)(drawData.TotalIdxCount * sizeof(ushort)); + + if (totalIbSize > indexBuffer!.SizeInBytes) + { + gd.DisposeWhenIdle(indexBuffer); + indexBuffer = gd.ResourceFactory.CreateBuffer(new BufferDescription((uint)(totalIbSize * 1.5f), BufferUsage.IndexBuffer | BufferUsage.Dynamic)); + } + + for (var i = 0; i < drawData.CmdListsCount; i++) + { + ImDrawListPtr cmdList = drawData.CmdLists[i]; + + cl.UpdateBuffer( + vertexBuffer, + vertexOffsetInVertices * (uint)Unsafe.SizeOf(), + new IntPtr(cmdList.VtxBuffer.Data), + (uint)(cmdList.VtxBuffer.Size * Unsafe.SizeOf())); + + cl.UpdateBuffer( + indexBuffer, + indexOffsetInElements * sizeof(ushort), + new IntPtr(cmdList.IdxBuffer.Data), + (uint)(cmdList.IdxBuffer.Size * sizeof(ushort))); + + vertexOffsetInVertices += (uint)cmdList.VtxBuffer.Size; + indexOffsetInElements += (uint)cmdList.IdxBuffer.Size; + } + + // Setup orthographic projection matrix into our constant buffer + var io = ImGui.GetIO(); + var mvp = Matrix4x4.CreateOrthographicOffCenter( + 0f, + io.DisplaySize.X, + io.DisplaySize.Y, + 0.0f, + -1.0f, + 1.0f); + + this.gd.UpdateBuffer(this.projMatrixBuffer, 0, ref mvp); + + cl.SetVertexBuffer(0, vertexBuffer); + cl.SetIndexBuffer(indexBuffer, IndexFormat.UInt16); + cl.SetPipeline(pipeline); + cl.SetGraphicsResourceSet(0, mainResourceSet); + + drawData.ScaleClipRects(io.DisplayFramebufferScale); + + // Render command lists + var globalIdxOffset = 0; + var globalVtxOffset = 0; + + for (var n = 0; n < drawData.CmdListsCount; n++) + { + ImDrawListPtr cmdList = drawData.CmdLists[n]; + + for (var cmdI = 0; cmdI < cmdList.CmdBuffer.Size; cmdI++) + { + var pcmd = cmdList.CmdBuffer[cmdI]; + + if (pcmd.UserCallback != null) + { + throw new NotImplementedException(); + } + else + { + if (pcmd.TextureId != IntPtr.Zero) + { + if (pcmd.TextureId == this.fontAtlasId) + { + cl.SetGraphicsResourceSet(1, fontTextureResourceSet); + } + else + { + cl.SetGraphicsResourceSet(1, GetImageResourceSet((nint)pcmd.TextureId.Handle)); + } + } + + cl.SetScissorRect( + 0, + (uint)pcmd.ClipRect.X, + (uint)pcmd.ClipRect.Y, + (uint)(pcmd.ClipRect.Z - pcmd.ClipRect.X), + (uint)(pcmd.ClipRect.W - pcmd.ClipRect.Y)); + + cl.DrawIndexed(pcmd.ElemCount, 1, pcmd.IdxOffset + (uint)globalIdxOffset, (int)pcmd.VtxOffset + globalVtxOffset, 0); + } + } + + globalIdxOffset += cmdList.IdxBuffer.Size; + globalVtxOffset += cmdList.VtxBuffer.Size; + } + } + + /// + /// Frees all graphics resources used by the renderer. + /// + public void Dispose() + { + vertexBuffer?.Dispose(); + indexBuffer?.Dispose(); + projMatrixBuffer?.Dispose(); + fontTexture?.Dispose(); + fontTextureView?.Dispose(); + vertexShader?.Dispose(); + fragmentShader?.Dispose(); + layout?.Dispose(); + textureLayout?.Dispose(); + pipeline?.Dispose(); + mainResourceSet?.Dispose(); + + foreach (var resource in ownedResources) + { + resource.Dispose(); + } + } + + private struct ResourceSetInfo + { + public readonly IntPtr ImGuiBinding; + public readonly ResourceSet ResourceSet; + + public ResourceSetInfo(IntPtr imGuiBinding, ResourceSet resourceSet) + { + ImGuiBinding = imGuiBinding; + ResourceSet = resourceSet; + } + } +} diff --git a/imgui/StandaloneImGuiTestbed/Program.cs b/imgui/StandaloneImGuiTestbed/Program.cs new file mode 100644 index 000000000..417c05880 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Program.cs @@ -0,0 +1,61 @@ +using Veldrid; +using Veldrid.Sdl2; +using Veldrid.StartupUtilities; + +namespace StandaloneImGuiTestbed; + +class Program +{ + static void Main(string[] args) + { + Sdl2Window window; + GraphicsDevice gd; + + ImGuiBackend? backend = null; + + VeldridStartup.CreateWindowAndGraphicsDevice( + new WindowCreateInfo(50, 50, 1280, 800, WindowState.Normal, "Dalamud Standalone ImGui Testbed"), + new GraphicsDeviceOptions(false, null, true, ResourceBindingModel.Improved, true, true), + out window, + out gd); + + window.Resized += () => + { + gd.MainSwapchain.Resize((uint)window.Width, (uint)window.Height); + backend!.WindowResized(window.Width, window.Height); + }; + + var cl = gd.ResourceFactory.CreateCommandList(); + backend = new ImGuiBackend(gd, gd.MainSwapchain.Framebuffer.OutputDescription, window.Width, window.Height, new FileInfo("imgui.ini"), 21.0f); + + var testbed = new Testbed(); + + while (window.Exists) + { + Thread.Sleep(50); + + var snapshot = window.PumpEvents(); + + if (!window.Exists) + break; + + backend.Update(1f / 60f, snapshot); + + testbed.Draw(); + + cl.Begin(); + cl.SetFramebuffer(gd.MainSwapchain.Framebuffer); + cl.ClearColorTarget(0, new RgbaFloat(0, 0, 0, 1f)); + backend.Render(gd, cl); + cl.End(); + gd.SubmitCommands(cl); + gd.SwapBuffers(gd.MainSwapchain); + } + + // Clean up Veldrid resources + gd.WaitForIdle(); + backend.Dispose(); + cl.Dispose(); + gd.Dispose(); + } +} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl new file mode 100644 index 000000000..85e5ee981 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl @@ -0,0 +1,13 @@ +#version 330 core + +uniform sampler2D FontTexture; + +in vec4 color; +in vec2 texCoord; + +out vec4 outputColor; + +void main() +{ + outputColor = color * texture(FontTexture, texCoord); +} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl new file mode 100644 index 000000000..997ce0d1e --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl @@ -0,0 +1,20 @@ +#version 330 core + +uniform ProjectionMatrixBuffer +{ + mat4 projection_matrix; +}; + +in vec2 in_position; +in vec2 in_texCoord; +in vec4 in_color; + +out vec4 color; +out vec2 texCoord; + +void main() +{ + gl_Position = projection_matrix * vec4(in_position, 0, 1); + color = in_color; + texCoord = in_texCoord; +} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl new file mode 100644 index 000000000..63d175f0c --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl @@ -0,0 +1,15 @@ +struct PS_INPUT +{ + float4 pos : SV_POSITION; + float4 col : COLOR0; + float2 uv : TEXCOORD0; +}; + +Texture2D FontTexture : register(t0); +sampler FontSampler : register(s0); + +float4 FS(PS_INPUT input) : SV_Target +{ + float4 out_col = input.col * FontTexture.Sample(FontSampler, input.uv); + return out_col; +} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes new file mode 100644 index 000000000..2a9fbf5a3 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl new file mode 100644 index 000000000..55793c19e --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl @@ -0,0 +1,27 @@ +cbuffer ProjectionMatrixBuffer : register(b0) +{ + float4x4 ProjectionMatrix; +}; + +struct VS_INPUT +{ + float2 pos : POSITION; + float2 uv : TEXCOORD0; + float4 col : COLOR0; +}; + +struct PS_INPUT +{ + float4 pos : SV_POSITION; + float4 col : COLOR0; + float2 uv : TEXCOORD0; +}; + +PS_INPUT VS(VS_INPUT input) +{ + PS_INPUT output; + output.pos = mul(ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f)); + output.col = input.col; + output.uv = input.uv; + return output; +} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes new file mode 100644 index 000000000..572a04538 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal new file mode 100644 index 000000000..ff3cbe6bd --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal @@ -0,0 +1,18 @@ +#include +using namespace metal; + +struct PS_INPUT +{ + float4 pos [[ position ]]; + float4 col; + float2 uv; +}; + +fragment float4 FS( + PS_INPUT input [[ stage_in ]], + texture2d FontTexture [[ texture(0) ]], + sampler FontSampler [[ sampler(0) ]]) +{ + float4 out_col = input.col * FontTexture.sample(FontSampler, input.uv); + return out_col; +} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib new file mode 100644 index 000000000..18a3d73b2 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal new file mode 100644 index 000000000..73d649e8b --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal @@ -0,0 +1,27 @@ +#include +using namespace metal; + +struct VS_INPUT +{ + float2 pos [[ attribute(0) ]]; + float2 uv [[ attribute(1) ]]; + float4 col [[ attribute(2) ]]; +}; + +struct PS_INPUT +{ + float4 pos [[ position ]]; + float4 col; + float2 uv; +}; + +vertex PS_INPUT VS( + VS_INPUT input [[ stage_in ]], + constant float4x4 &ProjectionMatrix [[ buffer(1) ]]) +{ + PS_INPUT output; + output.pos = ProjectionMatrix * float4(input.pos.xy, 0.f, 1.f); + output.col = input.col; + output.uv = input.uv; + return output; +} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib new file mode 100644 index 000000000..2998b9480 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat new file mode 100644 index 000000000..62d1d996b --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat @@ -0,0 +1,2 @@ +glslangvalidator -V imgui-vertex.glsl -o imgui-vertex.spv -S vert +glslangvalidator -V imgui-frag.glsl -o imgui-frag.spv -S frag diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl new file mode 100644 index 000000000..f94fa4859 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl @@ -0,0 +1,16 @@ +#version 450 + +#extension GL_ARB_separate_shader_objects : enable +#extension GL_ARB_shading_language_420pack : enable + +layout(set = 1, binding = 0) uniform texture2D FontTexture; +layout(set = 0, binding = 1) uniform sampler FontSampler; + +layout (location = 0) in vec4 color; +layout (location = 1) in vec2 texCoord; +layout (location = 0) out vec4 outputColor; + +void main() +{ + outputColor = color * texture(sampler2D(FontTexture, FontSampler), texCoord); +} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv new file mode 100644 index 000000000..5d3d96f32 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl new file mode 100644 index 000000000..6249a36dd --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl @@ -0,0 +1,28 @@ +#version 450 + +#extension GL_ARB_separate_shader_objects : enable +#extension GL_ARB_shading_language_420pack : enable + +layout (location = 0) in vec2 in_position; +layout (location = 1) in vec2 in_texCoord; +layout (location = 2) in vec4 in_color; + +layout (binding = 0) uniform ProjectionMatrixBuffer +{ + mat4 projection_matrix; +}; + +layout (location = 0) out vec4 color; +layout (location = 1) out vec2 texCoord; + +out gl_PerVertex +{ + vec4 gl_Position; +}; + +void main() +{ + gl_Position = projection_matrix * vec4(in_position, 0, 1); + color = in_color; + texCoord = in_texCoord; +} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv new file mode 100644 index 000000000..b40ec8ca5 Binary files /dev/null and b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv differ diff --git a/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj b/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj new file mode 100644 index 000000000..21a6a4c66 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj @@ -0,0 +1,40 @@ + + + + Exe + enable + enable + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/imgui/StandaloneImGuiTestbed/Testbed.cs b/imgui/StandaloneImGuiTestbed/Testbed.cs new file mode 100644 index 000000000..9025d4b52 --- /dev/null +++ b/imgui/StandaloneImGuiTestbed/Testbed.cs @@ -0,0 +1,36 @@ +using Dalamud.Bindings.ImGui; + +namespace StandaloneImGuiTestbed; + +public class Testbed +{ + private bool showDemoWindow = false; + + public unsafe void Draw() + { + if (ImGui.Begin("Testbed")) + { + ImGui.Text("Hello!"); + + if (ImGui.Button("Open demo")) + { + this.showDemoWindow = true; + } + + if (this.showDemoWindow) + { + ImGui.ShowDemoWindow(ref this.showDemoWindow); + } + + if (ImGui.Button("Access context")) + { + var context = ImGui.GetCurrentContext(); + var currentWindow = context.CurrentWindow; + ref var dc = ref currentWindow.DC; // BREAKPOINT HERE, currentWindow will be invalid + dc.CurrLineTextBaseOffset = 0; + } + + ImGui.End(); + } + } +} diff --git a/lib/FFXIVClientStructs b/lib/FFXIVClientStructs index 294254960..3d1533902 160000 --- a/lib/FFXIVClientStructs +++ b/lib/FFXIVClientStructs @@ -1 +1 @@ -Subproject commit 2942549605a0b1c7dfb274afabfe7db0332415bc +Subproject commit 3d1533902a8a54ae6e92360b2e6d2168541ee412 diff --git a/lib/Hexa.NET.ImGui b/lib/Hexa.NET.ImGui new file mode 160000 index 000000000..53ae49bc5 --- /dev/null +++ b/lib/Hexa.NET.ImGui @@ -0,0 +1 @@ +Subproject commit 53ae49bc558aa8ba9f4fad3515aa17fab99d7ffa diff --git a/lib/ImGuiScene b/lib/ImGuiScene deleted file mode 160000 index d336b20a8..000000000 --- a/lib/ImGuiScene +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d336b20a85ea48723a98681b18bdfe14a56a3403 diff --git a/lib/Lumina.Excel b/lib/Lumina.Excel new file mode 160000 index 000000000..1c7d19628 --- /dev/null +++ b/lib/Lumina.Excel @@ -0,0 +1 @@ +Subproject commit 1c7d196283f12210e000e8dfd3cc1226fcf39e41